2012-02-06 11 views
2

私はここ数日間プレイフレームワークを実行していて、デバッグモードを試してみることにしました。私は単純にplay eclipsifyを実行し、Javaプロジェクトをリフレッシュしてから、playtmp.launchを右クリックして実行し、次に「JPDAを起動に接続する」とデバッグを行い、デバッガを接続しました(ただし、playtmpの 'y' .launch)。playframeworkデバッグモードDuplicateMemberException

注:私が立ち上げるたびに、「プロジェクトにはエラーがあります」が表示されますが、「問題」タブにエラーはありません。

sooo、私は最初のページをヒットし、私は以下の例外を受け取ります:(:( (私がこれを実行したのは、私がlibフォルダのプレイジャーをスタックしていたためです。そこalreadの外に移動し、それがplay.bat実行で動作します)

06:24:49,376 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ... 
06:26:09,738 ERROR ~ 

@69ageogm6 
Internal Server Error (500) for request GET /register 

Oops: UnexpectedException 
An unexpected error occured caused by exception UnexpectedException: While applying class play.classloading.enhancers.LocalvariablesNamesEnhancer on controllers.Admin 

play.exceptions.UnexpectedException: While applying [email protected] on controllers.Admin 
    at play.plugins.PluginCollection.enhance(PluginCollection.java:511) 
    at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:235) 
    at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:165) 
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:429) 
    at play.Play.start(Play.java:505) 
    at play.Play.detectChanges(Play.java:618) 
    at play.Invoker$Invocation.init(Invoker.java:198) 
    at Invocation.HTTP Request(Play!) 
Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.LocalvariablesNamesEnhancer on controllers.Admin 
    at play.CorePlugin.enhance(CorePlugin.java:302) 
    at play.plugins.PluginCollection.enhance(PluginCollection.java:506) 
    ... 7 more 
Caused by: javassist.bytecode.DuplicateMemberException: duplicate field: $home0 
    at javassist.bytecode.ClassFile.testExistingField(ClassFile.java:529) 
    at javassist.bytecode.ClassFile.addField(ClassFile.java:515) 
    at javassist.CtClassType.addField(CtClassType.java:1164) 
    at javassist.CtClass.addField(CtClass.java:878) 
    at play.classloading.enhancers.LocalvariablesNamesEnhancer.enhanceThisClass(LocalvariablesNamesEnhancer.java:180) 
    at play.CorePlugin.enhance(CorePlugin.java:297) 
    ... 8 more 
06:26:09,741 ERROR ~ 

@69ageogm7 
Error during the 500 response generation 

Template not found 
The template errors/500.html does not exist. 

play.exceptions.TemplateNotFoundException: Template not found : errors/500.html 
    at play.templates.TemplateLoader.load(TemplateLoader.java:192) 
    at play.server.PlayHandler.serve500(PlayHandler.java:783) 
    at Invocation.HTTP Request(Play!) 
06:26:10,195 ERROR ~ 

@69ageogm8 
Internal Server Error (500) for request GET /favicon.ico 

Template not found 
The template errors/404.html does not exist. 

play.exceptions.TemplateNotFoundException: Template not found : errors/404.html 
    at play.templates.TemplateLoader.load(TemplateLoader.java:192) 
    at play.server.PlayHandler.serve404(PlayHandler.java:690) 
    at Invocation.HTTP Request(Play!) 
06:26:10,196 ERROR ~ 

@69ageogm9 
Error during the 500 response generation 

Template not found 
The template errors/500.html does not exist. 

play.exceptions.TemplateNotFoundException: Template not found : errors/500.html 
    at play.templates.TemplateLoader.load(TemplateLoader.java:192) 
    at play.server.PlayHandler.serve500(PlayHandler.java:783) 
    at Invocation.HTTP Request(Play!) 

答えて

3

ANSWER:私の起動ファイルには、別のプロジェクトを使用していたので、私のプロジェクトは、premonitionxと改名し、CVSにチェックインしている間にplaytmp.launchましたEclipseはplaytmpと呼ばれています。ランチャーは特定のプロジェクトでのみ動作します。名前を変更すると、そのような環境が嫌いになります。