Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033702 | Retail Modules | Web POS | public | 2016-08-12 09:55 | 2016-08-18 13:35 | |||||||
Reporter | mtaal | |||||||||||
Assigned To | mtaal | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR16Q2.2 | Fixed in Version | RR16Q2.2 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | migueldejuana | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0033702: NPE in POSImportEntryProcessor when the posterminal json property has an illegal value | |||||||||||
Description | See stacktrace [1], this causes the import entry from not being saved at all. Change the code [2] to set the status to error and a warning messages. [1] Caused by: org.openbravo.base.exception.OBException: java.lang.NullPointerException at org.openbravo.mobile.core.process.DataSynchronizationProcess.createImportEntry(DataSynchronizationProcess.java:89) at org.openbravo.mobile.core.process.DataSynchronizationProcess.executeCreateImportEntry(DataSynchronizationProcess.java:115) ... 41 more Caused by: java.lang.NullPointerException at org.openbravo.retail.posterminal.importprocess.POSImportEntryProcessor.onSave(POSImportEntryProcessor.java:79) at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source) [2] https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/060b566c4098/src/org/openbravo/retail/posterminal/importprocess/POSImportEntryProcessor.java [^] | |||||||||||
Steps To Reproduce | Run retail Put breakpoint in java code in POSImportEntryProcessor Login to webpos Do some actions At breakpoint change the json to set the posTerminalId to the value "null" (note use the string value "null" so not NULL or null) | |||||||||||
Proposed Solution | log warning set status to Error if no posterminal can be found | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-08-12 12:46 | Orekaria | Type | defect => backport | |||||||||
2016-08-12 12:46 | Orekaria | Target Version | RR16Q4 => RR16Q2.2 | |||||||||
2016-08-15 19:39 | hgbot | Checkin | ||||||||||
2016-08-15 19:39 | hgbot | Note Added: 0089101 | ||||||||||
2016-08-15 19:39 | hgbot | Status | scheduled => resolved | |||||||||
2016-08-15 19:39 | hgbot | Resolution | open => fixed | |||||||||
2016-08-15 19:39 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/77435e4a7b40ba41925cf9d53712db38b242675c [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2.2/org.openbravo.retail.posterminal/rev/0eadefd4c5c3e835e70a2873c04b6615e871509a [^] | |||||||||
2016-08-18 13:35 | guilleaer | Status | resolved => closed | |||||||||
2016-08-18 13:35 | guilleaer | Fixed in Version | => RR16Q2.2 |
Notes | |||||
|
|||||
|
|