Go to Post Success is realizing that anything is possible, persistence is the key. - SlamminSammy [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread Yesterday, 17:28
JLuna JLuna is offline
Registered User
FRC #2523
 
Join Date: Sep 2016
Location: Lyndonville, Vermont
Posts: 5
JLuna is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread Yesterday, 17:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,948
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread Yesterday, 17:36
JLuna JLuna is offline
Registered User
FRC #2523
 
Join Date: Sep 2016
Location: Lyndonville, Vermont
Posts: 5
JLuna is an unknown quantity at this point
Re: Error: "Could not instantiate robot"

Here's a link to the git hub repository.

https://github.com/TechStorm2523/Robot-Code-2017/
Reply With Quote
  #4   Spotlight this post!  
Unread Yesterday, 22:26
beijing_strbow beijing_strbow is offline
Registered User
FRC #5968 (Cyborg Indians)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Kansas
Posts: 56
beijing_strbow is an unknown quantity at this point
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).
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 03:02.

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