javax.servlet.ServletException: com.google.common.util.concurrent.UncheckedExecutionException: javax.ws.rs.NotFoundException: HTTP 404 Not Found

Google Groups | dav.fernandez | 6 months 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

    GitLab plugin - Build Triggers / Filter branhces by name (javax.ws.rs.NotFoundException: HTTP 404 Not Found)

    Google Groups | 6 months ago | dav.fernandez
    javax.servlet.ServletException: com.google.common.util.concurrent.UncheckedExecutionException: javax.ws.rs.NotFoundException: HTTP 404 Not Found
  2. 0

    Filter branches by name (javax.ws.rs.NotFoundException: HTTP 404 Not Found)

    GitHub | 6 months ago | davidfm
    javax.servlet.ServletException: com.google.common.util.concurrent.UncheckedExecutionException: javax.ws.rs.NotFoundException: HTTP 404 Not Found
  3. 0
    samebug tip
    Upgrade your old nexus to 2.14.1-01
    via Sonatype JIRA by Marc Lévi
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    *Background* A number of customer bug reports have been traced to the fact that the NX2->NX3 migration REST API is using encoded slashes in requests. This causes problems with reverse proxies, and so far our recommendation is to fine tune the reverse proxy settings. This will continue to be problematic in the future, so let's adjust to eliminate the encoding. The problem manifests itself when the HTTP download option is used during upgrade to Nexus 3, and Nexus 3 is sending requests for artifacts to Nexus 2. Nexus 3 sends requests to Nexus 2 with encoded slashes like {{<base url>/service/siesta/migrationagent/repository-content/npmproxy/which%2F-%2Fwhich-1.0.9.tgz}}, those decoded slashes need to arrive at the Nexus 2 instance unaltered/undecoded in order for migration to work. *Symptoms* Requests by the Nexus migration agent to Nexus 2 will fail with 404 not found. Example stack trace from your nexus.log: {noformat} 2016-11-08 08:39:26,510+0100 ERROR [plan-executor-5-thread-6] admin com.sonatype.nexus.migration.repository.ProcessChangesStep - Failed processing of CREATE /package/-/package-2.0.1.tgz, will ignore and move on. HTTP 404 Not Found javax.ws.rs.NotFoundException: HTTP 404 Not Found at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:201) [na:na] at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:174) [na:na] at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:59) [na:na] at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104) [na:na] at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) [na:na] at com.sonatype.nexus.migration.client.$Proxy193.get(Unknown Source) [na:na] {noformat} This can happen with any repository type. *Acceptance* * Remove slash encoding from the NX2 migration REST API so that we don't have problems with reverse proxies. * Revert note added by https://github.com/sonatype/nexus-book-internal/pull/55 which will become obsolete *Workaround* - configure Nexus 3 to send requests to Nexus 2 directly instead of going through an intermediary reverse proxy - configure the httpd in front of Nexus 2 with the directive {{AllowEncodedSlashes NoDecode}} and the option {{nocanon}} for your ProxyPass directive - do a similar change for nginx if using that server - upgrade to 2.14.3/3.2.1 once released

    Sonatype JIRA | 3 months ago | Michael Prescott
    javax.ws.rs.NotFoundException: HTTP 404 Not Found
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. javax.ws.rs.NotFoundException

    HTTP 404 Not Found

    at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus()
  2. RESTEasy JAX-RS Client
    ClientProxy.invoke
    1. org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:201)
    2. org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:174)
    3. org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:59)
    4. org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
    5. org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64)
    5 frames
  3. com.sun.proxy
    $Proxy96.getBranches
    1. com.sun.proxy.$Proxy96.getBranches(Unknown Source)
    1 frame
  4. com.dabsquared.gitlabjenkins
    GitLabProjectBranchesService$BranchNamesLoader.call
    1. com.dabsquared.gitlabjenkins.GitLabProjectBranchesService$BranchNamesLoader.call(GitLabProjectBranchesService.java:69)
    2. com.dabsquared.gitlabjenkins.GitLabProjectBranchesService$BranchNamesLoader.call(GitLabProjectBranchesService.java:56)
    2 frames
  5. Guava
    LocalCache$LocalManualCache.get
    1. com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)
    2. com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
    3. com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
    4. com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
    5. com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
    6. com.google.common.cache.LocalCache.get(LocalCache.java:3965)
    7. com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
    7 frames
  6. com.dabsquared.gitlabjenkins
    GitLabPushTrigger$DescriptorImpl.doCheckIncludeBranchesSpec
    1. com.dabsquared.gitlabjenkins.GitLabProjectBranchesService.getBranches(GitLabProjectBranchesService.java:43)
    2. com.dabsquared.gitlabjenkins.trigger.branch.ProjectBranchesProvider.getProjectBranches(ProjectBranchesProvider.java:48)
    3. com.dabsquared.gitlabjenkins.trigger.branch.ProjectBranchesProvider.doCheckBranchesSpec(ProjectBranchesProvider.java:76)
    4. com.dabsquared.gitlabjenkins.GitLabPushTrigger$DescriptorImpl.doCheckIncludeBranchesSpec(GitLabPushTrigger.java:345)
    4 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor482.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  8. Stapler
    Stapler.service
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
    2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
    3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
    4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
    5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
    7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
    8. org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233)
    9. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    10. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
    11. org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
    12. org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233)
    13. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    14. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
    15. org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
    16. org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
    17. org.kohsuke.stapler.Stapler.service(Stapler.java:238)
    17 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame
  10. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
    2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    2 frames
  11. Hudson
    PluginServletFilter.doFilter
    1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
    2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
    2 frames
  12. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    1 frame
  13. Hudson
    CrumbFilter.doFilter
    1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
    1 frame
  14. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    1 frame
  15. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    2. hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
    3. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    3 frames
  16. jenkins.security
    ExceptionTranslationFilter.doFilter
    1. jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
    1 frame
  17. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  18. Acegi Security Core
    AnonymousProcessingFilter.doFilter
    1. org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    1 frame
  19. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  20. Acegi Security Core
    RememberMeProcessingFilter.doFilter
    1. org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    1 frame
  21. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  22. Acegi Security Core
    AbstractProcessingFilter.doFilter
    1. org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    1 frame
  23. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  24. jenkins.security
    BasicHeaderProcessor.doFilter
    1. jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
    1 frame
  25. Hudson
    ChainedServletFilter$1.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    1 frame
  26. Acegi Security Core
    HttpSessionContextIntegrationFilter.doFilter
    1. org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    1 frame
  27. Hudson
    HudsonFilter.doFilter
    1. hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
    2. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    3. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    4. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
    4 frames
  28. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    1 frame
  29. Stapler
    CompressionFilter.doFilter
    1. org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
    1 frame
  30. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    1 frame
  31. Hudson
    CharacterEncodingFilter.doFilter
    1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
    1 frame
  32. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    1 frame
  33. Stapler
    DiagnosticThreadNameFilter.doFilter
    1. org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
    1 frame
  34. Jetty
    AbstractConnection$2.run
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    11. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    12. org.eclipse.jetty.server.Server.handle(Server.java:499)
    13. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
    14. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    15. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
    15 frames
  35. winstone
    BoundedExecutorService$1.run
    1. winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
    1 frame
  36. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames