So just a week ago, before the competition, I had a laptop communicating with last year’s cRio and downloading code fine. Now I have a new laptop (the old one’s gone) on which I also installed NetBeans, the FRC Java plug-ins, and the 2011 updates. I also re-imaged the cRio to version 25 (for Java).
Long story short I can’t download code onto the robot. I checked my static IP (10.9.55.6), as well as that of the cRIO (10.9.55.2). I can ping the cRio, but I can’t download code. When I try to it gives me this error:
target IP: 10.9.55.2
Network interfaces on host:
Realtek PCIe FE Family Controller: address: 10.9.55.6 netmask: 255.255.255.255
DW1501 Wireless-N WLAN Half-Mini Card: address: 167.128.54.128 netmask: 255.255.255.255
WARNING: Host is not on same subnet as robot. May not be able to complete all communication with robot.
Connecting FTP @10.9.55.2
C:\Users\Michael Perlin\sunspotfrcsdk\build.xml:95: The following error occurred while executing this line:
C:\Users\Michael Perlin\sunspotfrcsdk\ant\upgrade.xml:40:
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:53)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:162)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:250)
at com.sun.spot.sdk.tool.ftp.JakartaFtpWrapper.connectAndLogin(JakartaFtpWrapper.java:37)
at com.sun.spot.sdk.tool.ftp.UpgradeTask.execute(UpgradeTask.java:201)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor75.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.GeneratedMethodAccessor75.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)
It looks like everything except the first few lines is unimportant; I think basically it’s saying I have the wrong subnet mask, but I’ve tried both 255.0.0.0 [the default] and 255.255.255.0 [what I think it should be]. Both of which have worked in the past, and it still says it’s 255.255.255.255… which it’s not… (Ignore the Wireless-N card I’m just using that to connect to the internet. I still get the same error if I disable it.) I’m confused and frustrated about this, as I tried everything I could think of for several hours with no results. I even tried re-installing NetBeans and the updates, etc., but still the same error.
Is NetBeans messing up? Am I doing something wrong? Is it the cRio? (With which I did have problems imaging, but I eventually got it, so it shouldn’t be a problem… still, I’ll try re-imaging it tomorrow.)
I’m sort of helpless here. If anyone knows anything please help?
Update: I get the warning about the subnet mask on the classmate as well, and I get it *before/I] NetBeans actually tries to connect to the cRio (and I suppose I could tomorrow also see if the same errors follow when I actually try to connect to the cRio with the classmate, though I don’t doubt they will.) Also, I know my code isn’t the problem, as I’ve tried doing this with default code as well with the same results.
This leads me to think I’m overlooking some NetBeans update perhaps. As far as I know, all you have to do is add a third party source for plugins in NetBeans under the name “FRC Java” and the url http://first.wpi.edu/FRC/java/netbeans/update/updates.xml.
Orrr you can can download the 2011 NetBeans updates from the FIRST website which lead you to http://firstforge.wpi.edu/sf/frs/do/listReleases/projects.wpilib/frs.wpilib_java_update_for_2011_frc. These are the same updates though, as NetBeans will tell you.
…Anything else I’m missing? Some other plugins I have to add? I am using NetBeans v6.9.1 with JDK v6 + update 23.
And sorry for the lengthy post, I’m just really trying to without a doubt isolate the problem, as I won’t be able to sleep easy until this is fixed… Talk about knowing when I’ve overdosed on FIRST :p*
I saw the identical error when we first did the update. (We did all, Labview, then Utilities, then driver station, net beans last)
I reboote the cRIO and the laptop one more time and everything worked fine afterwards.
The second laptop I did did not show the error so I suspect it was the cRIO that really needed to reboot.
Our whole programming team (5 different laptops) are all getting the 255.255.255.255 subnet mask warning even though it is definitely set to 255.0.0.0. I believe all laptops are updated with the latest Netbeans and FRC software, and the cRIO has the 2011 image. We can download code to the cRIO alright from all laptops, but only one laptop so far has been able to see debug output from System.out.println – the others keep waiting for the cRIO to reboot even though the cRIO reboot has completed and our code is running. Is this warning just something bogus we should just ignore? Any ideas why most of our laptops can’t see debug output?
It turns out that there’s a bug in Java 6 on Windows.
When a network interface supports both IPv6 and IPv4, the Java APIs return the IPv6 network prefix length (128) instead of the correct IPv4 subnet mask. And 128 maps to 255.255.255.255.
We’ll update the warning code to punt on this case for now.
Are you just getting the subnet mask warning, and NetBeans claims that your subnet is “255.255.255.255”? If so, that is a bogus warning and can be ignored (as mentioned in post #10).
BTW, that warning has been fixed in the latest release.
If you’re getting a different error, please post the text.
I believe this means you haven’t set your team number in the preferences of Netbeans. It should be under Tools -> Options -> Miscellaneous ->FRC Configuration. Keep the cRIO’s ip at 10.27.37.2.
I am the programmer of team 499. I have been using lab view since my freshman year but this year our teacher said That we will be programming in java this year. Mine hangs at “overload me!” as well and I literally have no clue on how to proceed. Please help with detailed and simple instructions.
That’s probably not hanging. Most methods for robot templates will print out ‘overload me’ until you overload them. But you usually don’t need to overload very many methods. (often just one autonomous and one teleop method) As mentioned below, just stick your drive code into a method like teleopPeriodic (there are probably better ones) and Enable the robot in the right mode.
Definitely take a look at Java samples included with the java plugins.
What you guys need to do is go into your netbeans options and go to Misc. then from there you will see a tab named FRC config in that tab you need to set your team number to be whatever it is and then it will deploy code to 10.xx.yy.2 instead of 10.0.0.2, also even though the cRio tells you to overload the method the robot should still be able to run.