OK, we're getting somewhere. Where can I get the IBM SDK you're using?
On 7-nov-08, at 21:43, Don Dailey wrote:
Here is exactly what I get. I am using IBM java SDK 1.6
[EMAIL PROTECTED]:~/tmp/CGOS$
[EMAIL PROTECTED]:~/tmp/CGOS$ java -jar GTPTester.jar "java -jar
GoEngineGTP.jar"
Sending GTP command: name
java.io.IOException: The engine didn't respond. Possible reason:
at tesuji.games.gtp.GTPUtil.readGTPResponse(GTPUtil.java:94)
at tesuji.games.go.main.GTPTesterMain.main(GTPTesterMain.java:57)
[EMAIL PROTECTED]:~/tmp/CGOS$
However, I tried another java which was already on my machine and it
worked! I think the working java is SUN java.
I previously switched to IBM because SUN java seemed a little buggy.
But now it seems to be IBM that is buggy! I don't understand the
error message.
The message is something I print, it's basically a stack-trace so at
least you can see which line in the original method it stopped. It's
maybe not so clear, so I have to see if it can be improved. Since the
actual reading happens in another thread, the master thread doesn't
know why the reading thread didn't stop. So when no answer arrives in
a certain amount of time I print a stack-trace, plus a string I saved
in case the reading thread had an exception, which apparently there
wasn't.
I have another java application that I developed that connects to a
chess program and it works fine with the IBM java.
Is there any way you can test IBM java so we can figure out if
there is
some issue that should be corrected in the code? It may simply be
that IBM is buggy, but it could also be that the plug-and-go code has
something incorrect that only works due to some quirk. Does Java do
some things that have unspecified behavior like C does?
Well, I never say never... but I've never seen a quirk like this.
I will mention that my IBM java is 64 bit - I'm not sure about the SUN
version.
Now that should definitely not matter.
If I can reproduce the problem on my machine maybe we can get to the
heart of the matter.
Mark
_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/