[jira] Created: (OFBIZ-2207) Error when receiving return from customer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)

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

Daniel Riquelme commented on OFBIZ-2207:
----------------------------------------

When totalsMap.${receipt.returnItemSeqId} is changed to ${totalsMap.receipt.returnItemSeqId} the error disappears and the item gets added to the reception.
Is this the appropriate UEL syntax ?

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Adrian Crum commented on OFBIZ-2207:
------------------------------------

The problem is the expression ${receipt.returnItemSeqId} evaluates to an integer, so it is not a valid identifier. There has been considerable discussion about this on the dev mailing list. You can look there for the solution.


> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

Adrian,

What we are still missing is a quick reference with some examples in. Of course there is [this in wiki|http://docs.ofbiz.org/display/OFBTECH/Unified+Expression+Language+(JSR-245)+in+OFBiz] but examples are missing.
Could you please have a look at this case if I can fix it before ?

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

I thought I found a solution (see OrderReturnServices.xml.updateReturnStatusFromReceipt.patch)
But there is another problem : try to recreate the same use case than above but with WG-5569  also added.
When trying to return all (all checkeck) you get another error. I will see later...

> 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 | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-2207:
--------------------------------------

    Assignee: Jacques Le Roux

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.updateReturnStatusFromReceipt.patch

> 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
>         Attachments: OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Comment: was deleted

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

A patch with a solution for new issue (multi returns)

Also I think that we can get rid of
<!-- Workaround for bug: returnPrice=16.99, returnablePrice=16.9894 => OrderReturnPriceCannotExceedThePurchasePrice -->
I suggested in 2005 when we were still using Double



> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

Hi Daniel,

This last patch fix 4 issues
* Remove the old Double workaround I suggested in summer 2005 (BigD solves this issue :))
* Fix a bug (related to UEL change) in createReturnItem
* Fix bugs (related to UEL change) in updateReturnStatusFromReceipt
* Add import org.ofbiz.base.util.*; wich was missing in ReceiveReturn.groovy

Could you please check that it works also for you in all cases ?

Something keeps me worrying though. If you check all items when creating the return from the order, only one of the items (and its adjustements if any) is(are) taken into account into the return. So if you have 3 products you have to come back 2 times and to create 3 returns. Not sure if it a bug (I don't think it could be introduced by my changes), could you check that also ?

Thanks

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

Oops, I removed accidently the error message
<add-error><fail-property resource="OrderErrorUiLabels" property="OrderReturnPriceCannotExceedThePurchasePrice"/></add-error>


> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

Removed an old ambiguous Si's comment that was not needed

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

A last refinement, I also tried to replace
{quote}
\-            <calculate field="returnTotalAmount"><number value="0.0"/></calculate>
+            <set field="returnTotalAmount" value="0" type="BigDecimal"/>

and

\-                    <calculate field="returnTotalCtx.adjustment" type="BigDecimal"><number value="0.0"/></calculate>
+                    <set field="returnTotalCtx.adjustment" value="0" type="BigDecimal"/>

but got an issue with

                    <if-compare field="availableReturnTotal" operator="less" value="-0.01" type="BigDecimal">
                        <add-error><fail-property resource="OrderErrorUiLabels" property="OrderReturnPriceCannotExceedTheOrderTotal"/></add-error>
                    </if-compare>
{quote}

Did not understand quickly why, so gave up...


> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment: OrderReturnServices.xml.patch

They work both the same, but I'm more confident with these last changes (changed while looking at the new UI behaviour)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment:     (was: OrderReturnServices.xml.patch)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment:     (was: OrderReturnServices.xml.patch)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.patch, OrderReturnServices.xml.updateReturnStatusFromReceipt.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment:     (was: OrderReturnServices.xml.patch)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment:     (was: OrderReturnServices.xml.patch)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2207) Error when receiving return from customer

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux updated OFBIZ-2207:
-----------------------------------

    Attachment:     (was: OrderReturnServices.xml.patch)

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> 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.

12