Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3810

Camel SAP - EPackageRegistryImpl holds references on classloaders of already uninstalled bundles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • Future
    • jboss-fuse-6.2.1
    • Camel
    • None
    • % %

      Class EPackageRegistryImpl holds references on classloaders of already uninstalled bundles. Have a look at screenshot - bundle 367.

      https://github.com/cloudsmith/org.eclipse.emf/blob/master/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/impl/EPackageRegistryImpl.java#L226

      Moreover it uses Thread Context ClassLoader (TCCL) which is not recommended in OSGi environment.

      I face the following exception which might be conntected with that. But I guess that osgi-arquillian-adapter can play a role in it...

      2015-08-10 14:12:35,890 | WARN  | ion(4)-127.0.0.1 | DocumentConverter                | 362 - org.fusesource.camel-sap - 6.2.1.redhat-013 | Failed to convert String to Document
      org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri 'http://sap.fusesource.org/idoc' not found. (file:/, 2, 524)
              at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:77)
              at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:268)
              at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:800)
              at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:764)
              at org.fusesource.camel.component.sap.util.Util.unmarshal(Util.java:114)
              at org.fusesource.camel.component.sap.converter.DocumentConverter.toDocument(DocumentConverter.java:46)
      ...
      Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://sap.fusesource.org/idoc' not found. (file:/, 2, 524)
              at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2585)
              at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2416)
      

            acosenti Andrea Cosentino
            mbasovni Martin Basovnik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: