Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033696 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | have not tried | 2016-08-12 09:55 | 2016-08-18 10:06 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 77435e4a7b40 | ||||
Projection | none | ETA | none | Target Version | RR16Q4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | migueldejuana | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033696: 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | 33696-16Q1.diff [^] (5,126 bytes) 2016-08-15 19:48 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||||||||||||||||
|
Notes | |
(0089085) hgbot (developer) 2016-08-12 12:38 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 77435e4a7b40ba41925cf9d53712db38b242675c Author: Martin Taal <martin.taal <at> openbravo.com> Date: Fri Aug 12 12:37:48 2016 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/77435e4a7b40ba41925cf9d53712db38b242675c [^] Fixes issue 33696: NPE in POSImportEntryProcessor when the posterminal json property has an illegal value Moved code to static final members, handle incorrect "null" value from posterminal in a better way Note: changeset looks bigger than actual changes because of changed indenting of code --- M src/org/openbravo/retail/posterminal/importprocess/POSImportEntryProcessor.java --- |
(0089203) migueldejuana (developer) 2016-08-18 10:06 |
Tested and verified |
Issue History | |||
Date Modified | Username | Field | Change |
2016-08-12 09:55 | mtaal | New Issue | |
2016-08-12 09:55 | mtaal | Assigned To | => mtaal |
2016-08-12 09:55 | mtaal | Triggers an Emergency Pack | => No |
2016-08-12 09:55 | mtaal | Review Assigned To | => migueldejuana |
2016-08-12 09:55 | mtaal | Description Updated | View Revisions |
2016-08-12 12:38 | hgbot | Checkin | |
2016-08-12 12:38 | hgbot | Note Added: 0089085 | |
2016-08-12 12:38 | hgbot | Status | new => resolved |
2016-08-12 12:38 | hgbot | Resolution | open => fixed |
2016-08-12 12:38 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/77435e4a7b40ba41925cf9d53712db38b242675c [^] |
2016-08-12 12:45 | Orekaria | Status | resolved => new |
2016-08-12 12:45 | Orekaria | Resolution | fixed => open |
2016-08-12 12:46 | Orekaria | Status | new => scheduled |
2016-08-12 12:46 | Orekaria | Status | scheduled => resolved |
2016-08-12 12:46 | Orekaria | Resolution | open => fixed |
2016-08-12 14:35 | migueldejuana | Relationship added | related to 0033695 |
2016-08-15 19:48 | mtaal | File Added: 33696-16Q1.diff | |
2016-08-18 10:06 | migueldejuana | Note Added: 0089203 | |
2016-08-18 10:06 | migueldejuana | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |