उठा रहा है क्या कोई मेरी अजीब समस्या के साथ मेरी मदद कर सकता है?साबुन सेवा स्थानीय रूप से काम करती है लेकिन किसी अन्य सर्वर पर क्लासकास्ट अपवाद
मैं एक सेवा है:
@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
;
और स्थानीय स्तर पर मैं के साथ यह फोन कर रहा हूँ:
SendCustomerCommunicationResponse response = correspondanceServicePort.sendCustomerCommunication(sendCustomerCommunicationRequest);
और यह अच्छी तरह से काम करता है। लेकिन जब मैं एक और सर्वर पर आवेदन की तैनाती कर रहा हूँ, मैं प्राप्त कर रहा हूँ:
"java.lang.ClassCastException:
it.usi.xframe.ub1.batch.services.esb.SendCustomerCommunicationRequest incompatible with
it.usi.xframe.ub1.batch.services.esb.SendCustomerCommunicationResponse"
पी.एस. आवेदन WebSphere सर्वर पर चल रहा है
अनुरोध है:
<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>
कोई नहीं? ? कुछ भी नहीं है :( – Aditzu
कुछ एक प्रतिक्रिया चर के लिए एक अनुरोध वस्तु आवंटित करने के लिए, या कोशिश कर रहा है इसके विपरीत अपवाद की कॉल स्टैक देखने के लिए जहां दिखाना चाहिए –
निष्पादित त्रुटि java.lang.ClassCastException:।। It.usi.xframe.ub1। batch.services.esb.customerCommunication2.SendCustomerC ommunicationRequest it.usi.xframe.ub1.batch.services.esb.customerCommunication2.SendCustomerCommunicationResponseQ ZQat com.sun.proxy। $ Proxy84.sendCustomerCommunication (अज्ञात स्रोत) QZQat it.usi .xframe.ub1.batch.steps.close.ST002CLO.callEsbForPo सिशन (ST002CLO.java4141) QZQat it.usi.xframe.ub1.batch.steps.close.ST002CLO.managePositionList (ST002CLO.java:367) QZQat .usi.xfram e.ub1.batch.steps.close.ST002CLO.run (ST002CLO.java:1 – Aditzu