java.lang.NullPointerException: null

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Rich Seddon,
    • 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]
    No Bugmate found.