You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "yagnya dutta dhal (JIRA)" <ji...@apache.org> on 2018/10/03 06:28:00 UTC

[jira] [Created] (CXF-7861) getting IllegalEmptyResponseException in ClientImpl class

yagnya dutta dhal created CXF-7861:
--------------------------------------

             Summary: getting IllegalEmptyResponseException in ClientImpl class
                 Key: CXF-7861
                 URL: https://issues.apache.org/jira/browse/CXF-7861
             Project: CXF
          Issue Type: Test
         Environment: CXF 3.2.6

JAVA 1.8

WSS4J 2.2.2
            Reporter: yagnya dutta dhal


Hi,

After debugging a lot I found out following exception in 

processresult method of ClientImpl class.

*org.apache.cxf.endpoint.ClientImpl$IllegalEmptyResponseException: Response message did not contain proper response data. Expected: \{urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0}RegistryResponse*

 

*GIT link- https://github.com/yagnyadutta/wss4jpoc/tree/master/wss4jtest*

+*code snippet from ClientImpl*+

if (ex != null) {
 throw ex;
} else {
 if (resList == null && oi != null && !oi.getOperationInfo().isOneWay()) {
 BindingOperationInfo boi = oi;
 if (oi.isUnwrapped()) {
 boi = oi.getWrappedOperation();
 }

 if (!boi.getOutput().getMessageParts().isEmpty()) {
 throw new ClientImpl.IllegalEmptyResponseException("Response message did not contain proper response data. Expected: " + ((MessagePartInfo)boi.getOutput().getMessageParts().get(0)).getConcreteName());
 }
 }

 return resList != null ? resList.toArray() : null;
}

This is coming after upgrading CXF to 3.2.6 from CXF2.7.6

Please do suggest if anything I'm missing in upgradation.

Thanks,

Yagnya



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)