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

The SchemaFactoryFinder.createInstance method does not have the correct access level causing an IllegalAccessError exception.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.fuse-beta-051
    • 7.0.0.fuse-037
    • None
    • None
    • % %

      The javax.xml.validation.SchemaFactoryFinder.createInstance(Ljava/lang/String;)Ljavax/xml/validation/SchemaFactory; method access has to be changed from private to package level access. This method is accessed by the validation instance and it is causing the following exception to be thrown:

      ERROR: Bundle SchemaFactoryValidationBundle [86] Error starting file:/Users/ccorsi/SupportCases/customers/swiftds/DEV-4002/fuse-esb-7.0.0.fuse-037/deploy/SchemaFactoryValidationBundle.jar (org.osgi.framework.BundleException: Activator start error in bundle SchemaFactoryValidationBundle [86].)
      java.lang.IllegalAccessError: tried to access method javax.xml.validation.SchemaFactoryFinder.createInstance(Ljava/lang/String;)Ljavax/xml/validation/SchemaFactory; from class javax.xml.validation.SchemaFactory
      	at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
      	at com.fusesource.support.schemavalidator.Activator.start(Activator.java:17)
      	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
      	at org.apache.felix.framework.Felix.doActivateBundle(Felix.java:2044)
      	at org.apache.felix.framework.Felix$4.call(Felix.java:1969)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      

      I have a test case that reproduces this issue and will be attached to this issue.

      This issue is not only restricted to the enterprise version but also part of the servicemix version.

            yfang@redhat.com Freeman(Yue) Fang
            ccorsi1_jira Claudio Corsi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: