Apache Directory Project - [jira] Created: (DIREVE-180) Problem with the shutdown sequence.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > July 2005 > [jira] Created: (DIREVE-180) Problem with the shutdown sequence.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIREVE-180) Problem with the shutdown sequence.
Tony Blanchard (JIRA)

2005-07-08, 7:45 am

Problem with the shutdown sequence.
-----------------------------------

Key: DIREVE-180
URL: http://issues.apache.org/jira/browse/DIREVE-180
Project: Directory Server
Type: Bug
Reporter: Tony Blanchard
Assigned to: Alex Karasulu
Priority: Minor


In AbstractContextFactory:getInitialContext


1-gets the DefaultContextFactoryService and asks it to shutdown.
1-1-DefaultContextFactoryService shuts down and reset startupConfiguration field
2- asks the DefaultContextFactoryService to getInitialContext and uses checkSecuritySettings before returning DeadContext
2-1 checkSecuritySettings uses startupConfiguration field and throws NullPointerException...

To pass this problem I made a temporary change to the DefaultContextFactoryService by commenting the startupConfiguration = null; in the finally block of shutdown() method.

Instead, I putted this code in the getJNDIContext method :
"checkSecuritySettings[...]

if (!started)
{
startupConfiguration = null; //New code
return DeadContext();
}"

I made this because using afterShutdown hook is to early in sequence and I think only an authentified guy should shutdown the server...

On more thing is that it seams there is no test about shutdowning server and then make a call to an operation on it to produce an exception.
Best regards,
Tony

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com