directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject [DAS] Syntax Entry Attempt Gets "Unexpected exception.];"
Date Fri, 27 Apr 2007 16:22:11 GMT
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


Mime
View raw message