/** * Dump the fault info to the log at debug level. */ public void dump() { log.debug(dumpToString()); }
/** * Dump the fault info to the log at debug level. */ public void dump() { log.debug(dumpToString()); }
/** * Dump the fault info to the log at debug level. */ public void dump() { log.debug(dumpToString()); }
/** * The override of the base class method prints out the * fault info before the stack trace. * * @param ps where to print */ public void printStackTrace(PrintStream ps) { ps.println(dumpToString()); super.printStackTrace(ps); }
/** * The override of the base class method prints out the * fault info before the stack trace. * * @param pw where to print */ public void printStackTrace(java.io.PrintWriter pw) { pw.println(dumpToString()); super.printStackTrace(pw); }
/** * The override of the base class method prints out the * fault info before the stack trace. * * @param pw where to print */ public void printStackTrace(java.io.PrintWriter pw) { pw.println(dumpToString()); super.printStackTrace(pw); }
/** * The override of the base class method prints out the * fault info before the stack trace. * * @param ps where to print */ public void printStackTrace(PrintStream ps) { ps.println(dumpToString()); super.printStackTrace(ps); }
/** * The override of the base class method prints out the * fault info before the stack trace. * * @param pw where to print */ public void printStackTrace(java.io.PrintWriter pw) { pw.println(dumpToString()); super.printStackTrace(pw); }
/** * The override of the base class method prints out the * fault info before the stack trace. * * @param ps where to print */ public void printStackTrace(PrintStream ps) { ps.println(dumpToString()); super.printStackTrace(ps); }
/** * this method writes a fault out to an HTML stream. This includes * escaping the strings to defend against cross-site scripting attacks * @param writer * @param axisFault */ private void writeFault(PrintWriter writer, AxisFault axisFault) { String localizedMessage = XMLUtils.xmlEncodeString(axisFault. getLocalizedMessage()); writer.println("<pre>Fault - " + localizedMessage + "<br>"); writer.println(axisFault.dumpToString()); writer.println("</pre>"); }
/** * this method writes a fault out to an HTML stream. This includes * escaping the strings to defend against cross-site scripting attacks * @param writer * @param axisFault */ protected void writeFault (PrintWriter writer, AxisFault axisFault) { String localizedMessage = XMLUtils.xmlEncodeString (axisFault.getLocalizedMessage()); writer.println ("<pre>Fault - " + localizedMessage + "<br>"); writer.println (axisFault.dumpToString()); writer.println ("</pre>"); } }
/** * this method writes a fault out to an HTML stream. This includes * escaping the strings to defend against cross-site scripting attacks * @param writer * @param axisFault */ protected void writeFault (PrintWriter writer, AxisFault axisFault) { String localizedMessage = XMLUtils.xmlEncodeString (axisFault.getLocalizedMessage()); writer.println ("<pre>Fault - " + localizedMessage + "<br>"); writer.println (axisFault.dumpToString()); writer.println ("</pre>"); } }
/** * this method writes a fault out to an HTML stream. This includes * escaping the strings to defend against cross-site scripting attacks * @param writer * @param axisFault */ private void writeFault(PrintWriter writer, AxisFault axisFault) { String localizedMessage = XMLUtils.xmlEncodeString(axisFault. getLocalizedMessage()); writer.println("<pre>Fault - " + localizedMessage + "<br>"); writer.println(axisFault.dumpToString()); writer.println("</pre>"); }
/** * this method writes a fault out to an HTML stream. This includes * escaping the strings to defend against cross-site scripting attacks * @param writer * @param axisFault */ private void writeFault(PrintWriter writer, AxisFault axisFault) { String localizedMessage = XMLUtils.xmlEncodeString(axisFault. getLocalizedMessage()); writer.println("<pre>Fault - " + localizedMessage + "<br>"); writer.println(axisFault.dumpToString()); writer.println("</pre>"); }
/** * this method writes a fault out to an HTML stream. This includes * escaping the strings to defend against cross-site scripting attacks * @param writer * @param axisFault */ protected void writeFault (PrintWriter writer, AxisFault axisFault) { String localizedMessage = XMLUtils.xmlEncodeString (axisFault.getLocalizedMessage()); writer.println ("<pre>Fault - " + localizedMessage + "<br>"); writer.println (axisFault.dumpToString()); writer.println ("</pre>"); } }
/** * Creates in instance of <code>AdminClient</code> and * invokes <code>process(args)</code>. * <p>Diagnostic output goes to <code>log.info</code>.</p> * @param args Commands to process */ public static void main (String[] args) { try { AdminClient admin = new AdminClient(); String result = admin.process(args); if (result != null) { System.out.println( StringUtils.unescapeNumericChar(result) ); } else { System.exit(1); } } catch (AxisFault ae) { System.err.println(Messages.getMessage("exception00") + " " + ae.dumpToString()); System.exit(1); } catch (Exception e) { System.err.println(Messages.getMessage("exception00") + " " + e.getMessage()); System.exit(1); } } }
/** * Creates in instance of <code>AdminClient</code> and * invokes <code>process(args)</code>. * <p>Diagnostic output goes to <code>log.info</code>.</p> * @param args Commands to process */ public static void main (String[] args) { try { AdminClient admin = new AdminClient(); String result = admin.process(args); if (result != null) { System.out.println( StringUtils.unescapeNumericChar(result) ); } else { System.exit(1); } } catch (AxisFault ae) { System.err.println(Messages.getMessage("exception00") + " " + ae.dumpToString()); System.exit(1); } catch (Exception e) { System.err.println(Messages.getMessage("exception00") + " " + e.getMessage()); System.exit(1); } } }
/** * Creates in instance of <code>AdminClient</code> and * invokes <code>process(args)</code>. * <p>Diagnostic output goes to <code>log.info</code>.</p> * @param args Commands to process */ public static void main (String[] args) { try { AdminClient admin = new AdminClient(); String result = admin.process(args); if (result != null) { System.out.println( StringUtils.unescapeNumericChar(result) ); } else { System.exit(1); } } catch (AxisFault ae) { System.err.println(Messages.getMessage("exception00") + " " + ae.dumpToString()); System.exit(1); } catch (Exception e) { System.err.println(Messages.getMessage("exception00") + " " + e.getMessage()); System.exit(1); } } }
System.err.println( ((AxisFault)e).dumpToString() ); } else e.printStackTrace();
private void executeInCurrentVM(String[] args) { //now create a client and invoke it AdminClient admin = null; try { admin = new AdminClient(true); } catch (ServiceException e) { throw new BuildException("failed to start the axis engine", e); } String result = null; try { result = admin.process(args); if (result != null) { log(result); } else { logOrThrow(getTaskName() + " got a null response"); } } catch (AxisFault fault) { log(fault.dumpToString(), Project.MSG_ERR); traceParams(Project.MSG_ERR); logOrThrow(getTaskName() + " failed with " + fault.getFaultCode().toString() + " " + fault.getFaultString()); } catch (BuildException e) { //rethrow these throw e; } catch (Exception e) { throw new BuildException("Exception in " + getTaskName(), e); } }