users@glassfish.java.net

Re: doSelect exception

From: Vetle Roeim <vetler_at_gmail.com>
Date: Mon, 15 Nov 2010 14:40:56 +0100

Hi,

I reported the bug
(https://glassfish.dev.java.net/issues/show_bug.cgi?id=14230), and
it's been fixed in the nightly builds, which you can download here:
http://dlc.sun.com.edgesuite.net/glassfish/v3.1/nightly/

I have not found a workaround for this on Glassfish 3.0.1. However, it
seems now that I still get the error, but the application usually
continues to work (although sometimes requires a restart).
Unfortunately I do not know how or why this happens.

Regards,
Vetle

On Mon, Nov 15, 2010 at 12:13, lejboua <dre_albuquerque_at_hotmail.com> wrote:
>
> Hello Vetle,
>
> Did you find a solution for your problem?
>
> I'm having exactly the same problem, with JDK 6 u22.
>
> Didn't find yet a pattern that triggers that
> java.lang.IllegalThreadStateException.
>
> My exception:
>
> [#|2010-11-15T11:07:28.585+0000|SEVERE|glassfish3.0.1|grizzly|_ThreadID=15;_ThreadName=Thread-1;|doSelect
> exception
> java.lang.IllegalThreadStateException
>        at java.lang.Thread.setDaemon(Thread.java:1275)
>        at
> com.sun.corba.ee.impl.transport.SelectorImpl.startSelector(SelectorImpl.java:413)
>        at
> com.sun.corba.ee.impl.transport.SelectorImpl.registerForEvent(SelectorImpl.java:180)
>        at
> com.sun.corba.ee.impl.transport.CorbaAcceptorBase.processSocket(CorbaAcceptorBase.java:156)
>        at
> org.glassfish.enterprise.iiop.impl.PEORBConfigurator$AcceptorDelegateImpl.handleRequest(PEORBConfigurator.java:313)
>        at
> org.glassfish.enterprise.iiop.api.ORBLazyServiceInitializer.handleRequest(ORBLazyServiceInitializer.java:99)
>        at
> com.sun.enterprise.v3.services.impl.ServiceInitializerHandler.onAcceptInterest(ServiceInitializerHandler.java:110)
>        at
> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:295)
>        at
> com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:258)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:195)
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
>
> Regards,
>
> Andre
>
>
> Vetle Roeim wrote:
>>
>> Hi,
>>
>> I'm working on a project that uses the Java EE 6 stack, from top to
>> bottom, on Glassfish 3.0.1. Recently, I've seen the following
>> exception in the logs:
>>
>> [#|2010-10-26T16:51:14.709+0200|SEVERE|glassfish3.0.1|grizzly|_ThreadID=16;_ThreadName=Thread-1;|doSelect
>> exception
>> java.lang.IllegalThreadStateException
>>       at java.lang.Thread.setDaemon(Thread.java:1275)
>>       at
>> com.sun.corba.ee.impl.transport.SelectorImpl.startSelector(SelectorImpl.java:413)
>>       at
>> com.sun.corba.ee.impl.transport.SelectorImpl.registerForEvent(SelectorImpl.java:180)
>>       at
>> com.sun.corba.ee.impl.transport.CorbaAcceptorBase.processSocket(CorbaAcceptorBase.java:156)
>>       at
>> org.glassfish.enterprise.iiop.impl.PEORBConfigurator$AcceptorDelegateImpl.handleRequest(PEORBConfigurator.java:313)
>>       at
>> org.glassfish.enterprise.iiop.api.ORBLazyServiceInitializer.handleRequest(ORBLazyServiceInitializer.java:99)
>>       at
>> com.sun.enterprise.v3.services.impl.ServiceInitializerHandler.onAcceptInterest(ServiceInitializerHandler.java:110)
>> [...]
>> |#]
>>
>> After this, the web application is non-responsive. Undeploying,
>> restarting and deploying usually fixes the problem, but not always, so
>> it is very annoying.
>>
>> I found something related to doSelect in the list of known issues:
>> http://docs.sun.com/app/docs/doc/820-7688/gjkkg?l=en&a=view
>> But this seems to be different from the one I'm experiencing? Or is it
>> the same thing?
>> I've tried JDK 1.6.0 u20, 21 and 22 without much luck.
>>
>> TIA,
>> --
>> Vetle Roeim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/doSelect-exception-tp30058446p30215660.html
> Sent from the java.net - glassfish users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
Vetle Roeim