Error comes up while downloading java codes into cRIO. I installed the FRC plugins. Formatted the cRIO and reimaged it. Firewall is also turned off and the IP address is set to 10.6.40.5
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.ConnectExtension:Connection timed out: 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:213)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown 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:390)
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:390)
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 you ping the cRIO from the Classmate (or whatever computer you’re using to load code)? Is the ethernet cable a crossover (I’ve heard straight-throughs can be used, but FIRST recommends a crossover). Is the cable actually plugged in (i.e. not slipping out of anything)?
To ping, go to command prompt, (for windows, if you see “run” on the start menu, click that and select cmd [or type it], a black window should pop up), type “ping” and the ip address of your crio. It will send data packets to your crio, if they are sent back then you are connected and the problem is something else.
We do have the most recent plugins for java. I dont think theres anything that would cause the connection to be timed out because i tried using simple codes and it still said connection timed out. I’ll try wireless tomorrow but if the connection is interrupted then wont the cRIO be corrupted or is that only when you reimage it?
I tried pinging it and i got 4 packages sent and 4 packages received. I also tried using a crossover cable and still got the same error. I have the cRIO IP address at 10.6.40.2, but what exactly should the subnet be at 255.0.0.0?
All of them, SAFE MODE included, should be off to start with.
The CONSOLE OUT switch can be turned on if you want to attach a terminal to the cRIO’s serial port (but don’t do that if you’re using a serial-to-CAN converter such as a Black Jaguar). The NO APP switch has no effect on anything other than LabVIEW programs. The USER1 switch can be read by software and can be set to whatever you want it to be.