[jboss-jira] [JBoss JIRA] (WFLY-9569) Class loading issue with the openjdk-orb on the JDK9
Tomasz Adamski (JIRA)
issues at jboss.org
Tue Apr 10 09:05:00 EDT 2018
[ https://issues.jboss.org/browse/WFLY-9569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558887#comment-13558887 ]
Tomasz Adamski commented on WFLY-9569:
--------------------------------------
[~tomjenkinson] Looking.
[~dmlloyd]
This is the stacktrace:
{code}
WARNING: "IOP00110208: (BAD_PARAM) Could not load class InterpositionORBInitializerImpl"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 208 completed: No
at java.corba at 9/com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotLoadClass(ORBUtilSystemException.java:1323)
at java.corba at 9/com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotLoadClass(ORBUtilSystemException.java:1342)
at java.corba at 9/com.sun.corba.se.spi.orb.OperationFactory$ClassAction.operate(OperationFactory.java:257)
at java.corba at 9/com.sun.corba.se.spi.orb.OperationFactory$ComposeAction.operate(OperationFactory.java:475)
at java.corba at 9/com.sun.corba.se.spi.orb.OperationFactory$MaskErrorAction.operate(OperationFactory.java:130)
at java.corba at 9/com.sun.corba.se.spi.orb.OperationFactory$ComposeAction.operate(OperationFactory.java:475)
at java.corba at 9/com.sun.corba.se.impl.orb.PrefixParserAction.apply(PrefixParserAction.java:82)
at java.corba at 9/com.sun.corba.se.spi.orb.PropertyParser.parse(PropertyParser.java:70)
at java.corba at 9/com.sun.corba.se.spi.orb.ParserImplBase.init(ParserImplBase.java:74)
at java.corba at 9/com.sun.corba.se.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:408)
at java.corba at 9/com.sun.corba.se.impl.orb.ORBImpl.postInit(ORBImpl.java:456)
at java.corba at 9/com.sun.corba.se.impl.orb.ORBImpl.set_parameters(ORBImpl.java:543)
at java.corba at 9/org.omg.CORBA.ORB.init(ORB.java:353)
at OrbTest.main(OrbTest.java:6)
Caused by: java.lang.ClassNotFoundException: InterpositionORBInitializerImpl
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at java.corba at 9/com.sun.corba.se.impl.io.ValueUtility$1.loadClass(ValueUtility.java:104)
at java.corba at 9/com.sun.corba.se.spi.orb.OperationFactory$ClassAction.operate(OperationFactory.java:252)
... 11 more
{code}
In JDK < 9 the line:
{code}
return ValueUtility.class.getClassLoader().loadClass(className);
{code}
was meant to obtain the classloader of OpenJDK ORB module's classloader which has dependency on narayana and is able to load InterpositionORBInitializerImpl.
Apparently in JDK9 the same line returns java.base/jdk.internal.loader.BuiltinClassLoader which is the cause of the error.
> Class loading issue with the openjdk-orb on the JDK9
> ----------------------------------------------------
>
> Key: WFLY-9569
> URL: https://issues.jboss.org/browse/WFLY-9569
> Project: WildFly
> Issue Type: Bug
> Components: IIOP
> Reporter: Amos Feng
> Assignee: Tomasz Adamski
> Labels: jdk9
>
> I had this issue when using the PortableInterceptor at the ORB ORBInitializer.
> The root cause is https://github.com/jboss/openjdk-orb/blob/master/src/share/classes/com/sun/corba/se/impl/io/ValueUtility.java#L104
> And the jigsaw classloader in the jdk9 might be investigated.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list