![]() |
Robot Initilization failure on deploy
I've been trying to deploy the code to our test bot, but I keep getting am error message everytime and after searching around for quite awhile I haven't really gotten any closer to finding out what's wrong so I was hoping someone here could help.
Error Message: Unhandled exception instantiating robot org.usfirst.frc.team3655.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:197)] Robot class Code Code:
|
Re: Robot Initilization failure on deploy
You sir.. Have a logic error. You never connect up anything so the program is a dead program.. The error your getting is hoping you will go find the line in your code and debug it with the debugging window in eclipse. Set break points and find exactly what line.. I think you'll be amazed at where your logic error is. You have no type of speed controllers set. You have no place where your mechanum drive is hooked up to your motors. Try those first.
|
Re: Robot Initilization failure on deploy
Quote:
|
Re: Robot Initilization failure on deploy
Did you rename your class after creating the project?
|
Re: Robot Initilization failure on deploy
Quote:
|
Re: Robot Initilization failure on deploy
I don't know if this is causing this error, but I wouldn't instantiate OI twice like you're doing. I would only instantiate OI in robotInit(), where all subsystems are guaranteed to be constructed. If you change the line "public static OI oi = new OI()" to "public static OI oi", you may fix the problem.
|
Re: Robot Initilization failure on deploy
Quote:
*Git also probably had nothing to do with it either, so that was a waste of time copying all that too, but oh well if it works I'll be a happy man. |
| All times are GMT -5. The time now is 22:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi