Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Deploying to cRio. (http://www.chiefdelphi.com/forums/showthread.php?t=124642)

Nazzieg327 14-01-2014 17:16

Deploying to cRio.
 
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

Re: Deploying to cRio.
 
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.

pr0ph3t 22-01-2014 00:10

Re: Deploying to cRio.
 
I too started having a similar issue tonight. Previously I was fine. Here's the error I'm now seeing:

Code:

[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.java:134)
        at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:653)
        at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:624)
        at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1976)
        at com.sun.spot.sdk.tool.ftp.DeployTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java: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.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.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(RunClassThread.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(SocketOutputStream.java:113)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.write(BufferedOutputStream.java:95)
        at org.apache.commons.net.io.Util.copyStream(Util.java: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:

Code:

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.

Ginto8 22-01-2014 07:54

Re: Deploying to cRio.
 
Quote:

Originally Posted by BradAMiller (Post 1327239)
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).


All times are GMT -5. The time now is 22:34.

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