classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: [Jamvm-general] Problem with sockets on JamVM version 1.3.3 an


From: Mark Wielaard
Subject: Re: [Fwd: [Jamvm-general] Problem with sockets on JamVM version 1.3.3 and Classpath 0.18]
Date: Sun, 18 Sep 2005 23:04:21 +0200

Hi,

On Sun, 2005-09-18 at 16:04 +0200, Robert Schuster wrote:
> > [Winstone 2005/09/16 18:47:09] - Error during HTTP listener init or shutdown
> > java.io.IOException: Internal error: _javanet_accept():
> >    at gnu.java.net.PlainSocketImpl.accept (Native Method)
> >    at java.net.ServerSocket.implAccept (ServerSocket.java:370)
> >    at java.net.ServerSocket.accept (ServerSocket.java:325)
> >    at winstone.HttpListener.run (HttpListener.java:135)
> >    at java.lang.Thread.run (Thread.java:673)

First thing to do is to make this into a IOException with a more helpful
error message:

--- native/jni/java-net/javanet.c       11 Jul 2005 18:23:06 -0000      1.23
+++ native/jni/java-net/javanet.c       18 Sep 2005 20:56:45 -0000
@@ -857,7 +857,7 @@
              != TARGET_NATIVE_ERROR_INTERRUPT_FUNCTION_CALL))
        {
          JCL_ThrowException (env, IO_EXCEPTION,
-                             "Internal error: _javanet_accept(): ");
+                             TARGET_NATIVE_LAST_ERROR_STRING ());
          return;
        }
     }

Could you retry with that patch applied? And report the error message given?
And could you send a self contained example, the snippet of code wasn't
runnable on its own. Or, if winstone is free software a quick start with
steps to repeat to get the same error.

Thanks,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]