Problems creating Play2 Java module in latest EAP
I'm observing problems trying to create a Play2 Java module from the IDE using the latest EAP. I'm on OS X running latest 1.6 JDK. I've had success creating a Play2 Scala module but no luck with the Java option. I'm observing similar behavior when importing a project created from the command line. I can open the Scala version of the project in IntelliJ and it appears okay but trying to open the Java version reports errors in Application class.
2013-04-01 09:59:09,949 [ 57720] WARN - il.projectWizard.ModuleBuilder - java.lang.NoSuchMethodError: com.intellij.tools.Tool.execute(Lcom/intellij/openapi/actionSystem/AnActionEvent;Lcom/intellij/openapi/actionSystem/DataContext;J)V
java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.intellij.tools.Tool.execute(Lcom/intellij/openapi/actionSystem/AnActionEvent;Lcom/intellij/openapi/actionSystem/DataContext;J)V
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.runPlay2ModuleCreator(Play2ModuleBuilder.scala:285)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.createModule(Play2ModuleBuilder.scala:119)
at com.intellij.ide.util.projectWizard.ModuleBuilder.createAndCommitIfNeeded(ModuleBuilder.java:246)
at com.intellij.ide.util.projectWizard.ModuleBuilder$3.compute(ModuleBuilder.java:301)
at com.intellij.ide.util.projectWizard.ModuleBuilder$3.compute(ModuleBuilder.java:298)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1035)
at com.intellij.ide.util.projectWizard.ModuleBuilder.commitModule(ModuleBuilder.java:298)
at com.intellij.ide.util.projectWizard.ModuleBuilder.commit(ModuleBuilder.java:284)
at com.intellij.ide.impl.NewProjectUtil.a(NewProjectUtil.java:171)
at com.intellij.ide.impl.NewProjectUtil.createFromWizard(NewProjectUtil.java:86)
at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:81)
at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:26)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:151)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:169)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:132)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
at java.awt.Component.processEvent(Component.java:6147)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4744)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:669)
at java.awt.EventQueue$2.run(EventQueue.java:667)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:683)
at java.awt.EventQueue$3.run(EventQueue.java:681)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:686)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:507)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:334)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NoSuchMethodError: com.intellij.tools.Tool.execute(Lcom/intellij/openapi/actionSystem/AnActionEvent;Lcom/intellij/openapi/actionSystem/DataContext;J)V
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder$$anonfun$com$intellij$scala$play$projectTemplate$Play2ModuleBuilder$$executeChain$1$1.apply(Play2ModuleBuilder.scala:211)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder$$anonfun$com$intellij$scala$play$projectTemplate$Play2ModuleBuilder$$executeChain$1$1.apply(Play2ModuleBuilder.scala:210)
at scala.collection.immutable.List.foreach(List.scala:309)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.com$intellij$scala$play$projectTemplate$Play2ModuleBuilder$$executeChain$1(Play2ModuleBuilder.scala:209)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder$$anonfun$3.apply(Play2ModuleBuilder.scala:270)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder$$anonfun$3.apply(Play2ModuleBuilder.scala:270)
at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder$$anon$6.run(Play2ModuleBuilder.scala:203)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
Please sign in to leave a comment.
Most probably it was caused by incompatible play 2 plugin version, it should work with idea 12.1+ and play 2 plugin 2.39+