Ai đó có thể giúp tôi với sự cố lạ?Dịch vụ xà phòng hoạt động cục bộ nhưng trên một máy chủ khác đang nâng cao ngoại lệ ClassCast
Tôi có một dịch vụ:
@WebMethod
@WebResult(name = "sendCustomerCommunicationResponse", targetNamespace = "......something/Underwriting/Correspondance/V1", partName = "Body")
public SendCustomerCommunicationResponse sendCustomerCommunication(
@WebParam(name = "sendCustomerCommunicationRequest", targetNamespace = "........something/Underwriting/Correspondance/V1", partName = "Body")
SendCustomerCommunicationRequest body)
throws ServiceException_Exception, SystemException_Exception
;
Và tại địa phương tôi gọi nó với:
SendCustomerCommunicationResponse response = correspondanceServicePort.sendCustomerCommunication(sendCustomerCommunicationRequest);
Và điều này làm việc tốt. Nhưng khi tôi triển khai ứng dụng trên một máy chủ khác, tôi nhận được:
"java.lang.ClassCastException:
it.usi.xframe.ub1.batch.services.esb.SendCustomerCommunicationRequest incompatible with
it.usi.xframe.ub1.batch.services.esb.SendCustomerCommunicationResponse"
P.S. Các ứng dụng đang chạy trên máy chủ WebSphere
Yêu cầu là:
<soapenv:Envelope ...someSchema...>
<soapenv:Header>
<v1:TechnicalHeader>
<v1:correlationId>12742</v1:correlationId>
<v1:sender>userName</v1:sender>
<v1:countryCode/>
<v1:channelId/>
<v1:userID>userName</v1:userID>
<v1:operationId>CHANGE_STATUS</v1:operationId>
</v1:TechnicalHeader>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>someUser</wsse:Username>
<wsse:Password>somePassoword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<v11:sendCustomerCommunicationRequest>
<v11:eventCode>{"header":{"publishingDate":1474016634749,"eventId":"DEL-NEG","applicationCode":"UB3","correlationId":"9999","language":"IT","channelId":"MOB"},"body":{"ndg":"5106215","additionalInfo":{}}}</v11:eventCode>
</v11:sendCustomerCommunicationRequest>
</soapenv:Body>
</soapenv:Envelope>
Không ai? Không có gì? :( – Aditzu
Có gì đó đang cố gắng gán một đối tượng yêu cầu cho biến trả lời hoặc ngược lại. Ngăn xếp cuộc gọi ngoại lệ sẽ hiển thị vị trí cần xem –
EXECUTE ERROR java.lang.ClassCastException: it.usi.xframe.ub1. batch.services.esb.customerCommunication2.SendCustomerC ommunicationRequest không tương thích với nó.usi.xframe.ub1.batch.services.esb.customerCommunication2.SendCustomerCommunicationResponseQ ZQat com.sun.proxy. $ Proxy84.sendCustomerCommunication (Unknown Source) QZQat it.usi .xframe.ub1.batch.steps.close.ST002CLO.callEsbForPo các phiên bản (ST002CLO.java:241) QZQat it.usi.xframe.ub1.batch.steps.close.ST002CLO.managePositionList (ST002CLO.java:367) QZQat it .usi.xfram e.ub1.batch.steps.close.ST002CLO.run (ST002CLO.java:1 – Aditzu