View Full Version : NetBeans not talking to the cRio
scottbot95
15-01-2010, 23:56
I tried to deploy a program to the cRio by clicking the run button and it always got hug up while it was "Waiting for the OTA server to reply".
Has any one had this problem before? And if so will they tell me how to fix it?
fallenangel529
16-01-2010, 11:35
I have the same issue and were getting "No route to host" is that what your getting.
scottbot95
16-01-2010, 12:04
no, after netbeans did some upgrading on the crio it sat there waiting for the "OTA server" for half an hour then i gave up on it.
derekwhite
16-01-2010, 13:07
It sounds like you are running the software from the DVD or a beta version.
You need to update the FRC plugins as described at:
http://first.wpi.edu/FRC/frcjava.html
You may also need the "mandatory LabVIEW update".
scottbot95
16-01-2010, 16:20
Ya, I looked into that and made sure that all the updates were installed ,but it was the pre-installed software that the classmate came with, if that matters
Ya, I looked into that and made sure that all the updates were installed ,but it was the pre-installed software that the classmate came with, if that matters
The software that came with the Classmate is not the most recent - I had the same problem, but using the update site fixed it.
If you haven't already, go to Tools>Plugins>Settings
Click Add.
Use this URL: http://first.wpi.edu/FRC/java/netbeans/update/updates.xml
and name it anything you want.
Now Netbeans should update automatically.
scottbot95
16-01-2010, 18:52
I am fairly sure i did that already but i make sure and check on monday when i have access to it again.
a kenny03
16-01-2010, 19:30
The software that came with the Classmate is not the most recent - I had the same problem, but using the update site fixed it.
If you haven't already, go to Tools>Plugins>Settings
Click Add.
Use this URL: http://first.wpi.edu/FRC/java/netbeans/update/updates.xml
and name it anything you want.
Now Netbeans should update automatically.
there is a second plugin update you need for netbeans as well as that one. look on the forums.
whytheheckme
16-01-2010, 20:50
Also, don't forget to perform the LabVIEW update on whichever machine you are using to format the cRIO, and that the cRIO has the latest v19 firmware.
scottbot95
16-01-2010, 20:58
We are using the classmate to image the crio and it used the v19 update so that shouldn't be a problem
scottbot95
18-01-2010, 20:47
It still wont work and i did every thing
if any one else has something to comment about please reply.
derekwhite
18-01-2010, 21:27
Hi,
Please post the Run output so we can get to the bottom if this. Thanks.
scottbot95
22-01-2010, 00:39
Sorry it took so long but my team was really focusing on labview. Anyways heres the output:
init:
init:
No to.jar.file specified.
Using "suite\RobotTemplate_1.0.0.jar"
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\build
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\j2meclass es
clean:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\build
Compiling 1 source file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\build
compile:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\j2meclass es
preverify:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Building jar: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite\Rob otTemplate_1.0.0.jar
jar-app:
Using "suite\RobotTemplate_1.0.0.jar"
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
Romizer processed 71 classes and generated these files:
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sym
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te.metadata
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te.api
Expanding: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite\Rob otTemplate_1.0.0.jar into C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Deleting: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te.api
Connecting FTP @10.13.88.2
Remote VM does not match, upgrading
Remote bootstrap suite does not match, upgrading
Connecting FTP @10.13.88.2
Remote VM does not match, upgrading
Remote bootstrap suite matches local, no upgrade needed
upgrade:
Sending local file image.suite
Verified
flashapp:
deploy:
init:
Waiting to connect to OTA command server of 10.13.88.2:8001
After that last line it just sat there for half and hour before i just cancled the run
derekwhite
22-01-2010, 09:25
OK, you are running an older version of the Java SDK (netbeans modules).
Set your FRC plugs-in update site to
http://first.wpi.edu/FRC/java/netbeans/update/updates.xml
Check the page at http://first.wpi.edu/FRC/frcjava.html for updated docs and more details.
scottbot95
29-01-2010, 20:00
I just tried that several times, and thought maybe i should reinstall the plugins and i still didn't work.
P.S. My team has given up on Java and I was bearly able to squeeze in these tests before our meetings. Sorry if I don't reply for a while
cilginbilgin
05-02-2010, 08:18
We have the same problem, Netbeans do not continue to working. We have the latest updates but we can not load or run our program through NetBeans.
We need help, please!!!
derekwhite
05-02-2010, 12:00
Please post the run output.
omalleyj
05-02-2010, 15:08
Besides setting the update URL you also need to keep an eye out for new updates and select the Updates tab, and press 'Update'. Here is an attachment of what it looks like for NetBeans updates, my FRC is up to date so I couldn't show that.
We just started having problems with our JAVA to the cRIO ever since NetBeans AutoUpdater updated and then 2 FRC plugins got upgraded too. One of them was FRCSquak which was upgraded from 1.15 to 1.17. Getting "Feed Watchdog" Error oscilating on Dashboard. Plugged in a machine w/o the upgrade and no issues.
Anybody got a solution? Who needs to go back and check these plugins?
bsudduth
06-02-2010, 15:37
We had this problem immediately after we updated the cRIO to v19 and used the latest FRC Plugin updates. We set the NoApp DIP Switch on the cRIO to on and redeployed and it started working.
Hope this helps and was not a coincidence.
cilginbilgin
07-02-2010, 14:04
@DerekWhite :
We found our problem we just forgot to update crio to v19 :) sorry about that. I think it is fixed now. But after installing the v19 a watchdog problem occured. We now try bsudduth's solution. I will send our feedback again.
cilginbilgin
07-02-2010, 14:19
Here is the situation:
We are trying to use our joysticks and jaguars.Serial port was only a try, you can ignore it if you want.
Our java code:
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.GenericHID.Hand;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Watchdog;
import edu.wpi.first.wpilibj.SerialPort;
import edu.wpi.first.wpilibj.visa.VisaException;
import edu.wpi.first.wpilibj.RobotBase;
public class RobotTemplate extends SimpleRobot {
RobotDrive drive = new RobotDrive(1,2);
final int baud = 9600;
final int dataBits =8;
SerialPort sp;
Watchdog wd;
public void autonomous() {
System.out.println("autonomous OK");
wd.feed();
wd.setEnabled(false);
drive.tankDrive(2, 2);
}
public void operatorControl() {
System.out.println("Operator OK");
wd.feed();
try
{
sp = new SerialPort(baud,dataBits);
}
catch(VisaException vs)
{
}
Joystick driveJoy= new Joystick(1);
Jaguar leftControl = new Jaguar(1);
Jaguar rightControl = new Jaguar(2);
if(driveJoy.getTrigger())
{
leftControl.set(driveJoy.getY());
rightControl.set(driveJoy.getAxis(Joystick.AxisTyp e.kX));
}
else if(driveJoy.getRawButton(2))
{
leftControl.set(driveJoy.getThrottle());
rightControl.set(driveJoy.getAxis(Joystick.AxisTyp e.kThrottle));
}
else if(driveJoy.getRawButton(4))
{
leftControl.set(driveJoy.getMagnitude());
}
}
}
And here is the console output:
init:
init:
No to.jar.file specified.
Using "suite\RobotTemplate_1.0.0.jar"
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\build
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Deleting directory C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\j2meclass es
clean:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\build
Compiling 1 source file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\build
compile:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\j2meclass es
preverify:
Created dir: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Building jar: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite\Rob otTemplate_1.0.0.jar
jar-app:
Using "suite\RobotTemplate_1.0.0.jar"
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
Romizer processed 77 classes and generated these files:
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sym
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te.metadata
C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te.api
Expanding: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite\Rob otTemplate_1.0.0.jar into C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Moving 1 file to C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\suite
Deleting: C:\Documents and Settings\Developer\My Documents\NetBeansProjects\RobotTemplate\image.sui te.api
Connecting FTP @10.29.5.2
upgrade:
Sending local file image.suite
flashapp:
deploy:
init:
[cRIO] [OTA Server] ********* REBOOTING cRIO *********
[cRIO]
Waiting for cRIO to reboot (1s)
Waiting for cRIO to reboot (2s)
Waiting for cRIO to reboot (3s)
Waiting for cRIO to reboot (4s)
Waiting for cRIO to reboot (5s)
Waiting for cRIO to reboot (6s)
Waiting for cRIO to reboot (7s)
[cRIO]
[cRIO] -> * Loading StartupDlls: debug
[cRIO] Entering debug.o StartupLibraryInit
[cRIO] Debugging is up, target server mounted at /tsfs
[cRIO]
[cRIO]
[cRIO] VxWorks
[cRIO]
[cRIO] Copyright 1984-2006 Wind River Systems, Inc.
[cRIO]
[cRIO] CPU: MPC5200 -- Wind River Lite5200 BSP.
[cRIO] Runtime Name: VxWorks
[cRIO] Runtime Version: 6.3
[cRIO] BSP version: 2.0/10
[cRIO] Created: Jul 29 2009, 13:41:47
[cRIO] ED&R Policy Mode: Deployed
[cRIO] WDB Comm Type: WDB_COMM_END
[cRIO] WDB: Ready.
[cRIO]
[cRIO] Leaving debug.o StartupLibraryInit
[cRIO] * Loading StartupDlls: NiRioRpc
[cRIO] * Loading StartupDlls: niorbs
[cRIO] * Loading StartupDlls: NiViSrvr
[cRIO] * Loading StartupDlls: nivissvc
[cRIO] task 0xee3da8 (PAL00fb5148) deleted: errno=0 (0) status=0 (0)
[cRIO] NI-RIO Server 3.2 started successfully.
[cRIO] task 0xc5f1f8 (NiRioRpc) deleted: errno=0 (0) status=0 (0)
[cRIO] * Loading StartupDlls: nivision
[cRIO] * Loading StartupDlls: niserial
[cRIO] * Loading StartupDlls: FRC_FPGA
[cRIO] * Loading StartupDlls: FRC_NetworkCommunication
[cRIO] FRC_NetworkCommunication was compiled from SVN revision 2064
[cRIO] FPGA Hardware GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
[cRIO] FPGA Software GUID: 0xAD9A5591CC64E4DF756D77D1B57A549E
[cRIO] FPGA Hardware Version: 2010
[cRIO] FPGA Software Version: 2010
[cRIO] FPGA Hardware Revision: 1.3.0
[cRIO] FPGA Software Revision: 1.3.0
[cRIO] * Loading StartupDlls: FRC_JavaVM
[cRIO]
[cRIO]
[cRIO] [OTA Server] Version: 2010 FRC, Feb 4 2010, 21:33:36
[cRIO]
[cRIO] task 0x214b2d0 (t2) deleted: errno=0 (0) status=0 (0)
[cRIO]
[cRIO] Welcome to LabVIEW Real-Time 8.6.1f2
[cRIO]
[cRIO] NI-VISA Server 4.5 started successfully.
[cRIO] task 0xe623d0 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1)
[cRIO]
[cRIO] [Squawk VM] Version: 2010 FRC, Feb 4 2010, 21:35:40
[cRIO] FPGA Hardware GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] FPGA Software GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] Information: No user-supplied robotMain()
[cRIO] task 0xe5f610 (FTP Server Connection Thread) deleted: errno=70 (0x46) status=0 (0)
[cRIO] task 0xe5f610 (FTP Server Connection Thread) deleted: errno=70 (0x46) status=0 (0)
[cRIO] Operator OK
[cRIO] java.lang.NullPointerException
[cRIO] at java.lang.Throwable.<init>(Throwable.java:88)
[cRIO] at java.lang.Exception.<init>(Exception.java:44)
[cRIO] at java.lang.RuntimeException.<init>(RuntimeException.java:48)
[cRIO] at java.lang.NullPointerException.<init>(NullPointerException.java:54)
[cRIO] at com.sun.squawk.VM.nullPointerException(VM.java:391 )
[cRIO] at edu.wpi.first.wpilibj.templates.RobotTemplate.oper atorControl(RobotTemplate.java:57)
[cRIO] at edu.wpi.first.wpilibj.SimpleRobot.startCompetition (SimpleRobot.java:83)
[cRIO] at edu.wpi.first.wpilibj.RobotBase.startApp(RobotBase .java:132)
[cRIO] at javax.microedition.midlet.MIDletTunnelImpl.callSta rtApp(MIDletTunnelImpl.java:60)
[cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(MIDletMa inWrapper.java:110)
[cRIO] at com.sun.squawk.Klass.main(Klass.java:2997)
[cRIO] at com.sun.squawk.Isolate.run(Isolate.java:1554)
[cRIO] at java.lang.Thread.run(Thread.java:231)
[cRIO] at com.sun.squawk.VMThread.callRun(VMThread.java:1499 )
[cRIO] at com.sun.squawk.VM.callRun(VM.java:305)
The driver sitation do not permit me to control both teleoperated and autonomous control. When i press enable the clock starts but stops after 3 seconds. Than it says "Teleoperated/Autonomous Disabled" and "Watchdog Not Fed".
Is the problem about my code? What should i do?
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.