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?