Log in

View Full Version : Can FTP to robot, Netbeans can't


computerish
25-09-2011, 14:34
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:

init:
init:
Deleting directory C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\build
Deleting directory C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\suite
Deleting directory C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\j2meclasses
clean:
Created dir: C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\build
Compiling 2 source files to C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\build
compile:
Created dir: C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\j2meclasses
preverify:
Created dir: C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\suite
Building jar: C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\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\Foo tballRobot2\suite\FootballRobot2_1.0.0.jar into C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\suite
Moving 1 file to C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\suite
Moving 1 file to C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\suite
Moving 1 file to C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\suite
Deleting: C:\Users\carobotics\Documents\NetBeansProjects\Foo tballRobot2\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.FTPConnectionClosedExce ption: Connection closed without indication.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java :267)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.jav a:460)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.jav a:520)
at org.apache.commons.net.ftp.FTP.port(FTP.java:849)
at org.apache.commons.net.ftp.FTPClient._openDataConn ection_(FTPClient.java:477)
at org.apache.commons.net.ftp.FTPClient.__storeFile(F TPClient.java:388)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTP Client.java:1388)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.upgrade(Upgr adeTask.java:317)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(Upgr adeTask.java:216)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va:411)
at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1397)
at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Projec t.java:1249)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(C allTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:39 0)
at org.apache.tools.ant.Target.performTasks(Target.ja va: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.execut eTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Projec t.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(Run ClassThread.java:154)
BUILD FAILED (total time: 57 seconds)

derekwhite
26-09-2011, 08:43
There are two things to look at:

1) The output said:
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)
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.

computerish
28-09-2011, 20:27
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.

computerish
28-09-2011, 20:44
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.