Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@98328 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-02 17:11:38 +00:00
parent a99f85b4b4
commit e83bfd0b52
1 changed files with 10 additions and 3 deletions

View File

@ -7706,21 +7706,28 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
HttpSession session = this.getThreadLocalRequest().getSession(); HttpSession session = this.getThreadLocalRequest().getSession();
if (session == null) { if (session == null) {
throw new TDGWTServiceException( throw new TDGWTServiceException(
"Error retrieving the session: null"); "Session is null");
} }
logger.debug("Session:" + session.getId()); logger.debug("Session:" + session.getId());
ASLSession aslSession = SessionUtil.getAslSession(session); ASLSession aslSession = SessionUtil.getAslSession(session);
if (aslSession == null) { if (aslSession == null) {
throw new TDGWTServiceException( throw new TDGWTServiceException(
"Error retrieving the asl session: null"); "ASLSession is null");
} }
String user = aslSession.getUsername(); String user = aslSession.getUsername();
logger.debug("Session User:" + user); logger.debug("Session User:" + user);
if (codelistMappingSession == null) {
throw new TDGWTServiceException(
"CodelistMappingSession is null");
}
logger.debug("StartCodelistMappingImport: " logger.debug("StartCodelistMappingImport: "
+ codelistMappingSession.toString()); + codelistMappingSession.toString());
SessionUtil.setCodelistMappingSession(session,codelistMappingSession);
importCodelistMappingFileOnService(session, aslSession, user, importCodelistMappingFileOnService(session, aslSession, user,
codelistMappingSession); codelistMappingSession);
} catch (TDGWTSessionExpiredException e) { } catch (TDGWTSessionExpiredException e) {