java.util.concurrent.ExecutionException: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject"

Pentaho BI Platform Tracking | Roland Bouman | 3 years ago
  1. 0

    There are two instances of commons-vfs-20100924-pentaho.jar: ./plugins/repositories/pur-repository-plugin/lib/commons-vfs-20100924-pentaho.jar ... ./lib/commons-vfs-20100924-pentaho.jar when kettle.properties contains these properties: KETTLE_PASSWORD_ENCODER_PLUGIN=AES KETTLE_AES_KEY_FILE=/home/roland/.kettle/aes.key spoon exists at startup with this stacktrace: java.util.concurrent.ExecutionException: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject" at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:601) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:151) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.pentaho.di.core.plugins.KettleURLClassLoader.loadClassFromThisLoader(KettleURLClassLoader.java:76) at org.pentaho.di.core.plugins.KettleURLClassLoader.loadClass(KettleURLClassLoader.java:99) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at com.pentaho.di.core.encryption.AESTwoWayPasswordEncoder.init(AESTwoWayPasswordEncoder.java:74) at org.pentaho.di.core.encryption.Encr.init(Encr.java:67) at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:100) at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:91) at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:69) at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:559) at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:552) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) After removing the AES variables, spoon can start as normal (indicating the error occurs when processing the AES variables) After re-entering the AES variables, but removing ./plugins/repositories/pur-repository-plugin/lib/commons-vfs-20100924-pentaho.jar, spoon also starts normally. The pur-repository project will need to be modified so as not to include the duplicat jar.

    Pentaho BI Platform Tracking | 3 years ago | Roland Bouman
    java.util.concurrent.ExecutionException: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject"
  2. 0

    There are two instances of commons-vfs-20100924-pentaho.jar: ./plugins/repositories/pur-repository-plugin/lib/commons-vfs-20100924-pentaho.jar ... ./lib/commons-vfs-20100924-pentaho.jar when kettle.properties contains these properties: KETTLE_PASSWORD_ENCODER_PLUGIN=AES KETTLE_AES_KEY_FILE=/home/roland/.kettle/aes.key spoon exists at startup with this stacktrace: java.util.concurrent.ExecutionException: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject" at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:601) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:151) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.pentaho.di.core.plugins.KettleURLClassLoader.loadClassFromThisLoader(KettleURLClassLoader.java:76) at org.pentaho.di.core.plugins.KettleURLClassLoader.loadClass(KettleURLClassLoader.java:99) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at com.pentaho.di.core.encryption.AESTwoWayPasswordEncoder.init(AESTwoWayPasswordEncoder.java:74) at org.pentaho.di.core.encryption.Encr.init(Encr.java:67) at org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:100) at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:91) at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:69) at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:559) at org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:552) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) After removing the AES variables, spoon can start as normal (indicating the error occurs when processing the AES variables) After re-entering the AES variables, but removing ./plugins/repositories/pur-repository-plugin/lib/commons-vfs-20100924-pentaho.jar, spoon also starts normally. The pur-repository project will need to be modified so as not to include the duplicat jar.

    Pentaho BI Platform Tracking | 3 years ago | Roland Bouman
    java.util.concurrent.ExecutionException: java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject"
  3. 0

    Using the new CouchDB input step [Archive] - Pentaho Community Forums

    pentaho.com | 7 months ago
    java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/httpclient/HttpClient"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using consumer with pdi 6.1.0.3 enterprise - java.lang.linkageError: loader constraint violation

    GitHub | 4 months ago | johnpaularthur
    java.lang.LinkageError: loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/w3c/dom/Node"
  6. 0

    I get the following exception from time to time when deserializing: java.lang.LinkageError: loader (instance of org/mule/module/launcher/MuleApplicationClassLoader): attempted duplicate class definition for name: "com/esotericsoftware/kryo/serializers/U

    GitHub | 3 years ago | eugeneaiz
    java.lang.LinkageError: loader (instance of org/mule/module/launcher/MuleApplicationClassLoader): attempted duplicate class definition for name: "com/esotericsoftware/kryo/serializers/UnsafeCachedFieldFactory"

    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

      loader constraint violation: loader (instance of org/pentaho/di/core/plugins/KettleURLClassLoader) previously initiated loading for a different type with name "org/apache/commons/vfs/FileObject"

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      URLClassLoader.findClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      4. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      5. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      6. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      7. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      9 frames
    3. org.pentaho.di
      KettleURLClassLoader.loadClass
      1. org.pentaho.di.core.plugins.KettleURLClassLoader.loadClassFromThisLoader(KettleURLClassLoader.java:76)
      2. org.pentaho.di.core.plugins.KettleURLClassLoader.loadClass(KettleURLClassLoader.java:99)
      2 frames
    4. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      1 frame
    5. com.pentaho.di
      AESTwoWayPasswordEncoder.init
      1. com.pentaho.di.core.encryption.AESTwoWayPasswordEncoder.init(AESTwoWayPasswordEncoder.java:74)
      1 frame
    6. org.pentaho.di
      Spoon$1.call
      1. org.pentaho.di.core.encryption.Encr.init(Encr.java:67)
      2. org.pentaho.di.core.KettleClientEnvironment.init(KettleClientEnvironment.java:100)
      3. org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:91)
      4. org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:69)
      5. org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:559)
      6. org.pentaho.di.ui.spoon.Spoon$1.call(Spoon.java:552)
      6 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames