Go to Post yes, duct tape solves everything - Ted 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

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-12-2013, 10:34 AM
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Initialization Error

Hey guys,

Working on our code this year, we have been encountering an error on the initialization of the code. Tracing it back, we get the error (java.lang.IllegalStateException: Network Tables has already been initialized).

I cannot figure out why this error happens, as it happens when we create a new SimpleRobotTemplate project. Any help would be appreciated.

Code:
[cRIO] java.lang.IllegalStateException: Network tables has already been initialized
[cRIO]     at edu.wpi.first.wpilibj.networktables.NetworkTable.checkInit(NetworkTable.java:45)
[cRIO]     at edu.wpi.first.wpilibj.networktables.NetworkTable.setServerMode(NetworkTable.java:59)
[cRIO]     at edu.wpi.first.wpilibj.RobotBase.<init>(RobotBase.java:57)
[cRIO]     at edu.wpi.first.wpilibj.SimpleRobot.<init>(SimpleRobot.java:31)
[cRIO]     at edu.wpi.first.wpilibj.templates.Team3373.<init>(Team3373.java:82)
[cRIO]     at edu.wpi.first.wpilibj.templates.Shooter.<init>(Shooter.java:14)
[cRIO]     at edu.wpi.first.wpilibj.templates.Team3373.<init>(Team3373.java:37)
[cRIO]     in virtual method #11 of com.sun.squawk.Klass(bci=53)
[cRIO]     at com.sun.squawk.imp.MIDletMainWrapper.main(99)
[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)
Thanks for any help,

Philip Mulford, Team 3373
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
Reply With Quote
 


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 07:49 AM.

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