Go to Post There's a fine line between idolizing someone and stalking! - Jay H 237 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2017, 23:41
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 73
phurley67 is an unknown quantity at this point
CAN Talon / Test Mode Crash

Using robot builder, and the latest software from CTRE. If I create a project with a single subsystem, and in that subsystem a single CAN Talon. When the code is deployed, and the robot enabled in test mode we get the following error.

Any ideas on how to resolve this? We do not use test mode a lot, but it does come in very handy when, well testing robots...

Thanks :-)

Code:
<TagVersion>1 <time> 06.899 <count> 1 <flags> 1 <Code> 1 <details> ERROR Unhandled exception: java.lang.NullPointerException: value cannot be null at [edu.wpi.first.wpilibj.networktables.NetworkTablesJNI.putString(Native Method), edu.wpi.first.wpilibj.networktables.NetworkTable.putString(NetworkTable.java:588), edu.wpi.first.wpilibj.livewindow.LiveWindow.initializeLiveWindowComponents(LiveWindow.java:51), edu.wpi.first.wpilibj.livewindow.LiveWindow.setEnabled(LiveWindow.java:74), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:93), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)] <location> edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249) <stack> 
<TagVersion>1 <time> 06.900 <message> Starting live window mode. 
<TagVersion>1 <time> 06.901 <message> Initializing the components first time 
<TagVersion>1 <time> 06.901 <message> Initializing table for 'Subsystem 1' 'CAN Talon 1' 
<TagVersion>1 <time> 06.902 <message> Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249): ERROR Unhandled exception: java.lang.NullPointerException: value cannot be null at [edu.wpi.first.wpilibj.networktables.NetworkTablesJNI.putString(Native Method), edu.wpi.first.wpilibj.networktables.NetworkTable.putString(NetworkTable.java:588), edu.wpi.first.wpilibj.livewindow.LiveWindow.initializeLiveWindowComponents(LiveWindow.java:51), edu.wpi.first.wpilibj.livewindow.LiveWindow.setEnabled(LiveWindow.java:74), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:93), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)] 
<TagVersion>1 <time> 06.904 <message> WARNING: Robots don't quit! 
<TagVersion>1 <time> 06.905 <message> ---> The startCompetition() method (or methods called by it) should have handled the exception above.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2017, 00:02
SamCarlberg's Avatar
SamCarlberg SamCarlberg is online now
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 162
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: CAN Talon / Test Mode Crash

Can you share the main Robot class?
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2017, 10:00
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 73
phurley67 is an unknown quantity at this point
Re: CAN Talon / Test Mode Crash

Found the problem, we were using CTRE libraries downloaded around kickoff. There was newer libraries on their website. Downloading them, rebuilding, and deploying fixed the problem.

Thanks

FYI we are now using 4.4.1.9

http://www.ctr-electronics.com/hro.h...ical_resources
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 20:19.

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