Go to Post To all programmers: you are Geniuses! - Ashley Weed [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, 22:03
mkoval's Avatar
mkoval mkoval is offline
Registered User
AKA: Michael Koval
FRC #4281 (Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New Jersey, USA
Posts: 8
mkoval has a spectacular aura aboutmkoval has a spectacular aura about
Deploying Java via NetBeans on the driver station PC fails

We're having uploading code to the cRIO from NetBeans installed on the driver station netbook. Uploading fails with this warning, followed by a Java stack trace regarding the failed connection:

Code:
Realtek RTL8191SE Wireless LAN 802.11n PCI-E NIC: address: 10.42.81.9 netmask: 255.255.255.254
WARNING: Host is not on same subnet as robot. May not be able to complete all communication with robot.
Note that the subnet mask is being printed as 255.255.255.254 and it should be 255.0.0.0. This doesn't make much sense, because ipconfig and the Control Panel both show the subnet mask being set to 255.0.0.0.

I can transfer code to the cRIO from my personal laptop (that is running OS X), so it is not an issue with the cRIO or wireless router. I believe it's either an a problem with the computer's network configuration or the NetBeans plugin. I have already verified that our team number is set in NetBeans, verified that the compiler plugins are up-to-date, and have disabled IPv6 on both wifi and ethernet. Any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2012, 22:50
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Deploying Java via NetBeans on the driver station PC fails

The "incorrect" subnet should not cause a total failure. You might never get rid of that warning; it's generally a bug.
I'm not sure why you can't connect though. A few restarts of the classmate/netbeans and the robot, with some confirmation of the network configuration seems to clear up the failure for me. I can't explain why.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2012, 23:02
neal's Avatar
neal neal is offline
Neal
FRC #1777 (Viking Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2009
Location: United States
Posts: 56
neal is an unknown quantity at this point
Re: Deploying Java via NetBeans on the driver station PC fails

As nickpeq said, that error shouldn't cause it to completely fail. We get that error every time, but it still works.

What error are you getting after that? Just cannot connect to the cRIO... failed after x attempts...?
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2012, 23:52
mkoval's Avatar
mkoval mkoval is offline
Registered User
AKA: Michael Koval
FRC #4281 (Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New Jersey, USA
Posts: 8
mkoval has a spectacular aura aboutmkoval has a spectacular aura about
Re: Deploying Java via NetBeans on the driver station PC fails

It's good to know that the warning is a known issue.

Immediately after the warning I get a Java stack trace caused by an uncaught SocketException. I don't have the full stack trace on hand (not that it contained much useful information), but I'll post it next time I have access to the cRIO.

Have you ever encountered something like this?
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2012, 00:05
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Deploying Java via NetBeans on the driver station PC fails

Did you install the latest Labview? This was our issue. Also the latest firmware on the cRio. Try FTPing to it manually by putting
Code:
ftp://10.42.81.2
into a windows explorer window. If it connects, your configuration is good. Just get the latest labview and utilities updates.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2012, 00:13
mkoval's Avatar
mkoval mkoval is offline
Registered User
AKA: Michael Koval
FRC #4281 (Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New Jersey, USA
Posts: 8
mkoval has a spectacular aura aboutmkoval has a spectacular aura about
Re: Deploying Java via NetBeans on the driver station PC fails

Quote:
Originally Posted by davidthefat View Post
Did you install the latest Labview? This was our issue.
We're using Java, which does not depend on LabVIEW and it works fine from my personal computer. In any case, we do have the latest version of LabVIEW installed.

Quote:
Originally Posted by davidthefat View Post
Also the latest firmware on the cRio.
I provisioned the cRIO yesterday with FRC_2012_v43.zip. As far as I can tell, this is the latest version of the firmware.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2012, 00:15
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Deploying Java via NetBeans on the driver station PC fails

Quote:
Originally Posted by mkoval View Post
We're using Java, which does not depend on LabVIEW and it works fine from my personal computer. In any case, we do have the latest version of LabVIEW installed.


I provisioned the cRIO yesterday with FRC_2012_v43.zip. As far as I can tell, this is the latest version of the firmware.
Can you FTP to it? Because we had the exact same problem, but everything got resolved after doing all that.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2012, 00:20
mkoval's Avatar
mkoval mkoval is offline
Registered User
AKA: Michael Koval
FRC #4281 (Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New Jersey, USA
Posts: 8
mkoval has a spectacular aura aboutmkoval has a spectacular aura about
Re: Deploying Java via NetBeans on the driver station PC fails

Quote:
Originally Posted by davidthefat View Post
Can you FTP to it? Because we had the exact same problem, but everything got resolved after doing all that.
Do you mean manually FTPing (e.g. ftp 10.xx.xx.2) from the driver station netbook to the cRIO? It is definitely possible to FTP from my personal computer to the cRIO because it is part of a normal deployment. If that's what you mean, I'll try manually FTPing next time I have access to the robot.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-01-2012, 02:48
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
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 turning off the windows firewall temporarily to see if that fixes the problem?

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2012, 05:13
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: Deploying Java via NetBeans on the driver station PC fails

Run a command line (type "cmd" into the search bar in the Start Button), and see if you can ping the cRIO.

ping 10.42.81.2

Getting a response will at least ensure the network itself is working fine.

If you get a ping, and still can't successfully send code, disable your firewall, and/or make an exception for NetBeans.exe.

If that still doesn't work, you might be experiencing this:
http://www.chiefdelphi.com/forums/sh...hreadid=100588

For which I personally am still stumped by, and don't have a solution.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #11   Spotlight this post!  
Unread 19-01-2012, 15:57
mkoval's Avatar
mkoval mkoval is offline
Registered User
AKA: Michael Koval
FRC #4281 (Bulldogs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: New Jersey, USA
Posts: 8
mkoval has a spectacular aura aboutmkoval has a spectacular aura about
Re: Deploying Java via NetBeans on the driver station PC fails

I already allowed netbeans in Windows Firewall. i finally fixed the problem by following the instructions in this post on the NetBeans forums. Specifically, run the following command in a command prompt with administrative rights:
Code:
netsh advfirewall set global StatefulFTP disable
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:50.

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