| View previous topic :: View next topic |
| Author |
Message |
richardbenson
Joined: 17 Aug 2011 Posts: 1
|
Posted: Wed Aug 17, 2011 10:49 am Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Hi all,
(this was originally a request for help until I solved it, could be useful info for someone else)
Running Netbeans PHP 7.0.1 on Win7 64, with jdk 1.7.0 will break FTP, it seems something in Java 7 doesn't like netbeans implementation of FTP (or the other way around) and downgrading to the latest Java 6 (update 27 at this moment) solves all woes.
Have attached the logs in case these are of use to anyone.
--LOGS--
There are no errors in the FTP log on the server, the last line is always:
| Code: | (000001)17/08/2011 09:42:40 - rootftp (1.2.3.4)> 250 CWD successful. "/path/to/the/correct/directory" is current directory.
(000001)17/08/2011 09:42:40 - rootftp (1.2.3.4)> disconnected. |
In the IDE log I get the following:
| Code: | INFO [org.netbeans.modules.php.project.copysupport.RemoteOperationFactory]: Upload failed: org.netbeans.modules.php.project.connections.TransferInfo [transfered: [], failed: {_config/configure_local.php=Cannot upload file configure_local.php (unknown reason).}, partially failed: {}, ignored: {}, runtime: 218 ms]
INFO [org.netbeans.modules.php.project.copysupport.CopySupport]: REMOTE copying fail:
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77)
at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137)
at java.io.FilterOutputStream.flush(FilterOutputStream.java:140)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:569)
at org.apache.commons.net.ftp.FTP.quit(FTP.java:781)
at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:706)
at org.netbeans.modules.php.project.connections.ftp.FtpClient.disconnect(FtpClient.java:173)
Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot log out from server web01.cj.dixcart.net.
at org.netbeans.modules.php.project.connections.ftp.FtpClient.disconnect(FtpClient.java:179)
at org.netbeans.modules.php.project.connections.RemoteClient.disconnect(RemoteClient.java:189)
at org.netbeans.modules.php.project.copysupport.RemoteOperationFactory$1.call(RemoteOperationFactory.java:137)
at org.netbeans.modules.php.project.copysupport.RemoteOperationFactory$1.call(RemoteOperationFactory.java:125)
[catch] at org.netbeans.modules.php.project.copysupport.CopySupport$ProxyOperationFactory$ProxyHandler.callRemote(CopySupport.java:496)
at org.netbeans.modules.php.project.copysupport.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:443)
at org.netbeans.modules.php.project.copysupport.CopySupport$ProxyOperationFactory$ProxyHandler.call(CopySupport.java:431)
at org.netbeans.modules.php.project.copysupport.CopySupport$2.run(CopySupport.java:141)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) |
And in the remote FTP log in Netbeans (I changed Filezilla's default MOTD to spoof MS to lead any potential hackers astray):
| Code: | 220 Microsoft FTP Service
USER rootftp
331 Password required for ftpuser
PASS ******
230 Logged on
TYPE I
200 Type set to I
CWD /proper/path/to/site/root
250 CWD successful. "/proper/path/to/site/root" is current directory.
CWD /proper/path/to/site/root/_config
250 CWD successful. "/proper/path/to/site/root/_config" is current directory.
PORT 172,16,254,103,197,146 |
|
|
| Back to top |
|
 |
zeester
Joined: 22 Aug 2011 Posts: 2
|
Posted: Mon Aug 22, 2011 6:06 pm Post subject: |
|
|
Hi Richard,
I can only comfirm the issue,
Yesterday i spent a few hours with several times installing/removing the new JDK 1.7.0 and netbeans 7.01 and I run into the same problems every time.
The FTP option inside netbeans fails to connect, to whatever url is used.
As a result, the update option will not work, but also activating Junit and downloading the plugins catalog fails.
I have Windows7 Ultimate and use netbeans and JDK 1.6 for along time without any issues. I even cleaned the computer from anything related to Java and also modified my firewall by manually allowing Netbeans input/output access, but nothing worked.
So finnally i decided to install JKD1.6.27 & netbeans 7.01 and all problems where solved.
So you are not the only one with this issue.
It seems that the guy's that made the JKD/Netbeans bundle have to do some extra work. Something went wroung.
Regards
Jack. |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Aug 23, 2011 9:27 am Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Hi,
Dne Monday 22 of August 2011 20:06:55 zeester napsal(a):
| Quote: | I can only comfirm the issue,
Yesterday i spent a few hours with several times installing/removing the
new JDK 1.7.0 and netbeans 7.01 and I run into the same problems every
time. FTP option inside netbeans fails to connect, to whatever url is
used. As a result, the update option will not work, but also activating
Junit and downloading the plugins catalog fails. I have Windows7 Ultimate
and use netbeans and JDK 1.6 for along time without any issues. I even
cleaned the computer from anything related to Java and also modified my
firewall by manually allowing Netbeans input/output access, but nothing
worked.
|
can anyone of you try the development version of NetBeans [1] please? We have
upgraded the FTP library (but if the problem is there with any remote
connection, then it would probably make no difference).
Thanks,
Tomas
[1] http://bits.netbeans.org/download/trunk/nightly/latest/ |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Aug 23, 2011 12:27 pm Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Hi,
Dne Tuesday 23 of August 2011 10:36:12 Tomas Mysik napsal(a):
| Quote: | can anyone of you try the development version of NetBeans [1] please? We
have upgraded the FTP library (but if the problem is there with any remote
connection, then it would probably make no difference).
|
and of course, like always, feel free to submit an issue [1] and provide as
much information as possible so we are able to reproduce your problem.
Thanks,
Tomas
[1] http://netbeans.org/community/issues.html |
|
| Back to top |
|
 |
Localhorst
Joined: 17 Nov 2010 Posts: 6
|
Posted: Thu Aug 25, 2011 4:23 pm Post subject: |
|
|
I can confirm this issue.
Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb).
No time to test the nightly right now though, sorry. |
|
| Back to top |
|
 |
Jay-wo
Joined: 04 Sep 2011 Posts: 5 Location: Fullerton, California
|
Posted: Mon Sep 05, 2011 9:10 pm Post subject: |
|
|
| So this is a pretty big deal - I can confirm it too. Basically FTP does not work with JDK 1.7. It sounds like it's only a problem with JDK 1.7 since it does not follow the Netbeans version. Thanks to zeester for pointing out that important distinction. Where do we report problems to the JDK? Is that a NetBeans thing or a Sun thing? |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Sep 06, 2011 10:52 am Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Hi,
Dne Tuesday 23 of August 2011 13:39:16 Tomas Mysik napsal(a):
| Quote: | feel free to submit an issue
|
issue created [1], please:
- add all information you can think of so we can reproduce your problem (we
are currently working on it)
- does auto update work for you? We need to find out where the problem is -
whether in FTP library or in networking in general. Please, add comment to the
issue.
Thanks,
Tomas
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=201449 |
|
| Back to top |
|
 |
yetikov
Joined: 06 Sep 2011 Posts: 2
|
Posted: Tue Sep 06, 2011 12:23 pm Post subject: |
|
|
I can confirm this problem as well. Halfway the upload every time on the same moment it tries to change the path or something, it just stops and says the upload failed.
From the Log I see always two errors appearing after eachother. First this one:
"java.net.SocketException: Software caused connection abort: socket write error"
And then this one.
"Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot log out from server myserveraddresswashere."
The project is a PHP-Project, I use 64 bit Windows 7 Ultimate and I got jdk 1.7.0 and jre7. It must have to do something with a newer version because on my 'old' computer, which has same netbeans but another javaversion probably, this problem does not occur. Even though I made sure that the settings in both Netbeans projects are exactly the same.
If I test the connection with the ftp server it is all good as well. If you need more info from log or something, ask me here.
The FTP Part is:
220 ProFTPD 1.3.3e Server ready.
USER myusernamewashere
331 Password required for myusernamewashere
PASS ******
230 User myusernamewashere logged in
TYPE I
200 Type set to I
CWD /
250 CWD command successful
CWD //inc
250 CWD command successful
Probably gonna need to download FileZilla again..
PS I just tested on my other computer, the only difference there is that after the last line of this ftp thingie, it does a PORT command and then it just continues doing the usual stuff. |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Tue Sep 06, 2011 2:50 pm Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Hi,
Dne Tuesday 06 of September 2011 12:03:14 Tomas Mysik napsal(a):
| Quote: | - add all information you can think of so we can reproduce your problem (we
are currently working on it)
|
we have discovered that it is a firewall issue. If we have disabled it, the FTP
works as expected. We will update the issue [1] soon.
Thanks,
Tomas
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=201449 |
|
| Back to top |
|
 |
Jay-wo
Joined: 04 Sep 2011 Posts: 5 Location: Fullerton, California
|
Posted: Tue Sep 06, 2011 5:53 pm Post subject: |
|
|
Sorry for lack of info in my last post. Most of my evidence is from Wireshark - and a colleague's computer no less. I will transcribe the last few lines of Wireshark obtained when the problem happens.
Frame No. Time Source Dest Protocol Info
188 15.816282 server me FTP Response: 230 Login successful.
189 15.816676 me server FTP Request: SYST
190 15.829459 server me FTP Response: 215 UNIX Type: L8
191 15.831154 me server FTP Request: TYPE I
192 15.843761 server me FTP Response: 200 Switching to Binary mode.
193 15.858793 me server TCP 53006 > ftp [RST, ACK] Seq=60 Ack=128 Len=0
Stepping through the code, the problem happens inside the apache.commons.net.ftpClient call to listFiles(). I do not have the source code in my project so I have not stepped through the listFiles() call yet. At sometime inside that call, the FTP connection is simply reset by my application. Like everyone else, this works on all other machines running older JRE versions (Windows 7 with 1.5 or 1.6, and Mac with 1.5 or 1.6). When I bundle JRE1.5 with my application my colleague can complete an ftp operation successfully, so it is not just a firewall issue. |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Wed Sep 07, 2011 9:36 am Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Hi,
Dne Tuesday 06 of September 2011 19:53:13 Jay-wo napsal(a):
| Quote: | Like everyone else, this works on all other
machines running older JRE versions (Windows 7 with 1.5 or 1.6, and Mac
with 1.5 or 1.6). When I bundle JRE1.5 with my application my colleague
can complete an ftp operation successfully, so it is not just a firewall
issue.
|
I can only repeat: please, read carefully the issue [1] (especially comments
#13 and #14) and feel free to update it, add your comments etc. since NetBeans
BugZilla is the right tool for reporting and discussing issues.
Thanks,
Tomas
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=201449 |
|
| Back to top |
|
 |
Jeffrey Rubinoff Posted via mailing list.
|
Posted: Wed Sep 07, 2011 10:55 am Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
Well, I don't want to speak for the engineers, but is there some
particular reason you need to use JDK 7? JDK 6 u 26 is nice and stable.
Jeff
On 9/6/2011 2:24 PM, yetikov wrote:
| Quote: | I can confirm this problem as well. Halfway the upload every time on the same moment it tries to change the path or something, it just stops and says the upload failed.
From the Log I see always two errors appearing after eachother. First this one:
"java.net.SocketException: Software caused connection abort: socket write error"
And then this one.
"Caused: org.netbeans.modules.php.project.connections.RemoteException: Cannot log out from server myserveraddresswashere."
The project is a PHP-Project, I use 64 bit Windows 7 Ultimate and I got jdk 1.7.0 and jre7. It must have to do something with a newer version because on my 'old' computer, which has same netbeans but another javaversion probably, this problem does not occur. Even though I made sure that the settings in both Netbeans projects are exactly the same.
If I test the connection with the ftp server it is all good as well. If you need more info from log or something, ask me here.
The FTP Part is:
220 ProFTPD 1.3.3e Server ready.
USER myusernamewashere
331 Password required for myusernamewashere
PASS ******
230 User myusernamewashere logged in
TYPE I
200 Type set to I
CWD /
250 CWD command successful
CWD //inc
250 CWD command successful
Probably gonna need to download FileZilla again..
|
|
|
| Back to top |
|
 |
Jay-wo
Joined: 04 Sep 2011 Posts: 5 Location: Fullerton, California
|
Posted: Wed Sep 07, 2011 8:27 pm Post subject: |
|
|
| Quote: | Well, I don't want to speak for the engineers, but is there some
particular reason you need to use JDK 7? JDK 6 u 26 is nice and stable. |
True. The problem is that you don't know what JDK is installed on users' machines so the only alternative is to bundle the JDK that you know works. I don't like that option because it makes my software footprint larger than I want it to be. |
|
| Back to top |
|
 |
Jay-wo
Joined: 04 Sep 2011 Posts: 5 Location: Fullerton, California
|
Posted: Wed Sep 07, 2011 8:32 pm Post subject: |
|
|
| Quote: | I can only repeat: please, read carefully the issue [1] (especially comments
#13 and #14) |
Thanks. I didn't notice comment #14 last I looked. I'm new to reading the BugZila issue pages and the status of "RESOLVED WORKSFORME" made it sound like it was incorrectly dispositioned. |
|
| Back to top |
|
 |
Bob McConnell Posted via mailing list.
|
Posted: Wed Sep 07, 2011 8:40 pm Post subject: FTP fails with NB 7.0.1 and Java 7 |
|
|
From: Jay-wo
| Quote: | | Quote: | Well, I don't want to speak for the engineers, but is there some
particular reason you need to use JDK 7? JDK 6 u 26 is nice and
|
| stable.
| Quote: |
True. The problem is that you don't know what JDK is installed
on users' machines so the only alternative is to bundle the JDK
that you know works. I don't like that option because it makes
my software footprint larger than I want it to be.
|
User machines should not need the full JDK, only a JRE. I believe there
are ways to check that to insure they are running a compatible version
and issue a warning or error if not.
Bob McConnell |
|
| Back to top |
|
 |
|