Maybe,
link.getInputStream();
may return null, although this should return an error while looking at class files. One more thing I noticed, you state:
ObjectInputStream out = new ObjectOutputStream(link.getOutputStream());
From this, you specify the ObjectInputStream as an ObjectOutputStream without actuation (it doesn't work anyway)
You must try:
ObjectOutputStream out = new ObjectOutputStream(link.getOutputStream());
This should work, as the script can queue System.out, but note the error before it can be initialized.
Tell me if this works: D
Matt
source share