java.lang.NoClassDefFoundError: Could not initialize class com.twitter.server.util.JsonConverter$

GitHub | mikebridge | 3 months ago
  1. 0

    NoClassDefFoundError: Could not initialize class com.twitter.server.util.JsonConverter

    GitHub | 3 months ago | mikebridge
    java.lang.NoClassDefFoundError: Could not initialize class com.twitter.server.util.JsonConverter$
  2. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class
  3. 0

    NoClassDefFoundError while creating mock object in java

    Stack Overflow | 7 months ago | Manas Kantha
    java.lang.NoClassDefFoundError: Could not initialize class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    External Properties file and classpath

    Oracle Community | 6 years ago | 393585
    java.lang.NoClassDefFoundError: Could not initialize class
  6. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class

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

      Could not initialize class com.twitter.server.util.JsonConverter$

      at com.twitter.server.handler.MetricQueryHandler.apply()
    2. com.twitter.server
      MetricQueryHandler.apply
      1. com.twitter.server.handler.MetricQueryHandler.apply(MetricQueryHandler.scala:54)
      2. com.twitter.server.handler.MetricQueryHandler.apply(MetricQueryHandler.scala:34)
      2 frames
    3. finagle-core
      Service$$anon$1.apply
      1. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      1 frame
    4. com.twitter.server
      IndexView.apply
      1. com.twitter.server.view.IndexView.apply(IndexView.scala:123)
      2. com.twitter.server.view.IndexView.apply(IndexView.scala:114)
      2 frames
    5. finagle-core
      Filter$$anon$1.apply
      1. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      1 frame
    6. finagle-http
      HttpMuxer.apply
      1. com.twitter.finagle.http.HttpMuxer.apply(HttpMuxer.scala:62)
      2. com.twitter.finagle.http.HttpMuxer.apply(HttpMuxer.scala:25)
      2 frames
    7. com.twitter.server
      HttpUtils$$anonfun$combine$1.apply
      1. com.twitter.server.util.HttpUtils$$anonfun$combine$1.com$twitter$server$util$HttpUtils$$anonfun$$loop$1(HttpUtils.scala:25)
      2. com.twitter.server.util.HttpUtils$$anonfun$combine$1.apply(HttpUtils.scala:35)
      3. com.twitter.server.util.HttpUtils$$anonfun$combine$1.apply(HttpUtils.scala:20)
      3 frames
    8. finagle-core
      Service$$anon$5.apply
      1. com.twitter.finagle.Service$$anon$5.apply(Service.scala:28)
      1 frame
    9. com.twitter.server
      AdminHttpServer$$anon$1.apply
      1. com.twitter.server.AdminHttpServer$$anon$1.apply(AdminHttpServer.scala:74)
      2. com.twitter.server.AdminHttpServer$$anon$1.apply(AdminHttpServer.scala:73)
      2 frames
    10. finagle-core
      Service$$anon$1.apply
      1. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      1 frame
    11. com.twitter.server
      NotFoundView.apply
      1. com.twitter.server.view.NotFoundView.apply(NotFoundView.scala:41)
      2. com.twitter.server.view.NotFoundView.apply(NotFoundView.scala:37)
      2 frames
    12. finagle-core
      Service$$anon$1.apply
      1. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      2. com.twitter.finagle.ServiceProxy.apply(Service.scala:120)
      3. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      4. com.twitter.finagle.tracing.ServerDestTracingProxy$$anon$1.apply(DestinationTracing.scala:32)
      5. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      6. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      7. com.twitter.finagle.service.DeadlineStatsFilter.apply(DeadlineStatsFilter.scala:59)
      8. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      9. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      10. com.twitter.finagle.filter.ExceptionSourceFilter.apply(ExceptionSourceFilter.scala:42)
      11. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      12. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      12 frames
    13. finagle-http
      HttpNackFilter.apply
      1. com.twitter.finagle.http.filter.HttpNackFilter.apply(HttpNackFilter.scala:55)
      2. com.twitter.finagle.http.filter.HttpNackFilter.apply(HttpNackFilter.scala:48)
      2 frames
    14. finagle-core
      Service$$anon$1.apply
      1. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      2. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      3. com.twitter.finagle.Service$$anon$1.apply(Service.scala:13)
      3 frames
    15. finagle-http
      TraceInfo$$anonfun$letTraceIdFromRequestHeaders$2.apply
      1. com.twitter.finagle.http.HttpServerTraceInitializer$$anonfun$8$$anonfun$apply$2$$anonfun$apply$3.apply(Codec.scala:476)
      2. com.twitter.finagle.http.HttpServerTraceInitializer$$anonfun$8$$anonfun$apply$2$$anonfun$apply$3.apply(Codec.scala:476)
      3. com.twitter.finagle.http.TraceInfo$$anonfun$letTraceIdFromRequestHeaders$2.apply(Codec.scala:422)
      3 frames
    16. util-core
      Local.let
      1. com.twitter.util.Local.let(Local.scala:141)
      1 frame
    17. finagle-core
      MarshalledContext.let
      1. com.twitter.finagle.context.Context$class.let(Context.scala:176)
      2. com.twitter.finagle.context.MarshalledContext.let(Context.scala:232)
      2 frames
    18. finagle-core
      Trace$.letId
      1. com.twitter.finagle.tracing.Trace$.letId(Trace.scala:167)
      1 frame
    19. finagle-http
      HttpServerTraceInitializer$$anonfun$8$$anonfun$apply$2.apply
      1. com.twitter.finagle.http.TraceInfo$.letTraceIdFromRequestHeaders(Codec.scala:420)
      2. com.twitter.finagle.http.HttpServerTraceInitializer$$anonfun$8$$anonfun$apply$2.apply(Codec.scala:476)
      3. com.twitter.finagle.http.HttpServerTraceInitializer$$anonfun$8$$anonfun$apply$2.apply(Codec.scala:476)
      3 frames
    20. util-core
      Local.let
      1. com.twitter.util.Local.let(Local.scala:141)
      1 frame
    21. finagle-core
      LocalContext.let
      1. com.twitter.finagle.context.Context$class.let(Context.scala:176)
      2. com.twitter.finagle.context.LocalContext.let(LocalContext.scala:8)
      2 frames
    22. finagle-core
      Trace$.letTracer
      1. com.twitter.finagle.tracing.Trace$.letTracer(Trace.scala:185)
      1 frame
    23. finagle-http
      HttpServerTraceInitializer$$anonfun$8.apply
      1. com.twitter.finagle.http.HttpServerTraceInitializer$$anonfun$8.apply(Codec.scala:475)
      2. com.twitter.finagle.http.HttpServerTraceInitializer$$anonfun$8.apply(Codec.scala:474)
      2 frames
    24. finagle-core
      Service$$anon$1.apply
      1. com.twitter.finagle.Filter$$anon$6.apply(Filter.scala:254)
      2. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      3. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      4. com.twitter.finagle.filter.MonitorFilter.apply(MonitorFilter.scala:39)
      5. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      6. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      7. com.twitter.finagle.filter.PayloadSizeFilter.apply(PayloadSizeFilter.scala:29)
      8. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      9. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      9 frames
    25. finagle-http
      ServerContextFilter.apply
      1. com.twitter.finagle.http.filter.ServerContextFilter$$anonfun$apply$1.apply(ContextFilter.scala:16)
      2. com.twitter.finagle.http.filter.ServerContextFilter$$anonfun$apply$1.apply(ContextFilter.scala:16)
      3. com.twitter.finagle.http.codec.HttpContext$.read(HttpContext.scala:52)
      4. com.twitter.finagle.http.filter.ServerContextFilter.apply(ContextFilter.scala:16)
      5. com.twitter.finagle.http.filter.ServerContextFilter.apply(ContextFilter.scala:12)
      5 frames
    26. finagle-core
      Service$$anon$1.apply
      1. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      2. com.twitter.finagle.Service$$anon$1.apply(Service.scala:16)
      2 frames
    27. finagle-http
      DtabFilter.apply
      1. com.twitter.finagle.http.filter.DtabFilter.apply(DtabFilter.scala:26)
      2. com.twitter.finagle.http.filter.DtabFilter.apply(DtabFilter.scala:12)
      2 frames
    28. finagle-core
      Filter$$anon$1.apply
      1. com.twitter.finagle.Filter$$anon$1.apply(Filter.scala:79)
      1 frame
    29. finagle-http
      HttpServerDispatcher.dispatch
      1. com.twitter.finagle.http.codec.HttpServerDispatcher.dispatch(HttpServerDispatcher.scala:61)
      2. com.twitter.finagle.http.codec.HttpServerDispatcher.dispatch(HttpServerDispatcher.scala:20)
      2 frames
    30. com.twitter.finagle
      GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1$$anonfun$apply$1.apply
      1. com.twitter.finagle.http.exp.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1$$anonfun$apply$1.apply$mcV$sp(ServerDispatcher.scala:55)
      2. com.twitter.finagle.http.exp.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1$$anonfun$apply$1.apply(ServerDispatcher.scala:54)
      3. com.twitter.finagle.http.exp.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1$$anonfun$apply$1.apply(ServerDispatcher.scala:54)
      3 frames
    31. util-core
      Local.let
      1. com.twitter.util.Local.let(Local.scala:141)
      1 frame
    32. finagle-core
      LocalContext.let
      1. com.twitter.finagle.context.Context$class.let(Context.scala:176)
      2. com.twitter.finagle.context.LocalContext.let(LocalContext.scala:8)
      2 frames
    33. com.twitter.finagle
      GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1.apply
      1. com.twitter.finagle.http.exp.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1.apply(ServerDispatcher.scala:53)
      2. com.twitter.finagle.http.exp.GenSerialServerDispatcher$$anonfun$com$twitter$finagle$http$exp$GenSerialServerDispatcher$$loop$1.apply(ServerDispatcher.scala:48)
      2 frames
    34. util-core
      AsyncQueue.offer
      1. com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:1092)
      2. com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:1091)
      3. com.twitter.util.Promise$Transformer.liftedTree1$1(Promise.scala:107)
      4. com.twitter.util.Promise$Transformer.k(Promise.scala:107)
      5. com.twitter.util.Promise$Transformer.apply(Promise.scala:117)
      6. com.twitter.util.Promise$Transformer.apply(Promise.scala:98)
      7. com.twitter.util.Promise$$anon$1.run(Promise.scala:436)
      8. com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:201)
      9. com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:159)
      10. com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:239)
      11. com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:107)
      12. com.twitter.util.Promise.runq(Promise.scala:405)
      13. com.twitter.util.Promise.updateIfEmpty(Promise.scala:796)
      14. com.twitter.util.Promise.update(Promise.scala:770)
      15. com.twitter.util.Promise.setValue(Promise.scala:746)
      16. com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:120)
      16 frames
    35. com.twitter.finagle
      ChannelTransport.handleUpstream
      1. com.twitter.finagle.netty3.transport.ChannelTransport.handleUpstream(ChannelTransport.scala:55)
      1 frame
    36. Netty
      SimpleChannelUpstreamHandler.handleUpstream
      1. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      2. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      3. org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
      4. org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
      5. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      6. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      7. org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)
      8. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      8 frames
    37. finagle-http
      SafeServerHttpChunkAggregator.handleUpstream
      1. com.twitter.finagle.http.SafeServerHttpChunkAggregator.handleUpstream(Codec.scala:101)
      1 frame
    38. Netty
      SimpleChannelUpstreamHandler.messageReceived
      1. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      2. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      3. org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124)
      3 frames
    39. finagle-http
      RespondToExpectContinue.messageReceived
      1. com.twitter.finagle.http.codec.RespondToExpectContinue.messageReceived(RespondToExpectContinue.scala:30)
      1 frame
    40. Netty
      SimpleChannelUpstreamHandler.messageReceived
      1. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      2. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      3. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      4. org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124)
      4 frames
    41. finagle-http
      PayloadSizeHandler.messageReceived
      1. com.twitter.finagle.http.codec.PayloadSizeHandler.messageReceived(PayloadSizeHandler.scala:22)
      1 frame
    42. Netty
      HttpServerCodec.handleUpstream
      1. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      2. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      3. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      4. org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108)
      5. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      6. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      7. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      8. org.jboss.netty.handler.codec.http.HttpContentEncoder.messageReceived(HttpContentEncoder.java:82)
      9. org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
      10. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      11. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
      12. org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
      13. org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)
      14. org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)
      15. org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)
      16. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
      17. org.jboss.netty.handler.codec.http.HttpServerCodec.handleUpstream(HttpServerCodec.java:56)
      17 frames
    43. finagle-http
      SafeHttpServerCodec.handleUpstream
      1. com.twitter.finagle.http.SafeHttpServerCodec.handleUpstream(Codec.scala:123)
      1 frame
    44. Netty
      DeadLockProofWorker$1.run
      1. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
      2. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
      3. org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
      4. org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
      5. org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
      6. org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
      7. org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
      8. org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
      9. org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
      10. org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
      11. org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
      11 frames
    45. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    46. finagle-core
      ProxyThreadFactory$$anonfun$newProxiedRunnable$1$$anon$1.run
      1. com.twitter.finagle.util.ProxyThreadFactory$$anonfun$newProxiedRunnable$1$$anon$1.run(ProxyThreadFactory.scala:19)
      1 frame
    47. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame