Go to Post Note to self: Before turning 30, remember to remove the birthdate year from Delphi. - Jessica Boucher [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: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-02-2011, 15:10
fishLlama fishLlama is offline
Caffeine Addict
FRC #3018 (Team Rocket)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Saint Peter, MN
Posts: 2
fishLlama is an unknown quantity at this point
FRC Java cRIO 2011 update broke things.

Whenever we deploy code, we get past the bootup sequence but then it gives this error and halts:

[Squawk VM] Version: 2011 FRC, Feb 2 2011, 13:26:47
[cRIO] Uncaught exception in Thread.run():
[cRIO] on thread com.sun.squawk.imp.MIDletMainWrapper - main
[cRIO] java.lang.IllegalArgumentException: MIDlet-1 property must exist in META-INF/MANIFEST.MF
[cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(74)
[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 0x21d1dc0 (SquawkRobotTask) deleted: errno=0 (0) status=1 (0x1)

Soo... anyone else have this problem? Have any idea how to fix it?
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2011, 15:25
Ben_R_R's Avatar
Ben_R_R Ben_R_R is offline
Assistant Programing Mentor
FRC #2194 (Fondy Fire)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: WI
Posts: 21
Ben_R_R is an unknown quantity at this point
Re: FRC Java cRIO 2011 update broke things.

In NetBeans, under the files tab, navigate to "resources\META-INF" and open the file called "MANIFEST.MF", you should see something like this:

Code:
MIDlet-Name: Dev Robot Code (2-5-11)
MIDlet-Version: 1.0.0
MIDlet-Vendor: FIRST
MIDlet-1: RobotMain, , edu.wpi.first.wpilibj.templates.RobotMain
MicroEdition-Profile: IMP-1.0
MicroEdition-Configuration: CLDC-1.1
Can you verify that the line that starts "MIDlet-1" is present? If it is, make sure it lists the right class and package. If it is not there, add it, putting the name of your main robot class and package as shown above.

Hope that helps!
__________________
2194 Alumni and Mentor

Last edited by Ben_R_R : 05-02-2011 at 15:30.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2011, 21:38
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: FRC Java cRIO 2011 update broke things.

We don't have this problem, but the cRIO is definitely not connecting with the laptop. They are connected via Ethernet, the ip does respond when pinged, but when we try loading code, we got this lovely feed

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)

which continued until we stopped it at (56s) because the code clearly wasn't deploying. Help (please)?
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2011, 22:17
alexhenning alexhenning is offline
WPILib Developer
FRC #0348
 
Join Date: Apr 2010
Rookie Year: 2003
Location: MA
Posts: 49
alexhenning will become famous soon enough
Re: FRC Java cRIO 2011 update broke things.

@1168Programmer You loaded the code over ftp, if you try driving it, it's probably running the new code. Make sure you're mask is 255.0.0.0 on the programming laptop, that can cause your issue.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2011, 23:03
1168Programmer 1168Programmer is offline
Head Programmer/CEO
FRC #1168
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Team 1168
Posts: 67
1168Programmer is an unknown quantity at this point
Re: FRC Java cRIO 2011 update broke things.

ok, will have to give that a try. Thanks.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2011, 23:17
279 EMPIE's Avatar
279 EMPIE 279 EMPIE is offline
Head Progammer
AKA: Matthew Empie
FRC #0279 (Tech Fusion)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Toledo Ohio
Posts: 76
279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice279 EMPIE is just really nice
Send a message via AIM to 279 EMPIE
Unhappy Re: FRC Java cRIO 2011 update broke things.

we cant get update #8 (re imaging the cRIO) to work

any one know where i can get it at
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2011, 14:38
Ben_R_R's Avatar
Ben_R_R Ben_R_R is offline
Assistant Programing Mentor
FRC #2194 (Fondy Fire)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: WI
Posts: 21
Ben_R_R is an unknown quantity at this point
Re: FRC Java cRIO 2011 update broke things.

We had to manually move the update (located in the folder: sunspotfrcsdk\cRIO_Images ) to the folder the labVIEW imaging tool uses to store the images. I don't have the path to that on though, perhaps someone with labVIEW experience might be able to help you if you can't find it.
__________________
2194 Alumni and Mentor
Reply With Quote
  #8   Spotlight this post!  
Unread 07-02-2011, 20:39
alexhenning alexhenning is offline
WPILib Developer
FRC #0348
 
Join Date: Apr 2010
Rookie Year: 2003
Location: MA
Posts: 49
alexhenning will become famous soon enough
Re: FRC Java cRIO 2011 update broke things.

The update should automatically be placed in $HOME_DIRECTORY/sunspotfrcsdk/cRIO_Images . At least Netbeans automatically does it for me. (Eclipse doesn't).

Here is version 27: http://dl.dropbox.com/u/3131221/FRC_2011_v27.zip
Although if you don't have it lying around somewhere on your computer, you probably haven't upgraded.
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 09:39.

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