Tuesday, February 23, 2016

IllegalAccessError: tried to access class javax.xml.stream.FactoryFinder from class javax.xml.stream.FactoryFinder$ClassLoaderFinder

Act application throws the following exception on startup:

Exception in thread "main" org.osgl.exception.UnexpectedException: Unknown error captured starting the application
 at org.osgl.util.E.unexpected(E.java:127)
 at act.boot.app.RunApp.start(RunApp.java:52)
 at act.boot.app.RunApp.start(RunApp.java:26)
 at com.pixolut.connectable.Application.main(Application.java:10)
Caused by: java.lang.IllegalAccessError: tried to access class javax.xml.stream.FactoryFinder from class javax.xml.stream.FactoryFinder$ClassLoaderFinder
 at java.lang.Class.getDeclaringClass0(Native Method)
 at java.lang.Class.getDeclaringClass(Class.java:1235)
 at java.lang.Class.getEnclosingClass(Class.java:1277)
 at java.lang.Class.getCanonicalName(Class.java:1392)
 at act.util.ClassInfoRepository.canonicalName(ClassInfoRepository.java:65)
 at act.boot.app.FullStackAppBootstrapClassLoader.cache(FullStackAppBootstrapClassLoader.java:99)
 at act.boot.app.FullStackAppBootstrapClassLoader.pluginClasses(FullStackAppBootstrapClassLoader.java:46)
 at act.Act.pluginClasses(Act.java:123)
 at act.plugin.PluginScanner.scan(PluginScanner.java:25)
 at act.Act.loadPlugins(Act.java:305)
 at act.Act.start(Act.java:222)
 at act.Act.startApp(Act.java:208)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497)
 at act.boot.app.RunApp.start(RunApp.java:46)
 ... 2 more

1 comment:

  1. This exception is triggered when calling Class.getCanonicalName() on Class `javax.xml.stream.FactoryFinder$ClassLoaderFinder`. However it is very interesting that I cannot find the inner class `ClassLoaderFinder` in `javax.xml.stream.FactoryFinder`

    ReplyDelete