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:
parent
c96b6cc551
commit
fd79f44316
|
@ -773,9 +773,10 @@ 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")) {
|
"javax.xml.ws.soap.SOAPFaultException: java.lang.IndexOutOfBoundsException"))||(e.getMessage()
|
||||||
|
.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