Thanks for checking.

I'm on the trunks. I did try a "svn switch" to the rc1 branch a few
days ago, but SVN got itself in a twist (parsing of internal .svn/
files failed) and I had to start a new dev dir and repatch everything
again with my local mods.

When I try to build with JDK1.5 I see the same error appear in the
attached unit test.

If you're not seeing the problem then I'm thinking it must be a stale
dependency in my maven repository or something, or possibly caused by
my local mods in some way. I'll investigate further tomorrow.
-------------------------------------------------------------------------------
Battery: org.apache.directory.server.ssl.LdapsTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 5.26 sec 

testSetUpTearDown(org.apache.directory.server.ssl.LdapsTest)  Time elapsed: 
4.62 sec  <<< ERROR!

[ stdout ] ---------------------------------------------------------------



[ stderr ] ---------------------------------------------------------------



[ stacktrace ] -----------------------------------------------------------

org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
exception. [Root exception is java.lang.ClassCastException: 
org.apache.directory.shared.ldap.name.LdapName]
        at 
org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1504)
        at 
org.apache.directory.server.core.interceptor.InterceptorChain.access$700(InterceptorChain.java:49)
        at 
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry(InterceptorChain.java:1328)
        at 
org.apache.directory.server.core.interceptor.BaseInterceptor.hasEntry(BaseInterceptor.java:131)
        at 
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry(InterceptorChain.java:1320)
        at 
org.apache.directory.server.core.authn.AuthenticationService.hasEntry(AuthenticationService.java:252)
        at 
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry(InterceptorChain.java:1320)
        at 
org.apache.directory.server.core.normalization.NormalizationService.hasEntry(NormalizationService.java:187)
        at 
org.apache.directory.server.core.interceptor.InterceptorChain.hasEntry(InterceptorChain.java:885)
        at 
org.apache.directory.server.core.partition.DirectoryPartitionNexusProxy.hasEntry(DirectoryPartitionNexusProxy.java:535)
        at 
org.apache.directory.server.core.partition.DirectoryPartitionNexusProxy.hasEntry(DirectoryPartitionNexusProxy.java:523)
        at 
org.apache.directory.server.core.jndi.ServerContext.<init>(ServerContext.java:127)
        at 
org.apache.directory.server.core.jndi.ServerDirContext.<init>(ServerDirContext.java:76)
        at 
org.apache.directory.server.core.jndi.ServerLdapContext.<init>(ServerLdapContext.java:61)
        at 
org.apache.directory.server.core.DefaultDirectoryService.getJndiContext(DefaultDirectoryService.java:167)
        at 
org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:121)
        at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at 
javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
        at 
org.apache.directory.server.unit.AbstractServerTest.setSysRoot(AbstractServerTest.java:138)
        at 
org.apache.directory.server.unit.AbstractServerTest.setSysRoot(AbstractServerTest.java:120)
        at 
org.apache.directory.server.unit.AbstractServerTest.setUp(AbstractServerTest.java:81)
        at org.apache.directory.server.ssl.LdapsTest.setUp(LdapsTest.java:84)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
        at 
org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
        at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
        at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
        at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassCastException: 
org.apache.directory.shared.ldap.name.LdapName
        at 
org.apache.directory.shared.ldap.name.LdapDN.normalize(LdapDN.java:1222)
        at 
org.apache.directory.server.core.partition.DirectoryPartitionNexusProxy.lookup(DirectoryPartitionNexusProxy.java:487)
        at 
org.apache.directory.server.core.authz.AuthorizationService.hasEntry(AuthorizationService.java:571)
        at 
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.hasEntry(InterceptorChain.java:1320)
        ... 62 more






Reply via email to