- session checker widget added.
- logger.error() formatted in GWTdbManagerServiceImpl git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@100202 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f99822d5b4
commit
38d0c898f3
11
pom.xml
11
pom.xml
|
@ -118,6 +118,17 @@
|
|||
<artifactId>aslcore</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>gcube-widgets</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>session-checker</artifactId>
|
||||
<version>[0.0.0-SNAPSHOT,1.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- <dependency> -->
|
||||
|
|
|
@ -12,6 +12,7 @@ import com.google.gwt.user.client.ui.RootPanel;
|
|||
import org.gcube.portlets.user.databasesmanager.client.panels.GxtBorderLayoutPanel;
|
||||
import org.gcube.portlets.user.databasesmanager.client.resources.Resources;
|
||||
import org.gcube.portlets.user.databasesmanager.client.utils.ConstantsPortlet;
|
||||
import org.gcube.portlets.widgets.sessionchecker.client.CheckSession;
|
||||
|
||||
/**
|
||||
* @author "Loredana Liccardo loredana.liccardo@isti.cnr.it"
|
||||
|
@ -31,6 +32,8 @@ public class DatabasesManager implements EntryPoint {
|
|||
*/
|
||||
|
||||
public void onModuleLoad() {
|
||||
|
||||
CheckSession.getInstance().startPolling();
|
||||
|
||||
HandlerManager eventBus = new HandlerManager(this);
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
// config.setOverflowToDisk(true);
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error("dbmanager-> Failed to get cache: " + e);
|
||||
logger.error("dbmanager-> Failed to get cache: ", e);
|
||||
// e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
// e.printStackTrace();
|
||||
}
|
||||
|
||||
|
@ -279,7 +279,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
// TODO: handle exception
|
||||
// e.printStackTrace();
|
||||
// throw new Exception("Failed to load data. " + e);
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
}
|
||||
// }
|
||||
|
@ -377,7 +377,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
// TODO: handle exception
|
||||
// e.printStackTrace();
|
||||
// throw new Exception("Failed to load data " + );
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
|
@ -486,7 +486,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
// TODO: handle exception
|
||||
// e.printStackTrace();
|
||||
// throw new Exception("Failed to load data. " + e);
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
|
||||
}
|
||||
|
@ -607,7 +607,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
} catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// throw new Exception("Failed to load data. " + e);
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
|
@ -878,7 +878,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException")) {
|
||||
e = new Exception("ServerException");
|
||||
}
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
|
@ -1674,7 +1674,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
} catch (Exception e) {
|
||||
logger.info("dbmanager-> startComputation: the job submit has failed!");
|
||||
// e.printStackTrace();
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
@ -1752,7 +1752,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
if (smResType.equals(SMResourceType.ERROR)) {
|
||||
Exception e = new Exception(smResource.description());
|
||||
// e.printStackTrace();
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
@ -1880,7 +1880,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
logger.info("dbmanager-> Could not remove the computation ID "
|
||||
+ computationId + " corresponding to jobID "
|
||||
+ uidSubmitQuery);
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
}
|
||||
}
|
||||
// remove job status
|
||||
|
@ -2015,7 +2015,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
employeeCache.remove(key);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
logger.error("dbmanager-> " + e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw new Exception("Failure to clear the cache. " + e);
|
||||
}
|
||||
}
|
||||
|
@ -2050,7 +2050,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error(e);
|
||||
logger.error("dbmanager-> ", e);
|
||||
throw e;
|
||||
|
||||
} finally {
|
||||
|
|
|
@ -14,9 +14,14 @@
|
|||
<!-- Inherit the default GWT style sheet. You can change -->
|
||||
<!-- the theme of your GWT application by uncommenting -->
|
||||
<!-- any one of the following lines. -->
|
||||
<inherits name='com.google.gwt.user.theme.standard.Standard' />
|
||||
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard' /> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
|
||||
<inherits name='org.gcube.portlets.widgets.sessionchecker.SessionChecker' />
|
||||
|
||||
<!-- inherits gCube Widgets Library -->
|
||||
<inherits name='org.gcube.portlets.user.gcubewidgets.WidgetFactory'/>
|
||||
|
||||
<!-- Other module inherits -->
|
||||
|
||||
|
|
|
@ -17,10 +17,15 @@
|
|||
<servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- <servlet> -->
|
||||
<!-- <servlet-name>jUnitHostImpl</servlet-name> -->
|
||||
<!-- <servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class> -->
|
||||
<!-- </servlet> -->
|
||||
<!-- <servlet> -->
|
||||
<!-- <servlet-name>jUnitHostImpl</servlet-name> -->
|
||||
<!-- <servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class> -->
|
||||
<!-- </servlet> -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>checkServlet</servlet-name>
|
||||
<servlet-class>org.gcube.portlets.widgets.sessionchecker.server.SessionCheckerServiceImpl</servlet-class>
|
||||
</servlet>
|
||||
|
||||
|
||||
<servlet-mapping>
|
||||
|
@ -37,6 +42,11 @@
|
|||
<servlet-name>jUnitHostImpl</servlet-name>
|
||||
<url-pattern>/databasesmanager/junithost/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>checkServlet</servlet-name>
|
||||
<url-pattern>/databasesmanager/checksession</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!-- Default page to serve -->
|
||||
|
|
Loading…
Reference in New Issue