尝试运行Play应用程序时出现java.lang.ExceptionInInitializerError

时间:2013-12-02 16:37:09

标签: java linux scala playframework

我目前正在尝试建立一个scala + play框架开发环境。 我正在使用Open JDK和Java版本的Ubuntu LTS 12.04:

$ javac -version
javac 1.7.0_25

$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

我安装了最新的Play和Scala版本

$ play
play 2.2.1 built with Scala 2.10.2 (running Java 1.7.0_25), http://www.playframework.com

$ scala -version
Scala code runner version 2.10.3 -- Copyright 2002-2013, LAMP/EPFL

$ scalac -version
Scala compiler version 2.10.3 -- Copyright 2002-2013, LAMP/EPFL

当使用play运行scala测试应用程序时,我得到以下异常:

$ run
[info] Updating {file:/home/cornelius/hello/}hello...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.

java.lang.ExceptionInInitializerError
at scala.compat.Platform$.<init>(Platform.scala:112)
at scala.compat.Platform$.<clinit>(Platform.scala)
.
.
.
.
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.reflect.InvocationTargetException
[error] Total time: 4 s, completed 02.12.2013 17:32:43

任何人都可以帮我解决这个问题吗?

编辑1:这里是完整的堆栈跟踪,包括由部分引起的。检查http://jnotify.sourceforge.net/linux.htmlhttps://askubuntu.com/questions/148171/dropbox-error-echo-100000-sudo-tee-proc-sys-fs-inotify-max-user-watches帮助我解决了这个问题!

Caused by: net.contentobjects.jnotify.linux.JNotifyException_linux: Error watching /home/cornelius/hello/app : No space left on device
.
.
.
.
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

0 个答案:

没有答案