Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Problems with deploying code on CRio through Netbeans (http://www.chiefdelphi.com/forums/showthread.php?t=103490)

Team1605 21-02-2012 11:56

Problems with deploying code on CRio through Netbeans
 
Hello guys,
i am using netbeans/java to program our teams robot. when i try to deploy it on to the crio i get an error like:
C:\Users\JAY.JAY-HP\sunspotfrcsdk\build.xml:96: The following error occurred while executing this line:
C:\Users\JAY.JAY-HP\sunspotfrcsdk\ant\upgrade.xml:40:
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream. java:150)
at java.net.SocketInputStream.read(SocketInputStream. java:121)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.j ava:283)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.ja va:325)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:1 77)
at java.io.InputStreamReader.read(InputStreamReader.j ava:184)
at java.io.BufferedReader.fill(BufferedReader.java:15 4)
at java.io.BufferedReader.read(BufferedReader.java:17 5)
at org.apache.commons.net.io.CRLFLineReader.readLine( CRLFLineReader.java:58)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java :310)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java :290)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.jav a:474)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.jav a:547)
at org.apache.commons.net.ftp.FTP.port(FTP.java:872)
at org.apache.commons.net.ftp.FTPClient._openDataConn ection_(FTPClient.java:667)
at org.apache.commons.net.ftp.FTPClient.retrieveFile( FTPClient.java:1595)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.checkVersion (UpgradeTask.java:34)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(Upgr adeTask.java:215)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(C allTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project .java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl .run(BridgeImpl.java:285)
at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(Run ClassThread.java:153)

derekwhite 22-02-2012 08:18

Re: Problems with deploying code on CRio through Netbeans
 
There's some good advice in the post http://www.chiefdelphi.com/forums/sh...d.php?t=102524.

Otherwise post more of the error output.

Team1605 22-02-2012 08:55

Re: Problems with deploying code on CRio through Netbeans
 
That is all of the error output

derekwhite 23-02-2012 10:14

Re: Problems with deploying code on CRio through Netbeans
 
Sorry for being terse there, but the output immediately before your error may have useful information. For example:

Quote:

Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) 64-Bit Server VM 22.0-b10
Target IP: 10.10.9.2
Network interfaces on host:
Intel(R) 82579LM Gigabit Network Connection: address: 10.10.9.6 netmask: 255.0.0.0 <--- on robot's subnet
1x1 11b/g/n Wireless LAN PCI Express Half Mini Card Adapter: address: 192.168.2.7 netmask: 255.255.255.254
Connecting FTP @10.10.9.2
C:\Users\Karan Thukral\sunspotfrcsdk\build.xml:96: The following error occurred while executing this line:
C:\Users\Karan Thukral\sunspotfrcsdk\ant\upgrade.xml:40:
java.net.SocketException: Software caused connection abort: recv failed

MattKahn 26-02-2012 18:27

Re: Problems with deploying code on CRio through Netbeans
 
Don't know if you've solved this yet, but the error output looks like a bad network connection.

I would check your network settings - make sure that they are correct on the computer you are using. It should be on 10.tt.tt.xx with a subnet of 255.255.255.0 (and not using automatic, we've been fighting with windows over this on some of our machines...)


All times are GMT -5. The time now is 09:54.

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