java.lang.NullPointerException: null

Sonatype JIRA | Michael Prescott | 2 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

    Deleting components triggers an NPE (see below). This seems to happen because EntityAdapter.deleteEntity() sets the entity metadata to null. This causes problems, however, because the search facet (which is notified of the deletion) needs the metadata to identify the search index item being deleted. I assume similar issues will arise with consumers of ComponentDeletedEvent. 2015-04-16 10:39:39,984-0400 ERROR [qtp2077321810-46] admin com.sonatype.nexus.repository.nuget.internal.NugetItemHandler - Unknown error java.lang.NullPointerException: null at org.sonatype.nexus.repository.search.SearchServiceImpl.delete(SearchServiceImpl.java:179) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.search.SearchFacetImpl.delete(SearchFacetImpl.java:53) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:40) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:233) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.delete(NugetGalleryFacetImpl.java:393) [na:na] at com.sonatype.nexus.repository.nuget.internal.NugetItemHandler.deleteItem(NugetItemHandler.java:78) [na:na]

    Sonatype JIRA | 2 years ago | Michael Prescott
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.sonatype.nexus.repository.search.SearchServiceImpl.delete()
    2. org.sonatype.nexus
      GuardedInterceptor.invoke
      1. org.sonatype.nexus.repository.search.SearchServiceImpl.delete(SearchServiceImpl.java:179)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      2. org.sonatype.nexus.repository.search.SearchFacetImpl.delete(SearchFacetImpl.java:53)[org.sonatype.nexus.repository:3.0.0.SNAPSHOT]
      3. org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:40)[org.sonatype.nexus.common:3.0.0.SNAPSHOT]
      4. org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:233)[org.sonatype.nexus.common:3.0.0.SNAPSHOT]
      5. org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)[org.sonatype.nexus.common:3.0.0.SNAPSHOT]
      5 frames
    3. com.sonatype.nexus
      NugetItemHandler.deleteItem
      1. com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.delete(NugetGalleryFacetImpl.java:393)[na:na]
      2. com.sonatype.nexus.repository.nuget.internal.NugetItemHandler.deleteItem(NugetItemHandler.java:78)[na:na]
      2 frames