"Usage: edituser | finduser | findcerts | pkcs10req | pkcs12req | certreq | revokecert | getpublisherqueuelength | revoketoken | revokeuser | checkrevocationstatus | generatenewuser | createcrl | cacertrequest | cacertresponse | customlog | stress");
}
} catch (Exception e) {
Throwable cause = e.getCause();
if (cause instanceof EjbcaException_Exception) {
EjbcaException_Exception ejbcaex = (EjbcaException_Exception)cause;
EjbcaException ee = ejbcaex.getFaultInfo();
System.out.println("Error: "+ee.getErrorCode().getInternalErrorCode()+": "+ee.getMessage());
} else {
System.out.println(e.getMessage());
}
e.printStackTrace();