2013-02-17 55 views
1

我跑戰術在終端
(1.2.5)的測試,並參觀本地主機/ @測試
該頁說播放測試nullpoint例外

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 
印刷
+0

好,看起來像是空指針異常,呵呵?那麼關於你的代碼試圖做什麼的更多細節呢? – 2013-02-18 03:11:52

+0

我什麼也沒做,只能運行測試,然後去chrome到localhost:9000/@ tests – jilen 2013-02-18 04:35:10

回答

1

最後,我發現如何獲得這個例外。因爲我有一個文件有兩個classes.like

Foo.java:

public class Foo {} 
class Bar{} 

然後我重寫酒吧類的嵌套類,每一件事情就行了! Thoung我不知道爲什麼,好像是由於一些eclipse java編譯器的bug