Go to Post Please review the rules for posting. - meaubry [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-11-2010, 09:51
RoboElite640 RoboElite640 is offline
Registered User
FRC #0640
 
Join Date: Nov 2010
Location: NY
Posts: 36
RoboElite640 is an unknown quantity at this point
Error while downloading code into robot

I get an error while downloading the code from netbeans to the robot. The error code comes out as:

C:\Documents and Settings\Developer\sunspotfrcsdk\build.xml:95: The following error occurred while executing this line:
C:\Documents and Settings\Developer\sunspotfrcsdk\ant\upgrade.xml:4 0:
java.net.SocketException: Socket operation on nonsocket: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at org.apache.commons.net.DefaultSocketFactory.create Socket(DefaultSocketFactory.java:53)
at org.apache.commons.net.SocketClient.connect(Socket Client.java:162)
at org.apache.commons.net.SocketClient.connect(Socket Client.java:250)
at com.sun.spot.sdk.tool.ftp.JakartaFtpWrapper.connec tAndLogin(JakartaFtpWrapper.java:37)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(Upgr adeTask.java:114)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor149.invoke(Unkn own Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:1397)
at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1249)
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.GeneratedMethodAccessor149.invoke(Unkn own Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:1397)
at org.apache.tools.ant.Project.executeTarget(Project .java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.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(Run ClassThread.java:154)

can anyone provide help or tips
  #2   Spotlight this post!  
Unread 18-11-2010, 19:13
joek's Avatar
joek joek is offline
Team Welder and CAD tech
FRC #2052 (KnightKrawler)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Irondale H.S.
Posts: 231
joek is an unknown quantity at this point
Re: Error while downloading code into robot

ummmm.... why java?
and for the answer- try to find a veteran team or professional programmer to look over your code
__________________


2012 Record (13-2-0)
lake superior regional finalists- thank you WAVE (2826) and Blue Twilight (2220)
  #3   Spotlight this post!  
Unread 18-11-2010, 19:58
andreboos andreboos is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2010
Location: San Diego
Posts: 132
andreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the rough
Re: Error while downloading code into robot

I'm not as familiar with Java as with C++ or LabVIEW, but I think it's an issue with the connection to the robot for uploading code, rather than one with the code. The upgrade script updates the code on the robot with the current Java code, and "Socket operation on nonsocket" indicates an issue internal to the Ant script, though it may indicate a misconfiguration of the script.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
No Robot Code After downloading Code tutkows1 FRC Control System 2 08-02-2010 00:51
Code error with while loops?? Lakeeffect1674 Programming 6 09-03-2008 13:19
Code error causing robot to go into programming mode. MJD Programming 14 30-10-2007 14:21
Wild motors while downloading GlennGraham VEX 2 22-09-2006 19:52
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07


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

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