}
}
if (invalidType) {
// Lost the session - throw
DistributedAccessException ex = new DistributedAccessException();
TextData txt1 = new TextData();
TextData txt2 = new TextData();
txt1.setValue(this.sessionToString(this.applicationSession));
txt2.setValue(this.sessionToString(type));
if (LogMgr.getInstance().test(
Framework.Constants.SP_MT_DEBUG,
Constants.HTTP_SVC,
Constants.HTTP_TRACE, 5)) {
Logger
.getLogger("task.part.logmgr")
.info(
"HTTPSession.setApplicationSession - current sesion type is ");
Logger.getLogger("task.part.logmgr").info(
txt1.toString());
Logger.getLogger("task.part.logmgr").info(
"therefore it cannot be changed to ");
Logger.getLogger("task.part.logmgr").info(
txt2.toString());
}
ex
.setWithParams(
Framework.Constants.SP_ER_USER,
new TextData(
Application
.getMsgCatalog()