° Cut off _action suffix when setting the action property the reqest object
° Unset done flag when processing an error to make sure it is actually processed
This commit is contained in:
parent
8bab32a94c
commit
3fee354352
1 changed files with 6 additions and 2 deletions
|
@ -344,8 +344,8 @@ public class RequestEvaluator implements Runnable {
|
||||||
try {
|
try {
|
||||||
localrtx.timer.beginEvent (requestPath+" execute");
|
localrtx.timer.beginEvent (requestPath+" execute");
|
||||||
|
|
||||||
// set the req.action property
|
// set the req.action property, cutting off the _action suffix
|
||||||
req.action = action;
|
req.action = action.substring (0, action.length()-7);
|
||||||
// try calling onRequest() function on object before
|
// try calling onRequest() function on object before
|
||||||
// calling the actual action
|
// calling the actual action
|
||||||
try {
|
try {
|
||||||
|
@ -407,6 +407,8 @@ public class RequestEvaluator implements Runnable {
|
||||||
abortTransaction (false);
|
abortTransaction (false);
|
||||||
if (error == null) {
|
if (error == null) {
|
||||||
app.errorCount += 1;
|
app.errorCount += 1;
|
||||||
|
// set done to false so that the error will be processed
|
||||||
|
done = false;
|
||||||
error = "Couldn't complete transaction due to heavy object traffic (tried "+tries+" times)";
|
error = "Couldn't complete transaction due to heavy object traffic (tried "+tries+" times)";
|
||||||
} else {
|
} else {
|
||||||
// error in error action. use traditional minimal error message
|
// error in error action. use traditional minimal error message
|
||||||
|
@ -434,6 +436,8 @@ public class RequestEvaluator implements Runnable {
|
||||||
res.reset ();
|
res.reset ();
|
||||||
if (error == null) {
|
if (error == null) {
|
||||||
app.errorCount += 1;
|
app.errorCount += 1;
|
||||||
|
// set done to false so that the error will be processed
|
||||||
|
done = false;
|
||||||
error = x.getMessage ();
|
error = x.getMessage ();
|
||||||
if (error == null || error.length() == 0)
|
if (error == null || error.length() == 0)
|
||||||
error = x.toString ();
|
error = x.toString ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue