Skip to content

Instantly share code, notes, and snippets.

@edwelker
Last active April 11, 2017 16:14
Show Gist options
  • Save edwelker/33e60108d62613434680ec13aa265611 to your computer and use it in GitHub Desktop.
Save edwelker/33e60108d62613434680ec13aa265611 to your computer and use it in GitHub Desktop.
sbt "run -admin.port=:10008 -jvm-debug=:5005"
[info] Loading global plugins from /home/welkere/.sbt/0.13/plugins
[info] Loading project definition from /home/welkere/code/scala/projectwizard/project
[info] Updating projectwizard-build
[info] Resolved projectwizard-build dependencies
[info] Fetching artifacts of projectwizard-build
[info] Fetched artifacts of projectwizard-build
[info] Set current project to projectwizard (in build file:/home/welkere/code/scala/projectwizard/)
[info] Updating projectwizard
[info] Resolved projectwizard dependencies
[info] Fetching artifacts of projectwizard
[info] Fetched artifacts of projectwizard
[info] Running com.example.ExampleServerMain -admin.port=:10008 -jvm-debug=:5005
[error] Exception in thread "main" java.lang.AbstractMethodError: com.twitter.finagle.stats.MetricsStatsReceiver.com$twitter$finagle$stats$StatsReceiverWithCumulativeGauges$_setter_$com$twitter$finagle$stats$StatsReceiverWithCumulativeGauges$$gaugeFn_$eq(Ljava/util/function/Function;)V
[error] at com.twitter.finagle.stats.StatsReceiverWithCumulativeGauges$class.$init$(CumulativeGauge.scala:133)
[error] at com.twitter.finagle.stats.MetricsStatsReceiver.<init>(MetricsStatsReceiver.scala:174)
[error] at com.twitter.finagle.stats.MetricsStatsReceiver.<init>(MetricsStatsReceiver.scala:177)
[error] at com.twitter.finagle.stats.MetricsStatsReceiver.<init>(MetricsStatsReceiver.scala:178)
[error] at com.twitter.finagle.stats.MetricsStatsReceiver.<init>(MetricsStatsReceiver.scala:179)
[error] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[error] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[error] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[error] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[error] at java.lang.Class.newInstance(Class.java:442)
[error] at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:74)
[error] at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:63)
[error] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error] at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
[error] at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
[error] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
[error] at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
[error] at com.twitter.app.LoadService$.apply(LoadService.scala:63)
[error] at com.twitter.finagle.util.LoadService$.apply(LoadService.scala:14)
[error] at com.twitter.finagle.stats.LoadedStatsReceiver$.<init>(LoadedStatsReceiver.scala:18)
[error] at com.twitter.finagle.stats.LoadedStatsReceiver$.<clinit>(LoadedStatsReceiver.scala)
[error] at com.twitter.finagle.stats.FinagleStatsReceiver$.<init>(LoadedStatsReceiver.scala:37)
[error] at com.twitter.finagle.stats.FinagleStatsReceiver$.<clinit>(LoadedStatsReceiver.scala)
[error] at com.twitter.finagle.util.HashedWheelTimer$.<init>(HashedWheelTimer.scala:158)
[error] at com.twitter.finagle.util.HashedWheelTimer$.<clinit>(HashedWheelTimer.scala)
[error] at com.twitter.finagle.util.DefaultTimer$.<init>(HashedWheelTimer.scala:170)
[error] at com.twitter.finagle.util.DefaultTimer$.<clinit>(HashedWheelTimer.scala)
[error] at com.twitter.finagle.stats.JsonExporter.<init>(JsonExporter.scala:65)
[error] at com.twitter.finagle.stats.MetricsExporter.<init>(MetricsStatsReceiver.scala:318)
[error] at com.twitter.finagle.stats.MetricsExporter.<init>(MetricsStatsReceiver.scala:322)
[error] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[error] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[error] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[error] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[error] at java.lang.Class.newInstance(Class.java:442)
[error] at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:74)
[error] at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:63)
[error] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error] at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
[error] at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
[error] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
[error] at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
[error] at com.twitter.app.LoadService$.apply(LoadService.scala:63)
[error] at com.twitter.finagle.util.LoadService$.apply(LoadService.scala:14)
[error] at com.twitter.finagle.http.HttpMuxer$.<init>(HttpMuxer.scala:122)
[error] at com.twitter.finagle.http.HttpMuxer$.<clinit>(HttpMuxer.scala)
[error] at com.twitter.server.Lifecycle$class.$init$(Lifecycle.scala:12)
[error] at com.example.ExampleServer.<init>(ExampleServer.scala:10)
[error] at com.example.ExampleServerMain$.<init>(ExampleServer.scala:8)
[error] at com.example.ExampleServerMain$.<clinit>(ExampleServer.scala)
[error] at com.example.ExampleServerMain.main(ExampleServer.scala)
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) Nonzero exit code returned from runner: 1
[error] Total time: 3 s, completed Jan 24, 2017 3:49:45 PM
@LikeBareFoot
Copy link

+1. got VERY the same kind of error when define the endpoint:

val e = "product"::"v1"::"createBody"::stringBody
And got following question:
Exception in thread "main" java.lang.AbstractMethodError: com.twitter.finagle.stats.MetricsStatsReceiver.com$twitter$finagle$stats$StatsReceiverWithCumulativeGauges$setter$com$twitter$finagle$stats$StatsReceiverWithCumulativeGauges$$gaugeFn_$eq(Ljava/util/function/Function;)V
at com.twitter.finagle.stats.StatsReceiverWithCumulativeGauges$class.$init$(CumulativeGauge.scala:133)
at com.twitter.finagle.stats.MetricsStatsReceiver.(MetricsStatsReceiver.scala:175)
at com.twitter.finagle.stats.MetricsStatsReceiver.(MetricsStatsReceiver.scala:179)
at com.twitter.finagle.stats.MetricsStatsReceiver.(MetricsStatsReceiver.scala:180)
at com.twitter.finagle.stats.MetricsStatsReceiver.(MetricsStatsReceiver.scala:181)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:74)
at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:63)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
at com.twitter.app.LoadService$.apply(LoadService.scala:63)
at com.twitter.finagle.util.LoadService$.apply(LoadService.scala:14)
at com.twitter.finagle.stats.LoadedStatsReceiver$.(LoadedStatsReceiver.scala:18)
at com.twitter.finagle.stats.LoadedStatsReceiver$.(LoadedStatsReceiver.scala)
at com.twitter.finagle.stats.FinagleStatsReceiver$.(LoadedStatsReceiver.scala:37)
at com.twitter.finagle.stats.FinagleStatsReceiver$.(LoadedStatsReceiver.scala)
at com.twitter.finagle.util.HashedWheelTimer$.(HashedWheelTimer.scala:158)
at com.twitter.finagle.util.HashedWheelTimer$.(HashedWheelTimer.scala)
at com.twitter.finagle.util.DefaultTimer$.(HashedWheelTimer.scala:170)
at com.twitter.finagle.util.DefaultTimer$.(HashedWheelTimer.scala)
at com.twitter.finagle.stats.JsonExporter.(JsonExporter.scala:65)
at com.twitter.finagle.stats.MetricsExporter.(MetricsStatsReceiver.scala:334)
at com.twitter.finagle.stats.MetricsExporter.(MetricsStatsReceiver.scala:338)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:74)
at com.twitter.app.LoadService$$anonfun$5.apply(LoadService.scala:63)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
at com.twitter.app.LoadService$.apply(LoadService.scala:63)
at com.twitter.finagle.util.LoadService$.apply(LoadService.scala:14)
at com.twitter.finagle.http.HttpMuxer$.(HttpMuxer.scala:122)
at com.twitter.finagle.http.HttpMuxer$.(HttpMuxer.scala)
at com.twitter.server.Lifecycle$class.$init$(Lifecycle.scala:12)
at com.shichen.trail.finch.HelloFinch$.(HelloFinch.scala:22)
at com.shichen.trail.finch.HelloFinch$.(HelloFinch.scala)
at com.shichen.trail.finch.HelloFinch.main(HelloFinch.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

What did I miss here?

@LikeBareFoot
Copy link

Anybody knows what's wrong? Is it a known bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment