cant get my app to work
in
Core Library Questions
•
10 months ago
hello. Im new to serial topics.
I try to get a program written in Arduino to communicate with Processing application in win7 64 bit environment.
I did download processing for 32 bit environment and uses that.
I try to run example from J. Blum writing code for Arduino and Processing. Ive checked serial output from Arduino its ok, so guess the fault is in programming on Processing site.
Can You kindly tell if the error I get is due to serial handling or other topics so I know the correct thread to post further requests?
Thank You
heres the error:
[0] "COM1"
[1] "COM4"
error, disabling serialEvent() for //./COM4
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.serial.Serial.serialEvent(Unknown Source)
at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
at gnu.io.RXTXPort.eventLoop(Native Method)
at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
Caused by: java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
at java.lang.Float.valueOf(Float.java:388)
at java.lang.Float.<init>(Float.java:489)
at processing.core.PApplet.parseFloat(PApplet.java:8573)
at processing.core.PApplet.parseFloat(PApplet.java:8568)
at accelshow.serialEvent(accelshow.java:133)
... 8 more
[1] "COM4"
error, disabling serialEvent() for //./COM4
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.serial.Serial.serialEvent(Unknown Source)
at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
at gnu.io.RXTXPort.eventLoop(Native Method)
at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
Caused by: java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
at java.lang.Float.valueOf(Float.java:388)
at java.lang.Float.<init>(Float.java:489)
at processing.core.PApplet.parseFloat(PApplet.java:8573)
at processing.core.PApplet.parseFloat(PApplet.java:8568)
at accelshow.serialEvent(accelshow.java:133)
... 8 more
1