Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033696
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2016-08-12 09:552016-08-18 10:06
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision77435e4a7b40
ProjectionnoneETAnoneTarget VersionRR16Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033696: NPE in POSImportEntryProcessor when the posterminal json property has an illegal value

DescriptionSee 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 ReproduceRun 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 Solutionlog warning
set status to Error if no posterminal can be found
TagsNo tags attached.
Attached Filesdiff file icon 33696-16Q1.diff [^] (5,126 bytes) 2016-08-15 19:48 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0033695 closedmigueldejuana It is still possible to press twice Done or Layaway buttons 
depends on backport 0033701RR16Q3.1 closedmtaal NPE in POSImportEntryProcessor when the posterminal json property has an illegal value 
depends on backport 0033702RR16Q2.2 closedmtaal NPE in POSImportEntryProcessor when the posterminal json property has an illegal value 

-  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
Powered by Mantis Bugtracker