java.io.NotSerializableException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1

JBoss Issue Tracker | Alexey Volkov | 3 years ago
  1. 0

    My application uses resteasy client api. After invoking rest-interface method application caught exception: Caused by: javax.ws.rs.ProcessingException: Unable to find a MessageBodyReader of content-type application/xml and type class my.company.api.EntityVO at org.jboss.resteasy.core.interception.ClientReaderInterceptorContext.throwReaderNotFound(ClientReaderInterceptorContext.java:39) ~[resteasy-jaxrs-3.0.4.Final.jar:na] at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.getReader(AbstractReaderInterceptorContext.java:73) ~[resteasy-jaxrs-3.0.4.Final.jar:na] at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:50) ~[resteasy-jaxrs-3.0.4.Final.jar:na] at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.aroundReadFrom(GZIPDecodingInterceptor.java:59) ~[resteasy-jaxrs-3.0.4.Final.jar:na] at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:53) ~[resteasy-jaxrs-3.0.4.Final.jar:na] at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:244) ~[resteasy-client-3.0.4.Final.jar:na] at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:178) ~[resteasy-client-3.0.4.Final.jar:na] at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:211) ~[resteasy-jaxrs-3.0.4.Final.jar:na] at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:104) ~[resteasy-client-3.0.4.Final.jar:na] After that application try to serialize this exception and get another one: Caused by: java.io.NotSerializableException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180) ~[na:1.7.0_05] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) ~[na:1.7.0_05] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) ~[na:1.7.0_05] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) ~[na:1.7.0_05]

    JBoss Issue Tracker | 3 years ago | Alexey Volkov
    java.io.NotSerializableException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1
  2. 0

    Cannot deploy ORDS to weblogic

    Oracle Community | 1 year ago | dmdamiyo
    java.io.NotSerializableException: com.sun.jersey.server.impl.cdi.CDIExtension
  3. 0

    NotSerializableException for Metadata

    GitHub | 2 years ago | jakekdodd
    java.lang.RuntimeException: java.lang.RuntimeException: java.io.NotSerializableException: com.digitalpebble.storm.crawler.Metadata
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tomcat: Cannot serialize session into database

    Stack Overflow | 2 years ago | Madhur Ahuja
    java.io.NotSerializableException: com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector
  6. 0

    Java exception when I want to send object using socket

    Stack Overflow | 3 years ago | user3412372
    java.io.NotSerializableException: Comunication.CommandMessage

  1. kjhdofjosvs 1 times, last 7 days ago
  2. treefolk 1 times, last 2 weeks ago
  3. filpgame 4 times, last 2 weeks ago
  4. Handemelindo 15 times, last 3 weeks ago
  5. eti22 1 times, last 1 month ago
11 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.NotSerializableException

    org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
    2. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
    2 frames
  3. org.jboss.resteasy
    UnserializableTest.test
    1. org.jboss.resteasy.test.nextgen.UnserializableTest.test(UnserializableTest.java:73)
    1 frame