directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Spalding (JIRA)" <>
Subject [jira] Created: (DIRSERVER-588) ldap server is never shut down, since ldapStarted flag is never set
Date Wed, 01 Mar 2006 08:27:04 GMT
ldap server is never shut down, since ldapStarted flag is never set

         Key: DIRSERVER-588
     Project: Directory ApacheDS
        Type: Bug
  Components: ldap  
    Versions: 1.0-RC1    
 Environment: Don't think it's relevant, but here's the details anyway:
-Windows XP
-Java java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
    Reporter: George Spalding
    Priority: Minor


internally uses a flag ldapStarted (and ldapsStarted which I think suffers of the same problem)
that probably should be set when ldap is started, otherwise the ldap server will not shut
down when in SeverContextFactory.afterShutdown(...)

I Fixed the code for my purposes and hope you will be able to make use of it:

In ServerContextFactory.startLDAPS( ServerStartupConfiguration, Hashtable):
            chain = ( IoFilterChainBuilder ) Class.forName( "",
                ServerContextFactory.class.getClassLoader() ).getMethod( "init", new Class[]
                { ServerStartupConfiguration.class } ).invoke( null, new Object[]
                { cfg } );
            ldapsStarted=true;//FIX Geospa added this line

In ServerContextFactory.startLDAP0( ServerStartupConfiguration, Hashtable):
            tcpAcceptor.bind( new InetSocketAddress( port ), protocolProvider.getHandler(),
acceptorCfg );
            ldapStarted=true;//FIX Geospa added this line

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message