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:
parent
fd79f44316
commit
697a84b635
2
pom.xml
2
pom.xml
|
@ -47,7 +47,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.data.analysis</groupId>
|
<groupId>org.gcube.data.analysis</groupId>
|
||||||
<artifactId>statistical-manager-cl</artifactId>
|
<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>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -773,10 +773,9 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
||||||
logger.error("dbmanager-> ", e);
|
logger.error("dbmanager-> ", e);
|
||||||
// TODO Exception Statistical management to remove a
|
// TODO Exception Statistical management to remove a
|
||||||
// computation
|
// computation
|
||||||
if ((e.getMessage()
|
if (e.getMessage()
|
||||||
.contains(
|
.contains(
|
||||||
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException"))||(e.getMessage()
|
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException")) {
|
||||||
.contains("java.lang.NullPointerException"))) {
|
|
||||||
throw new Exception("ServerException");
|
throw new Exception("ServerException");
|
||||||
}
|
}
|
||||||
if (!(e instanceof StatisticalManagerException)) {
|
if (!(e instanceof StatisticalManagerException)) {
|
||||||
|
|
Loading…
Reference in New Issue