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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036884
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServermajoralways2017-09-19 09:372017-11-19 23:56
ReporterxabiermerinoView Statuspublic 
Assigned Tomtaal 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036884: [SERQA 3289] If we stop the instance instead of tomcat we get a timeout paying a ticket

DescriptionIf we stop the instance instead of tomcat we get a timeout paying a ticket
Steps To Reproduce1: Log into WebPOS (using Central Server URL)
2: Stop amazon's instance
3: Pay a ticket
4: realize a message of a timeout appears after some minutes
TagsSERQA
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0037249pi closedmtaal For server to server requests set read and connection time out 

-  Notes
(0100604)
mtaal (manager)
2017-11-19 23:54

I reproduced this on the
DRU_QA - BUT-DEV CENTRAL SERVER and DRU_QA - BUT-DEV STORE SERVER

Making a change in the MobileServerRequestExecutor.createConnection method solves and shows a message after 5 seconds. The change is to set connection/read time out.

This change has been implemented/added as part of another issue. This issue will be closed as it is already resolved by the other issue.


  private HttpURLConnection createConnection(String serverKey, String serverUrl, String wsPart,
      String method, JSONObject parameters) throws Exception {
    String localServerUrl = serverUrl;
    // TODO: maybe handle this with a validation on the formfield
    if (!localServerUrl.toLowerCase().startsWith("http://" [^])
        && !localServerUrl.toLowerCase().startsWith("https://" [^])) {
      localServerUrl = "http://" [^] + localServerUrl;
    }
    final URL url = new URL(localServerUrl + wsPart);
    final HttpURLConnection hc = (HttpURLConnection) url.openConnection();
    hc.setRequestMethod(method);
    hc.setAllowUserInteraction(false);
    hc.setDefaultUseCaches(false);
    hc.setDoOutput(true);
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    hc.setConnectTimeout(5000);
    hc.setReadTimeout(5000);
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
(0100605)
mtaal (manager)
2017-11-19 23:56

Resolved by issue: 32749
(0100606)
mtaal (manager)
2017-11-19 23:56

Closed as related issue is closed

- Issue History
Date Modified Username Field Change
2017-09-19 09:37 xabiermerino New Issue
2017-09-19 09:37 xabiermerino Assigned To => StoreServer
2017-09-19 09:37 xabiermerino Resolution time => 1506895200
2017-09-19 09:37 xabiermerino Triggers an Emergency Pack => No
2017-09-19 09:38 xabiermerino Tag Attached: SERQA
2017-11-06 18:44 mtaal Assigned To StoreServer => mtaal
2017-11-19 23:54 mtaal Note Added: 0100604
2017-11-19 23:55 mtaal Relationship added duplicate of 0037249
2017-11-19 23:56 mtaal Relationship deleted 0037249
2017-11-19 23:56 mtaal Relationship added related to 0037249
2017-11-19 23:56 mtaal Status new => scheduled
2017-11-19 23:56 mtaal Note Added: 0100605
2017-11-19 23:56 mtaal Status scheduled => resolved
2017-11-19 23:56 mtaal Resolution open => fixed
2017-11-19 23:56 mtaal Note Added: 0100606
2017-11-19 23:56 mtaal Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker