java.lang.IllegalStateException: attempted use of temporary document id

Sonatype JIRA | Joe Tom | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    NEXUS-8419 test essentially involves pushing a package to NuGet hosted and deleting it. I found that pushing a package was generating an error. [~mprescott] said he noted the same error working on the IT but it was not ticketed yet. This is that ticket. This ticket blocks NEXUS-8419 testing so I've marked it a blocker. This is Dizzam regression and does not occur in NX2. Here's the error from the log: {quote} 2015-05-06 12:25:51,850-0400 ERROR [qtp1745283964-51] admin com.sonatype.nexus.r epository.nuget.internal.NugetPushHandler - Unknown error java.lang.IllegalStateException: attempted use of temporary document id at com.google.common.base.Preconditions.checkState(Preconditions.java:17 3) [com.google.guava:18.0.0] at org.sonatype.nexus.orient.entity.EntityAdapter$AttachedEntityId.getVa lue(EntityAdapter.java:275) [org.sonatype.nexus.orient:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.entity.EntityId.toString(EntityId.java:68) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.search.SearchFacetImpl.identifier(Searc hFacetImpl.java:47) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(Metho dInvocationAction.java:40) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGu ard.java:233) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(Guarde dInterceptor.java:53) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.search.SearchFacetImpl.put(SearchFacetI mpl.java:53) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(Metho dInvocationAction.java:40) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGu ard.java:233) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(Guarde dInterceptor.java:53) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.cr eateOrUpdatePackageAndContents(NugetGalleryFacetImpl.java:425) [na:na] at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.pu t(NugetGalleryFacetImpl.java:331) [na:na] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(Metho dInvocationAction.java:40) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGu ard.java:233) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(Guarde dInterceptor.java:53) [org.sonatype.nexus.common:3.0.0.SNAPSHOT] at com.sonatype.nexus.repository.nuget.internal.NugetPushHandler.storePa yload(NugetPushHandler.java:75) [na:na] at com.sonatype.nexus.repository.nuget.internal.NugetPushHandler.handle( NugetPushHandler.java:55) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [ org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.security.SecurityHandler.handle(Securit yHandler.java:46) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [ org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(Timi ngHandler.java:46) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89) [ org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Context.start(Context.java:112) [o rg.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58) [o rg.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(Con figurableViewFacet.java:45) [org.sonatype.nexus.repository:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatc hAndSend(ViewServlet.java:177) [org.sonatype.nexus.plugins.nexus-repository-http bridge:3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doServi ce(ViewServlet.java:164) [org.sonatype.nexus.plugins.nexus-repository-httpbridge :3.0.0.SNAPSHOT] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service (ViewServlet.java:121) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3 .0.0.SNAPSHOT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.s ervlet-api:3.1.0] at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefi nition.java:287) [com.google.inject:4.0.0] at com.google.inject.servlet.ServletDefinition.doService(ServletDefiniti on.java:277) [com.google.inject:4.0.0] at com.google.inject.servlet.ServletDefinition.service(ServletDefinition .java:182) [com.google.inject:4.0.0] at com.google.inject.servlet.DynamicServletPipeline.service(DynamicServl etPipeline.java:70) [com.google.inject:4.0.0] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:85) [com.google.inject:4.0.0] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq uestFilter.java:112) [org.apache.shiro.web:1.2.3] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:82) [com.google.inject:4.0.0] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte rChain.java:61) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.j ava:108) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilt er.java:137) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq uestFilter.java:125) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte rChain.java:66) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.j ava:108) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilt er.java:137) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq uestFilter.java:125) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte rChain.java:66) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.j ava:108) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilt er.java:137) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq uestFilter.java:125) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte rChain.java:66) [org.apache.shiro.web:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(Abstrac tShiroFilter.java:449) [org.apache.shiro.web:1.2.3] at org.sonatype.nexus.web.SecurityFilter.executeChain(SecurityFilter.jav a:87) [org.sonatype.nexus.core:3.0.0.SNAPSHOT] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiro Filter.java:365) [org.apache.shiro.web:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallab le.java:90) [org.apache.shiro.core:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable .java:83) [org.apache.shiro.core:1.2.3] at org.apache.shiro.subject.support.DelegatingSubject.execute(Delegating Subject.java:383) [org.apache.shiro.core:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(Abs tractShiroFilter.java:362) [org.apache.shiro.web:1.2.3] at org.sonatype.nexus.web.SecurityFilter.doFilterInternal(SecurityFilter .java:103) [org.sonatype.nexus.core:3.0.0.SNAPSHOT] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq uestFilter.java:125) [org.apache.shiro.web:1.2.3] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:82) [com.google.inject:4.0.0] at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilte r(LicensingRedirectFilter.java:134) [com.sonatype.nexus.plugins.nexus-licensing- plugin:3.0.0.SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:82) [com.google.inject:4.0.0] at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(Abst ractInstrumentedFilter.java:97) [com.codahale.metrics.servlet:3.0.2] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:82) [com.google.inject:4.0.0] at org.sonatype.nexus.internal.web.ErrorPageFilter.doFilter(ErrorPageFil ter.java:65) [org.sonatype.nexus.core:3.0.0.SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:82) [com.google.inject:4.0.0] at org.sonatype.nexus.internal.web.EnvironmentFilter.doFilter(Environmen tFilter.java:92) [org.sonatype.nexus.core:3.0.0.SNAPSHOT] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainI nvocation.java:82) [com.google.inject:4.0.0] at com.google.inject.servlet.DynamicFilterPipeline.dispatch(DynamicFilte rPipeline.java:104) [com.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133) [c om.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130) [c om.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:2 03) [com.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130) [com.google.inject:4.0.0] at org.sonatype.nexus.bootstrap.osgi.DelegatingFilter.doFilter(Delegatin gFilter.java:73) [org.sonatype.nexus.bootstrap:3.0.0.SNAPSHOT] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet Handler.java:1652) [org.eclipse.jetty.servlet:9.2.9.v20150224] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java :585) [org.eclipse.jetty.servlet:9.2.9.v20150224] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava:143) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav a:577) [org.eclipse.jetty.security:9.2.9.v20150224] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl er.java:223) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl er.java:1127) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: 515) [org.eclipse.jetty.servlet:9.2.9.v20150224] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle r.java:185) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle r.java:1061) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j ava:141) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper .java:97) [org.eclipse.jetty.server:9.2.9.v20150224] at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHa ndler.java:175) [com.codahale.metrics.jetty9:3.0.2] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColl ection.java:110) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper .java:97) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.Server.handle(Server.java:497) [org.eclipse. jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) [or g.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.jav a:257) [org.eclipse.jetty.server:9.2.9.v20150224] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java :540) [org.eclipse.jetty.io:9.2.9.v20150224] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo l.java:635) [org.eclipse.jetty.util:9.2.9.v20150224] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool .java:555) [org.eclipse.jetty.util:9.2.9.v20150224] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75] {quote} Of note, this error occurs both before and after setting API key, so you should see it pretty fast in the test. I was testing using the SONATYPE.TEST package and nuget cmd line tool if it matters.

    Sonatype JIRA | 2 years ago | Joe Tom
    java.lang.IllegalStateException: attempted use of temporary document id
  2. 0
    samebug tip
    Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .
  3. 0

    Google Maps Api

    GitHub | 2 years ago | danielgomezrico
    java.lang.IllegalStateException: google.api-key not set
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Confusing logging message in IncompletePaymentTransactionTask

    GitHub | 2 years ago | pierre
    org.killbill.notificationq.NotificationQueueException: java.lang.IllegalStateException: Janitor IncompletePaymentTransactionTask cannot retrieve PaymentPluginApi c9b4fe7b-eb0c-48f8-b3d8-9840eb33ced5, skipping
  6. 0

    "bazel mobile-install" raises an exception

    GitHub | 2 years ago | lberki
    java.lang.RuntimeException: Unrecoverable error while evaluating node 'ACTION_EXECUTION:action 'Generating incremental installation manifest for //examples/android/java/bazel:hello_world' (AndroidDexManifest[[Artifact:[/usr/local/google/home/lberki/.cache/bazel/_bazel_lberki/7702f1490eb02e4ab2d12bed1e7ae514[source]]external/android_tools/tools/android/build_incremental_dexmanifest.py, Artifact:[[/usr/local/google/home/lberki/.cache/bazel/_bazel_lberki/7702f1490eb02e4ab2d12bed1e7ae514/android]bazel-out/host/bin]external/android_tools/tools/android/build_incremental_dexmanifest, Artifact:[[/usr/local/google/home/lberki/.cache/bazel/_bazel_lberki/7702f1490eb02e4ab2d12bed1e7ae514/android]bazel-out/host/internal]_middlemen/external_Sandroid_Utools_Stools_Sandroid_Sbuild_Uincremental_Udexmanifest-runfiles, Artifact:[[/usr/local/google/home/lberki/.cache/bazel/_bazel_lberki/7702f1490eb02e4ab2d12bed1e7ae514/android]bazel-out/local_linux-fastbuild/bin]examples/android/java/bazel/_dx/hello_world/classes.dex] -> [Artifact:[[/usr/local/google/home/lberki/.cache/bazel/_bazel_lberki/7702f1490eb02e4ab2d12bed1e7ae514/android]bazel-out/local_linux-fastbuild/bin]examples/android/java/bazel/hello_world_files/dexmanifest.txt]])' (requested by nodes 'ARTIFACT:examples/android/java/bazel/hello_world_files/dexmanifest.txt //examples/android/java/bazel:hello_world 0891c086e5b84e080b3df6a2813d5efe')

  1. arturgajowy 3 times, last 2 days ago
  2. jf-ast 3 times, last 1 month ago
  3. SteVio1989 16 times, last 2 months ago
  4. Hronom 2 times, last 2 months ago
  5. raytest 1 times, last 2 months ago
10 more registered users
63 unregistered visitors
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.IllegalStateException

    attempted use of temporary document id

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:173)[com.google.guava:18.0.0]
    1 frame
  3. org.sonatype.nexus
    EntityId.toString
    1. org.sonatype.nexus.orient.entity.EntityAdapter$AttachedEntityId.getValue(EntityAdapter.java:275)[org.sonatype.nexus.orient:3.0.0.SNAPSHOT]
    2. org.sonatype.nexus.common.entity.EntityId.toString(EntityId.java:68)
    2 frames