Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0027225 | Retail Modules | Web POS | public | 2014-07-29 08:37 | 2014-11-16 22:01 | ||||||||||||||
Reporter | mtaal | ||||||||||||||||||
Assigned To | marvintm | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | RR15Q1 | Fixed in Version | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | mtaal | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0027225: ProcessCashClose: Infinite loop/stackoverflow when there are reconcilliations in draft mode | ||||||||||||||||||
Description | When there are reconcilliations in draft mode the process cash close (ProcessCashClose class) reports an error. The way this is done results in an infinite loop as one jsonobject (the jsonresponse in the code) is set in itself resulting in an infinite loop when doing to String. See the stack trace in the steps to reproduce. Note that it seems that the admin mode is not handled correctly in this case either. The attached diff solves the stackoverflow but not the admin mode topic | ||||||||||||||||||
Steps To Reproduce | - Create manually a reconcilliations for a pos payment method for one of the pos terminals - in that terminal create a ticket and do a cashup You will get the following stack trace: at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) at org.codehaus.jettison.json.JSONObject.toString(JSONObject.java:1038) at org.codehaus.jettison.json.JSONObject.valueToString(JSONObject.java:1159) fff0bb6f 2014-07-29 02:34:32,797 [ajp-8809-5] WARN org.openbravo.dal.core.OBContext - Unbalanced calls to setAdminMode and restorePreviousMode. Consider setting the constant OBContext.ADMIN_TRACE_SIZE to a value higher than 0 to debug this situation | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | 27225.patch (1,111) 2014-07-29 08:40 https://issues.openbravo.com/file_download.php?file_id=7102&type=bug issue-27225-retailq2.2.diff (1,308) 2014-07-29 08:57 https://issues.openbravo.com/file_download.php?file_id=7103&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2014-07-29 08:37 | mtaal | New Issue | |||||||||||||||||
2014-07-29 08:37 | mtaal | Assigned To | => marvintm | ||||||||||||||||
2014-07-29 08:37 | mtaal | Triggers an Emergency Pack | => No | ||||||||||||||||
2014-07-29 08:40 | mtaal | File Added: 27225.patch | |||||||||||||||||
2014-07-29 08:57 | mtaal | File Added: issue-27225-retailq2.2.diff | |||||||||||||||||
2014-07-29 08:58 | mtaal | Note Added: 0068946 | |||||||||||||||||
2014-08-29 15:01 | mtaal | Relationship added | related to 0026942 | ||||||||||||||||
2014-08-29 15:02 | mtaal | Relationship added | related to 0027394 | ||||||||||||||||
2014-11-11 18:00 | mtaal | Target Version | RR14Q3 => RR15Q1 | ||||||||||||||||
2014-11-16 22:00 | mtaal | Status | new => scheduled | ||||||||||||||||
2014-11-16 22:00 | mtaal | Note Added: 0071673 | |||||||||||||||||
2014-11-16 22:00 | mtaal | fix_in_branch | => pi | ||||||||||||||||
2014-11-16 22:01 | mtaal | Note Added: 0071674 | |||||||||||||||||
2014-11-16 22:01 | mtaal | Status | scheduled => resolved | ||||||||||||||||
2014-11-16 22:01 | mtaal | Resolution | open => fixed | ||||||||||||||||
2014-11-16 22:01 | mtaal | Review Assigned To | => mtaal | ||||||||||||||||
2014-11-16 22:01 | mtaal | Note Added: 0071675 | |||||||||||||||||
2014-11-16 22:01 | mtaal | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|