Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046306Retail ModulesWeb POS Hardware Managerpublic2021-04-20 12:112021-05-10 07:45
joniturralde93 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR21Q3 
No
0046306: Number format exception in RFIDencoding
In this line:
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/blob/master/project/src/com/openbravo/pos/util/RFIDEncoding.java#L58 [^]

.leftPad(String.valueOf(Integer.parseInt(binaryCompanyPrefix, 2)), 13 - partition, '0');


There are cases where binaryCompanyPrefix is too large for the int type and it is necessary to use Long.

Long.parseLong instead of Integer.parseInt

Edit:
- It seems BigInteger could be needed in some circumstances.
- It would be nice to have a log added where we get printed the scanned tag in case some of these conversions fail.
Just use screen mode with RFID and enter this tag:
E2806890000050031ED6C16D

Or debug that part of the code and manually modify the value of binaryCompanyPrefix
Long.parseLong instead of Integer.parseInt

Edit:
- It seems BigInteger could be needed in some circumstances.
- It would be nice to have a log added where we get printed the scanned tag in case some of these conversions fail.
No tags attached.
Issue History
2021-04-20 12:11joniturralde93New Issue
2021-04-20 12:11joniturralde93Assigned To => Retail
2021-04-20 12:11joniturralde93Resolution time => 1620684000
2021-04-20 12:11joniturralde93Triggers an Emergency Pack => No
2021-04-21 09:38joniturralde93Description Updatedbug_revision_view_page.php?rev_id=22352#r22352
2021-04-21 09:38joniturralde93Steps to Reproduce Updatedbug_revision_view_page.php?rev_id=22354#r22354
2021-04-21 09:38joniturralde93Proposed Solution updated
2021-04-21 15:20ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-04-26 07:56hgbotNote Added: 0127528
2021-04-26 07:57hgbotNote Added: 0127529
2021-05-05 14:39ranjith_qualiantech_comStatusnew => scheduled
2021-05-10 07:45hgbotNote Added: 0127920
2021-05-10 07:45hgbotNote Added: 0127921
2021-05-10 07:45hgbotResolutionopen => fixed
2021-05-10 07:45hgbotStatusscheduled => closed
2021-05-10 07:45hgbotFixed in Version => RR21Q3
2021-05-10 07:45hgbotNote Added: 0127922
2021-05-10 07:45hgbotNote Added: 0127923

Notes
(0127528)
hgbot   
2021-04-26 07:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/15 [^]
(0127529)
hgbot   
2021-04-26 07:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/22 [^]
(0127920)
hgbot   
2021-05-10 07:45   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^]
Changeset: c6a02d0dd9580134fbcd740cf5807628cffe6e15
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-04-29T13:09:50+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/c6a02d0dd9580134fbcd740cf5807628cffe6e15 [^]

Related to ISSUE-46306: Replaced Integer with Long when parsing EPC

---
M project/src/com/openbravo/pos/util/RFIDEncoding.java
---
(0127921)
hgbot   
2021-05-10 07:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/merge_requests/22 [^]
(0127922)
hgbot   
2021-05-10 07:45   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^]
Changeset: 03f05a75434254bcc7893a1824044f4fa4259e06
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-04-28T11:05:19+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/03f05a75434254bcc7893a1824044f4fa4259e06 [^]

Fixed ISSUE-46306: Replaced Integer with Long when parsing EPC

---
M bin/poshw.jar
M bin/rev.id
---
(0127923)
hgbot   
2021-05-10 07:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/merge_requests/15 [^]