directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Resolved: (DIREVE-156) Interceptor Exception : unexpected exception
Date Fri, 20 May 2005 15:06:53 GMT
     [ http://issues.apache.org/jira/browse/DIREVE-156?page=all ]
     
Alex Karasulu resolved DIREVE-156:
----------------------------------

    Resolution: Invalid

> Interceptor Exception : unexpected exception
> --------------------------------------------
>
>          Key: DIREVE-156
>          URL: http://issues.apache.org/jira/browse/DIREVE-156
>      Project: Directory Server
>         Type: Bug
>     Versions: 0.9
>  Environment: XP JDK 1.4_06
>     Reporter: Marc DeXeT
>     Assignee: Alex Karasulu
>     Priority: Minor

>
> When I run sample :
>         Hashtable env = new Hashtable();
> //      Standard JNDI properties
>      env.put( Context.PROVIDER_URL, "ou=system" );
>      env.put( Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.ServerContextFactory"
);
>      env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
>      env.put( Context.SECURITY_CREDENTIALS, "secret" );
> //      Eve specifice JNDI properties
>      env.put( EnvKeys.WKDIR, "var/ldap" );
>      env.put( EnvKeys.DISABLE_ANONYMOUS, "false" );
>      env.put( EnvKeys.LDAP_PORT, "10389" );
>      env.put( EnvKeys.PARTITIONS, "apache" );
> //      Setup new partition for Apache
>      BasicAttributes attrs = new BasicAttributes( true );
>      BasicAttribute attr = new BasicAttribute( "objectClass" );
>      attr.add( "top" );
>      attr.add( "domain" );
>      attr.add( "extensibleObject" );
>      attrs.put( attr );
>      attr = new BasicAttribute( "dc" );
>      attr.add( "apache" );
>      attrs.put( attr );
>      env.put( EnvKeys.SUFFIX + "apache", "dc=apache,dc=org" );     // suffix
>      env.put( EnvKeys.INDICES + "apache", "ou uid objectClass" );  // user indices
>      env.put( EnvKeys.ATTRIBUTES + "apache", attrs );              // suffix entry
> //      Fire it up!
>      InitialDirContext ctx = new InitialDirContext( env ); 
> I get 
> org.apache.ldap.server.interceptor.InterceptorException: Unexpected exception. [Root
exception is java.lang.NullPointerException]
> 	at org.apache.ldap.server.interceptor.InterceptorChain$3.process(InterceptorChain.java:586)
> 	at org.apache.ldap.server.interceptor.BaseInterceptor.process(BaseInterceptor.java:185)
> 	at org.apache.ldap.server.normalization.NormalizationService.process(NormalizationService.java:162)
> 	at org.apache.ldap.server.interceptor.BaseInterceptor.process(BaseInterceptor.java:101)
> 	at org.apache.ldap.server.interceptor.InterceptorChain.process(InterceptorChain.java:478)
> 	at org.apache.ldap.server.jndi.JndiProvider.invoke(JndiProvider.java:171)
> 	at org.apache.ldap.server.jndi.JndiProvider$PartitionNexusImpl.hasEntry(JndiProvider.java:247)
> 	at org.apache.ldap.server.jndi.ServerContext.<init>(ServerContext.java:118)
> 	at org.apache.ldap.server.jndi.ServerDirContext.<init>(ServerDirContext.java:61)
> 	at org.apache.ldap.server.jndi.ServerLdapContext.<init>(ServerLdapContext.java:56)
> 	at org.apache.ldap.server.jndi.JndiProvider.getLdapContext(JndiProvider.java:122)
> 	at org.apache.ldap.server.jndi.CoreContextFactory.getInitialContext(CoreContextFactory.java:245)
> 	at org.apache.ldap.server.jndi.ServerContextFactory.getInitialContext(ServerContextFactory.java:153)
> 	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
> 	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
> 	at javax.naming.InitialContext.init(InitialContext.java:219)
> 	at javax.naming.InitialContext.<init>(InitialContext.java:195)
> 	at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
> 	at tests.StdLaunchApacheDS.main(StdLaunchApacheDS.java:68)
> Caused by: java.lang.NullPointerException
> 	at org.apache.ldap.server.authn.AuthenticationService.process(AuthenticationService.java:208)
> 	at org.apache.ldap.server.interceptor.InterceptorChain$3.process(InterceptorChain.java:578)
> 	... 18 more
> Exception in thread "main" 

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


Mime
View raw message