Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Groove Exprition Error on using Multiply operator When (Enable Groovy file Generation) is Checked

user13006074Nov 22 2017 — edited Nov 25 2017

on Adf Studio Edition Version 12.2.1.2.0

I'm getting this Error Message on Application compile

****************************************************************************************************************

<value n="description" v="Error(15,91): [Static type checking] - Cannot find matching method java.lang.Object#multiply(java.math.BigDecimal). Please check if the declared type is right and if the method exists. @ line 15, column 91."/>

****************************************************************************************************************

When I add Groovy Expression tested on Adf 11g.1.2.3.0

in a transient VO Attribute

the groovy expression is

---------------------------------------------------------------

if (DmDiscountRate==null & DmDiscountAmount != null) {(DmDiscountAmount==null ? 0 :DmDiscountAmount ) ;}

else {if (DmDiscountRate != null & DmDiscountAmount == null)

{ DocumentEntry.sum("ProductNetAmount") == null ? 0:DocumentEntry.sum("ProductNetAmount") * ((DmDiscountRate== null ? 0 : DmDiscountRate)/100)};

else {0}; }

-------------------------------------

I set the Transient excretion trustmode : trusted but I get the following Error

I add the same exact groovy Exprition inside the VO Source after I remove the check mark of Enable Groovy file Generation

pastedImage_5.png

and the application works fine and the value is calculated correct

is there any hint about that??

Thanks !!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2017
Added on Nov 22 2017
3 comments
559 views