Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034783Retail ModulesStoreServerpublic2016-12-20 11:442017-10-23 18:22
gorkaion 
mtaal 
normalminoralways
closedfixed 
5
 
 
Sandrahuguet
No
0034783: [Store Server 2197]Bad error message when central is offline on services configured to be executed only in central.
The POS Templates configured to be printed in the backend are using a Mobile Service that can only be executed in the central server. The java implementation is overriding the executeOnlyInCentral() method to force this behavior.

When the central server is offline it is not possible to print but the error shown to the user is not friendly. See screenshot.
To test/simulate the issue in a non-but enviroment:
- install multi-server
- set synchronized mode preference
- change the MultiServerJSONProcess.executeOnlyInCentral method to always return true in the store server
- then goto webpos, prepare a ticket
- just before pressing done button stop the central server
- see the error message

Reproduce in BUT environment;

== Prerequisites ==
On a BUT Snapshot with at least core and posterminal modules on tip. PrintDocument java class of posterminal must extend MultiServerJSONProcess.

Ensure that the POS Terminals are using the invoice templates provided by BUT Reports modules that are configured to be printed in the backend.

== Steps ==
Try to print a invoice with central offline
1. Open a closed receipt.
2. Click on Print this receipt.
3. Select the opened printed to enable the print invoices button.
4. Click on Print Invoices.
5. A error message not user friendly is shown (see screenshot)

The MultiserverJSONProcess class should check if Central is only when the executeOnlyInCentral returns true to return a more friendly error message.
No tags attached.
related to defect 0037146 closed mtaal [Store Server 3288]Bad error message when central is offline on services configured to be executed only in central. 
png centrall-offline-error.png (99,908) 2016-12-20 11:44
https://issues.openbravo.com/file_download.php?file_id=10193&type=bug
png

png Selection_137.png (193,877) 2017-01-30 13:05
https://issues.openbravo.com/file_download.php?file_id=10354&type=bug
png
Issue History
2016-12-20 11:44gorkaionNew Issue
2016-12-20 11:44gorkaionAssigned To => StoreServer
2016-12-20 11:44gorkaionFile Added: centrall-offline-error.png
2016-12-20 11:44gorkaionResolution time => 1483398000
2016-12-20 11:44gorkaionTriggers an Emergency Pack => No
2016-12-20 11:45gorkaionSummaryBad error message when central is offline on services configured to be executed only in central. => [Store Server 2197]Bad error message when central is offline on services configured to be executed only in central.
2016-12-22 10:44mtaalAssigned ToStoreServer => mtaal
2017-01-30 13:04hgbotCheckin
2017-01-30 13:04hgbotNote Added: 0093932
2017-01-30 13:04hgbotStatusnew => resolved
2017-01-30 13:04hgbotResolutionopen => fixed
2017-01-30 13:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8488534a4c7c2d6a3973887958b76ce89f6fbd42 [^]
2017-01-30 13:05mtaalFile Added: Selection_137.png
2017-01-30 13:05mtaalReview Assigned To => Sandrahuguet
2017-01-30 13:08mtaalSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14393#r14393
2017-02-02 14:03gorkaionIssue cloned0035140
2017-02-13 18:43SandrahuguetNote Added: 0094284
2017-02-13 18:43SandrahuguetStatusresolved => closed
2017-10-23 18:22gorkaionIssue cloned0037146
2017-10-23 18:22gorkaionRelationship addedrelated to 0037146

Notes
(0093932)
hgbot   
2017-01-30 13:04   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8488534a4c7c2d6a3973887958b76ce89f6fbd42
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jan 30 13:04:22 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8488534a4c7c2d6a3973887958b76ce89f6fbd42 [^]

Fixes issue 34783: [Store Server 2197]Bad error message when central is offline
Give more user friendly error message but still log the error.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0094284)
Sandrahuguet   
2017-02-13 18:43   
reviewed and tested