[ 
https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676462#action_12676462
 ] 

Jacques Le Roux commented on OFBIZ-2207:
----------------------------------------

Yes it should be appropriate UEL syntax but :
I get these errors in log (I used voluntarily long lines)
{code}
2009-02-25 01:21:07,593 (http-0.0.0.0-18443-1) [     
ServiceEcaRule.java:133:INFO ] For Service ECA [updateReturnStatusFromReceipt] 
on [global-commit] got false for condition: 
[returnHeaderStatus][equals][RETURN_RECEIVED][true][String]
2009-02-25 01:21:07,625 (http-0.0.0.0-18443-1) 
[FlexibleMapAccessor.java:164:INFO ] UEL exception while setting value: 
javax.el.PropertyNotFoundException, original = 
totalsMap[receipt.returnItemSeqId]
2009-02-25 01:21:07,640 (http-0.0.0.0-18443-1) [          
Calculate.java:351:INFO ] Field not found with field-name 
totalsMap[receipt.returnItemSeqId], and map-name using a default of 0
2009-02-25 01:21:07,640 (http-0.0.0.0-18443-1) 
[FlexibleMapAccessor.java:164:INFO ] UEL exception while setting value: 
javax.el.PropertyNotFoundException, original = 
totalsMap[receipt.returnItemSeqId]
2009-02-25 01:21:07,640 (http-0.0.0.0-18443-1) 
[FlexibleMapAccessor.java:141:INFO ] UEL exception while getting value: 
java.lang.NumberFormatException: For input string: "_1", original = 
totalsMap.${receipt.returnItemSeqId}
2009-02-25 01:21:07,640 (http-0.0.0.0-18443-1) 
[FlexibleMapAccessor.java:141:INFO ] UEL exception while getting value: 
java.lang.NumberFormatException: For input string: "_1", original = 
totalsMap.${receipt.returnItemSeqId}
2009-02-25 01:21:07,640 (http-0.0.0.0-18443-1) [    
TransactionUtil.java:311:WARN ]
---- exception report ----------------------------------------------------------
[TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this 
stack trace shows where this is happening:
Exception: java.lang.Exception
Message: Error in simple-method [Update Return Status From ShipmentReceipt 
[file:/D:/workspace/ofbizRun/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml#updateReturnStatusFromReceipt]]:
 ; [Error with comparison in if-compare-field between fields 
[.totalsMap.${receipt.returnItemSeqId}] with value [null] and 
[.returnItem.returnQuantity] with value [1.000000] with operator 
[greater-equals] and
 type [BigDecimal]: , Left value is null, cannot complete compare for the 
operator greater-equals]
{code}

But when I make the change (and only this change) it does not solve this issue. 
I also tried other combinations (in each of the expressions this sub-expr is 
called), did not find the right one(s?) yet...

BTW which revision are you using ?

> Error when receiving return from customer
> -----------------------------------------
>
>                 Key: OFBIZ-2207
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2207
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Demo Server
>            Reporter: Daniel Riquelme
>            Priority: Minor
>
> When receiving a return from customer , the following error appears on screen:
> The Following Errors Occurred:
> Error:<br/> Error: Error trying to begin transaction, could not process 
> method: The current transaction is marked for rollback, not beginning a new 
> transaction and aborting current operation; the rollbackOnly was caused by: 
> Error in simple-method [Update Return Status From ShipmentReceipt 
> [file:/demo/deployments/demo.hotwaxmedia.com/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml#updateReturnStatusFromReceipt]]:
>  ; [Error with comparison in if-compare-field between fields 
> [.totalsMap.${receipt.returnItemSeqId}] with value [null] and 
> [.returnItem.returnQuantity] with value [1.000000] with operator 
> [greater-equals] and type [BigDecimal]: , Left value is null, cannot complete 
> compare for the operator greater-equals]   calling service 
> balanceInventoryItems in receiveInventoryProduct <br/> <br/>
> Steps to reproduce:
> 1. Create a sales order with default options and DemoCustomer as Customer.
> 2. Add GZ-2644 to the cart
> 3. Finalize Order
> 4. Quick Ship Entire Order
> 5. Create return
> 6. Check the product and click on Return Selected Item(s)
> 7. Accept the return
> 8. Click on Return Items -> Receive Return
> 9. Click on Receive Selected Product(s)
> The error occurs in the following simple method:
> order/script/org/ofbiz/order/order/OrderReturnServices.xml#updateReturnStatusFromReceipt
> In the console, the following error appears above the error shown on screen:
> 2009-02-24 15:45:55,438 (http-0.0.0.0-8443-2) 
> [FlexibleMapAccessor.java:164:INFO ] UEL exception while setting value: 
> javax.el.ELException: Error parsing '${}': syntax error at position 2, 
> encountered '}', expected 
> <IDENTIFIER>|<STRING>|<FLOAT>|<INTEGER>|'true'|'false'|'null'|'-'|'!'|'not'|'empty'|'(',
>  original = ${receipt.returnItemSeqId}
> One of the problematic lines relating to the last console message is:
> <if-empty field="totalsMap.${receipt.returnItemSeqId}">
> Regards,
> Daniel

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to