cancel
Showing results for 
Search instead for 
Did you mean: 

Classcast Exception in AdaptiveWS model

Former Member
0 Kudos

Hello All,

We have made few attribute addition in the existing structure.

After reimporting the WS model, we are getting the below error message,

java.lang.ClassCastException: class com.XXXX.XXX.mdm.massupload.wd.models.sbmvalidatewsmodel.String_Item:nokia.com/sbm~mdm~massupload@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@d385362@alive incompatible with class com.XXXX.XXX.mdm.massupload.wd.models.sbmvalidatewsmodel.ErrorMessage:nokia.com/sbm~mdm~massupload@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@d385362@alive

The Web Service is returning the list and when we try to initiate the element it throws the above error.

wdContext.nodeValidationErrors().nodeErrorMessage_2().getErrorMessage_2ElementAt(m).getItem1();

Could you please help what could be the reason and how to fix?

Thanks in advance.

Regards,

Senthil

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos

Senthil,

Try to delete the project from Web Dynpro perspective. Close NWDS and delete .metadata folder. 

location of metadata folder : C:\Documents and Settings\<USER ID>\Documents\SAP\workspace

Again create a project from NWDI.

Hope this helps!!

Thanks & Regards

Vijay K

Former Member
0 Kudos

HI,

Try after taking portal restart, some times we will get error because of cache als0.

Regards,

Rakesh Mathew