compilation error fix.

This commit is contained in:
magenoxx 2012-01-26 01:59:53 +04:00
parent 6defeeed1f
commit e50de69420
2 changed files with 8 additions and 1 deletions

View file

@ -202,7 +202,11 @@ public class Session {
private void runEmbeddedMageServer() { private void runEmbeddedMageServer() {
if (embeddedMageServerAction != null) { if (embeddedMageServerAction != null) {
embeddedMageServerAction.execute(); try {
embeddedMageServerAction.execute();
} catch (MageException e) {
logger.error(e);
}
} }
} }

View file

@ -746,6 +746,8 @@ public class MageServerImpl implements MageServer {
} catch (MageException me) { } catch (MageException me) {
throw new RuntimeException(me); throw new RuntimeException(me);
} }
} else {
LogServiceImpl.instance.log(LogKeys.KEY_NOT_VALID_SESSION_INTERNAL, actionName, sessionId);
} }
} }
} }
@ -769,6 +771,7 @@ public class MageServerImpl implements MageServer {
return executeWithResult(actionName, sessionId, action); return executeWithResult(actionName, sessionId, action);
} }
//TODO: also run in threads with future task
protected <T> T executeWithResult(String actionName, final String sessionId, final ActionWithResult<T> action) throws MageException { protected <T> T executeWithResult(String actionName, final String sessionId, final ActionWithResult<T> action) throws MageException {
if (SessionManager.getInstance().isValidSession(sessionId)) { if (SessionManager.getInstance().isValidSession(sessionId)) {
try { try {