![]() |
Code not uploading
http://tinypic.com/r/eg5o3q/8
http://tinypic.com/r/2mr9uz8/8 http://tinypic.com/r/2mesd1x/8 We tried to upload code to our robot, and all we get is a progress bar that never ends. Any idea what is happening? |
Re: Code not uploading
The few lines of the console output that are in the picture show indications that something crashed. However, it's not possible to figure out what is happening with only what is shown. Please cut and past the entire console output.
|
Re: Code not uploading
It looks like the VM is crashing for some reason, but it is hard to tell without the rest of the log.
The progress bar not stopping is not a problem though; it always does this and keeps the terminal open in the output window until you press the "x" button next to the progress bar. |
Re: Code not uploading
Are you using Smart Dashboard at all? During the season we had an issue where the code deploy would get stuck trying to connect to the cRIO via FTP. It was an issue because we could still connect to the cRIO via FTP through Notepad++, so we didn't really know what the issue was. After talking to numerous FTAs and CSAs, we figured out that the TCP connection to Smart Dashboard actually crashed the FTP connection since we use the same laptop for the driver station and code deployment. The quick fix we found was to deploy code within about 30 of the cRIO getting connection in the driver station, but a better solution would just be to have a separate laptop for the driver station and code deployment.
|
Re: Code not uploading
This is the full output:
ant -f C:\\Users\\Developer\\Documents\\NetBeansProjects\ \RobotTemplate deploy run clean: Deleting directory C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build Created dir: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build Created dir: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\classes [crio-compile] ./src, C:/Users/Developer/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Developer/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/Developer/sunspotfrcsdk\lib\squawk.jar -> ./build/classes Compiling 2 source files to C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\classes compile: preverify: Created dir: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\preverify Created dir: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\preverify.raw.util [crio-preverify] ./build/classes, , C:/Users/Developer/sunspotfrcsdk\lib\wpilibj.jar;C:/Users/Developer/sunspotfrcsdk\lib\networktables-crio.jar, C:/Users/Developer/sunspotfrcsdk\lib\squawk.jar -> ./build/preverify Expanding: C:\Users\Developer\sunspotfrcsdk\lib\wpilibj.jar into C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\preverify Expanding: C:\Users\Developer\sunspotfrcsdk\lib\networktables-crio.jar into C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\preverify jar: [crio-jar] ./build/preverify, ./resources -> ./build/app.jar Building jar: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\app.jar suite: Created dir: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\suite [crio-suite] ./build/app.jar -> ./build/suite/image 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] [Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.properties] [Including resource: META-INF/maven/edu.wpi.first.wpilib.networktables.java/NetworkTablesAzalea/pom.xml] Romizer processed 389 classes and generated 4 files. Expanding: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\app.jar into C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\suite Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\suite Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\suite Moving 1 file to C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\build\suite Deleting: C:\Users\Developer\Documents\NetBeansProjects\Robo tTemplate\image.suite.api deploy: [crio-configure] Configuration files not included in this version of the sdk [crio-configure] Checking that crio is configured for Java Host OS: Windows 7 6.1, 6.1 Host JVM: Java HotSpot(TM) Client VM 24.45-b08 Target IP: 10.50.76.2 Network interfaces on host: Realtek PCIe FE Family Controller: address: 10.50.76.5 netmask: 255.255.255.0 <--- on robot's subnet Connecting FTP @10.50.76.2 [crio-deploy] ./build/suite/image.suite -> 10.50.76.2 Sending local file image.suite run: [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) Waiting for cRIO to reboot (8s) Waiting for cRIO to reboot (9s) Waiting for cRIO to reboot (10s) [cRIO] [cRIO] -> * Loading debug.o: debug [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: cRIO-FRC II [cRIO] Runtime Name: VxWorks [cRIO] Runtime Version: 6.3 [cRIO] BSP version: 1.0/0 [cRIO] Created: May 23 2013, 16:00:09 [cRIO] ED&R Policy Mode: Deployed [cRIO] WDB Comm Type: WDB_COMM_END [cRIO] WDB: Ready. [cRIO] [cRIO] * Loading nisysrpc.out: nisysrpc [cRIO] * Loading NiRioRpc.out: NiRioRpc [cRIO] * Loading nivissvc.out: nivissvc [cRIO] task 0x189fce0 (VISA Jungo Init Thread) deleted: errno=196709 (0x30065) status=-1073807360 (0xbfff0000) [cRIO] * Loading nivision.out: nivision [cRIO] task 0x187c260 (Service Locator Thread 5) deleted: errno=0 (0) status=0 (0) [cRIO] NI-RIO Server 13.0 started successfully. [cRIO] task 0x174c8e8 (NiRioRpc) deleted: errno=0 (0) status=0 (0) [cRIO] task 0x18face0 (Service Locator Thread 6) deleted: errno=0 (0) status=0 (0) [cRIO] task 0x18face0 (Service Locator Thread 7) deleted: errno=0 (0) status=0 (0) [cRIO] task 0x18face0 (Service Locator Thread 8) deleted: errno=0 (0) status=0 (0) [cRIO] task 0x1640c78 (nisysapi-mDns) deleted: errno=0 (0) status=0 (0) [cRIO] * Loading visa32.out: visa32 [cRIO] * Loading niserial.out: niserial [cRIO] * Loading NiFpgaLv.out: NiFpgaLv [cRIO] * Loading FRC_FPGA_ChipObject.out: FRC_FPGA_ChipObject [cRIO] * Loading FRC_NetworkCommunication.out: FRC_NetworkCommunication [cRIO] FRC_NetworkCommunication version: p4-1.4.0a18 [cRIO] FPGA Hardware GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C [cRIO] FPGA Software GUID: 0x1394F6DC1FEB42EC6910E5767ED1D22C [cRIO] FPGA Hardware Version: 2012 [cRIO] FPGA Software Version: 2012 [cRIO] FPGA Hardware Revision: 1.6.4 [cRIO] FPGA Software Revision: 1.6.4 [cRIO] * Loading FRC_JavaVM.out: FRC_JavaVM [cRIO] [cRIO] [cRIO] [OTA Server] Version: 2012 FRC, Jan 5 2012, 17:20:48 [cRIO] [cRIO] [cRIO] Welcome to LabVIEW Real-Time 13.0 [cRIO] task 0x185fd20 (sysapi-rpc) deleted: errno=0 (0) status=0 (0) [cRIO] [cRIO] [Squawk VM] Version: 2011 FRC, Nov 5 2011, 14:34:13 [cRIO] Uncaught exception in Thread.run(): [cRIO] on thread edu.wpi.first.wpilibj.templates.RobotTemplate - main [cRIO] java.lang.IllegalArgumentException: MIDlet class specified, edu.wpi.first.wpilibj.templates.RobotTemplate, was not found [cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(94) [cRIO] in virtual method #95 of com.sun.squawk.Klass(bci=25) [cRIO] at com.sun.squawk.Isolate.run(1506) [cRIO] at java.lang.Thread.run(231) [cRIO] in virtual method #47 of com.sun.squawk.VMThread(bci=42) [cRIO] in static method #3 of com.sun.squawk.VM(bci=6) [cRIO] [cRIO] [cRIO] -------------------------------------------------------------------- [cRIO] GCs: 1 full, 0 partial [cRIO] ** VM stopped: exit code = 1 ** [cRIO] task 0x28d3ed0 (SquawkRobotTask) deleted: errno=0 (0) status=1 (0x1) |
Re: Code not uploading
The team I was helping out over the summer ran into this same runtime exception. I think this is the cRIO equivalent of a link error. This issue was documented on CD here. For us, the issue was a misconfiguration in the Manifest file (specifically, the MIDIlet-1 "main" path). The "edu.wpi.first.wpilibj.templates.RobotTemplate " in the file should match the package name and class name you are using to hold your top-level robot code.
Anyone else feel free to chime in with suggestions or corrections. |
Re: Code not uploading
Aaron is correct. It appears your problem is that your manifest file can not find your main robot class.
Without seeing your code, I can provide the literal fix but it is easy enough for you to do it on your own. Open Resources/META-INF/manifest.mf Make sure this line: Code:
MIDlet-1: Robot, , org.team2168.RobotThis should fix your issue. The issue is that the JVM can not find the main method of the program, which is why it is crashing with the error you see. If you still need further help, post the contents of your manifest.mf file and your main robot code. Regards, Kevin |
Re: Code not uploading
As others have said, your manifest file has the wrong name for your main class. This is most likely because you renamed your main robot class (often called RobotTemplate.java, or the one that extends IterativeRobot or SimpleRobot). If you remember the original name, you can just change the name of the class back to what it used to be, and it'll work again.
|
| All times are GMT -5. The time now is 15:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi