[arquillian-issues] [JBoss JIRA] (ARQ-1420) The PayloadRegistry#registerResponsePayload() is being called after the #retrieveResponsePayload() which ends up with ResponsePayloadWasNeverRegistered exception.

Jakub Narloch (JIRA) jira-events at lists.jboss.org
Mon Jun 24 06:14:21 EDT 2013


    [ https://issues.jboss.org/browse/ARQ-1420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783894#comment-12783894 ] 

Jakub Narloch commented on ARQ-1420:
------------------------------------

Please see: https://github.com/jmnarloch/arquillian-extension-warp-rest.

After running the mvn clean install, all the tests will pass except for StockServiceResourceTestCase#testStockGetWarp test from arquillian-warp-jaxrs-ftest-cxf.

Which fails with fallowing error:

{code}
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 69.816 sec <<< FAILURE!
testStockGetWarp(org.jboss.arquillian.quickstart.cxf.service.rs.StockServiceResourceTestCase)  Time elapsed: 61.942 sec  <<< ERROR!
org.jboss.arquillian.warp.exception.ServerWarpExecutionException: The error occured during server request processing:
The response payload with serialId 4065404507533364875 was never registered
	at org.jboss.arquillian.warp.impl.client.execution.DefaultResponseDeenrichmentService.retrieveResponsePayload(DefaultResponseDeenrichmentService.java:121)
	at org.jboss.arquillian.warp.impl.client.execution.DefaultResponseDeenrichmentService.deenrichResponse(DefaultResponseDeenrichmentService.java:84)
	at org.jboss.arquillian.warp.impl.client.execution.EnrichmentObserver.deenrichResponse(EnrichmentObserver.java:98)

{code}
                
> The PayloadRegistry#registerResponsePayload() is being called after the #retrieveResponsePayload() which ends up with ResponsePayloadWasNeverRegistered exception.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARQ-1420
>                 URL: https://issues.jboss.org/browse/ARQ-1420
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Warp
>    Affects Versions: warp_1.0.0.Alpha3
>            Reporter: Jakub Narloch
>            Assignee: Lukáš Fryč
>
> I'm facing some problem in the JAX-RS extension for the CXF. I'm already know that the CXF filter is doing a explicit OutputStream.flush() on the response, but not sure whether this affects anything. Although, it is worth to mention that I'm not facing any problems with other implementations. Currently I was able to debug only that the #retrieveResponsePayload() is being called before the payload registration, which cause an exception to be raised.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list