When the message is '.program', receivedMessage executes the following lines of code:
try {
InputStream is = new ByteArrayInputStream(message.array());
PrintStream ps = new PrintStream(new ByteArrayOutputStream(), true);
Niue niue = new Niue(is, ps);
niue.run();
} catch (VmException ex) {
System.out.println(ex.getMessage());
}
... which generates the following warning message and continues:
WARNING: dropping a task that failed: com.sun.sgs.impl.service.session.ClientSessionHandler$2[NotifyListenerMessageReceived][owner:guest-153]
java.nio.ReadOnlyBufferException
at java.nio.ByteBuffer.array(ByteBuffer.java:942)
at org.pmc.server.pmud.Player.receivedMessage(Player.java:273)
,,,
Player.java line 273 is the second line of code above. Is Niue trying to write to the InputStream?
Any help on using Niue and RDS will be appreciated.
Thank you Vijay