[Bug 693681] New: Protocol not available exception with OpenJDK, doesn't appear on Sun JDK
https://bugzilla.novell.com/show_bug.cgi?id=693681 https://bugzilla.novell.com/show_bug.cgi?id=693681#c0 Summary: Protocol not available exception with OpenJDK, doesn't appear on Sun JDK Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Enhancement Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: remy.garrigue@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/11.04 Chromium/11.0.696.57 Chrome/11.0.696.57 Safari/534.24 I can't make a very accurate report, as the problem may be mixed between some third party java API (mina), openjdk, OpenSUSE openjdk packaging and the API I've to package (whom code and behavior are not very familiar to me). Simply put, I've a java "protocol not available" exception that goes away if I switch (update-alternatives) from OpenJDK to SunJDK. Here's the exception: * Setting the primary RCA to 10.0.2.15:60000 336 [SocketConnectorIoProcessor-0.0] WARN org.apache.mina.common.support.DefaultExceptionMonitor - Unexpected exception. org.apache.mina.common.RuntimeIOException: java.net.SocketException: Protocol not available at org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.getSendBufferSize(SocketSessionImpl.java:335) at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcessor.java:390) at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcessor.java:332) at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(SocketIoProcessor.java:45) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:488) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.lang.Thread.run(Thread.java:636) Caused by: java.net.SocketException: Protocol not available at sun.nio.ch.Net.getIntOption0(Native Method) at sun.nio.ch.Net.getIntOption(Net.java:181) at sun.nio.ch.SocketChannelImpl$1.getInt(SocketChannelImpl.java:419) at sun.nio.ch.SocketOptsImpl.getInt(SocketOptsImpl.java:60) at sun.nio.ch.SocketOptsImpl.sendBufferSize(SocketOptsImpl.java:156) at sun.nio.ch.SocketOptsImpl$IP$TCP.sendBufferSize(SocketOptsImpl.java:286) at sun.nio.ch.OptionAdaptor.getSendBufferSize(OptionAdaptor.java:129) at sun.nio.ch.SocketAdaptor.getSendBufferSize(SocketAdaptor.java:328) at org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.getSendBufferSize(SocketSessionImpl.java:333) ... 6 more 1340 [SocketConnectorIoProcessor-0.0] WARN org.apache.mina.common.support.DefaultExceptionMonitor - Unexpected exception. org.apache.mina.common.RuntimeIOException: java.net.SocketException: Protocol not available at org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.getSendBufferSize(SocketSessionImpl.java:335) at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcessor.java:390) at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcessor.java:332) at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(SocketIoProcessor.java:45) at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:488) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.lang.Thread.run(Thread.java:636) Caused by: java.net.SocketException: Protocol not available at sun.nio.ch.Net.getIntOption0(Native Method) at sun.nio.ch.Net.getIntOption(Net.java:181) at sun.nio.ch.SocketChannelImpl$1.getInt(SocketChannelImpl.java:419) at sun.nio.ch.SocketOptsImpl.getInt(SocketOptsImpl.java:60) at sun.nio.ch.SocketOptsImpl.sendBufferSize(SocketOptsImpl.java:156) at sun.nio.ch.SocketOptsImpl$IP$TCP.sendBufferSize(SocketOptsImpl.java:286) at sun.nio.ch.OptionAdaptor.getSendBufferSize(OptionAdaptor.java:129) at sun.nio.ch.SocketAdaptor.getSendBufferSize(SocketAdaptor.java:328) at org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.getSendBufferSize(SocketSessionImpl.java:333) ... 6 more Reproducible: Always Steps to Reproduce: You have to follow this tutorial (which is evolving from time to time and may be inaccurate, feel free to ask for precision): http://myriads.wiki.irisa.fr/tiki-index.php?page=Installation+OpenSUSE+11.4 Skip the "update-alternatives --config java" step so you're still using openjdk's java Last log from "xosautoconfig" command should be rca_primary (above java error) rca_submit, and stuck. Ctrl-C to regain control over the console. See file /var/log/xosd/xosd_nohup.log for the same error log from a similar command (I just know it's not the same one from /usr/bin/xosd, what's different in the java call, I've no idea.) Now, do the "update-alternatives --config java" step and pick Sun JDK, then re-run "xosautoconfig". The apache.mina exception is gone. Actual Results: There's this apache.mina exception with OpenJDK, not with Sun JDK. Expected Results: At least the same behavior on both JDK XtreemOS is far from being an operational, even half working distributed system in this opensuse 11.4 adaptation. Even original Mandriva 2009 can't be qualified as stable. I got the hint of a JDK issue when I found this result on google: http://community.igniterealtime.org/thread/40320 Feel free to ask precision on how to reproduce the bug, but I can't help regarding inside java, except maybe finding the guys responsible for my side of the code. Considering this bug workaround make me use Sun JDK which make complication about 2048 RSA keys, this is critical for my project. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c1
--- Comment #1 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c2
--- Comment #2 from Rémy Garrigue
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c3
Michal Vyskocil
* Setting the primary RCA to 10.0.2.15:60000
This does not seems to be ipv6 address BTW: http://myriads.wiki.irisa.fr/tiki-index.php?page=Installation+OpenSUSE+11.4 does not have any text - I assume it wants a log-in. Can you paste the information elsewhere, so they will be easily available for me? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c4
--- Comment #4 from Rémy Garrigue
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c5
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c6
--- Comment #6 from Rémy Garrigue
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c7
--- Comment #7 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c8
--- Comment #8 from Rémy Garrigue
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c9
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=693681
https://bugzilla.novell.com/show_bug.cgi?id=693681#c10
--- Comment #10 from Rémy Garrigue
participants (1)
-
bugzilla_noreply@novell.com