Playframework 播放测试零点异常

Playframework 播放测试零点异常,playframework,playframework-1.x,Playframework,Playframework 1.x,我在终端中运行播放(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 unex

我在终端中运行播放(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

最后,我发现了如何处理这个异常。因为我有一个包含两个类的文件

Foo.java:

public class Foo {}
class Bar{}
然后我将Bar类重写为嵌套类,一切正常!
虽然我不知道为什么,似乎是由于eclipse java编译器的一些bug造成的,看起来像是一个空指针异常,是吗?关于你的代码试图做什么的更多细节如何?我什么也没做,只是运行play test,然后转到chrome to localhost:9000/@tests