There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • My analysis so far is as following: AbstractRootElementJaxbProvider throws subclasses of WebApplicationException instead of an IOException: At least in the latest version this handled somewhat in JerseyInvocation, where WebApplicationException gets catched and wrapped by a ResponseProcessingException. This is wakwards since the nested exception provides a wrong HTTP status code (eg. "HTTP 400 Bad Request", where the request itself was succesful. In the end the nested WebApplicationException gets unwrapped again: So I think the best thing would be if the AbstractRootElementJaxbProvider class would throw IOException. The case of a thrown WebApplicationException should never arise when calling response.readEntity (translate method). So the catch clause should be removed and it should be made sure this case never arises (otherwise it would still be catched by the Exception catch statement). The unwrapping of the cause of the ProcessingException in the translate method also seems wrong in some cases (e.g. when there is no cause). Why not just set the ProcessingException itself as cause? The IllegalStateException is not handled specially while ProcessingException is. Seems inconsistent. And last but not least the WebApplicationException should not be unwrapped in the invoke method. Again, I think WebApplicationException should never be the cause of a ProcessingException anyway.
    via by puce,
    • HTTP 400 Bad Request at org.glassfish.jersey.jaxb.internal.AbstractRootElementJaxbProvider.readFrom( at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom( at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom( at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed( at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom( at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity( at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity( at org.glassfish.jersey.client.ClientResponse.readEntity( at org.glassfish.jersey.client.InboundJaxrsResponse$ at org.glassfish.jersey.internal.Errors.process( at org.glassfish.jersey.internal.Errors.process( at org.glassfish.jersey.internal.Errors.process( at org.glassfish.jersey.process.internal.RequestScope.runInScope( at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible( at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(
    No Bugmate found.