Go to Post If the fan club goes away, or isn't always right in your face doing things the public sees, does that mean the reason for the fan club is gone? Nope. - Elgin Clock [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-22-2013, 07:39 PM
clandry94 clandry94 is offline
Registered User
AKA: Conor
FRC #3735 (KleinBOTS)
Team Role: Leadership
 
Join Date: Dec 2012
Rookie Year: 2011
Location: United States
Posts: 31
clandry94 is an unknown quantity at this point
Weird networktables error?

We are having trouble with a networktables issue that randomly showed up without changing any code.....


Code:
NetworkTable networktable;
networktable.getTable("robo");       
networktable.getNumber("x");
We had a simple code like this. Robo is a table made from roborealm and x is a double value from roborealm. When we run the code and start the subsystem we get this error.

Code:
[cRIO] java.lang.ClassCastException: Expected object of type class java.lang.Double but got object of type class com.sun.squawk.StringOfBytes
[cRIO]     at edu.wpi.first.wpilibj.networktables2.NetworkTableNode.getDouble(NetworkTableNode.java:52)
[cRIO]     at edu.wpi.first.wpilibj.networktables.NetworkTable.getNumber(NetworkTable.java:294)
We know for sure that the number being sent is a double so what gives?
Reply With Quote
 


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 07:40 AM.

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