java.lang.NoSuchMethodError: org.scalatra.json.JacksonJsonSupport$class.initialize(Lorg/scalatra/json/JacksonJsonSupport;Ljava/lang/Object;)V

Google Groups | Scott Danzig | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    JacksonJsonSupport trait causes a NoSuchMethodError for initialize()

    Stack Overflow | 8 months ago | sdanzig
    java.lang.NoSuchMethodError: org.scalatra.json.JacksonJsonSupport$class.initialize(Lorg/scalatra/json/JacksonJsonSupport;Ljava/lang/Object;)V
  2. 0

    JacksonJsonSupport trait causes a NoSuchMethodError for class.initialize()

    Google Groups | 8 months ago | Scott Danzig
    java.lang.NoSuchMethodError: org.scalatra.json.JacksonJsonSupport$class.initialize(Lorg/scalatra/json/JacksonJsonSupport;Ljava/lang/Object;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.scalatra.json.JacksonJsonSupport$class.initialize(Lorg/scalatra/json/JacksonJsonSupport;Ljava/lang/Object;)V

      at com.tutorial.FlowersController.initialize()
    2. com.tutorial
      FlowersController.initialize
      1. com.tutorial.FlowersController.initialize(FlowersController.scala:8)
      2. com.tutorial.FlowersController.initialize(FlowersController.scala:8)
      2 frames
    3. org.scalatra
      ScalatraServlet$class.init
      1. org.scalatra.ScalatraServlet$class.init(ScalatraServlet.scala:123)
      1 frame
    4. com.tutorial
      FlowersController.init
      1. com.tutorial.FlowersController.init(FlowersController.scala:8)
      1 frame
    5. Jetty
      AbstractLifeCycle.start
      1. org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:595)
      2. org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:385)
      3. org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:862)
      4. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:300)
      5. org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1341)
      6. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1334)
      7. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:744)
      8. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)
      9. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      10. org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      11. org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      12. org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
      13. org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:154)
      14. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      15. org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      16. org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      17. org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
      18. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      19. org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      20. org.eclipse.jetty.server.Server.start(Server.java:357)
      21. org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      22. org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
      23. org.eclipse.jetty.server.Server.doStart(Server.java:324)
      24. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      24 frames
    6. Jetty Runner
      Runner.main
      1. org.eclipse.jetty.runner.Runner.run(Runner.java:509)
      2. org.eclipse.jetty.runner.Runner.main(Runner.java:557)
      2 frames