|
|
@@ -76,8 +76,9 @@ public class InitializerBean {
|
|
|
return auth.runCallable(new BeanCaller(prop,jndi,Arrays.asList(params)));
|
|
|
} catch (Exception e) {
|
|
|
log.error(key,e);
|
|
|
- if(e.getCause().getClass().getSimpleName().equals("IllegalArgumentException")) {
|
|
|
- return e.getCause().getMessage();
|
|
|
+ //if(e.getCause().getClass().getSimpleName().equals("IllegalArgumentException")) {
|
|
|
+ if(e.getClass().getSimpleName().equals("IllegalArgumentException")) {
|
|
|
+ return e.getMessage();
|
|
|
}
|
|
|
return "System busy. Please try again later.";
|
|
|
}
|