Go to Post Not everything has to be cashed in or has to have instant recognition. Sometimes being a part of a program of value and opportunity is enough. And, what you put into the program is what you get out of it. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-09-2014, 19:16
Ayush Kapur's Avatar
Ayush Kapur Ayush Kapur is offline
Stormbots - team 5076
FRC #5076 (Stormbots 5076)
Team Role: Electrical
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Toronto ON
Posts: 16
Ayush Kapur is an unknown quantity at this point
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?
  #2   Spotlight this post!  
Unread 12-09-2014, 23:04
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.
  #3   Spotlight this post!  
Unread 14-09-2014, 11:25
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
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.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #4   Spotlight this post!  
Unread 14-09-2014, 13:03
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
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.
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
  #5   Spotlight this post!  
Unread 16-09-2014, 11:55
Ayush Kapur's Avatar
Ayush Kapur Ayush Kapur is offline
Stormbots - team 5076
FRC #5076 (Stormbots 5076)
Team Role: Electrical
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Toronto ON
Posts: 16
Ayush Kapur is an unknown quantity at this point
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)
  #6   Spotlight this post!  
Unread 16-09-2014, 12:13
Aaron.Graeve Aaron.Graeve is offline
Registered User
FRC #1477 (Texas Torque)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: College Station, Texas
Posts: 103
Aaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to all
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.
__________________

2016:
Alamo, Bayou, and Lone Star Regional FTAA
2015:
Dallas, Alamo, Bayou, and Lone Star Regional FTAA
2014:
Alamo, Dallas, and Lone Star Regional FTAA
Alamo Regional Robot Inspector
2013:
Einstein Champion and 2013 World Champion (Thanks 1241 & 610), Galileo Division Champion, Razorback Regional Winner, Alamo Regional Semifinalist, Bayou Regional Semifinalist, Lone Star Regional Quarterfinialist
2012:
Curie Division Semifinalist, Lone Star Regional Finalist, Bayou Regional Winner, Alamo Regional Winner
  #7   Spotlight this post!  
Unread 16-09-2014, 15:07
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
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.Robot
is of that format, and Change "Robot" to be the name of your main class (the class that has all of the auto/teleop methods in it). And make sure the third term is the full package where that class can be found. Note the double comma between the two terms.

This 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
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
  #8   Spotlight this post!  
Unread 16-09-2014, 16:23
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
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.
Closed Thread


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 01:53.

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