Error when I want to receive an OSC message
in
Contributed Library Questions
•
2 years ago
Hello!
I have a small problem when I send OSC messages from one PC to another.
Here is the error:
ERROR @ ERROR OscP5. An error occurred while forwarding OscMessage year
to a method in your program. please check your code for Any
That Might Occur as possible errors in the Where method incoming
OscMessages are parsed eg check for casting errors, possible
nullpointers, array overflows ... .
method in charge: java.lang.reflect.InvocationTargetException oscEvent
Here are the piece of code that I think is a problem:
void oscEvent (OscMessage theOscMessage) {
delay (500);
float x = theOscMessage.get (0). floatValue () / / get the first argument osc
theOscMessage.get float v = (1). floatValue () / / get the second argument osc
x = Float.valueOf (theOscMessage.addrPattern ());
v = Float.valueOf (theOscMessage.addrPattern ());
}
Thank you for your help
Here is the error:
ERROR @ ERROR OscP5. An error occurred while forwarding OscMessage year
to a method in your program. please check your code for Any
That Might Occur as possible errors in the Where method incoming
OscMessages are parsed eg check for casting errors, possible
nullpointers, array overflows ... .
method in charge: java.lang.reflect.InvocationTargetException oscEvent
Here are the piece of code that I think is a problem:
void oscEvent (OscMessage theOscMessage) {
delay (500);
float x = theOscMessage.get (0). floatValue () / / get the first argument osc
theOscMessage.get float v = (1). floatValue () / / get the second argument osc
x = Float.valueOf (theOscMessage.addrPattern ());
v = Float.valueOf (theOscMessage.addrPattern ());
}
Thank you for your help

1