Log in

View Full Version : NetBeans deploy hangs


Crossle86
11-12-2014, 17:24
A new mystery. We have been using NetBeans for several months with our 2014 robot. We have deployed many times with no problems. We last deployed code Dec 1 with no problems. On Dec 9 made some code mods and attempted to deploy to the robot. Deploy gets to the connecting FTP @n.n.n.n step and appears to hang. Nothing else happens...no timeout, no errors, nothing. The deploy is hung at that point and the deploy will not stop. You have to kill NetBeans to get rid of the hung deploy process.

Note that if you try to deploy with cRio not connected to the router, the deploy connect attempt times out as expected.

Network config and firewall are set as recommended and again, this worked fine last week. The PC is in my possession at all times so I can be sure it has not been tampered with by the kids.

Subnet is ok. Can ftp with browser no problem. Driver station works fine.


Additional info: the cRio Imaging tool does not detect the cRio from the same PC where NetBeans fails to deploy. Note again that ftp from Chrome on same PC works fine, ping works fine. Driver station works fine, can drive. Imaging tool does not find the cRio.

Update: cRio Imaging tool on second PC connects just fine. Unfortunately that PC has been out of use and does not have NetBeans installed so can't check that quickly on the second PC but things are pointing to some change on the problem development PC, which is the primary PC used for robot programming. But in the time between when it deployed and when it quit, there were no changes or updates made to that system.

Out of ideas...

Mark McLeod
11-12-2014, 17:53
In case it was a problem with your last code download, you can try this.

Use the cRIO Imaging Tool to turn on the No App switch on the cRIO
Reset the cRIO
Then try downloading
Turn the No App switch off again with the Imaging tool
Reset the cRIO to run your code

Crossle86
11-12-2014, 19:14
See updated problem description. Not a problem with the code, the deploy step fails at ftp connect.

Mark McLeod
11-12-2014, 19:48
Firewall and anti-virus are all turned off?

You could also try switching NICs, e.g., if you were using Ethernet try switching to a wireless connection through the DLink.

Crossle86
11-12-2014, 23:38
Tried all that, no joy.

Poseidon5817
11-12-2014, 23:52
Turn off firewall and antivirus, and change your wireless IP to 10.44.50.9 and try that. If that doesn't work, open Netbeans and open the settings page. Click on miscellaneous and FRC settings and make sure your team number is the right number for that specific robot.

Crossle86
12-12-2014, 11:44
Antivirus and firewall are off. IP of PC is 10.44.50.20 and the cRio is confirmed at 10.44.50.2 all as expected. Chrome browser accesses cRio via ftp no problem. CRio flash utility finds the robot from a different PC no problem.

On the problem PC, cRio flash utility does not find the robot. There is no apparent reason for that. NetBeans reaches the ftp connect to 10.44.50.2 and hangs hard. It would appear that NetBeans actually connects but then things go wrong. PC has JDK 1.8 installed and Eclipse is also present in anticipation of the switch for 2015.

Again, this all worked perfectly a week ago so the basic setup is correct. Something has changed but can't figure out what.

Poseidon5817
12-12-2014, 14:44
Try setting your IP to 10.44.50.9 I think the last number has to be 0-10

Crossle86
16-12-2014, 11:49
Ok, this problem seems to be solved. The issue turned out to be installing JRE 1.8 in anticipation of switch to Eclipse. NetBeans code download and cRio imaging tool would not function correctly with 1.8 as an enabled JRE. With switch back to 1.7 as the only enabled JRE, things went back to normal. JRE version affecting cRio imaging tool threw me for a while but apparently that tool is Java based and affected as well as NetBeans.

Arhowk
25-12-2014, 13:15
Ok, this problem seems to be solved. The issue turned out to be installing JRE 1.8 in anticipation of switch to Eclipse. NetBeans code download and cRio imaging tool would not function correctly with 1.8 as an enabled JRE. With switch back to 1.7 as the only enabled JRE, things went back to normal. JRE version affecting cRio imaging tool threw me for a while but apparently that tool is Java based and affected as well as NetBeans.

... you're mistaken, my laptop has run jre 1.8 since it was in beta and I've never had problems deploying. The issue you were having was a connection issue, 1.8 wouldn't have any effect on it. But if it works, it works.

Crossle86
29-12-2014, 19:27
Well, I'm not mistaken in that the 1.8 JDK had some effect on NetBeans FRC delpoyment and also the cRio imaging utility. With 4 PCs that have the cRio imaging utility on them, all 4 worked at the start. Install JDK 1.8 on two of them and cRio imaging utility stopped working (along with NetBeans on one of them). cRio imaging utility continued to work on the 1.7 PCs. Disable 1.8 and re enable 1.7 on the two failing PCs and they go back to working normally.

I'd agree you would not expect the JDK version to have this effect but the evidence suggests some aspect of the JDK 1.8 is affecting these two tools...and believe me we worked hard to find another explanation.