directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRSERVER-384) Interceptor Exception : unexpected exception
Date Sat, 21 Apr 2007 11:10:16 GMT

     [ https://issues.apache.org/jira/browse/DIRSERVER-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny closed DIRSERVER-384.
---------------------------------------


Closing all issues created in 2005 and before which are marked resolved

> Interceptor Exception : unexpected exception
> --------------------------------------------
>
>                 Key: DIRSERVER-384
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-384
>             Project: Directory ApacheDS
>          Issue Type: Bug
>         Environment: XP JDK 1.4_06
>            Reporter: Marc DeXeT
>         Assigned To: 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message