View Single Post
  #1   Spotlight this post!  
Unread 05-02-2016, 17:32
yonip yonip is offline
Registered User
FRC #0449 (The Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Silver Spring, MD
Posts: 24
yonip is an unknown quantity at this point
Robot code crashes on initialization

When we attempt to deploy code, on occasion we get the following error:
Code:
ERROR Unhandled exception instantiating robot org.usfirst.frc.team449.robot.Robot
java.lang.ExceptionInInitializationError at [java.lang.Class.forName0(Native Method), 
java.lang.Class.forName(Class.java:259), 
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:204)]
which is printed every second or so into the driver station.
We have also tried simply deploying an empty robot project, and got these errors:
Code:
WARNING: Robots don't quit!
ERROR: Could not instantiate robot org.usfirst.frc.team449.robot.Robot!
The worst part is that it comes and goes for no apparent reason, in a setup that had worked before. Our roboRIO has the most recent roboRIO image and has the 1.8 JDK, and we tried power cycling the roboRIO and restarting the driver station. The diver station worked with another one of our roboRIOs with other code (although at one point it also had these errors that just disappeared for no apparent reason).
Anyone have any idea what might be going on?
Reply With Quote