【发布时间】:2013-02-17 14:50:13
【问题描述】:
我在终端运行 play(1.2.5) 测试
并访问 localhost/@tests
那个页面说
Oops: NullPointerException
An unexpected error occured caused by exception NullPointerException:
null
然后在终端打印以下错误堆栈
Internal Server Error (500) for request GET /@tests
Oops: NullPointerException
An unexpected error occured caused by exception NullPointerException: null
play.exceptions.UnexpectedException: Unexpected Error
at play.Play.start(Play.java:556)
at play.Play.detectChanges(Play.java:642)
at play.Invoker$Invocation.init(Invoker.java:198)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NullPointerException
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:266)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:478)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:426)
at play.Play.start(Play.java:516)
... 3 more
【问题讨论】:
-
好吧,看起来像一个空指针异常,对吧?关于你的代码试图做什么的更多细节怎么样?
-
我什么也没做,只是运行了游戏测试,然后转到 chrome 到 localhost:9000/@tests
标签: playframework playframework-1.x