jamesnetherton opened a new issue, #4149:
URL: https://github.com/apache/camel-quarkus/issues/4149
In native mode there's an NPE being thrown from the XStream constructor.
```
Caused by: java.lang.NullPointerException
at
com.thoughtworks.xstream.mapper.ClassAliasingMapper.addClassAlias(ClassAliasingMapper.java:37)
at com.thoughtworks.xstream.XStream.alias(XStream.java:1443)
at com.thoughtworks.xstream.XStream.setupAliases(XStream.java:845)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:546)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:476)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:450)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:403)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:351)
at
org.apache.camel.dataformat.xstream.AbstractXStreamWrapper.createXStream(AbstractXStreamWrapper.java:121)
at
org.apache.camel.dataformat.xstream.JsonDataFormat.createXStream(JsonDataFormat.java:88)
at
org.apache.camel.dataformat.xstream.AbstractXStreamWrapper.doStart(AbstractXStreamWrapper.java:378)
at
org.apache.camel.dataformat.xstream.JsonDataFormat.doStart(JsonDataFormat.java:121)
```
It's a bit weird because the point where it fails links to the loading of
class `java.time.Clock$FixedClock`:
https://github.com/x-stream/xstream/blob/XSTREAM_1_4_19/xstream/src/java/com/thoughtworks/xstream/XStream.java#L845
But we have this registered for constructor reflection here:
https://github.com/apache/camel-quarkus/blob/main/extensions-support/xstream/deployment/src/main/java/org/apache/camel/quarkus/support/xstream/deployment/XStreamSupportProcessor.java#L165
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]