java.lang.LinkageError: loader (instance of org/mule/runtime/module/launcher/MuleSharedDomainClassLoader): attempted duplicate class definition for name: "org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser"

MuleSoft JIRA | Mariano De Sousa Bispo | 8 months 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

    When starting a FakeMuleServer with an App that fails to deploy, the system proceeds to stop the domain 'Default' and an exception is raised. Stack trace: {code} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Mule is up and kicking (every 5000ms) + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2016-08-02 10:53:07,260 [Thread-1] org.mule.runtime.module.launcher.StartupSummaryDeploymentListener: ********************************************************************** * - - + DOMAIN + - - * - - + STATUS + - - * ********************************************************************** * default * DEPLOYED * ********************************************************************** ******************************************************************************************************* * - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - * ******************************************************************************************************* * app * default * FAILED * ******************************************************************************************************* INFO 2016-08-02 10:53:27,340 [Thread-1] org.mule.runtime.module.launcher.application.DefaultMuleApplication: App 'app' never started, nothing to dispose of INFO 2016-08-02 10:53:27,340 [Thread-1] org.mule.runtime.module.launcher.domain.DefaultMuleDomain: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Stopping domain 'default' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2016-08-02 10:53:27,340 [Thread-1] org.mule.runtime.module.launcher.domain.DefaultMuleDomain: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Disposing domain 'default' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2016-08-02 10:53:27,436 [Thread-1] org.mule.runtime.module.launcher.application.DefaultMuleApplication: App 'app' never started, nothing to dispose of INFO 2016-08-02 10:53:27,436 [Thread-1] org.mule.runtime.module.launcher.domain.DefaultMuleDomain: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Stopping domain 'default' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2016-08-02 10:53:27,436 [Thread-1] org.mule.runtime.module.launcher.domain.DefaultMuleDomain: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Disposing domain 'default' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2016-08-02 10:53:27,439 [Thread-1] org.mule.runtime.module.launcher.DeploymentDirectoryWatcher: Error stopping artifact default java.lang.LinkageError: loader (instance of org/mule/runtime/module/launcher/MuleSharedDomainClassLoader): attempted duplicate class definition for name: "org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser" at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_92] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_92] at java.lang.ClassLoader.defineClass(ClassLoader.java:642) ~[?:1.8.0_92] at org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.createResourceReleaserInstance(MuleArtifactClassLoader.java:110) ~[mule-module-artifact-4.0.0-M2.jar:4.0.0-M2] at org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.dispose(MuleArtifactClassLoader.java:89) ~[mule-module-artifact-4.0.0-M2.jar:4.0.0-M2] at org.mule.runtime.module.launcher.domain.DefaultMuleDomain.dispose(DefaultMuleDomain.java:241) ~[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2] at org.mule.runtime.module.launcher.domain.DomainWrapper.dispose(DomainWrapper.java:48) ~[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2] at org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.stopArtifacts(DeploymentDirectoryWatcher.java:231) ~[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2] at org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.stop(DeploymentDirectoryWatcher.java:214) ~[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2] at org.mule.runtime.module.launcher.MuleDeploymentService.stop(MuleDeploymentService.java:138) ~[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2] at org.mule.test.infrastructure.deployment.FakeMuleServer.stop(FakeMuleServer.java:129) ~[mule-tests-infrastructure-4.0.0-M2.jar:4.0.0-M2] {code}

    MuleSoft JIRA | 8 months ago | Mariano De Sousa Bispo
    java.lang.LinkageError: loader (instance of org/mule/runtime/module/launcher/MuleSharedDomainClassLoader): attempted duplicate class definition for name: "org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser"
  2. 0

    Random occurrence: LinkageError: Duplicate Class Definition in eclipse.

    GitHub | 2 months ago | rzwitserloot
    java.lang.LinkageError: loader (instance of lombok/launch/ShadowClassLoader): attempted duplicate class definition for name: "lombok/launch/PatchFixesHider$PatchFixes"
  3. 0

    Start Glassfish 4.0 with Error

    Stack Overflow | 3 years ago | javagc
    java.lang.LinkageError: loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "org/glassfish/web/loader/JdbcLeakPrevention"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mockito + PowerMock LinkageError while mocking system class

    Stack Overflow | 4 years ago | Wojciech Reszelewski
    java.lang.LinkageError: loader constraint violation: loader (instance of org/powermock/core/classloader/MockClassLoader) previously initiated loading for a different type with name "javax/management/MBeanServer"
  6. 0

    db:: 5.36::JaxB error x9

    hivmr.com | 1 year ago
    java.lang.LinkageError: loader (instance of org/eclipse/persistence/internal/jaxb/JaxbClassLoader): attempted duplicate class definition for name: "org/eclipse/persistence/jaxb/generated0"

    20 unregistered visitors
    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.LinkageError

      loader (instance of org/mule/runtime/module/launcher/MuleSharedDomainClassLoader): attempted duplicate class definition for name: "org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser"

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass1(Native Method)[?:1.8.0_92]
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:763)[?:1.8.0_92]
      3. java.lang.ClassLoader.defineClass(ClassLoader.java:642)[?:1.8.0_92]
      3 frames
    3. org.mule.runtime
      MuleDeploymentService.stop
      1. org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.createResourceReleaserInstance(MuleArtifactClassLoader.java:110)[mule-module-artifact-4.0.0-M2.jar:4.0.0-M2]
      2. org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.dispose(MuleArtifactClassLoader.java:89)[mule-module-artifact-4.0.0-M2.jar:4.0.0-M2]
      3. org.mule.runtime.module.launcher.domain.DefaultMuleDomain.dispose(DefaultMuleDomain.java:241)[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2]
      4. org.mule.runtime.module.launcher.domain.DomainWrapper.dispose(DomainWrapper.java:48)[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2]
      5. org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.stopArtifacts(DeploymentDirectoryWatcher.java:231)[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2]
      6. org.mule.runtime.module.launcher.DeploymentDirectoryWatcher.stop(DeploymentDirectoryWatcher.java:214)[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2]
      7. org.mule.runtime.module.launcher.MuleDeploymentService.stop(MuleDeploymentService.java:138)[mule-module-launcher-4.0.0-M2.jar:4.0.0-M2]
      7 frames
    4. org.mule.test
      FakeMuleServer.stop
      1. org.mule.test.infrastructure.deployment.FakeMuleServer.stop(FakeMuleServer.java:129)[mule-tests-infrastructure-4.0.0-M2.jar:4.0.0-M2]
      1 frame