bug fixed in servelet and related to the removecomputation. Exception returned from statistical was changed from java.lang.IndexOutOfBoundsException in java.lang.NullPointerException. Exception managed in servlet.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@101447 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-11-04 16:40:51 +00:00
parent c96b6cc551
commit fd79f44316
1 changed files with 3 additions and 2 deletions

View File

@ -773,9 +773,10 @@ 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")) {
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException"))||(e.getMessage()
.contains("java.lang.NullPointerException"))) {
throw new Exception("ServerException");
}
if (!(e instanceof StatisticalManagerException)) {