java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value;

Java.net JIRA | rG. | 3 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

    java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value; when attempting to go to api-base/api-docs/resourceName (Stack trace below) [root@machine ~]$ cd /opt/tomcat/webapps/company/WEB-INF/lib/ [root@machine lib]# ls -al | egrep '(jersey|json|jax)' -rw-r--r-- 1 root root 94774 Feb 10 12:02 cxf-rt-databinding-jaxb-2.3.2.jar -rw-r--r-- 1 root root 341446 Feb 10 12:02 cxf-rt-frontend-jaxws-2.3.2.jar -rw-r--r-- 1 root root 20020 Feb 10 12:02 jackson-jaxrs-base-2.2.3.jar -rw-r--r-- 1 root root 15243 Feb 10 12:02 jackson-jaxrs-json-provider-2.2.3.jar -rw-r--r-- 1 root root 25985 Feb 10 12:02 jackson-module-jaxb-annotations-2.2.3.jar -rw-r--r-- 1 root root 50034 Feb 10 12:02 jackson-module-jsonSchema-2.1.0.jar -rw-r--r-- 1 root root 79309 Feb 10 12:02 javax.json-1.0.2.jar -rw-r--r-- 1 root root 19754 Feb 10 12:02 javax.json-api-1.0.jar -rw-r--r-- 1 root root 876610 Feb 10 12:02 jaxb-impl-2.1.13.jar -rw-r--r-- 1 root root 226915 Feb 10 12:02 jaxen-1.1.1.jar -rw-r--r-- 1 root root 159742 Feb 10 14:02 jersey-client-2.5.1.jar -rw-r--r-- 1 root root 700399 Feb 10 14:02 jersey-common-2.5.1.jar -rw-r--r-- 1 root root 15684 Feb 10 14:02 jersey-container-servlet-2.5.1.jar -rw-r--r-- 1 root root 52593 Feb 10 12:02 jersey-container-servlet-core-2.1.jar -rw-r--r-- 1 root root 6412 Feb 10 14:02 jersey-media-json-processing-2.5.1.jar -rw-r--r-- 1 root root 63067 Feb 10 12:02 jersey-media-multipart-2.1.jar -rw-r--r-- 1 root root 828016 Feb 10 14:02 jersey-server-2.5.1.jar -rw-r--r-- 1 root root 86540 Feb 10 12:02 json4s-ast_2.10-3.2.4.jar -rw-r--r-- 1 root root 568890 Feb 10 12:02 json4s-core_2.10-3.2.4.jar -rw-r--r-- 1 root root 74565 Feb 10 12:02 json4s-ext_2.10-3.2.4.jar -rw-r--r-- 1 root root 39952 Feb 10 12:02 json4s-jackson_2.10-3.2.4.jar -rw-r--r-- 1 root root 68734 Feb 10 12:02 json4s-native_2.10-3.2.4.jar -rw-r--r-- 1 root root 7814 Feb 10 12:02 jsonp-jaxrs-1.0.jar -rw-r--r-- 1 root root 121047 Feb 10 12:02 swagger-jaxrs_2.10-1.3.2.jar -rw-r--r-- 1 root root 45719 Feb 10 12:02 swagger-jersey2-jaxrs_2.10-1.3.2.jar - - - - - Stack trace: Feb 10, 2014 17:17:53 ERROR [TP-Processor5] [Catalina].[localhost].[/company].[Jersey REST Service] - Servlet.service() for servlet Jersey REST Service threw exception java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value; at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.company.videoapp.server.springframework.SessionFilter.doFilter(SessionFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor$LoaderState.filter(ContextLoaderHttpInterceptor.java:75) at com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor$StartedState.filter(ContextLoaderHttpInterceptor.java:120) at com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor.doFilter(ContextLoaderHttpInterceptor.java:62) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:662) Feb 10, 2014 17:17:53 ERROR [TP-Processor5] [Catalina].[localhost].[/company].[Jersey REST Service] - Servlet.service() for servlet Jersey REST Service threw exception java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value; at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.company.videoapp.server.springframework.SessionFilter.doFilter(SessionFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor$LoaderState.filter(ContextLoaderHttpInterceptor.java:75) at com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor$StartedState.filter(ContextLoaderHttpInterceptor.java:120) at com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor.doFilter(ContextLoaderHttpInterceptor.java:62) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:662)

    Java.net JIRA | 3 years ago | rG.
    java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value;
  2. 0

    NoSuchMethodError in running test case for rest services using junit and grizzle

    Stack Overflow | 8 months ago | user3498863
    java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value;
  3. 0

    Swagger ServletHandlerError

    Stack Overflow | 7 months ago | Jonas Wolff
    java.lang.NoSuchMethodError: org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jetty + Jersey 2 + Swagger programmatic configuration without web.xml

    Google Groups | 3 years ago | Francisco Pérez-Sorrosal
    java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.maximumSize(I)Lcom/google/common/cache/CacheBuilder;

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.glassfish.jersey.internal.util.collection.Values.lazy(Lorg/glassfish/jersey/internal/util/collection/Value;)Lorg/glassfish/jersey/internal/util/collection/Value;

      at org.glassfish.jersey.servlet.WebComponent.service()
    2. jersey-container-servlet-core
      ServletContainer.service
      1. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)
      2. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372)
      3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
      4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218)
      4 frames
    3. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    4. com.company.videoapp
      SessionFilter.doFilter
      1. com.company.videoapp.server.springframework.SessionFilter.doFilter(SessionFilter.java:44)
      1 frame
    5. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    6. com.company.videoapp
      ContextLoaderHttpInterceptor.doFilter
      1. com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor$LoaderState.filter(ContextLoaderHttpInterceptor.java:75)
      2. com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor$StartedState.filter(ContextLoaderHttpInterceptor.java:120)
      3. com.company.videoapp.server.springframework.loader.ContextLoaderHttpInterceptor.doFilter(ContextLoaderHttpInterceptor.java:62)
      3 frames
    7. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      9 frames
    8. Embedded GlassFish Web
      ChannelSocket$SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
      5. org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
      5 frames
    9. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame