Go to Post Just make a FIRST version of Quidditch. The only people who would be complaining are drivers from previous years who wanted to play it. - Koko Ed [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 Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
  #1   Spotlight this post!  
Unread 06-02-2010, 17:22
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Uncaught exception

Code:
[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 java.lang.Throwable.<init>(88)
[cRIO]     at java.lang.Throwable.<init>(102)
[cRIO]     at java.lang.Exception.<init>(53)
[cRIO]     at java.lang.RuntimeException.<init>(58)
[cRIO]     at java.lang.IllegalArgumentException.<init>(54)
[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(1554)
[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)
We don't really know how this happened, but it broke sometime around when we tried to change the package name of the default code. Is there a way to get around this? How would we modify the midlet configurations in the Manifest file?
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2010, 18:54
ygd ygd is offline
Registered User
FRC #3341 (Manhattan Project)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: San Diego
Posts: 26
ygd is an unknown quantity at this point
Re: Uncaught exception

In Netbeans go to Tools -> Plugins and click the Settings tab.

Select FRC Java or whatever you named it and make sure the update site is:

If it isn't, uninstall the FRC Plugins and change the update site and reinstall.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2010, 19:15
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Uncaught exception

You'll see this behavior if you change your package name after creating your project. Edit the file in ./resources/META-INF/MANIFEST.MF so that it uses your package and class name.

The default file will look something like this:
Code:
MIDlet-Name: RobotTemplate
MIDlet-Version: 1.0.0
MIDlet-Vendor: FIRST
MIDlet-1: RobotTemplate, , edu.wpi.first.wpilibj.templates.RobotTemplate
MicroEdition-Profile: IMP-1.0
MicroEdition-Configuration: CLDC-1.1
Replace 'RobotTemplate' with the name of your robot class, and 'edu.wpi.first.wpilibj.templates' with your package name.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2010, 19:27
phencer42's Avatar
phencer42 phencer42 is offline
Registered User
FRC #1517 (P4)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: NH
Posts: 40
phencer42 is on a distinguished road
Send a message via MSN to phencer42
Re: Uncaught exception

Thanks MattD

We've been confused for a bit and were starting to get worried. We tried what you said and it worked perfectly. Team 1517 thanks you.
__________________
Study=No Fail
No Study=Fail
No Study+Study=No Fail+Fail
(No+1)Study=(No+1)Fail
Study=Fail
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2010, 22:13
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Uncaught exception

Looks like it worked for us too. Thanks for your time and help!
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2010, 22:40
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Uncaught exception

I gave up on changing our default code name since week 1, so this is very helpful. Thanks a lot, Matt!
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
EnhancedIO Exception Error coo Java 2 30-01-2010 11:09
Wait Exception? NinJA999 Java 3 15-01-2010 14:13
Exception in Timer.cpp Phazonmutant C/C++ 2 17-02-2009 09:27
Target Exception - Exception in Kernal Task Thxe C/C++ 3 10-02-2009 07:24
Joystick Exception? Blair Frank Control System 3 09-02-2007 22:41


All times are GMT -5. The time now is 12:34.

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