trans.info().log("### Removed",Future.sizeForDeletion(),"Future and",Approval.sizeForDeletion(),"Approvals");
Future.resetLocalData();
Approval.resetLocalData();
- } catch (Throwable t) {
+ } catch (Exception t) {
t.printStackTrace();
}
trans.info().log("### Removed",Future.sizeForDeletion(),"Future and",Approval.sizeForDeletion(),"Approvals");
Future.resetLocalData();
Approval.resetLocalData();
- } catch (Throwable t) {
+ } catch (Exception t) {
t.printStackTrace();
}
trans.info().log("### Removed",Future.sizeForDeletion(),"Future and",Approval.sizeForDeletion(),"Approvals");
Future.resetLocalData();
Approval.resetLocalData();
- } catch (Throwable t) {
+ } catch (Exception t) {
t.printStackTrace();
}
} finally {
trans.info().log("### Removed",Future.sizeForDeletion(),"Future and",Approval.sizeForDeletion(),"Approvals");
Future.resetLocalData();
Approval.resetLocalData();
- } catch (Throwable t) {
+ } catch (Exception t) {
t.printStackTrace();
}
default:
}
}
- } catch (Throwable e) {
+ } catch (Exception e) {
trans.error().log("Exception: ", e.getMessage(),
" \n occurred while performing", curr.memo,
" from Ticket ", curr.id.toString());
try {
AAFSSO aafsso = new AAFSSO(args);
+ String noexit = aafsso.access().getProperty("no_exit");
try {
PropAccess access = aafsso.access();
+
if(aafsso.ok()) {
Define.set(access);
AuthzEnv env = new AuthzEnv(access);
} finally {
aafsso.close();
StringBuilder err = aafsso.err();
- String noexit = aafsso.access().getProperty("no_exit");
if (err != null) {
err.append("to continue...");
System.err.println(err);
}
- if(noexit==null) {
- return;
- }
-
}
+ if(noexit==null) {
+ return;
+ }
+
+
} catch (MessageException e) {
System.out.println("MessageException caught");
System.err.println(e.getMessage());
- } catch (Throwable e) {
+ } catch (Exception e) {
e.printStackTrace(System.err);
}
System.exit(rv);
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.interfaceVersion>2.1.1-SNAPSHOT</project.interfaceVersion>
<!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
- <project.jettyVersion>9.4.8.v20171121</project.jettyVersion>
+ <project.jettyVersion>9.4.11.v20180605</project.jettyVersion>
<powermock.version>1.5.1</powermock.version>
<project.ext_root_dir>/opt/app/osaaf</project.ext_root_dir>
<!-- SONAR -->
int exitCode = 0;
doExit = true;
try {
- AAFSSO aafsso;
+ AAFSSO aafsso=null;
PropAccess access;
if(args.length>0 && args[0].equals("validate")) {
}
if(cmds.size()==0) {
- aafsso.setLogDefault();
+ if(aafsso!=null) {
+ aafsso.setLogDefault();
+ }
// NOTE: CHANGE IN CMDS should be reflected in AAFSSO constructor, to get FQI->aaf-id or not
System.out.println("Usage: java -jar <cadi-aaf-*-full.jar> cmd [<tag=value>]*");
System.out.println(" create <FQI> [<machine>]");
ps.println("</tomcat-users>");
ps.flush();
- } catch (Throwable t) {
+ } catch (Exception t) {
t.printStackTrace(ps);
return false;
}