Go to Post If you want something done about it, than do something about it. - Tetraman [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 18-01-2012, 19:12
RcDawson RcDawson is offline
Registered User
FRC #2972
 
Join Date: Oct 2010
Location: Lafayette, CO
Posts: 5
RcDawson has a spectacular aura aboutRcDawson has a spectacular aura about
Cannot deploy Java code through netbeans

Our team is not having any luck deploying code to the cRIO. We are getting the following error

Code:
Connecting FTP @10.29.72.2
C:\Users\Developer\sunspotfrcsdk\build.xml:96: The following error occurred while executing this line:
C:\Users\Developer\sunspotfrcsdk\ant\upgrade.xml:39: 
java.net.SocketException: Software caused connection abort: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77)
        at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137)
        at java.io.FilterOutputStream.flush(FilterOutputStream.java:140)
        at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
        at java.io.BufferedWriter.flush(BufferedWriter.java:254)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520)
        at org.apache.commons.net.ftp.FTP.port(FTP.java:849)
        at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:477)
        at org.apache.commons.net.ftp.FTPClient.retrieveFile(FTPClient.java:1285)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.checkVersion(UpgradeTask.java:34)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(UpgradeTask.java:215)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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:390)
        at org.apache.tools.ant.Target.performTasks(Target.java: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.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.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(RunClassThread.java:154)
BUILD FAILED (total time: 20 seconds)
We can ping the cRIO and connect with FTP manually. We have also tried Netbeans version 6.9.1 and 7.1. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2012, 22:15
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: Cannot deploy Java code through netbeans

Is there anything printed before this stack trace?
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2012, 03:00
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
Can you try disabling the firewall temporarily to see if that helps? It seems like FTP isn't getting to your cRIO (that's what deploys the code). Also, you might verify that you can ping the robot from the same computer to make sure that the network is set up properly.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2012, 05:06
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Cannot deploy Java code through netbeans

I am currently having this issue on two of our laptops.

A Sony Vaio netbook running 32-bit Windows 7

and

A MacBook Air running BootCamp + 64-bit Windows 7

Both computers can ping the cRIO at 10.xx.yy.2 just fine.

We've disabled the firewall on both, as well as made explicit exceptions for NetBeans. The problem still exists.

We've resorted to using different laptops for sending code.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...

Last edited by Mr. Lim : 19-01-2012 at 05:09.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2012, 10:46
RcDawson RcDawson is offline
Registered User
FRC #2972
 
Join Date: Oct 2010
Location: Lafayette, CO
Posts: 5
RcDawson has a spectacular aura aboutRcDawson has a spectacular aura about
Re: Cannot deploy Java code through netbeans

Well we got it working, it turns out Windows 7 has 3 different firewall profiles and the public one was still on, which is what our connection was designated as. All I can say to you Mr. Lim is that you make sure all three profiles are disabled. Each profile has it's own tab in the firewall settings.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2012, 20:37
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Cannot deploy Java code through netbeans

Quote:
Originally Posted by RcDawson View Post
Well we got it working, it turns out Windows 7 has 3 different firewall profiles and the public one was still on, which is what our connection was designated as. All I can say to you Mr. Lim is that you make sure all three profiles are disabled. Each profile has it's own tab in the firewall settings.
Thanks!

MKoval in another thread suggested this command as well:

netsh advfirewall set global StatefulFTP disable

Both solutions appear to be good.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
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 12:26.

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