View Full Version : Deploying to cRio.
Nazzieg327
14-01-2014, 17:16
Hey guys,
Our code builds, and we were successful in imaging our cRio, but when we go to deploy the code we get:
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 24.45-b08
Target IP: 10.41.8.2
Network interfaces on host:
Realtek PCIe GBE Family Controller: address: 10.41.8.5 netmask: 255.0.0.0 <--- on robot's subnet
Connecting FTP @10.41.8.2
C:\Users\admin\sunspotfrcsdk\build.xml:79: The following error occurred while executing this line:
C:\Users\admin\sunspotfrcsdk\ant\configure.xml:41:
java.net.SocketException: Socket closed
Thank you.
BradAMiller
14-01-2014, 19:56
Can you verify that the computer IP address is set correctly and that the firewall is disabled? If disabling the firewall fixes the problem, then you can look at adding exceptions for Netbeans.
I too started having a similar issue tonight. Previously I was fine. Here's the error I'm now seeing:
[crio-configure] Configuration files not included in this version of the sdk
[crio-configure] Checking that crio is configured for Java
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Target IP: 10.35.28.2
Network interfaces on host:
Intel(R) 82579LM Gigabit Network Connection: address: 10.35.28.42 netmask: 255.255.255.0 <--- on robot's subnet
Connecting FTP @10.35.28.2
[crio-deploy] ./build/suite/image.suite -> 10.35.28.2
Sending local file image.suite
C:\Users\jousley\sunspotfrcsdk\build.xml:81: The following error occurred while executing this line:
C:\Users\jousley\sunspotfrcsdk\ant\deploy.xml:12:
org.apache.commons.net.io.CopyStreamException: IOException caught while copying.
at org.apache.commons.net.io.Util.copyStream(Util.jav a:134)
at org.apache.commons.net.ftp.FTPClient._storeFile(FT PClient.java:653)
at org.apache.commons.net.ftp.FTPClient.__storeFile(F TPClient.java:624)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTP Client.java:1976)
at com.sun.spot.sdk.tool.ftp.DeployTask.execute(Unkno wn Source)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.taskdefs.Sequential.execute(S equential.java:68)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.taskdefs.MacroInstance.execut e(MacroInstance.java:396)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:43 5)
at org.apache.tools.ant.Target.performTasks(Target.ja va:456)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project .java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1248)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl .run(BridgeImpl.java:283)
at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:541)
at org.netbeans.core.execution.RunClassThread.run(Run ClassThread.java:153)
Caused by: java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutp utStream.java:113)
at java.net.SocketOutputStream.write(SocketOutputStre am.java:159)
at java.io.BufferedOutputStream.flushBuffer(BufferedO utputStream.java:82)
at java.io.BufferedOutputStream.write(BufferedOutputS tream.java:95)
at org.apache.commons.net.io.Util.copyStream(Util.jav a:111)
... 33 more
BUILD FAILED (total time: 1 minute 29 seconds)
Note: I did try subnet mask of 255.255.255.0 on this last attempt. Previously I was using 255.0.0.0 and still getting this error. I can ping the D-Link and the cRIO. I can ftp to the cRIO. I tried disabling my firewall. I tried both wired and wireless. I tried uninstalling and reinstall NetBeans and the JDK. I tried upgrading my JDK to the version I'm on now (24.51-b03) from version 24.45-b08.
I suspect this started when I upgraded a few days ago to version Java VM 24.45-b08 from an earlier version. I don't recall the version I was on previously.
In my situation, the deploy sits on this line for a long time:
Sending local file image.suite
It then throws the error and stack trace. Has anyone seen this and found a way to fix it? My next step is to try to downgrade my JDK.
Can you verify that the computer IP address is set correctly and that the firewall is disabled? If disabling the firewall fixes the problem, then you can look at adding exceptions for Netbeans.
The message they provided indicates they have the correct IP address, but the firewall may be a problem.
If you go to ftp://10.41.8.2 does it give you a directory listing? If not, you either are not properly connected, or the cRIO has not been properly configured (the configuration tool is in the NI Update).
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.