Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Last active December 11, 2015 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuwei-k/4529706 to your computer and use it in GitHub Desktop.
Save xuwei-k/4529706 to your computer and use it in GitHub Desktop.
libraryDependencies ++= Seq(
"net.databinder" %% "unfiltered-filter" % "0.6.5"
,"javax.servlet" % "servlet-api" % "2.5" % "provided"
,"org.eclipse.jetty" % "jetty-webapp" % "7.6.8.v20121106"
)
scalaVersion := "2.10.0"
[error] (run-main) java.lang.VerifyError: (class: Server, method: <init> signature: ()V) Expecting to find object/array on stack
java.lang.VerifyError: (class: Server, method: <init> signature: ()V) Expecting to find object/array on stack
at Main$.<init>(Main.scala:4)
at Main$.<clinit>(Main.scala)
at Main.main(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
[trace] Stack trace suppressed: run last compile:run for the full output.
java.lang.RuntimeException: Nonzero exit code: 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: 1
import unfiltered.response._
object Main extends App{
new Server
}
class Server extends unfiltered.filter.Planify({
case _ => ResponseString("hello")
})
import unfiltered.response._
object Main extends App{
new Server
}
class Server extends unfiltered.filter.Plan{
def intent = {
case _ => ResponseString("hello")
}
}
@bungeebuild
Copy link

I have the same problem, did you find a solution?

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