NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

FTP Upload (unknown reason) problem

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
towntalk



Joined: 30 Aug 2011
Posts: 3

PostPosted: Tue Aug 30, 2011 10:46 am    Post subject: FTP Upload (unknown reason) problem Reply with quote

Hello all,

I've scanned through quite a number of search engine results on this topic and never found the exact problem and wondered if anyone here has encountered it.

I am running Netbeans 7.0.1 PHP IDE on windows 7 with the latest JAVA SE Development Kit (64 bit)

I have a project with a FTP connection that gives me the following error when i try to upload something.

###########################################


230 User ***** logged in
TYPE I
200 Type set to I
CWD /path/to/upload
250 CWD command successful
CWD /path/to/upload
250 CWD command successful
PASV

Summary
====================
Failed:
file ****.php Cannot upload file ****.php (unknown reason).
Runtime: 170 ms, transfered: 0 file(s), 0 KB

#######################################

It shows hear that authentication actually happens so it's not username password problem.

I have tried FTP with and without PASSIVE mode still the same problem.

I have tried re-installing both netbeans and java still no luck.

I am completely bamboozled Smile

Any ideas?

Alex
Back to top
towntalk



Joined: 30 Aug 2011
Posts: 3

PostPosted: Tue Aug 30, 2011 2:50 pm    Post subject: Reply with quote

I found out that it was a windows firewall issue.

I now need to find out how i can enable windows firewall and use netbeans at the same time..

any ideas?
Back to top
Jeffrey Rubinoff
Posted via mailing list.





PostPosted: Tue Aug 30, 2011 3:09 pm    Post subject: FTP Upload (unknown reason) problem Reply with quote

No, but I would suggest following this up with Windows Firewall support,
since it is likely that the solution involves configuring your firewall.

On 8/30/2011 4:50 PM, towntalk wrote:
Quote:
I found out that it was a windows firewall issue.

I now need to find out how i can enable windows firewall and use netbeans at the same time..

any ideas?



Back to top
fojta



Joined: 01 Sep 2011
Posts: 3

PostPosted: Thu Sep 01, 2011 8:03 pm    Post subject: Re: FTP Upload (unknown reason) problem Reply with quote

i have same problem. I reinstaled my laptop and after that i found thisiproblem. If somebody know some solution please tell me it Very Happy
Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Fri Sep 02, 2011 9:23 am    Post subject: FTP Upload (unknown reason) problem Reply with quote

Hi,

Dne
Back to top
fojta



Joined: 01 Sep 2011
Posts: 3

PostPosted: Fri Sep 02, 2011 9:28 am    Post subject: Re: FTP Upload (unknown reason) problem Reply with quote

Tomas Mysik wrote:
Hi,

Dne

??
Back to top
towntalk



Joined: 30 Aug 2011
Posts: 3

PostPosted: Fri Sep 02, 2011 1:01 pm    Post subject: Reply with quote

Any ideas anyone?
Back to top
paolosca



Joined: 09 Sep 2010
Posts: 384

PostPosted: Fri Sep 02, 2011 2:24 pm    Post subject: FTP Upload (unknown reason) problem Reply with quote

Hi Fojta,

On 09/02/2011 05:28 PM, fojta wrote:
Quote:
Tomas Mysik wrote:
Quote:
Hi,

Dne

??


There is bug in the system that synchronizes emails and forum. It seems
that whenever the email contains an Unicode character the text gets
truncated right prior to it. In this case it was a capital U with an
acute accent.

The reply was:

Dne Ut 30. srpna 2011 10:46:12 towntalk napsal(a):
Quote:
I am running Netbeans 7.0.1 PHP IDE on windows 7 with the latest JAVA SE
Development Kit (64 bit)
if you are using JDK 7, then this issue [1] is about it.

Quote:
file ****.php Cannot upload file ****.php (unknown reason).
Have a look at the IDE log [2], the reason could (should) be there.

Tomas
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=201449
[2] View > IDE Log


I just reported it to the webmaster, it's a while that I noticed this
problem but I just always forgot to do it.


Regards,


Paolo.
Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Fri Sep 02, 2011 2:40 pm    Post subject: FTP Upload (unknown reason) problem Reply with quote

Hi,

Paolo Scarabelli wrote:
Quote:
There is bug in the system that synchronizes emails and forum. It seems
that whenever the email contains an Unicode character the text gets
truncated right prior to it. In this case it was a capital U with an
acute accent.

thanks a lot Paolo, didn't know about it (using only emails).

Tomas
Back to top
Aaron
Posted via mailing list.





PostPosted: Mon Sep 19, 2011 9:25 am    Post subject: FTP Upload (unknown reason) problem Reply with quote

This is a problem with the latest update for Java. You need to uninstall Java
7.0 and Java SE Development Kit 7.0 (You should keep Java 6 with the latest
updates (update 24 or 27)). If you just keep the old versions, everything works
great.
Back to top
Jeffrey Rubinoff
Posted via mailing list.





PostPosted: Mon Sep 19, 2011 9:47 am    Post subject: FTP Upload (unknown reason) problem Reply with quote

Well actually you don't need to uninstall JDK 7. If you have a JDK 6 installation (again, use update 24 or later), select that JDK when you install NetBeans. If you have already installed NetBeans, consider uninstalling it and reinstalling it. If don't want to do that, you still have a couple options:
  • If you usually want to run NB using JDK 7 but only occasionally want to run it with JDK 6, launch NetBeans from the command line with the option --jdkhome {directory of JDK 6} when you want to run NB with JDK 6.
  • If you just want to run NB with JDK 6, open NETBEANS_INSTALLATION/etc/netbeans.conf and change the value of the property netbeans_jdkhome to the location of your JDK 6 installation. This changes the default JDK to JDK 6.
If you are developing JDK 7 Java apps, please note that you do not need to run NB in JDK 7 to do so! You can set up NetBeans to run on JDK 6 and in Tools > Java Platforms, add a JDK 7 platform. When you want to develop a JDK 7 app, select the JDK 7 platform when you create the project.

Jeff

On 9/17/2011 11:08 AM, Aaron wrote:
Quote:
Quote:
This is a problem with the latest update for Java. You need to uninstall Java
7.0 and Java SE Development Kit 7.0 (You should keep Java 6 with the latest
updates (update 24 or 27)). If you just keep the old versions, everything works
great.




Back to top
gbirch



Joined: 29 Sep 2011
Posts: 2

PostPosted: Thu Sep 29, 2011 12:16 am    Post subject: Reply with quote

I can confirm that this solution works. I'm using Netbeans 7.0.1 on Windows 7 64-bit. Had 32-bit JRE 7 installed. Same upload problems as everyone else (upload failed, cause unknown). Downloaded and installed 32-bit JRE 6 beside JRE 7. Edited <netbeans dir>\etc\netbeans.conf so that:
netbeans_jdkhome="C:\Program Files (x86)\Java\jre6"

Now uploads fine.
Back to top
khartnjava



Joined: 27 Feb 2012
Posts: 7

PostPosted: Mon Apr 16, 2012 9:01 am    Post subject: Reply with quote

There is solution of the problem (works for me):
http://wiki.netbeans.org/FAQConfiguringWinFirewallForPassiveFTP
Code:
netsh advfirewall set global StatefulFTP disable
Back to top
gbirch



Joined: 29 Sep 2011
Posts: 2

PostPosted: Mon Apr 16, 2012 12:29 pm    Post subject: More Information Reply with quote

It strikes me that disabling a feature of your firewall to deal with connectivity issues for one application is perhaps overkill.

There's some authoritative learning on this topic at
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696

The takeaway:

a) The underlying problem is that Java 7 (unlike Java 6) uses IPv6 and the Windows Firewall does not play nicely with IPv6 (or at least not in the form used by Java 7 -- determining whether this is REALLY a Microsoft bug, as Oracle says, as opposed to Java 7 having a buggy implementation of IPv6, is certainly beyond my abilities).

b) You may be able to solve the problem by running the JRE with -Djava.net.preferIPv4Stack=true, but I have not yet tested.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo