java.lang.LinkageError: org.apache.maven.surefire.shade.org.apache.maven.shared.utils.io.IOUtil

Jenkins JIRA | Julian Payne | 3 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

    When using Maven 3.2.1 with Jenkins 1.555 the unit tests block with a LinkageError like this: Running asf.artifact.ArtifactHandlerManagerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.149 sec - in asf.artifact.ArtifactHandlerManagerTest Exception in thread "Thread-11" java.lang.LinkageError: org.apache.maven.surefire.shade.org.apache.maven.shared.utils.io.IOUtil at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:364) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154) at java.net.URLClassLoader.defineClass(URLClassLoader.java:777) at java.net.URLClassLoader.access$400(URLClassLoader.java:96) at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1225) at java.security.AccessController.doPrivileged(AccessController.java:366) at java.net.URLClassLoader.findClass(URLClassLoader.java:660) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:389) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) at org.apache.maven.surefire.shade.org.apache.maven.shared.utils.cli.StreamPumper.run(StreamPumper.java:95) Once this error occurs the Jenkins job blocks. I do not get these errors if I run the unit tests directly with Maven 3.2.1 I could not find anything of interest in the Manage Jenkins -> Jenkins log I am also seeing this error occasionally with Maven 3.1.1

    Jenkins JIRA | 3 years ago | Julian Payne
    java.lang.LinkageError: org.apache.maven.surefire.shade.org.apache.maven.shared.utils.io.IOUtil
  2. 0

    When using Maven 3.2.1 with Jenkins 1.555 the unit tests block with a LinkageError like this: Running asf.artifact.ArtifactHandlerManagerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.149 sec - in asf.artifact.ArtifactHandlerManagerTest Exception in thread "Thread-11" java.lang.LinkageError: org.apache.maven.surefire.shade.org.apache.maven.shared.utils.io.IOUtil at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:364) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154) at java.net.URLClassLoader.defineClass(URLClassLoader.java:777) at java.net.URLClassLoader.access$400(URLClassLoader.java:96) at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1225) at java.security.AccessController.doPrivileged(AccessController.java:366) at java.net.URLClassLoader.findClass(URLClassLoader.java:660) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:389) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) at org.apache.maven.surefire.shade.org.apache.maven.shared.utils.cli.StreamPumper.run(StreamPumper.java:95) Once this error occurs the Jenkins job blocks. I do not get these errors if I run the unit tests directly with Maven 3.2.1 I could not find anything of interest in the Manage Jenkins -> Jenkins log I am also seeing this error occasionally with Maven 3.1.1

    Jenkins JIRA | 3 years ago | Julian Payne
    java.lang.LinkageError: org.apache.maven.surefire.shade.org.apache.maven.shared.utils.io.IOUtil
  3. 0

    JSF + Weld CDI + WebService (over Jetty9) does not work

    Stack Overflow | 4 years ago | JavaKaffee
    java.lang.LinkageError: loader constraint violation: loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) previously initiated loading for a different type with name "javax/enterpris e/util/TypeLiteral"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    sonar blame info from jazz

    Stack Overflow | 3 years ago | The End
    java.lang.LinkageError: org.codehaus.plexus.util.IOUtil
  6. 0

    LinkageError: loader constraint violation: loader (instance of XXX) previously initiated loading for a different type with name “YYY”

    free.fr | 1 year ago
    java.lang.RuntimeException: java.lang.LinkageError: loader constraint violation: loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) pre viously initiated loading for a different type with name "javax/el/ExpressionFactory"

    4 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

      org.apache.maven.surefire.shade.org.apache.maven.shared.utils.io.IOUtil

      at java.lang.ClassLoader.defineClassImpl()
    2. Java RT
      URLClassLoader.findClass
      1. java.lang.ClassLoader.defineClassImpl(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:364)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154)
      4. java.net.URLClassLoader.defineClass(URLClassLoader.java:777)
      5. java.net.URLClassLoader.access$400(URLClassLoader.java:96)
      6. java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1225)
      7. java.security.AccessController.doPrivileged(AccessController.java:366)
      8. java.net.URLClassLoader.findClass(URLClassLoader.java:660)
      8 frames
    3. Plexus
      ClassRealm.loadClass
      1. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:389)
      2. org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      3. org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
      4. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
      5. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
      5 frames
    4. Maven Surefire Common
      StreamPumper.run
      1. org.apache.maven.surefire.shade.org.apache.maven.shared.utils.cli.StreamPumper.run(StreamPumper.java:95)
      1 frame