pom file modified in order to use the statistical-manager-cl-1.4.0. GWTdbManagerServiceImpl class modified in order to catch only the IndexOutBoundsException.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@101476 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-11-05 16:26:35 +00:00
parent fd79f44316
commit 697a84b635
2 changed files with 3 additions and 4 deletions

View File

@ -47,7 +47,7 @@
<dependency>
<groupId>org.gcube.data.analysis</groupId>
<artifactId>statistical-manager-cl</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
<version>[1.0.0-SNAPSHOT,1.4.0-SNAPSHOT]</version>
</dependency>
<dependency>

View File

@ -773,10 +773,9 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
logger.error("dbmanager-> ", e);
// TODO Exception Statistical management to remove a
// computation
if ((e.getMessage()
if (e.getMessage()
.contains(
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException"))||(e.getMessage()
.contains("java.lang.NullPointerException"))) {
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException")) {
throw new Exception("ServerException");
}
if (!(e instanceof StatisticalManagerException)) {