users@glassfish.java.net

setSoLinger and setReuseAddress Exceptions

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Nov 2008 17:23:47 PST

Can anyone tell me why I am seeing this so frequently in my logs? I have an idea of what they are trying to do, but I am not sure what impact they may have on my application.


[#|2008-11-18T20:08:13.483-0500|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=68;_ThreadName=SelectorReaderThread-80;_RequestID=eaf93ac9-37ab-4339-a971-0a11f8c1ca92;|setSoLinger exception

java.net.SocketException: Invalid argument

        at sun.nio.ch.Net.setIntOption0(Native Method)

        at sun.nio.ch.Net.setIntOption(Net.java:154)

        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)

        at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46)

        at sun.nio.ch.SocketOptsImpl.linger(SocketOptsImpl.java:104)

        at sun.nio.ch.SocketOptsImpl$IP$TCP.linger(SocketOptsImpl.java:268)

        at sun.nio.ch.OptionAdaptor.setSoLinger(OptionAdaptor.java:67)

        at sun.nio.ch.SocketAdaptor.setSoLinger(SocketAdaptor.java:276)

        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1893)

        at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.registerNewChannels(SelectorReadThread.java:93)

        at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.startEndpoint(SelectorReadThread.java:121)

        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1223)






[#|2008-11-18T20:08:13.483-0500|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=210;_ThreadName=SelectorReaderThread-80;_RequestID=e26a9733-c7d9-44c0-823b-3212c9216fc5;|setReuseAddress exception

java.net.SocketException: Invalid argument

        at sun.nio.ch.Net.setIntOption0(Native Method)

        at sun.nio.ch.Net.setIntOption(Net.java:154)

        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)

        at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)

        at sun.nio.ch.SocketOptsImpl.reuseAddress(SocketOptsImpl.java:156)

        at sun.nio.ch.SocketOptsImpl$IP$TCP.reuseAddress(SocketOptsImpl.java:268)

        at sun.nio.ch.OptionAdaptor.setReuseAddress(OptionAdaptor.java:177)

        at sun.nio.ch.SocketAdaptor.setReuseAddress(SocketAdaptor.java:343)

        at com.sun.enterprise.web.connector.grizzly.SelectorThread.setSocketOptions(SelectorThread.java:1910)

        at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.registerNewChannels(SelectorReadThread.java:93)

        at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.startEndpoint(SelectorReadThread.java:121)

        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1223)



[JAVA]
# java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

[OS]
# uname -a
SunOS t5120-a 5.10 Generic_120011-14 sun4v sparc SUNW,SPARC-Enterprise-T5120

[Glassfish]
Sun Java System Application Server 9.1_02 (build b04-fcs)
[Message sent by forum member 'h1d3m3' (h1d3m3)]

http://forums.java.net/jive/thread.jspa?messageID=317482