2016-07-14 66 views
0

我第一次使用播放框架,在Ubuntu 14上,與現有的項目。當我嘗試運行應用程序時,出現以下錯誤:播放框架:意外的異常:在應用類play.classloading.enhancers.LVEnhancer

Internal Server Error (500) for request GET/

Oops: UnexpectedException 
Unexpected error : While applying [email protected] on models.BookingDTO, caused by exception UnexpectedException: While applying class play.classloading.enhancers.LVEnhancer on models.BookingDTO 

play.exceptions.UnexpectedException: While applying [email protected] on models.BookingDTO 
    at play.plugins.PluginCollection.enhance(PluginCollection.java:582) 
    at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:242) 
    at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:164) 
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:431) 
    at play.Play.start(Play.java:527) 
    at play.Play.detectChanges(Play.java:647) 
    at play.Invoker$Invocation.init(Invoker.java:205) 
    at Invocation.HTTP Request(Play!) 
Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.LVEnhancer on models.BookingDTO 
    at play.CorePlugin.enhance(CorePlugin.java:314) 
    at play.plugins.PluginCollection.enhance(PluginCollection.java:577) 
    ... 7 more 
Caused by: play.exceptions.UnexpectedException: LVEnhancer: cannot enhance the behavior 'models.BookingDTO.findAllNextBookings(java.lang.String)' 
    at play.classloading.enhancers.LVEnhancer.enhanceThisClass(LVEnhancer.java:112) 
    at play.CorePlugin.enhance(CorePlugin.java:309) 
    ... 8 more 
Caused by: java.lang.NullPointerException 
    at bytecodeparser.CodeParser.parse(CodeParser.java:53) 
    at bytecodeparser.analysis.stack.StackAnalyzer.init(StackAnalyzer.java:91) 

怎麼回事?

+0

你得到一個NullPointerException;)但是我們認真的需要更多的信息。你在跑什麼節目?你嘗試過調試嗎? – Kris

回答

0

非常感謝您的回答。

我找到了解決方案:我沒有javassist版本沒有與項目文件相匹配。

隨着Playframework 1.3,javassist-3.20xxx不起作用。我不得不安裝javassist-3.19xxx