Error when trying to access the Persistence tool window

I've hit the same problem in the last two EAP releases when trying to open our project. It's tied to the Persistence tool window from what we can tell.

java.lang.AssertionError: No xml for dom documentManagementService; attr=XmlTag:bean, physical=true: java.lang.AssertionError: No xml for dom documentManagementService; attr=XmlTag:bean, physical=true
java.lang.RuntimeException: java.lang.AssertionError: No xml for dom documentManagementService; attr=XmlTag:bean, physical=true
 at com.intellij.ide.util.treeView.AbstractTreeUi$57$1.run(AbstractTreeUi.java:3415)
 at com.intellij.ide.util.treeView.AbstractTreeBuilder$2.run(AbstractTreeBuilder.java:456)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:935)
 at com.intellij.ide.util.treeView.AbstractTreeBuilder.runBackgroundLoading(AbstractTreeBuilder.java:453)
 at com.intellij.ide.util.treeView.AbstractTreeUi$57.run(AbstractTreeUi.java:3370)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:191)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:181)
 at com.intellij.ide.util.treeView.AbstractTreeUi$58.run(AbstractTreeUi.java:3432)
 at com.intellij.util.concurrency.WorkerThread.run(WorkerThread.java:108)
 at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:465)
 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:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)
Caused by: java.lang.AssertionError: No xml for dom documentManagementService; attr=XmlTag:bean, physical=true
 at com.intellij.util.xml.DomUtil.checkHasXml(DomUtil.java:268)
 at com.intellij.util.xml.DomUtil.getDefinedChildren(DomUtil.java:257)
 at com.intellij.spring.aop.SpringAopProvider.addAopAspects(SpringAopProvider.java:70)
 at com.intellij.spring.aop.SpringAopProvider$1.compute(SpringAopProvider.java:58)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
 at com.intellij.spring.aop.SpringAopProvider.getAdditionalAspects(SpringAopProvider.java:66)
 at com.intellij.aop.jam.AopJavaAnnotator.collectAspects(AopJavaAnnotator.java:256)
 at com.intellij.aop.jam.AopJavaAnnotator.access$100(AopJavaAnnotator.java:43)
 at com.intellij.aop.jam.AopJavaAnnotator$5.compute(AopJavaAnnotator.java:246)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
 at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:81)
 at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:94)
 at com.intellij.aop.jam.AopJavaAnnotator.getAspects(AopJavaAnnotator.java:241)
 at com.intellij.aop.jam.AopJavaAnnotator.calcBoundIntroductions(AopJavaAnnotator.java:228)
 at com.intellij.aop.jam.AopJavaAnnotator.access$000(AopJavaAnnotator.java:43)
 at com.intellij.aop.jam.AopJavaAnnotator$4.compute(AopJavaAnnotator.java:216)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
 at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:81)
 at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:94)
 at com.intellij.aop.jam.AopJavaAnnotator.getBoundIntroductions(AopJavaAnnotator.java:214)
 at com.intellij.spring.aop.SpringAopEffectiveTypesProvider$1.compute(SpringAopEffectiveTypesProvider.java:25)
 at com.intellij.spring.aop.SpringAopEffectiveTypesProvider$1.compute(SpringAopEffectiveTypesProvider.java:20)
 at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
 at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
 at com.intellij.spring.aop.SpringAopEffectiveTypesProvider.processEffectiveTypes(SpringAopEffectiveTypesProvider.java:20)
 at com.intellij.spring.model.utils.SpringBeanUtils.getEffectiveBeanTypes(SpringBeanUtils.java:255)
 at com.intellij.spring.model.xml.beans.SpringBaseBeanPointer$2.compute(SpringBaseBeanPointer.java:31)
 at com.intellij.spring.model.xml.beans.SpringBaseBeanPointer$2.compute(SpringBaseBeanPointer.java:28)
 at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
 at com.intellij.spring.model.xml.beans.SpringBaseBeanPointer.getEffectiveBeanType(SpringBaseBeanPointer.java:45)
 at com.intellij.spring.contexts.model.CachedLocalModel$3.create(CachedLocalModel.java:62)
 at com.intellij.spring.contexts.model.CachedLocalModel$3.create(CachedLocalModel.java:56)
 at com.intellij.util.containers.FactoryMap.get(FactoryMap.java:50)
 at com.intellij.spring.contexts.model.CachedLocalModel.findBeansByEffectivePsiClassWithInheritance(CachedLocalModel.java:212)
 at com.intellij.spring.contexts.model.SpringModel.findBeansByEffectivePsiClassWithInheritance(SpringModel.java:152)
 at com.intellij.spring.contexts.model.SpringModel.findBeansByEffectivePsiClassWithInheritance(SpringModel.java:152)
 at com.intellij.spring.persistence.integration.SpringEntityManagerFactoryProvider$1.compute(SpringEntityManagerFactoryProvider.java:58)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
 at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:81)
 at com.intellij.spring.persistence.integration.SpringEntityManagerFactoryProvider.getPersistencePackages(SpringEntityManagerFactoryProvider.java:44)
 at com.intellij.jpa.facet.JpaFacetImpl$2.fun(JpaFacetImpl.java:162)
 at com.intellij.jpa.facet.JpaFacetImpl$2.fun(JpaFacetImpl.java:160)
 at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1015)
 at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:921)
 at com.intellij.jpa.facet.JpaFacetImpl.getExtensionPersistenceUnits(JpaFacetImpl.java:159)
 at com.intellij.jpa.facet.JpaFacetImpl.getPersistenceUnits(JpaFacetImpl.java:153)
 at com.intellij.jpa.view.nodes.PersistenceFacetNodeDescriptor.getChildrenDescriptors(PersistenceFacetNodeDescriptor.java:79)
 at com.intellij.jpa.view.nodes.PersistenceFacetNodeDescriptor.getChildren(PersistenceFacetNodeDescriptor.java:89)
 at com.intellij.jpa.view.nodes.PersistenceFacetNodeDescriptor.getChildren(PersistenceFacetNodeDescriptor.java:27)
 at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:25)
 at com.intellij.ide.util.treeView.AbstractTreeUi$31.run(AbstractTreeUi.java:1618)
 at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1824)
 at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1615)
 at com.intellij.ide.util.treeView.AbstractTreeUi.access$4600(AbstractTreeUi.java:60)
 at com.intellij.ide.util.treeView.AbstractTreeUi$46.run(AbstractTreeUi.java:2702)
 at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1824)
 at com.intellij.ide.util.treeView.AbstractTreeUi.access$2400(AbstractTreeUi.java:60)
 at com.intellij.ide.util.treeView.AbstractTreeUi$57$1.run(AbstractTreeUi.java:3379)
 ... 17 more

3 comments
Comment actions Permalink

Looks like my earlier error is coming from the spring support plugin. I'm having another issue with the persistence tool window. I'm able to create a data source and query using the sql console but the persistence tool window is unusable. I created the necessary JPA facet but when I open the persistence tool window the name of the persistence unit is visible with a spinner that never disappears. If I try to open a JPA console or assign the data source to the persistence unit nothing happens, just the spinner. I tested it under mac os x lion and a windows 7 vm. The behavior was the same in the EAP. The same project configures correctly in 11.1.4.

Grant

0
Comment actions Permalink

After some more investigation I think the Persistence tool window is misbehaving b/c of the Spring plugin. Part of our persistence configuration is loaded from Spring and I'm guessing the Spring plugin is choking on it for some reason. I can't be sure but I'm observing the issue in Windows and Mac with the same project (about 50 Maven modules and 10,000 files).

0
Comment actions Permalink

The problem persists in the latest EAP so I created an issue for it in the issue tracker.

http://youtrack.jetbrains.com/issue/IDEA-96563

0

Please sign in to leave a comment.