java.lang.LinkageError: Talend job execution error on ESB runtime


The following errors appear while executing a job on ESB runtime, though the job ran in Studio successfully:


Caused by: java.lang.Error: java.lang.LinkageError: loader constraint violation: when resolving method 
   "javax.xml.validation.Validator.setErrorHandler(Lorg/xml/sax/ErrorHandler;)V" the class loader (instance of 
   org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, 
   esb_import/createcustomerjob_0_1/CreateCustomerJob, and the class loader (instance of <bootloader>) 
   for resolved class, javax/xml/validation/Validator, have different Class objects for the type 
   org/xml/sax/ErrorHandler used in the signature



You need to figure out the violation jar which contains javax/xml/validation/Validator in the output .kar file, then remove the jar file from the bundle's MANIFEST.MF file Bundle-ClassPath.

Note: Be careful about the 70 byte limit while modifying the MANIFEST.MF Bundle-ClassPath.

For information about the osgi classloading algorithm, refer to Managing OSGI Dependencies


Related Jira Issues

TESB-6046 Data Service doesn't work when having 2 operations with MDM components - Closed

Version history
Revision #:
13 of 13
Last update:
‎05-05-2017 12:47 PM
Updated by:
Labels (1)
Tags (1)