java.lang.NullPointerException

Spring JIRA | Eugen Covaci | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have a LDAP schema with a structure like: country -> locality -> organization -> etc.(other children). When running SchemaToJava with parameters: -c Locality -k com.ldap.client.domain -l ldap://<my-ip>:389 -o top,locality -u cn=root,c=ro -p <password>, I get the following exception: -------------------------------------------------------------------------------------------------------- Exception in thread "main" java.lang.NullPointerException at org.springframework.ldap.odm.tools.SchemaReader.createAttributeSchema(SchemaReader.java:65) at org.springframework.ldap.odm.tools.SchemaReader.createObjectClass(SchemaReader.java:141) at org.springframework.ldap.odm.tools.SchemaReader.getObjectSchema(SchemaReader.java:33) at org.springframework.ldap.odm.tools.SchemaToJava.readSchema(SchemaToJava.java:231) at org.springframework.ldap.odm.tools.SchemaToJava.main(SchemaToJava.java:414) --------------------------------------------------------------------------------------------------------- After some researches, I came to this conclusion: according to org.springframework.ldap.odm.tools.SchemaReader.createAttributeSchema(SchemaReader.java:65), any attribute of type MAY or MUST is mandatory to have SYNTAX, but an attribute like seeAlso - according to RFC4519 - has no SYNTAX (it is the SUP that can deliver his SYNTAX): DESC RFC4519: DN of related object NAME seeAlso objectClass synthetic_JXplorer_schema_object objectClass top OID 2.5.4.34 SUP distinguishedName The fix for missing SYNTAX might be to recursively go for the parent's SYNTAX (here distinguishedName).

    Spring JIRA | 5 years ago | Eugen Covaci
    java.lang.NullPointerException
  2. 0

    LDAP-240: SchemaToJava fails to generate Java classes

    GitHub | 5 years ago | spring-issuemaster
    java.lang.NullPointerException
  3. 0

    I have a LDAP schema with a structure like: country -> locality -> organization -> etc.(other children). When running SchemaToJava with parameters: -c Locality -k com.ldap.client.domain -l ldap://<my-ip>:389 -o top,locality -u cn=root,c=ro -p <password>, I get the following exception: -------------------------------------------------------------------------------------------------------- Exception in thread "main" java.lang.NullPointerException at org.springframework.ldap.odm.tools.SchemaReader.createAttributeSchema(SchemaReader.java:65) at org.springframework.ldap.odm.tools.SchemaReader.createObjectClass(SchemaReader.java:141) at org.springframework.ldap.odm.tools.SchemaReader.getObjectSchema(SchemaReader.java:33) at org.springframework.ldap.odm.tools.SchemaToJava.readSchema(SchemaToJava.java:231) at org.springframework.ldap.odm.tools.SchemaToJava.main(SchemaToJava.java:414) --------------------------------------------------------------------------------------------------------- After some researches, I came to this conclusion: according to org.springframework.ldap.odm.tools.SchemaReader.createAttributeSchema(SchemaReader.java:65), any attribute of type MAY or MUST is mandatory to have SYNTAX, but an attribute like seeAlso - according to RFC4519 - has no SYNTAX (it is the SUP that can deliver his SYNTAX): DESC RFC4519: DN of related object NAME seeAlso objectClass synthetic_JXplorer_schema_object objectClass top OID 2.5.4.34 SUP distinguishedName The fix for missing SYNTAX might be to recursively go for the parent's SYNTAX (here distinguishedName).

    Spring JIRA | 5 years ago | Eugen Covaci
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.springframework.ldap.odm.tools.SchemaReader.createAttributeSchema()
    2. spring-ldap-odm
      SchemaToJava.main
      1. org.springframework.ldap.odm.tools.SchemaReader.createAttributeSchema(SchemaReader.java:65)
      2. org.springframework.ldap.odm.tools.SchemaReader.createObjectClass(SchemaReader.java:141)
      3. org.springframework.ldap.odm.tools.SchemaReader.getObjectSchema(SchemaReader.java:33)
      4. org.springframework.ldap.odm.tools.SchemaToJava.readSchema(SchemaToJava.java:231)
      5. org.springframework.ldap.odm.tools.SchemaToJava.main(SchemaToJava.java:414)
      5 frames