directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Rodriguez <erodrig...@apache.org>
Subject Re: Bug?
Date Mon, 24 Jan 2005 07:52:44 GMT
Alex,

On line 96 of org.apache.ldap.server.protocol.SessionRegistry is:

this.env.put( Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.eve.jndi.EveContextFactory" );

I'm pretty sure that's wrong.  I left it.

It also underscores the fact that Mark is using code from before the big 
rename.  I don't think this is related to this particular error, though.

-enrique


Alex Karasulu wrote:
> Mark,
> 
> I can't immediately discern why we're getting the extra #.
> I'd take a look at this right away but I'm really loaded with other things.
> Anyone interested in fixing this bug? If I get some time I'll play a bit 
> next week to reproduce this.
> 
> Alex
> 
> Mark Swanson wrote:
> 
>> This is a preliminary bug report. If my codebase isn't new enough or 
>> you need more details lemme know and I'll do a more thorough update/test.
>>
>> Eve: CVS from a couple of weeks ago.
>> Query: (cn=*), SUBTREE_SCOPE
>> Connect URL: ldap://lin:10389/ou=contacts,uid=6742,dc=home2,dc=mark
>>
>> This same query works fine on OpenLDAP.
>> I'm reporting it like this in the hopes that it's something obvious 
>> and you can tell what the problem is from this minimal amount of info. 
>> If not, lemme know.
>>
>> Cheers.
>>
>>
>> Exception in thread "main" javax.naming.InvalidNameException: [LDAP: 
>> error code 34 - Bind failure:
>> org.apache.ldap.common.exception.LdapInvalidNameException: Parser 
>> failure on name:
>>        6742
>> Antlr exception trace:
>> line 31:5: unexpected char: '#'
>>        at 
>> org.apache.ldap.common.name.antlrTypeLexer.nextToken(antlrTypeLexer.java:154) 
>>
>>        at 
>> antlr.TokenStreamSelector.nextToken(TokenStreamSelector.java:64)
>>        at antlr.TokenBuffer.fill(TokenBuffer.java:69)
>>        at antlr.TokenBuffer.LA(TokenBuffer.java:80)
>>        at antlr.LLkParser.LA(LLkParser.java:52)
>>        at antlr.Parser.match(Parser.java:212)
>>        at 
>> org.apache.ldap.common.name.antlrNameParser.attributeTypeAndValue(antlrNameParser.java:185)

>>
>>        at 
>> org.apache.ldap.common.name.antlrNameParser.nameComponent(antlrNameParser.java:120)

>>
>>        at 
>> org.apache.ldap.common.name.antlrNameParser.name(antlrNameParser.java:69)
>>        at org.apache.ldap.common.name.DnParser.parse(DnParser.java:177)
>>        at org.apache.ldap.common.name.LdapName.<init>(LdapName.java:284)
>>        at 
>> org.apache.eve.jndi.AuthenticationService.doAuthSimple(AuthenticationService.java:171)

>>
>>        at 
>> org.apache.eve.jndi.AuthenticationService.invoke(AuthenticationService.java:99) 
>>
>>        at 
>> org.apache.eve.jndi.FailFastPipeline.invoke(FailFastPipeline.java:62)
>>        at 
>> org.apache.eve.jndi.EveJndiProvider.invoke(EveJndiProvider.java:180)
>>        at $Proxy0.hasEntry(Unknown Source)
>>        at org.apache.eve.jndi.EveContext.<init>(EveContext.java:103)
>>        at org.apache.eve.jndi.EveDirContext.<init>(EveDirContext.java:72)
>>        at 
>> org.apache.eve.jndi.EveLdapContext.<init>(EveLdapContext.java:58)
>>        at 
>> org.apache.eve.jndi.EveJndiProvider.getLdapContext(EveJndiProvider.java:125) 
>>
>>        at 
>> org.apache.eve.jndi.EveContextFactory.getInitialContext(EveContextFactory.java:229)

>>
>>        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.eve.protocol.BindHandler.handle(BindHandler.java:77)
>>        at 
>> org.apache.seda.protocol.DefaultRequestProcessor.reply(DefaultRequestProcessor.java:160)

>>
>>        at org.apache.seda.protocol.DefaultRequestProcessor.access$100
>> (DefaultRequestProcessor.java:44)
>>        at 
>> org.apache.seda.protocol.DefaultRequestProcessor$ProcessorStageHandler.handleEvent(DefaultRequestProcessor.java:201)

>>
>>        at 
>> org.apache.seda.stage.DefaultStage$ExecutableHandler.run(DefaultStage.java:311) 
>>
>>        at 
>> org.apache.seda.thread.AbstractThreadPool$AbstractWorker.run(AbstractThreadPool.java:202)

>>
>>
>>        at org.apache.ldap.common.name.DnParser.parse(DnParser.java:227)
>>        at org.apache.ldap.common.name.LdapName.<init>(LdapName.java:284)
>>        at 
>> org.apache.eve.jndi.AuthenticationService.doAuthSimple(AuthenticationService.java:171)

>>
>>        at 
>> org.apache.eve.jndi.AuthenticationService.invoke(AuthenticationService.java:99) 
>>
>>        at 
>> org.apache.eve.jndi.FailFastPipeline.invoke(FailFastPipeline.java:62)
>>        at 
>> org.apache.eve.jndi.EveJndiProvider.invoke(EveJndiProvider.java:180)
>>        at $Proxy0.hasEntry(Unknown Source)
>>        at org.apache.eve.jndi.EveContext.<init>(EveContext.java:103)
>>        at org.apache.eve.jndi.EveDirContext.<init>(EveDirContext.java:72)
>>        at 
>> org.apache.eve.jndi.EveLdapContext.<init>(EveLdapContext.java:58)
>>        at 
>> org.apache.eve.jndi.EveJndiProvider.getLdapContext(EveJndiProvider.java:125) 
>>
>>        at 
>> org.apache.eve.jndi.EveContextFactory.getInitialContext(EveContextFactory.java:229)

>>
>>        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.eve.protocol.BindHandler.handle(BindHandler.java:77)
>>        at 
>> org.apache.seda.protocol.DefaultRequestProcessor.reply(DefaultRequestProcessor.java:160)

>>
>>        at org.apache.seda.protocol.DefaultRequestProcessor.access$100
>> (DefaultRequestProcessor.java:44)
>>        at 
>> org.apache.seda.protocol.DefaultRequestProcessor$ProcessorStageHandler.handleEvent(DefaultRequestProcessor.java:201)

>>
>>        at 
>> org.apache.seda.stage.DefaultStage$ExecutableHandler.run(DefaultStage.java:311) 
>>
>>        at 
>> org.apache.seda.thread.AbstractThreadPool$AbstractWorker.run(AbstractThreadPool.java:202)

>>
>>
>>
>> BindRequest =
>> org.apache.ldap.common.message.BindRequestImpl@1226a77]
>>        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2926)
>>        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
>>        at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
>>        at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
>>        at 
>> com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
>>        at 
>> com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
>>        at 
>> com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136) 
>>
>>        at 
>> com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66) 
>>
>>        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 com.wss.ldap.LDAPHelper.connect(LDAPHelper.java:78)
>>        at com.wss.ldap.LDAPHelper.<init>(LDAPHelper.java:54)
>>        at com.wss.ldap.test.SearchTest.main(SearchTest.java:32)
>>
>>  
>>

Mime
View raw message