can't open JPA console since 12.0.3
the JPA console used to work fine in 12.0.2, now i can no longer open it, the log shows this error:
2013-02-04 17:19:21,626 [ 90306] ERROR - pplication.impl.LaterInvocator - Argument 0 for @NotNull parameter of com/intellij/openapi/roots/impl/ProjectFileIndexImpl.getModuleForFile must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/roots/impl/ProjectFileIndexImpl.getModuleForFile must not be null
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getModuleForFile(ProjectFileIndexImpl.java)
at com.intellij.jpa.util.JpaUtil.isHibernateProvider(JpaUtil.java:710)
at com.intellij.jpa.JpaQueryLanguageSubstitutor.getLanguage(JpaQueryLanguageSubstitutor.java:65)
at com.intellij.psi.LanguageSubstitutors.substituteLanguage(LanguageSubstitutors.java:37)
at com.intellij.psi.impl.file.impl.FileManagerImpl.b(FileManagerImpl.java:202)
at com.intellij.psi.impl.file.impl.FileManagerImpl.createFileViewProvider(FileManagerImpl.java:188)
at com.intellij.psi.impl.file.impl.FileManagerImpl.findViewProvider(FileManagerImpl.java:150)
at com.intellij.psi.impl.file.impl.FileManagerImpl.findFile(FileManagerImpl.java:320)
at com.intellij.psi.impl.PsiManagerImpl.findFile(PsiManagerImpl.java:181)
at com.intellij.execution.console.LanguageConsoleImpl.d(LanguageConsoleImpl.java:737)
at com.intellij.execution.console.LanguageConsoleImpl.<init>(LanguageConsoleImpl.java:141)
at com.intellij.execution.console.LanguageConsoleImpl.<init>(LanguageConsoleImpl.java:131)
at com.intellij.execution.console.LanguageConsoleImpl.<init>(LanguageConsoleImpl.java:127)
at com.intellij.persistence.run.AbstractQueryLanguageConsole.<init>(AbstractQueryLanguageConsole.java:85)
at com.intellij.jpa.engine.JpaConsoleBase.<init>(JpaConsoleBase.java:61)
at com.intellij.jpa.engine.JpaConsole.<init>(JpaConsole.java:36)
at com.intellij.jpa.JpaConsoleProvider$MyRunner.runInner(JpaConsoleProvider.java:241)
at com.intellij.jpa.JpaConsoleProvider$MyRunner.run(JpaConsoleProvider.java:225)
at com.intellij.persistence.intentions.RunQueryInConsoleIntentionAction$2$1.run(RunQueryInConsoleIntentionAction.java:137)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
请先登录再写评论。
also get this error when trying to edit JPQL fragments:
java.lang.NullPointerException
at com.intellij.openapi.fileEditor.impl.EditorComposite.a(EditorComposite.java:195)
at com.intellij.openapi.fileEditor.impl.EditorComposite.<init>(EditorComposite.java:144)
at com.intellij.openapi.fileEditor.impl.EditorWithProviderComposite.<init>(EditorWithProviderComposite.java:42)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:762)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:688)
at com.intellij.openapi.fileEditor.impl.EditorWindow.split(EditorWindow.java:745)
at com.intellij.codeInsight.intention.impl.QuickEditHandler.navigate(QuickEditHandler.java:187)
at com.intellij.codeInsight.intention.impl.QuickEditAction.invoke(QuickEditAction.java:93)
at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.invoke(IntentionActionWrapper.java:61)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$2.run(ShowIntentionActionsHandler.java:164)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:122)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:83)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseActionAndInvoke(ShowIntentionActionsHandler.java:183)
at com.intellij.codeInsight.intention.impl.IntentionListStep$2$1.run(IntentionListStep.java:242)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
We are also observing issues with JPA in 12. The JPA facet never initializes in our Maven project. Works fine in the 11 branch but has never worked in 12. The one oddity in our project is some of the modules have spring context files defined that import other spring context files via the classpath at runtime. IntelliJ cannot resolve them statically b/c they are bundled in the EAR at build time and the modules where the imported files are located are not defined as dependencies for the modules with spring context files that import them. We finally just disabled the facet until the issue is addressed. I have an issue opened in the issue tracker but it's not getting much traction b/c I can't reproduce the error with a simple test project.
http://youtrack.jetbrains.com/issue/IDEA-100410
i've had to revert to 12.0.2 :(. any idea when 12.0.4 will release? i also raised http://youtrack.jetbrains.com/issue/IDEA-100516