This content has been marked as final. Show 6 replies
Have you checked that the data type of the bind breaks is long?
It may be of type Number.
Thanks for reply
I have checked and it is of Long Type
its giving this exception
"java.lang.ClassCastException: oracle.apps.fnd.applcore.oaext.model.OAApplicationModuleImpl cannot be cast to oracle.apps.scm.landedCost.landedCosts.reviewPoDetails.uiModel.applicationModule.MaterialPOAMImpl"
the casting happens in this line,
PoSchedAssociatedChargesVOImpl poAssociatedChargesVOImpl = (PoSchedAssociatedChargesVOImpl)am.getPoSchedAssociatedCharges1();
so you may want to check if am appmodule returns the right VO.
check getPoSchedAssociatedCharges1() in the app module to see if it returns the right VO - assuming it has been hand changed by you and might have missed something.
Or it may be that the VO is not part of the AM, or you have not exposed the View accessor methods exposed to the client in the AM or VO.
can't you read error messages ?
oracle.apps.fnd.applcore.oaext.model.*OAApplicationModuleImpl* cannot be cast to oracle.apps.scm.landedCost.landedCosts.reviewPoDetails.uiModel.applicationModule.*MaterialPOAMImpl*"
translates to ...
OAApplicationModuleImpl <> MaterialPOAMImpl
MaterialPOAMImpl am = *(MaterialPOAMImpl)this.getApplicationModule();*
as the line causing the issue. You cast the AM to the wrong class. This is it
I am able to remove the casting exception now, but the code is not able to set the bind variable value. Any comments on that.
No comment on that. We can't help if we don't know what error you get. 'it's not working' is no help at all.
Run the app with -Djbo.debugoutput=console to get a printout of the query send to the db.