Hi,
I've got a strange issue with oscP5 (any version tried).
i'm running Processing 124 or 125 on two networked computers (the first sends datas, the second receives).
I have tried locally (2 processing (124 and 125) running at the same time on the same machine), the problem is the same.
This is the code for the sender
Quote:import oscP5.*;
import netP5.*;
OscP5 oscP5;
NetAddress myRemoteLocation;
OscMessage myMessage = new OscMessage("/Computer1");
void setup() {
size(100, 100);
frameRate(25);
oscP5 = new OscP5(this,12000);
myRemoteLocation = new NetAddress("192.168.0.2",12001);
}
void draw() {
oscP5.send(myMessage, myRemoteLocation);
myMessage.add("Hello World");
}
and the code for the receiver
Quote:import oscP5.*;
import netP5.*;
OscP5 oscP5;
void setup() {
size(100,100);
frameRate(25);
oscP5 = new OscP5(this,12001);
}
void oscEvent(OscMessage theOscMessage) {
if(theOscMessage.checkAddrPattern("/Computer1")==true) {
String firstValue = theOscMessage.get(0).stringValue();
println(firstValue);
}
}
This is what appears in the receiver computer in its processing's console.
Quote:Hello World // << repeating for about 3 seconds
And then this error message:
Quote:### [2007/9/5 4:43:53] ERROR @ UdpServer.run() ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: 1404
1404 is random.
Repeating until i stop the sender's sketch.
This error appears on the sender computer at the beginning when i start its sketch and keeps repeating until i stop the sketch.
Quote:### [2007/9/6 1:9:17] ERROR @ UdpClient.send ioexception while sending packet.
This error appears on the receiver computer at the beginning when i start its sketch
Quote:2007-09-05 04:04:39.903 java[767] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x12b03, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2007-09-05 04:04:39.903 java[767] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
Any idea ? Thank you.
EDIT> i have checked the /usr/include/servers/bootstrap_defs.h for the error codes, this is what i found :
Quote:#define BOOTSTRAP_SERVICE_ACTIVE 1103