Go to Post For our next exercise, we should define Beauty and Truth. :) - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2012, 11:56
Team1605 Team1605 is offline
Registered User
FRC #1605
 
Join Date: Feb 2012
Location: toronto
Posts: 30
Team1605 is an unknown quantity at this point
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)
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2012, 08:18
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2012, 08:55
Team1605 Team1605 is offline
Registered User
FRC #1605
 
Join Date: Feb 2012
Location: toronto
Posts: 30
Team1605 is an unknown quantity at this point
Re: Problems with deploying code on CRio through Netbeans

That is all of the error output
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2012, 10:14
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
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
Reply With Quote
  #5   Spotlight this post!  
Unread 26-02-2012, 18:27
MattKahn MattKahn is offline
Registered User
FRC #0157
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Marlborough, MA
Posts: 3
MattKahn is an unknown quantity at this point
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...)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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