bug
This commit is contained in:
parent
ed35caece4
commit
bda10b7eb8
@ -95,8 +95,7 @@ public class AnnotationRestfullDispatcherImpl implements RestfullDispatcher {
|
||||
if (reqContext.sqlca != null)
|
||||
reqContext.sqlca.commit();
|
||||
} catch (Throwable e) {
|
||||
e = ((InvocationTargetException) e).getTargetException();
|
||||
logger.error("", e);
|
||||
logger.error("error:", e);
|
||||
if (reqContext.jboTx != null) {
|
||||
try {
|
||||
reqContext.jboTx.rollback();
|
||||
@ -111,6 +110,7 @@ public class AnnotationRestfullDispatcherImpl implements RestfullDispatcher {
|
||||
logger.error("sqlca rollback error", e1);
|
||||
}
|
||||
}
|
||||
e = ((InvocationTargetException) e).getTargetException();
|
||||
rsp = RspObject.build(e);
|
||||
rsp.getHeader().setCode("500");
|
||||
if (e.getMessage() != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user