XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.5.0
    • 1.5.2
    • None
    • None
    • FC6

    Description

      I cleaned up all my tests and made everything perfect, birds singing,
      children laughing, etc.
      Just to make sure everything is tight, I run the tests
      one more time.

      I get this exception:

      javax.naming.NamingException: [LDAP: error code 80 - failed to add entry m-oid=1.3.6.1.4.1.18060.4.55101545.5251491.1569756.3515752.5985152.5551015.5055525.50101501.052,ou=attributeTypes,cn=das,ou=schema: Unexpected exception.]; remaining name 'm-oid=1.3.6.1.4.1.18060.4.55101545.5251491.1569756.3515752.5985152.5551015.5055525.50101501.052'
      at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3049)

      Yeah - It's definitely unexpected.

      What's up with thiiis?

      Turns out I left one of methods like this:

      objectClassAttribute.add( META_TOP );

      >>> basicAttributes = new BasicAttributes();

      basicAttributes.put(objectClassAttribute);
      >>> basicAttributes = new BasicAttributes();
      basicAttributes.put( M_OBSOLETE, LDAP_FALSE );
      ....
      blah blah blah

      See it? I restarted my basic attributes (And put blah blah blah right in the code).

      Can we have a better exception being thrown for this?

      I was thinking an Ole Exception with description "Ole, or someone pretending to be Ole, messed the code up biggg time!
      Go fix the attributes then talk to me".

      Cheers,

      • Ole

      Attachments

        Activity

          People

            Unassigned Unassigned
            ole Ole Solberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: