![]() |
Error: "Could not instantiate robot"
Hi,
Something odd is going on with our driver station. Deploying the code to the RIO works fine, but the driver station immediately (while disabled) begins to throw the following error: 5:21:37.482 PM ERROR: Could not instantiate robot org.usfirst.frc.team2523.robot.Robot! WARNING: Robots don't quit! Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:218): ERROR Unhandled exception instantiating robot org.usfirst.frc.team2523.robot.Robot java.lang.ExceptionInInitializerError at [java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:216)] And complains about "No Robot Code". Restarting EVERYTHING seemed to fix it for a couple of minutes, but that method has not worked since, and the issue is back. Any ideas? |
Re: Error: "Could not instantiate robot"
Since your code is crashing, I'd suggest you post it so someone can help point out where your coding error might be.
|
Re: Error: "Could not instantiate robot"
|
Re: Error: "Could not instantiate robot"
There was an issue with the commented out code in Robot.java. You instantiated CANTalons in the various subsystems, then created more instances on the same CAN IDs in the commented code, which will cause the program to crash.
If you haven't tested since commenting that out, I would bet that was the issue. Otherwise though, everything looks fine to me (though I'm not the best at finding bugs just by reading code). |
| All times are GMT -5. The time now is 03:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi