Go to Post If you don't have a hairtie, use a ziptie instead. It works, it's cute, and way geeky. :p - Katie Reynolds [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 14-01-2014, 17:16
Nazzieg327 Nazzieg327 is offline
Registered User
FRC #4108
 
Join Date: Jan 2014
Location: Bronx, New York
Posts: 4
Nazzieg327 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2014, 19:56
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
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.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2014, 00:10
pr0ph3t pr0ph3t is offline
Programming and Controls Mentor
AKA: Jeff Ousley
FRC #3528 (Up Next)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Missouri
Posts: 21
pr0ph3t is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2014, 07:54
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Deploying to cRio.

Quote:
Originally Posted by BradAMiller View Post
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).
__________________
I code stuff.
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 22:34.

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