Hi all,
I'm playing around with Roomware and Processing but running into some
issues.
Here's what I'm using: Processing 1.0.1 and the latest all in one
server (20080506).
I had a little sketch of my own, that looks like this:
import proxml.*;
XMLInOut xmlIO;
void setup() {
size(400, 400);
xmlIO = new XMLInOut(this);
xmlIO.loadElement("
http://localhost:4040/");
}
void xmlEvent(proxml.XMLElement xmlElement) {
}
It returns the following error:
java.lang.NullPointerException
at proxml.XMLInOut$Loader.parseDocument(XMLInOut.java:118)
at proxml.XMLInOut$Loader.run(XMLInOut.java:452)
at java.lang.Thread.run(Thread.java:613)
I also checked out Tijs' deviceAura app. This returns the following
error:
processing.xml.XMLParseException: XML Parse Exception during parsing
of the XML definition at line 1: Expected: <
at processing.xml.XMLElement.expectedInput(XMLElement.java:2870)
at processing.xml.XMLElement.parseFromReader(XMLElement.java:1643)
at processing.xml.XMLElement.parseFromReader(XMLElement.java:1598)
at processing.xml.XMLElement.<init>(XMLElement.java:485)
at BlueOyster002$RoomwareReader.update(BlueOyster002.java:326)
at BlueOyster002$RoomwareReader.run(BlueOyster002.java:304)
at java.lang.Thread.run(Thread.java:613)
When I replace the pointer to the server with a static XML file (saved
from my browser when looking at
http://localhost:4040/) deviceAura
works fine, as does my own sketch.
Any ideas on what might be going on here?
Ciao,
Kars