cancel
Showing results for 
Search instead for 
Did you mean: 

CLASSCASTEXCEPTION

Former Member
0 Kudos

Hi

I am trying to work on the rfc to webservice scenario.

the things I have done so far

I have taken a small wsdl file of one of the service available ( just a small application string concat)

and in sap r/3 I have created 3 domains and 3 data elements as a,b,c with char type.

and I have imported that a,b as the import parameters in the remote enabled function module and the c as the export element.

<b>(I havent created a BAPI , its a just RFC )</b>

and have done all the IR and ID objects.

when I am pushing the data from R/3 it is going to dump and the exception is java.lang.ClassCast Exception.

and looked the communication channel for rfc and the status turned to red (earlier it was green before pushing the data).

Can any one help me out with this please.

AND

in SLD the product has not been assigned with the business system of the SAP R/3. (the business system of the client where im pushing the rfc data has not been assigned to the product). Does it matter any thing?

Tanx in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Can you look into SXMB_MONI and see if there is some error etc? This should provide more details on the cause of the issue.

Did you pass valid data to the Webservice?

Regards

Bhavesh

Former Member
0 Kudos

We are giving the correct data..

n later

in r/3 dump CALL_FUNCTION_REMOTE_ERROR

along with showing java.lang.classcast exception

in <b>sxmb_moni</b> cant find any thing , but when i checked the commuincation channel for the rfcsender its set to failed state.(before pushing the data the channel was fine ).

and the channel also pointing the java.lang.classcast exception.

and we also tried to push the test data from runtime ( instead pushing from r/3 to webservice , we pushed from runtime test option to the webservice )

then we have got an error :

Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.ClassCastException. Setting message to status failed.

thanks in advance ....

Former Member
0 Kudos

Am also facing the same problem.

Please any one help me in fixing this

Thanks-

sk