java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class

Atlassian JIRA | Sanne Grinovero | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I downloaded atlassian-jira-enterprise-4.2-m6-source.tar.gz, decompressed, switched to /jira subdirectory and run {code} "maven -Dmaven.test.skip=false"{code} The build fails because of bq. loader constraints violated when linking org/w3c/dom/Node class A search on JIRA reveals CONF-10088, seems a similar error. Follows the report from a single test, but there are *many* failing in a similar way: {noformat}Testsuite: com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155 Tests run: 6, Failures: 0, Errors: 2, Time elapsed: 0.257 sec Testcase: testDoUpgrade(com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155): Caused an ERROR loader constraints violated when linking org/w3c/dom/Node class java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:70) at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:41) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.getJiraWorkflow(MockJiraWorkflow.java:53) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.<init>(MockJiraWorkflow.java:24) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155._testDoUpgrade(TestUpgradeTask_Build155.java:204) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155.testDoUpgrade(TestUpgradeTask_Build155.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Testcase: testDoUpgradeWorksWhenCalledMultipleTimes(com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155): Caused an ERROR loader constraints violated when linking org/w3c/dom/Node class java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:70) at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:41) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.getJiraWorkflow(MockJiraWorkflow.java:53) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.<init>(MockJiraWorkflow.java:24) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155._testDoUpgrade(TestUpgradeTask_Build155.java:204) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155.testDoUpgradeWorksWhenCalledMultipleTimes(TestUpgradeTask_Build155.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) {noformat}

    Atlassian JIRA | 7 years ago | Sanne Grinovero
    java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class
  2. 0

    I downloaded atlassian-jira-enterprise-4.2-m6-source.tar.gz, decompressed, switched to /jira subdirectory and run {code} "maven -Dmaven.test.skip=false"{code} The build fails because of bq. loader constraints violated when linking org/w3c/dom/Node class A search on JIRA reveals CONF-10088, seems a similar error. Follows the report from a single test, but there are *many* failing in a similar way: {noformat}Testsuite: com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155 Tests run: 6, Failures: 0, Errors: 2, Time elapsed: 0.257 sec Testcase: testDoUpgrade(com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155): Caused an ERROR loader constraints violated when linking org/w3c/dom/Node class java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:70) at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:41) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.getJiraWorkflow(MockJiraWorkflow.java:53) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.<init>(MockJiraWorkflow.java:24) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155._testDoUpgrade(TestUpgradeTask_Build155.java:204) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155.testDoUpgrade(TestUpgradeTask_Build155.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Testcase: testDoUpgradeWorksWhenCalledMultipleTimes(com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155): Caused an ERROR loader constraints violated when linking org/w3c/dom/Node class java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:70) at com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:41) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.getJiraWorkflow(MockJiraWorkflow.java:53) at com.atlassian.jira.mock.workflow.MockJiraWorkflow.<init>(MockJiraWorkflow.java:24) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155._testDoUpgrade(TestUpgradeTask_Build155.java:204) at com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155.testDoUpgradeWorksWhenCalledMultipleTimes(TestUpgradeTask_Build155.java:193) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) {noformat}

    Atlassian JIRA | 7 years ago | Sanne Grinovero
    java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraints violated when linking org/w3c/dom/Node class

      at com.opensymphony.workflow.loader.WorkflowLoader.load()
    2. com.opensymphony.workflow
      WorkflowLoader.load
      1. com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:70)
      2. com.opensymphony.workflow.loader.WorkflowLoader.load(WorkflowLoader.java:41)
      2 frames
    3. com.atlassian.jira
      TestUpgradeTask_Build155.testDoUpgradeWorksWhenCalledMultipleTimes
      1. com.atlassian.jira.mock.workflow.MockJiraWorkflow.getJiraWorkflow(MockJiraWorkflow.java:53)
      2. com.atlassian.jira.mock.workflow.MockJiraWorkflow.<init>(MockJiraWorkflow.java:24)
      3. com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155._testDoUpgrade(TestUpgradeTask_Build155.java:204)
      4. com.atlassian.jira.upgrade.tasks.TestUpgradeTask_Build155.testDoUpgradeWorksWhenCalledMultipleTimes(TestUpgradeTask_Build155.java:193)
      4 frames
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    5. commons-jelly-tags-antlr
      AntTag.doTag
      1. org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
      1 frame
    6. commons-jelly
      ScriptBlock.run
      1. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
      2. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
      3. org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
      4. org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
      5. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
      6. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
      6 frames
    7. org.apache.maven
      MavenGoalTag$MavenGoalAction.performAction
      1. org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
      2. org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
      2 frames
    8. com.werken.werkz
      Goal.attain
      1. com.werken.werkz.Goal.fire(Goal.java:639)
      2. com.werken.werkz.Goal.attain(Goal.java:575)
      3. com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
      4. com.werken.werkz.Goal.attain(Goal.java:573)
      4 frames
    9. Maven Plugin
      PluginManager.attainGoals
      1. org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
      1 frame
    10. Maven Core
      MavenSession.attainGoals
      1. org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
      1 frame
    11. M3 Interceptor
      App.main
      1. org.apache.maven.cli.App.doMain(App.java:488)
      2. org.apache.maven.cli.App.main(App.java:1239)
      2 frames
    12. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    13. com.werken.forehead
      Forehead.main
      1. com.werken.forehead.Forehead.run(Forehead.java:551)
      2. com.werken.forehead.Forehead.main(Forehead.java:581)
      2 frames