cancel
Showing results for 
Search instead for 
Did you mean: 

getting "java.lang.ClassCastException" while calling EJB adapter module

Former Member
0 Kudos

Hi All,

I have configured EJB module in File Receiver channel which is used to modify the contents of file and write it onto the folder. But while running the scenario i am getting the below error.

Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.ClassCastException: class $Proxy2822_10000:sap.com/MsgModConverter_EAR@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@23bccf0a@alive incompatible with interface com.sap.aii.af.lib.mp.module.ModuleLocal:library:com.sap.aii.af.lib@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@6bfe3238@alive.

Can anybody please help?

Thanks,

Shilpa.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi Shilpa,

Check these threads, they answer similar question:

Regrads,

Greg

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks all.

Issue Resolved.

I have recreated whole EJB project again with the help of below link.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

The error mesg shows ClassCastException. Few cents.. Explaining in a generic way , If there are version incompatible using other class files, please update the compatible version classes for all the using classes. Also look at the code and see where it really fails. Then you will know what class causes this exception. Since you also get incomptible with interface that means your logic type cast to a class that implements different interface. example you are trying to type cast string object for Integer.

zameerf
Contributor
0 Kudos

Please refer the below threads which discuss the same issue.

You could have misplaced the references while creating EAR file.

http://scn.sap.com/thread/1511482

http://scn.sap.com/thread/1563626

Former Member
0 Kudos

Hi Zameer,

I referred to the threads mentioned by you and done the configurations as mentioned in thread.

But still the same problem exists.

Do you have any other idea?

Former Member
0 Kudos

Hi,

Paste ur ejb-jar.xml and application-j2ee-engine.xml file here?

Thanks

Amit Srivastava