You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/07/27 11:13:20 UTC

[jira] [Commented] (CAMEL-10187) JDK9: Castor attempts to access private class from module java.xml

    [ https://issues.apache.org/jira/browse/CAMEL-10187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395466#comment-15395466 ] 

Claus Ibsen commented on CAMEL-10187:
-------------------------------------

Not all 3rd party libraries will be compatible with Java 9. 

> JDK9: Castor attempts to access private class from module java.xml
> ------------------------------------------------------------------
>
>                 Key: CAMEL-10187
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10187
>             Project: Camel
>          Issue Type: Task
>            Reporter: Thomas Diesler
>            Priority: Minor
>             Fix For: Future
>
>
> {code}
> Caused by: java.lang.RuntimeException: Could not instantiate serializer com.sun.org.apache.xml.internal.serialize.XMLSerializer: java.lang.IllegalAccessException: class org.exolab.castor.xml.BaseXercesJDK5Serializer cannot access class com.sun.org.apache.xml.internal.serialize.XMLSerializer (in module java.xml) because module java.xml does not export com.sun.org.apache.xml.internal.serialize to unnamed module @49122e40
>     at org.exolab.castor.xml.BaseXercesJDK5Serializer.<init>(BaseXercesJDK5Serializer.java:59)
>     at org.exolab.castor.xml.XercesJDK5Serializer.<init>(XercesJDK5Serializer.java:29)
>     at org.exolab.castor.xml.XercesJDK5XMLSerializerFactory.getSerializer(XercesJDK5XMLSerializerFactory.java:34)
>     at org.exolab.castor.xml.util.XMLParserUtils.getSerializer(XMLParserUtils.java:259)
>     at org.castor.xml.AbstractInternalContext.getSerializer(AbstractInternalContext.java:370)
>     at org.exolab.castor.xml.Marshaller.configureSerializer(Marshaller.java:477)
>     at org.exolab.castor.xml.Marshaller.setWriter(Marshaller.java:423)
>     at org.apache.camel.dataformat.castor.AbstractCastorDataFormat.marshal(AbstractCastorDataFormat.java:76)
> {code}
> CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/1262



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)