Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Cannot deploy Java code through netbeans (http://www.chiefdelphi.com/forums/showthread.php?t=100588)

RcDawson 18-01-2012 19:12

Cannot deploy Java code through netbeans
 
Our team is not having any luck deploying code to the cRIO. We are getting the following error

Code:

Connecting FTP @10.29.72.2
C:\Users\Developer\sunspotfrcsdk\build.xml:96: The following error occurred while executing this line:
C:\Users\Developer\sunspotfrcsdk\ant\upgrade.xml:39:
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.port(FTP.java:849)
        at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:477)
        at org.apache.commons.net.ftp.FTPClient.retrieveFile(FTPClient.java:1285)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.checkVersion(UpgradeTask.java:34)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(UpgradeTask.java:215)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:281)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
BUILD FAILED (total time: 20 seconds)

We can ping the cRIO and connect with FTP manually. We have also tried Netbeans version 6.9.1 and 7.1. Any ideas?

codes02 18-01-2012 22:15

Re: Cannot deploy Java code through netbeans
 
Is there anything printed before this stack trace?

BradAMiller 19-01-2012 03:00

Can you try disabling the firewall temporarily to see if that helps? It seems like FTP isn't getting to your cRIO (that's what deploys the code). Also, you might verify that you can ping the robot from the same computer to make sure that the network is set up properly.

Brad

Mr. Lim 19-01-2012 05:06

Re: Cannot deploy Java code through netbeans
 
I am currently having this issue on two of our laptops.

A Sony Vaio netbook running 32-bit Windows 7

and

A MacBook Air running BootCamp + 64-bit Windows 7

Both computers can ping the cRIO at 10.xx.yy.2 just fine.

We've disabled the firewall on both, as well as made explicit exceptions for NetBeans. The problem still exists.

We've resorted to using different laptops for sending code.

RcDawson 19-01-2012 10:46

Re: Cannot deploy Java code through netbeans
 
Well we got it working, it turns out Windows 7 has 3 different firewall profiles and the public one was still on, which is what our connection was designated as. All I can say to you Mr. Lim is that you make sure all three profiles are disabled. Each profile has it's own tab in the firewall settings.

Mr. Lim 19-01-2012 20:37

Re: Cannot deploy Java code through netbeans
 
Quote:

Originally Posted by RcDawson (Post 1108998)
Well we got it working, it turns out Windows 7 has 3 different firewall profiles and the public one was still on, which is what our connection was designated as. All I can say to you Mr. Lim is that you make sure all three profiles are disabled. Each profile has it's own tab in the firewall settings.

Thanks!

MKoval in another thread suggested this command as well:

netsh advfirewall set global StatefulFTP disable

Both solutions appear to be good.


All times are GMT -5. The time now is 10:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi