java.lang.NullPointerException: null

Sonatype JIRA | Rich Seddon | 3 years ago
  1. 0

    Load the attached configuration in Nexus 2.8, then go to "security/enterprise ldap". You get a nice 500 error every time you try to got to the LDAP UI. {quote} 2014-03-20 13:31:16 INFO [qtp981159220-80] admin org.sonatype.nexus.configuration.ModelUtils - Loading model /Users/rseddon/nexus/sonatype-work/nexus/conf/ldap.xml 2014-03-20 13:31:16 INFO [qtp981159220-80] admin org.sonatype.nexus.configuration.ModelUtils - Upgrading model /Users/rseddon/nexus/sonatype-work/nexus/conf/ldap.xml from version OSS-XML to 2.8.0 2014-03-20 13:31:16 ERROR [qtp981159220-80] admin org.sonatype.nexus.rest.NexusRestletResource - java.lang.NullPointerException java.lang.NullPointerException: null at com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource$LdapOSSTo280Upgrader.buildName(DefaultLdapConfigurationSource.java:223) ~[na:na] at com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource$LdapOSSTo280Upgrader.doUpgrade(DefaultLdapConfigurationSource.java:161) ~[na:na] at org.sonatype.nexus.configuration.ModelloUtils$ModelloModelUpgrader.upgrade(ModelloUtils.java:217) ~[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT] at org.sonatype.nexus.configuration.ModelUtils$CharacterModelUpgrader.upgrade(ModelUtils.java:193) ~[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT] at org.sonatype.nexus.configuration.ModelUtils$ModelUpgraderAdapter.write(ModelUtils.java:246) ~[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT] at org.sonatype.sisu.goodies.common.io.FileReplacer.replace(FileReplacer.java:117) ~[goodies-common-1.9.jar:1.9] at org.sonatype.nexus.configuration.ModelUtils.load(ModelUtils.java:311) ~[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT] at org.sonatype.nexus.configuration.ModelloUtils.load(ModelloUtils.java:240) ~[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT] at com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource.load(DefaultLdapConfigurationSource.java:283) ~[na:na] at com.sonatype.security.ldap.persist.DefaultLdapConfigurationManager.getConfiguration(DefaultLdapConfigurationManager.java:210) ~[na:na] at com.sonatype.security.ldap.persist.DefaultLdapConfigurationManager.listLdapServerConfigurations(DefaultLdapConfigurationManager.java:104) ~[na:na] at com.sonatype.security.ldap.api.LdapServerListPlexusResource.get(LdapServerListPlexusResource.java:93) ~[na:na] at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:234) ~[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:40) ~[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.resource.Resource.getRepresentation(Resource.java:302) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.resource.Resource.handleGet(Resource.java:464) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Finder.handle(Finder.java:353) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Router.handle(Router.java:504) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:37) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.handle(Filter.java:195) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] at org.restlet.Filter.doHandle(Filter.java:150) [nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na] {quote} Reproduce steps: # Configure LDAP in Nexus Pro 2.7.2, save # Remove the LDAP server you just configured # Upgrade to 2.8 Workaround: Remove sonatype-work/nexus/conf/ldap.xml

    Sonatype JIRA | 3 years ago | Rich Seddon
    java.lang.NullPointerException: null
  2. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null
  5. 0

    Why lift can't find my "db.properties"

    Stack Overflow | 5 years ago | Freewind
    java.lang.NullPointerException: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource$LdapOSSTo280Upgrader.buildName()
    2. com.sonatype.security
      DefaultLdapConfigurationSource$LdapOSSTo280Upgrader.doUpgrade
      1. com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource$LdapOSSTo280Upgrader.buildName(DefaultLdapConfigurationSource.java:223)[na:na]
      2. com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource$LdapOSSTo280Upgrader.doUpgrade(DefaultLdapConfigurationSource.java:161)[na:na]
      2 frames
    3. ${project.groupId}:${project.artifactId}
      ModelUtils$ModelUpgraderAdapter.write
      1. org.sonatype.nexus.configuration.ModelloUtils$ModelloModelUpgrader.upgrade(ModelloUtils.java:217)[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT]
      2. org.sonatype.nexus.configuration.ModelUtils$CharacterModelUpgrader.upgrade(ModelUtils.java:193)[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT]
      3. org.sonatype.nexus.configuration.ModelUtils$ModelUpgraderAdapter.write(ModelUtils.java:246)[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT]
      3 frames
    4. ${project.groupId}:${project.artifactId}
      FileReplacer.replace
      1. org.sonatype.sisu.goodies.common.io.FileReplacer.replace(FileReplacer.java:117)[goodies-common-1.9.jar:1.9]
      1 frame
    5. ${project.groupId}:${project.artifactId}
      ModelloUtils.load
      1. org.sonatype.nexus.configuration.ModelUtils.load(ModelUtils.java:311)[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT]
      2. org.sonatype.nexus.configuration.ModelloUtils.load(ModelloUtils.java:240)[nexus-core-2.8.0-SNAPSHOT.jar:2.8.0-SNAPSHOT]
      2 frames
    6. com.sonatype.security
      LdapServerListPlexusResource.get
      1. com.sonatype.security.ldap.persist.DefaultLdapConfigurationSource.load(DefaultLdapConfigurationSource.java:283)[na:na]
      2. com.sonatype.security.ldap.persist.DefaultLdapConfigurationManager.getConfiguration(DefaultLdapConfigurationManager.java:210)[na:na]
      3. com.sonatype.security.ldap.persist.DefaultLdapConfigurationManager.listLdapServerConfigurations(DefaultLdapConfigurationManager.java:104)[na:na]
      4. com.sonatype.security.ldap.api.LdapServerListPlexusResource.get(LdapServerListPlexusResource.java:93)[na:na]
      4 frames
    7. ${project.groupId}:${project.artifactId}
      RestletResource.represent
      1. org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:234)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      1 frame
    8. Nexus Core
      NexusRestletResource.represent
      1. org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:40)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      1 frame
    9. org.restlet.resource
      Resource.handleGet
      1. org.restlet.resource.Resource.getRepresentation(Resource.java:302)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      2. org.restlet.resource.Resource.handleGet(Resource.java:464)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      2 frames
    10. org.restlet
      Filter.doHandle
      1. org.restlet.Finder.handle(Finder.java:353)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      2. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      3. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      4. org.restlet.Router.handle(Router.java:504)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      5. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      6. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      7. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      7 frames
    11. ${project.groupId}:${project.artifactId}
      RetargetableRestlet.doHandle
      1. org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:37)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      1 frame
    12. org.restlet
      Filter.doHandle
      1. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      2. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      3. org.restlet.Filter.handle(Filter.java:195)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      4. org.restlet.Filter.doHandle(Filter.java:150)[nexus-restlet1x-plugin-2.8.0-SNAPSHOT/:na]
      4 frames