java.lang.IllegalStateException: attempt to put another node with same key: r:7aa906c5-dde5-482d-905d-b76b3b3df5ae(NewSolution1.mmm)#4375728174399655810

YouTrack | 3 months ago
  1. 0

    Migration assistant tries to start immediately after refactoring

    YouTrack | 3 months ago
    java.lang.IllegalStateException: attempt to put another node with same key: r:7aa906c5-dde5-482d-905d-b76b3b3df5ae(NewSolution1.mmm)#4375728174399655810
  2. 0

    Hi Atlassian, I have noticed in catalina.out a flood of errors like these {code} Error getting plugins java.lang.IllegalStateException: Multiple plugins with the same key and version:com.atlassian.jira.ext.charting 2 at com.atlassian.jira.startup.PluginComparator.compare(PluginComparator.java:28) at com.atlassian.jira.startup.PluginComparator.compare(PluginComparator.java:7) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at com.atlassian.jira.util.system.ExtendedSystemInfoUtilsImpl.getPlugins(ExtendedSystemInfoUtilsImpl.java:643) at org.apache.jsp._500page_jsp._jspService(_500page_jsp.java:1195) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) {code} Likely this is thrown when an error 500 occurs but this is not the problem. The problem is that ExtendedSystemInfoUtilsImpl.getPlugins() throws an IllegalStateException when run on JDK 1.7.0_13 but not on JDK 1.6.0_39. Since we need to switch to JDK 1.7 this bug has very high priority for us to be fixed. The problem likely lies in the different behaviour of JRE 6 and 7 when adding elements to an empty TreeSet. The problem can be reproduced with the following code in the Groovy Script Runner {code} import com.atlassian.jira.util.system.ExtendedSystemInfoUtils import com.atlassian.jira.util.system.ExtendedSystemInfoUtilsImpl; import com.atlassian.jira.web.bean.I18nBean import com.atlassian.plugin.Plugin ExtendedSystemInfoUtils extendedSystemInfoUtils = new ExtendedSystemInfoUtilsImpl(new I18nBean(Locale.ENGLISH)); Collection<Plugin> plugins = extendedSystemInfoUtils.getPlugins() {code} I'm not sure if this behaviour came with JDK 1.7.0_13 or has been in JDK 1.7 since the beginning. Regards, Dieter h3. Workaround Move JIRA over to Java 6. Please note as per our [Supported Platforms|http://confluence.atlassian.com/display/JIRA/Supported+Platforms] Java 6 is not supported in JIRA 6. # Install Java 6 JRE/JDK. # Stop JIRA. # Change the {{$JAVA_HOME}} to point to the Java 6 JRE/JDK. # Clear our the plugin cache, as it is Java version dependent (starting up will cause failures if we don't clear it). To do so, remove the following directories: {noformat} $JIRA_HOME/plugins/.bundled_plugins $JIRA_HOME/plugins/.osgi_plugins {noformat} (i) These are temporary files and folders and will be recreated when JIRA starts. # Start JIRA. # Test you can create a Support Email.

    Atlassian JIRA | 4 years ago | Dieter Greiner
    java.lang.IllegalStateException: Multiple plugins with the same key and version:com.atlassian.jira.ext.charting 2
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hi Atlassian, I have noticed in catalina.out a flood of errors like these {code} Error getting plugins java.lang.IllegalStateException: Multiple plugins with the same key and version:com.atlassian.jira.ext.charting 2 at com.atlassian.jira.startup.PluginComparator.compare(PluginComparator.java:28) at com.atlassian.jira.startup.PluginComparator.compare(PluginComparator.java:7) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at com.atlassian.jira.util.system.ExtendedSystemInfoUtilsImpl.getPlugins(ExtendedSystemInfoUtilsImpl.java:643) at org.apache.jsp._500page_jsp._jspService(_500page_jsp.java:1195) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) {code} Likely this is thrown when an error 500 occurs but this is not the problem. The problem is that ExtendedSystemInfoUtilsImpl.getPlugins() throws an IllegalStateException when run on JDK 1.7.0_13 but not on JDK 1.6.0_39. Since we need to switch to JDK 1.7 this bug has very high priority for us to be fixed. The problem likely lies in the different behaviour of JRE 6 and 7 when adding elements to an empty TreeSet. The problem can be reproduced with the following code in the Groovy Script Runner {code} import com.atlassian.jira.util.system.ExtendedSystemInfoUtils import com.atlassian.jira.util.system.ExtendedSystemInfoUtilsImpl; import com.atlassian.jira.web.bean.I18nBean import com.atlassian.plugin.Plugin ExtendedSystemInfoUtils extendedSystemInfoUtils = new ExtendedSystemInfoUtilsImpl(new I18nBean(Locale.ENGLISH)); Collection<Plugin> plugins = extendedSystemInfoUtils.getPlugins() {code} I'm not sure if this behaviour came with JDK 1.7.0_13 or has been in JDK 1.7 since the beginning. Regards, Dieter h3. Workaround Move JIRA over to Java 6. Please note as per our [Supported Platforms|http://confluence.atlassian.com/display/JIRA/Supported+Platforms] Java 6 is not supported in JIRA 6. # Install Java 6 JRE/JDK. # Stop JIRA. # Change the {{$JAVA_HOME}} to point to the Java 6 JRE/JDK. # Clear our the plugin cache, as it is Java version dependent (starting up will cause failures if we don't clear it). To do so, remove the following directories: {noformat} $JIRA_HOME/plugins/.bundled_plugins $JIRA_HOME/plugins/.osgi_plugins {noformat} (i) These are temporary files and folders and will be recreated when JIRA starts. # Start JIRA. # Test you can create a Support Email.

    Atlassian JIRA | 4 years ago | Dieter Greiner
    java.lang.IllegalStateException: Multiple plugins with the same key and version:com.atlassian.jira.ext.charting 2

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      attempt to put another node with same key: r:7aa906c5-dde5-482d-905d-b76b3b3df5ae(NewSolution1.mmm)#4375728174399655810

      at jetbrains.mps.smodel.references.UnregisteredNodes.add()
    2. jetbrains.mps.smodel
      UnregisteredNodes.put
      1. jetbrains.mps.smodel.references.UnregisteredNodes.add(UnregisteredNodes.java:116)
      2. jetbrains.mps.smodel.references.UnregisteredNodes.put(UnregisteredNodes.java:87)
      2 frames
    3. JetBrains mps
      SNode.delete
      1. jetbrains.mps.smodel.AttachedNodeOwner.unregisterNode(AttachedNodeOwner.java:103)
      2. jetbrains.mps.smodel.SNode.detach(SNode.java:451)
      3. jetbrains.mps.smodel.SModel.removeRootNode(SModel.java:204)
      4. jetbrains.mps.smodel.SNode.delete(SNode.java:205)
      4 frames
    4. org.jetbrains.mps
      SNodeUtil.replaceWithAnother
      1. org.jetbrains.mps.openapi.model.SNodeUtil.replaceWithAnother(SNodeUtil.java:77)
      1 frame
    5. jetbrains.mps.lang
      SNodeOperations.replaceWithAnother
      1. jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations.replaceWithAnother(SNodeOperations.java:489)
      1 frame
    6. JetBrains mps
      RefactoringRuntime.replaceWithNewConcept
      1. jetbrains.mps.lang.structure.plugin.RefactoringRuntime.replaceWithNewConcept(RefactoringRuntime.java:115)
      1 frame
    7. jetbrains.mps.lang
      UpdateLocalInstancesParticipant$1$1$1.run
      1. jetbrains.mps.lang.structure.pluginSolution.plugin.MoveAbstractConceptSpecialization.doReplaceInstance(MoveAbstractConceptSpecialization.java:81)
      2. jetbrains.mps.lang.structure.pluginSolution.plugin.MoveAbstractConceptSpecialization.doReplaceInstance(MoveAbstractConceptSpecialization.java:36)
      3. jetbrains.mps.lang.structure.pluginSolution.plugin.UpdateLocalInstancesParticipant$1$1$1.run(UpdateLocalInstancesParticipant.java:109)
      3 frames
    8. jetbrains.mps.refactoring
      RefactoringSessionImpl.performAllRegistered
      1. jetbrains.mps.refactoring.participant.RefactoringSessionImpl.performAllRegistered(RefactoringSessionImpl.java:35)
      1 frame
    9. jetbrains.mps.ide
      RefactoringProcessor$RefactoringUIImpl$1$1.run
      1. jetbrains.mps.ide.platform.actions.core.RefactoringProcessor$RefactoringUIImpl$1$1.run(RefactoringProcessor.java:120)
      1 frame
    10. JetBrains mps
      WorkbenchModelAccess$3.run
      1. jetbrains.mps.smodel.WorkbenchModelAccess$CommandRunnable$1.run(WorkbenchModelAccess.java:632)
      2. jetbrains.mps.smodel.WriteActionDispatcher.run(WriteActionDispatcher.java:39)
      3. jetbrains.mps.smodel.WorkbenchModelAccess$3.run(WorkbenchModelAccess.java:136)
      3 frames
    11. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:905)
      1 frame
    12. JetBrains mps
      WorkbenchModelAccess$CommandRunnable.run
      1. jetbrains.mps.smodel.WorkbenchModelAccess.runWriteAction(WorkbenchModelAccess.java:145)
      2. jetbrains.mps.smodel.WorkbenchModelAccess$CommandRunnable.run(WorkbenchModelAccess.java:627)
      2 frames
    13. IDEA
      CoreCommandProcessor.executeCommand
      1. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)
      2. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:100)
      2 frames
    14. JetBrains mps
      ProjectModelAccess.executeCommand
      1. jetbrains.mps.smodel.WorkbenchModelAccess.runWriteActionInCommand(WorkbenchModelAccess.java:440)
      2. jetbrains.mps.smodel.WorkbenchModelAccess.executeCommand(WorkbenchModelAccess.java:403)
      3. jetbrains.mps.project.ProjectModelAccess.executeCommand(ProjectModelAccess.java:43)
      3 frames
    15. jetbrains.mps.ide
      RefactoringProcessor$RefactoringUIImpl$1.performAction
      1. jetbrains.mps.ide.platform.actions.core.RefactoringProcessor$RefactoringUIImpl$1.performAction(RefactoringProcessor.java:113)
      1 frame
    16. JetBrains mps
      RefactoringViewItemImpl$2.actionPerformed
      1. jetbrains.mps.ide.refactoring.RefactoringViewItemImpl.doRefactor(RefactoringViewItemImpl.java:115)
      2. jetbrains.mps.ide.refactoring.RefactoringViewItemImpl.access$000(RefactoringViewItemImpl.java:36)
      3. jetbrains.mps.ide.refactoring.RefactoringViewItemImpl$2.actionPerformed(RefactoringViewItemImpl.java:81)
      3 frames
    17. Java RT
      EventQueue.dispatchEvent
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.Component.processMouseEvent(Component.java:6535)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      8. java.awt.Component.processEvent(Component.java:6300)
      9. java.awt.Container.processEvent(Container.java:2236)
      10. java.awt.Component.dispatchEventImpl(Component.java:4891)
      11. java.awt.Container.dispatchEventImpl(Container.java:2294)
      12. java.awt.Component.dispatchEvent(Component.java:4713)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      16. java.awt.Container.dispatchEventImpl(Container.java:2280)
      17. java.awt.Window.dispatchEventImpl(Window.java:2750)
      18. java.awt.Component.dispatchEvent(Component.java:4713)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      20. java.awt.EventQueue.access$500(EventQueue.java:97)
      21. java.awt.EventQueue$3.run(EventQueue.java:709)
      22. java.awt.EventQueue$3.run(EventQueue.java:703)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      26. java.awt.EventQueue$4.run(EventQueue.java:731)
      27. java.awt.EventQueue$4.run(EventQueue.java:729)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      30 frames
    18. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:695)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      3 frames
    19. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames