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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038414
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Store Summary Reportmajorhave not tried2018-04-19 15:422018-04-25 09:56
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisioned59c5ac2a17
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomtaal
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038414: Error when routing entries of OBPOS_Userterminal_Access

DescriptionThe following error happens when routing a deletion from the OBPOS_Userterminal_Access table:

org.jumpmind.symmetric.SymmetricException: Failed to route data: 10457573 for table: obpos_userterminal_access.
Failed pk data was: "74C76B9AAF0447BDAA9C7A1933CF79F2"
Failed old data was: "74C76B9AAF0447BDAA9C7A1933CF79F2","9404134F8B374DEE92E79CD87B834E19","DEE69131374348AC8876E251549D36CA","Y","2018-04-10 13:45:25.315000","42E871E1F9F4424A80B420068DB5E452","2018-04-10 13:45:25.315000","42E871E1F9F4424A80B420068DB5E452","3FAAAE18E35941BAAB8FA0C9349ACD27","04CDDA3C65FB42F4812CAA58A16F0715"

        at org.jumpmind.symmetric.service.impl.RouterService.routeData(RouterService.java:955)
        at org.jumpmind.symmetric.service.impl.RouterService.selectDataAndRoute(RouterService.java:839)
        at org.jumpmind.symmetric.service.impl.RouterService.routeDataForChannel(RouterService.java:636)
        at org.jumpmind.symmetric.service.impl.RouterService.routeDataForEachChannel(RouterService.java:429)
        at org.jumpmind.symmetric.service.impl.RouterService.routeData(RouterService.java:202)
        at org.jumpmind.symmetric.job.RouterJob.doJob(RouterJob.java:50)
        at org.jumpmind.symmetric.job.AbstractJob.invoke(AbstractJob.java:175)
        at org.jumpmind.symmetric.job.AbstractJob.run(AbstractJob.java:219)
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at org.openbravo.retail.storeserver.synchronization.router.UserTerminalAccessRouter.doRouteToOrganizationFilteredNodes(UserTerminalAccessRouter.java:64)
Steps To ReproduceIn the central server:
- Create an entry in the POS Terminal window
- Assign that terminal to a user in the POS Terminal Access Tab of the User window
- Delete the POS Terminal created in the first step. The exception will be thrown then SymmetricDS tries to route the deletion
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0104009)
hgbot (developer)
2018-04-20 10:00

Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: ed59c5ac2a1728e79a29533e26aaf26b9ccc09b1
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Apr 20 10:00:01 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/ed59c5ac2a1728e79a29533e26aaf26b9ccc09b1 [^]

Fixes issue 38414: Some routers queried records that could be deleted

There were two routers that made queries and that were not taking into accout that the records they were looking
for could be deleted.

Now they detect if the record is deleted, and if so they route the change to all store servers. Routing deletions
is safe because if the deleted record is not part of the store, the change will just be ignored.

---
M src/org/openbravo/retail/storeserver/synchronization/router/ProductPriceRouter.java
M src/org/openbravo/retail/storeserver/synchronization/router/UserTerminalAccessRouter.java
---
(0104067)
mtaal (manager)
2018-04-25 09:56

reviewed and tested

- Issue History
Date Modified Username Field Change
2018-04-19 15:42 AugustoMauch New Issue
2018-04-19 15:42 AugustoMauch Assigned To => AugustoMauch
2018-04-19 15:42 AugustoMauch Triggers an Emergency Pack => No
2018-04-20 09:43 AugustoMauch Steps to Reproduce Updated View Revisions
2018-04-20 10:00 AugustoMauch Review Assigned To => mtaal
2018-04-20 10:00 hgbot Checkin
2018-04-20 10:00 hgbot Note Added: 0104009
2018-04-20 10:00 hgbot Status new => resolved
2018-04-20 10:00 hgbot Resolution open => fixed
2018-04-20 10:00 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/ed59c5ac2a1728e79a29533e26aaf26b9ccc09b1 [^]
2018-04-25 09:56 mtaal Note Added: 0104067
2018-04-25 09:56 mtaal Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker