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 2020/10/02 09:05:11 UTC

[GitHub] [camel-quarkus] jamesnetherton opened a new issue #1868: transferException URI option does not work in native mode

jamesnetherton opened a new issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868


   `transferException` uses object serialization / deserialization which is currently not supported by GraalVM.
   
   We should add some documentation to the affected extensions:
   
   * activemq
   * ahc
   * ahc-ws
   * ahc-wss
   * amqp
   * http
   * https
   * jms
   * netty-http
   * rabbitmq
   * servlet
   * vertx-http
   


----------------------------------------------------------------
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.

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



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

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868#issuecomment-702623112


   Could you please explain where that serialization happens? If it in Camel, we could perhaps implement a workaround?


----------------------------------------------------------------
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.

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



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

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868#issuecomment-885022223


   I got a bit further by registering some additional classes for reflection. But now stuck at:
   
   ```
   java.io.InvalidClassException: java.util.Collections$EmptyList; no valid constructor
   	at java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:159)
   	at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:875)
   	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2170)
   	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679)
   	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464)
   	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:629)
   	at java.lang.Throwable.readObject(Throwable.java:896)
   ```
   
   I'll dig into it some more...
   


-- 
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



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

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868#issuecomment-702626151


   Yes, it's in the various Camel components. E.g like here:
   
   https://github.com/apache/camel/blob/master/components/camel-http-common/src/main/java/org/apache/camel/http/common/DefaultHttpBinding.java#L205-L210
   
   And here:
   
   https://github.com/apache/camel/blob/master/components/camel-http-common/src/main/java/org/apache/camel/http/common/DefaultHttpBinding.java#L383
   
   I forget there's also the `allowJavaSerializedObject` which has the same issue. But it's not enabled by default since it can be a security risk.


----------------------------------------------------------------
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.

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



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

Posted by GitBox <gi...@apache.org>.
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



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

Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868


   


-- 
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



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

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #1868:
URL: https://github.com/apache/camel-quarkus/issues/1868#issuecomment-884887814


   `[Ljava.lang.StackTraceElement` is array of `java.lang.StackTraceElement` - maybe array types need some special registration or they are not supported yet?


-- 
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