Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
sara1111
sara1111's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Error when I want to receive an OSC message
[4 Replies]
08-Jul-2011 01:16 AM
Forum:
Contributed Library Questions
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
«Prev
Next »
Moderate user : sara1111
Forum