You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Ole Ersoy <ol...@gmail.com> on 2007/04/27 18:22:11 UTC

[DAS] Syntax Entry Attempt Gets "Unexpected exception.];"

Hey Guys,

I've created a "Schema Syntaxes Container":
ou=syntaxes, cn=das, ou=schema

As well as a "Schema SyntaxCheckers Container":
ou=syntaxCheckers, cn=das, ou=schema

I am able to add a syntax checker via JNDI,
and I can add a Syntax entry using LS, but
when I try to add a Syntax entry with JNDI
I get this exception:

javax.naming.NamingException: [LDAP: error code 80 - failed to add entry 
m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5,ou=syntaxes,cn=das,ou=schema: 
Unexpected exception.]; remaining name 
'm-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5'

Initially I thought maybe it was due to me not having
a corresponding syntaxChecker entry, so I created
one, but the exception is still thrown.

Here is the JNDI code I'm using in the test:

         DirContext syntaxesContext =
             InitialContextCreator.
             createSchemaSyntaxesContext( dasSchemaContext);

         Attributes attributes = new BasicAttributes();
         Attribute attribute = new BasicAttribute(
             "objectClass",
             "metaSyntax");
         attribute.add("metaTop");
         attribute.add("top");

         attributes.put( "m-oid","1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" );

         syntaxesContext.createSubcontext(
             "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5",
             attributes);

See anything suspicious?


Thanks,
- Ole


Re: [DAS] Syntax Entry Attempt Gets "Unexpected exception.];"

Posted by Ole Ersoy <ol...@gmail.com>.
Hi Stefan,

The full trace that JUnit gives me looks
like this:

javax.naming.NamingException: [LDAP: error code 80 - failed to add entry 
m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5,ou=syntaxes,cn=das,ou=schema: 
Unexpected exception.]; remaining name 
'm-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5'
	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3049)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
	at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:774)
	at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
	at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
	at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)
	at 
org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.testBigTime(ConnectionManagerTest.java:342)
	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:597)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	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 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



I'll check the servers logs to see whether it
gives me more info.

Thanks,
- Ole








Stefan Zoerner wrote:
> Ole Ersoy wrote:
>> I get this exception:
>>
>> javax.naming.NamingException: [LDAP: error code 80 - failed to add 
>> entry 
>> m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5,ou=syntaxes,cn=das,ou=schema: 
>> Unexpected exception.]; remaining name 
>> 'm-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5'
> ...
>> See anything suspicious?
>>
> Does the server write a stacktrace to the logs? How does it look like?
> Greetings from Hamburg,
>     Stefan Z.
> 
> 

Re: [DAS] Syntax Entry Attempt Gets "Unexpected exception.];"

Posted by Ole Ersoy <ol...@gmail.com>.
Hi Stefan,

I checked the ADS logs and they are clean
as far as the exception goes.

Cheers,
Ole

SNIP


Re: [DAS] Syntax Entry Attempt Gets "Unexpected exception.];"

Posted by Stefan Zoerner <st...@labeo.de>.
Ole Ersoy wrote:
> I get this exception:
> 
> javax.naming.NamingException: [LDAP: error code 80 - failed to add entry 
> m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5,ou=syntaxes,cn=das,ou=schema: 
> Unexpected exception.]; remaining name 
> 'm-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5'
...
> See anything suspicious?
> 
Does the server write a stacktrace to the logs? How does it look like?
Greetings from Hamburg,
     Stefan Z.