Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.net.SocketException: Unknown error 512, under SuSE x86

805615Oct 14 2010 — edited Oct 15 2010
Hi everybody,
I encountered a problem of socket accept exception in Tomcat 6 under SuSE x86 Linux, my OSGi app run in Tomcat, about a week run, then the socket throws an exception while acception:
-----------
Sep 12, 2010 6:50:22 PM org.apache.catalina.core.StandardServer await
涓ラ噸: StandardServer.await: accept:
java.net.SocketException: Unknown error 512
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:389)
at org.apache.catalina.startup.Catalina.await(Catalina.java:647)
at org.apache.catalina.startup.Catalina.start(Catalina.java:607)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 12, 2010 6:50:22 PM org.apache.coyote.http11.Http11Protocol pause
淇℃伅: Pausing Coyote HTTP/1.1 on http-30080
-------
Then, tomcat shut down the OSGi bundle, the Web server is not able to provide Web service anymore.

I don't know the meaning of the error no of 512, i thought its a system error no in Linux, but i checked the Linux head file, 512 is not the user error no:
------
in /usr/include/linux/errno.h

8 /* Should never be seen by user programs */
9 #define ERESTARTSYS 512
--------
I tried to find the c source code of jvm , maybe the errno 512 is define by jvm itself, but i can not find the source code.

Anybody ever been encountered socket exceptions like this? Or give me some suggestiongs.

Thanks a lot.
Simon.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2010
Added on Oct 14 2010
4 comments
642 views