Go to Post The moral of this story: A healthy respect for the customer, dedication to your job, and a positive outlook can make even the most trivial and monotonous job into a wonderful experience. - Molten [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 25-09-2011, 14:34
computerish computerish is offline
Registered User
FRC #0619
 
Join Date: Nov 2008
Location: va
Posts: 45
computerish is an unknown quantity at this point
Can FTP to robot, Netbeans can't

Earlier today I was able to download and run code on the robot with no problems. Netbeans suddenly stopped being able to connect to the robot, though. I can still ping both the router (on the robot) and the cRIO. I can also FTP to the cRIO with FileZilla. This is the Netbeans output:

Code:
init:
init:
Deleting directory C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\build
Deleting directory C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite
Deleting directory C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\j2meclasses
clean:
Created dir: C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\build
Compiling 2 source files to C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\build
compile:
Created dir: C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\j2meclasses
preverify:
Created dir: C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite
Building jar: C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite\FootballRobot2_1.0.0.jar
jar-app:
CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
[translating suite image [closed: false, parent: squawk] ...]
### Excluding compile: com.sun.squawk.Method::getParameterTypes
### Excluding compile: com.sun.squawk.SymbolParser::getSignatureTypeAt
[Including resource: META-INF/MANIFEST.MF]
Romizer processed 90 classes and generated 4 files.
Expanding: C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite\FootballRobot2_1.0.0.jar into C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite
Moving 1 file to C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite
Moving 1 file to C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite
Moving 1 file to C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\suite
Deleting: C:\Users\carobotics\Documents\NetBeansProjects\FootballRobot2\image.suite.api
Host OS: Windows 7 6.1, 6.1
Host JVM: Java HotSpot(TM) Client VM 19.0-b09
Target IP: 10.6.19.2
Network interfaces on host:
    NETGEAR WN311T Wireless PCI Adapter:  address: 10.6.19.6 netmask: 255.255.255.255 or hidden by IPv6 address (due to Java on Windows Bug:6707289)
Connecting FTP @10.6.19.2
Remote OTA server does not match, upgrading
C:\Users\carobotics\sunspotfrcsdk\build.xml:95: The following error occurred while executing this line:
C:\Users\carobotics\sunspotfrcsdk\ant\upgrade.xml:40: 
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
        at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:267)
        at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:460)
        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.__storeFile(FTPClient.java:388)
        at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1388)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.upgrade(UpgradeTask.java:317)
        at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(UpgradeTask.java:216)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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.GeneratedMethodAccessor65.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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: 57 seconds)
Reply With Quote
  #2   Spotlight this post!  
Unread 26-09-2011, 08:43
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: Can FTP to robot, Netbeans can't

There are two things to look at:

1) The output said:
Quote:
Remote OTA server does not match, upgrading
Which might implies that something changed. So is this the first time you've used that development machine on that cRIO? Or are using a new version of the netbeans modules?


2)
Quote:
Host OS: Windows 7
Double check the windows fire wall. The SDK uses a java implementation of an ftp client, so the Java executable needs permission to open ports, etc.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-09-2011, 20:27
computerish computerish is offline
Registered User
FRC #0619
 
Join Date: Nov 2008
Location: va
Posts: 45
computerish is an unknown quantity at this point
Re: Can FTP to robot, Netbeans can't

I tired it running as an administrator with the Windows Firewall completely disabled (nothing but the robot on the network). Still the same error.

I hadn't noticed the remote OTA message. I usually associate that with the cRIO being reimaged. It was reimaged, but it has been working since then. The only thing I changed was networking settings (specifically HomeGroup settings) on the other network interface. Even with that network interface disabled (as it was in the output you see above), it still doesn't work. I've tried another computer as well and I've double and triple checked the network settings:

Computer IP: 10.6.19.6
Subnet: 255.0.0.0

I'm going to try reimaging the cRIO now.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-09-2011, 20:44
computerish computerish is offline
Registered User
FRC #0619
 
Join Date: Nov 2008
Location: va
Posts: 45
computerish is an unknown quantity at this point
Re: Can FTP to robot, Netbeans can't

No luck with reimaging. Or rather it reimaged just fine, but the problem persists. It works just fine with a wireless connection, by the way.
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:18.

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