Code example for InvocationTargetException

Methods: printStackTrace

0
            try { 
                return (OutputArchive) factory.invoke(null, params);
            } catch (IllegalArgumentException ex) {
                ex.printStackTrace();
            } catch (InvocationTargetException ex) {
                ex.printStackTrace();
            } catch (IllegalAccessException ex) {
                ex.printStackTrace();
            } 
        } 
        return null; 
    } 
    /** 
     * Creates a new instance of RecordWriter 
     * @param out Output stream where the records will be serialized 
     * @param format Serialization format ("binary", "xml", or "csv") 
     */ 
    public RecordWriter(OutputStream out, String format)
    throws IOException {
        archive = createArchive(out, format);