java.lang.NullPointerException: null

Sonatype JIRA | Michael Prescott | 2 years ago
  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
  2. 0
    Elasticsearch 1.x and 2.x nodes are not compatible, make sure your setup contains nodes of the same major version.
    via GitHub by dakrone
  3. 0
    It is a JDK bug, no workaround currently.
    via GitHub by jroper
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Some of the parametes ar enull
  6. 0
    Try looking for variables that have been declared but not created as an object on the functions described in the stack trace.

    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 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