[GE users] AlreadyActiveSessionException

Dev dev_hyd2001 at yahoo.com
Wed Aug 2 20:52:35 BST 2006


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Any ideas on when U9 is gonna be out ?



Daniel Templeton <Dan.Templeton at Sun.COM> wrote: Jeff,

No worries.  Glad you found the problem.

Daniel

Jeff White wrote:
> I do close sessions, though I need to make sure it's in a finally 
> block to ensure it's always called.
>
> Upon further investigation, I realize another object that creates a 
> Session was unintentionally being initialized. My fault.
>
> jeff
>
> Daniel Templeton wrote:
>> Jeff,
>>
>> Well, actually, you really should exit the session when your 
>> application exits.  That, however, has nothing to do with your 
>> problem.  Looking at the source code, I do not see any way that the 
>> AlreadyActiveSessionException could be thrown, unless you have 
>> already called init().  Sessions only exist in the context of a 
>> running application.  When the application exits, the session is 
>> gone.  (With u9, you will be able to explicitly reconnect by passing 
>> a parameter to init(), but that's a different topic.)
>>
>> You said this problem is new.  Are you sure that nothing changed in 
>> your application that would cause init() to be called more than once?
>>
>> Daniel
>>
>> Jeff White wrote:
>>> I am getting this exception when trying to Session.init(null) the 
>>> very first and only time in my application. Did a previous process 
>>> leave the grid in a bad state? Do I need to somehow "exit" the 
>>> previous session? I have run this app many times and have never 
>>> encountered this exception. I am running 6.0u8.
>>>
>>> org.ggf.drmaa.AlreadyActiveSessionException: Initialization failed 
>>> due to existing DRMAA session.
>>>        at com.sun.grid.drmaa.SessionImpl.nativeInit(Native Method)
>>>        at com.sun.grid.drmaa.SessionImpl.init(SessionImpl.java:277)
>>>
>>> thanks,
>>> jeff
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net



 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1?/min.



More information about the gridengine-users mailing list