Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054904Retail ModulesWeb POSpublic2024-03-11 10:412024-03-11 10:55
guilleaer 
Retail 
normalcriticalhave not tried
closedduplicate 
5
 
 
Coding ( Testing )
No
0054904: "Save Again" does not work when trying to reprcoess an -errors while importing-
Save again does not work
Add to order loader,java the following code

  @Override
  public JSONObject saveRecord(JSONObject jsonorder) throws Exception {
+ if (1 == 1) {
+ throw new OBException("GAL error");
+ }

From POS create an order
It will go to errors while importing

Remove above code

press "save again" -> It does not work

Eclipse stack trace:

2024-03-11 10:31:27,429 [http-nio-8080-exec-10] ERROR org.openbravo.retail.posterminal.SaveDataOnProcessHandler - Error while Saving the record
org.codehaus.jettison.json.JSONException: A JSONArray text must start with '[' at character 1 of {
    "0":"DFCDA38B0E28420BA5B5FC5C7D240D46",
    "csrfToken":"F909B01C2E694DAAB428DEA96344C77D"
}
    at org.codehaus.jettison.json.JSONTokener.syntaxError(JSONTokener.java:438) ~[jettison-1.3-patched.jar:?]
    at org.codehaus.jettison.json.JSONArray.<init>(JSONArray.java:98) ~[jettison-1.3-patched.jar:?]
    at org.codehaus.jettison.json.JSONArray.<init>(JSONArray.java:149) ~[jettison-1.3-patched.jar:?]
    at org.openbravo.retail.posterminal.SaveDataOnProcessHandler.execute(SaveDataOnProcessHandler.java:34) [classes/:?]
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:69) [classes/:?]
    at org.openbravo.retail.posterminal.SaveDataOnProcessHandler$Proxy$_$$_WeldClientProxy.execute(Unknown Source) [classes/:?]
    at org.openbravo.client.kernel.KernelServlet.processActionRequest(KernelServlet.java:319) [classes/:?]
    at org.openbravo.client.kernel.KernelServlet.doGet(KernelServlet.java:208) [classes/:?]
    at org.openbravo.client.kernel.KernelServlet.doPost(KernelServlet.java:291) [classes/:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) [servlet-api.jar:?]

No tags attached.
duplicate of defect 0054801 closed jarmendariz POS2 Error while forcing "Close Tills" from Backend 
Issue History
2024-03-11 10:41guilleaerNew Issue
2024-03-11 10:41guilleaerAssigned To => Retail
2024-03-11 10:41guilleaerRegression level => Coding ( Testing )
2024-03-11 10:41guilleaerTriggers an Emergency Pack => No
2024-03-11 10:55AugustoMauchRelationship addedduplicate of 0054801
2024-03-11 10:55AugustoMauchStatusnew => closed
2024-03-11 10:55AugustoMauchResolutionopen => duplicate

There are no notes attached to this issue.