You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/07/22 12:24:25 UTC

[GitHub] [camel-quarkus] jamesnetherton commented on issue #1868: [Serialization] transferException URI option does not work in native mode

jamesnetherton commented on issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868#issuecomment-884870831


   I spent some time trying to enable serialization support for `transferException`. There might be a GraalVM bug that is stopping deserialization of exceptions from working. 
   
   I've configured the relevant classes for serialization but deserializing an exception always results in: 
   
   ```
   Exception in thread "main" java.lang.ClassNotFoundException: [Ljava.lang.StackTraceElement;
   	at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:71)
   	at java.lang.Class.forName(DynamicHub.java:1319)
   	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:756)
   	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1995)
   	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1862)
   	at java.io.ObjectInputStream.readArray(ObjectInputStream.java:2057)
   	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
   	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464)
   	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:629)
   	at java.lang.Throwable.readObject(Throwable.java:896)
   	at java.lang.reflect.Method.invoke(Method.java:566)
   	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1175)
   	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2325)
   	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
   	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
   	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
   	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
   ```
   
   I tried with a basic test app without Camel or Quarkus and got the same result.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org