1 Reply Latest reply on Jul 8, 2017 6:44 AM by John Gabriel

    Camel xmljson linkage error

    John Gabriel Newbie

      Could you please clarify and help me to resolve below issue...

      Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "net.sf.json.JSONSerializer.toJSON(Ljava/lang/Object;)Lnet/sf/json/JSON;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/apache/camel/dataformat/xmljson/XmlJsonDataFormat, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's defining class, net/sf/json/JSONSerializer, have different Class objects for the type net/sf/json/JSON used in the signature

      Server: Fuse 6.3

      Server: redhat linux

      I could not replicate this issue in Windows platform. It hardly happens only in Linux platform.

      while deploying it loads the class...and no issues... if we restart the server or update the bundle above issue is coming...