Example usage for javax.crypto BadPaddingException getMessage

List of usage examples for javax.crypto BadPaddingException getMessage

Introduction

In this page you can find the example usage for javax.crypto BadPaddingException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientTenantTable.java

public void deleteTenantByIdIdx(CFAstAuthorization Authorization, long argId) {
    final String S_ProcName = "deleteTenantByIdIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTenantMessageFormatter.formatTenantRqstDeleteByIdIdx("\n\t\t\t", argId) + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*from  www. j  a va  2 s. c o m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    boolean deleted = responseHandler.getDeleted();
    if (!deleted) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Server did not respond with a Deleted message");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientTenantTable.java

public void deleteTenantByClusterIdx(CFAstAuthorization Authorization, long argClusterId) {
    final String S_ProcName = "deleteTenantByClusterIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTenantMessageFormatter.formatTenantRqstDeleteByClusterIdx("\n\t\t\t", argClusterId)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*  ww  w.  jav  a2s  .  co  m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    boolean deleted = responseHandler.getDeleted();
    if (!deleted) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Server did not respond with a Deleted message");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryCurrencyTable.java

public CFAstISOCountryCurrencyBuff[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstReadAll("\n\t\t\t") + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {// ww w .  j av a 2s  .com
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object sortedListObj = responseHandler.getListOfObjects();
    if (sortedListObj == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getListOfObjects");
    }
    List<ICFAstISOCountryCurrencyObj> sortedList = (List<ICFAstISOCountryCurrencyObj>) sortedListObj;
    int sz = sortedList.size();
    CFAstISOCountryCurrencyBuff arr[] = new CFAstISOCountryCurrencyBuff[sz];
    Iterator<ICFAstISOCountryCurrencyObj> iter = sortedList.iterator();
    ICFAstISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryLanguageTable.java

public CFAstISOCountryLanguageBuff[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryLanguageMessageFormatter.formatISOCountryLanguageRqstReadAll("\n\t\t\t") + "\n"
            + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//from  ww w  .  j  ava  2s. c  om
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object sortedListObj = responseHandler.getListOfObjects();
    if (sortedListObj == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getListOfObjects");
    }
    List<ICFAstISOCountryLanguageObj> sortedList = (List<ICFAstISOCountryLanguageObj>) sortedListObj;
    int sz = sortedList.size();
    CFAstISOCountryLanguageBuff arr[] = new CFAstISOCountryLanguageBuff[sz];
    Iterator<ICFAstISOCountryLanguageObj> iter = sortedList.iterator();
    ICFAstISOCountryLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOCountryLanguageObj) iter.next();
        arr[idx] = cur.getISOCountryLanguageBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientTenantTable.java

public void deleteTenantByUNameIdx(CFAstAuthorization Authorization, long argClusterId, String argTenantName) {
    final String S_ProcName = "deleteTenantByUNameIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAstXMsgTenantMessageFormatter.formatTenantRqstDeleteByUNameIdx("\n\t\t\t",
                    argClusterId, argTenantName)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//from   ww w. ja  v a 2 s .  com
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    boolean deleted = responseHandler.getDeleted();
    if (!deleted) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Server did not respond with a Deleted message");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryCurrencyTable.java

public void createISOCountryCurrency(CFAstAuthorization Authorization, CFAstISOCountryCurrencyBuff Buff) {
    final String S_ProcName = "createISOCountryCurrency";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstCreate("\n\t\t\t", Buff)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*  w ww  .  j av a  2 s . co m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstISOCountryCurrencyObj realized = null;
        if (lastObjectProcessed instanceof ICFAstISOCountryCurrencyObj) {
            realized = (ICFAstISOCountryCurrencyObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstISOCountryCurrencyObj");
        }
        if (realized != null) {
            Buff.set(realized.getISOCountryCurrencyBuff());
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getLastObjectProcessed()");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryCurrencyTable.java

public CFAstISOCountryCurrencyBuff readDerived(CFAstAuthorization Authorization,
        CFAstISOCountryCurrencyPKey PKey) {
    final String S_ProcName = "readDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstRead("\n\t\t\t", PKey)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*from   w w  w.  j av  a 2  s . com*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstISOCountryCurrencyBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstISOCountryCurrencyObj realized = null;
        if (lastObjectProcessed instanceof ICFAstISOCountryCurrencyObj) {
            realized = (ICFAstISOCountryCurrencyObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstISOCountryCurrencyObj");
        }
        if (realized != null) {
            buff = realized.getISOCountryCurrencyBuff();
        }
    }
    return (buff);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryCurrencyTable.java

public CFAstISOCountryCurrencyBuff lockDerived(CFAstAuthorization Authorization,
        CFAstISOCountryCurrencyPKey PKey) {
    final String S_ProcName = "lockDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstLock("\n\t\t\t", PKey)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//from   w  w w  . ja v a  2 s  .  co  m
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstISOCountryCurrencyBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstISOCountryCurrencyObj realized = null;
        if (lastObjectProcessed instanceof ICFAstISOCountryCurrencyObj) {
            realized = (ICFAstISOCountryCurrencyObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstISOCountryCurrencyObj");
        }
        if (realized != null) {
            buff = realized.getISOCountryCurrencyBuff();
        }
    }
    return (buff);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryLanguageTable.java

public void createISOCountryLanguage(CFAstAuthorization Authorization, CFAstISOCountryLanguageBuff Buff) {
    final String S_ProcName = "createISOCountryLanguage";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryLanguageMessageFormatter.formatISOCountryLanguageRqstCreate("\n\t\t\t", Buff)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {/*  w w  w .j  av a  2s. c  o  m*/
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstISOCountryLanguageObj realized = null;
        if (lastObjectProcessed instanceof ICFAstISOCountryLanguageObj) {
            realized = (ICFAstISOCountryLanguageObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstISOCountryLanguageObj");
        }
        if (realized != null) {
            Buff.set(realized.getISOCountryLanguageBuff());
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0,
                "responseHandler.getLastObjectProcessed()");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstXMsgClient.CFAstXMsgClientISOCountryLanguageTable.java

public CFAstISOCountryLanguageBuff readDerived(CFAstAuthorization Authorization,
        CFAstISOCountryLanguagePKey PKey) {
    final String S_ProcName = "readDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryLanguageMessageFormatter.formatISOCountryLanguageRqstRead("\n\t\t\t", PKey)
            + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    try {//w  w  w.j  a  v  a  2  s .c o m
        schema.getCFTipClientHandler().issueAppRequest(rqst);
    } catch (BadPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught BadPaddingException - " + e.getMessage(), e);
    } catch (IllegalBlockSizeException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught IllegalBlockSizeException - " + e.getMessage(), e);
    } catch (InvalidKeyException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidKeyException - " + e.getMessage(), e);
    } catch (NoSuchAlgorithmException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchAlgorithmException - " + e.getMessage(), e);
    } catch (InvalidAlgorithmParameterException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught InvalidAlgorithmParameterException - " + e.getMessage(), e);
    } catch (NoSuchPaddingException e) {
        throw CFLib.getDefaultExceptionFactory().newRuntimeException(getClass(), S_ProcName,
                "Caught NoSuchPaddingException - " + e.getMessage(), e);
    }
    ICFTipResponseHandler responseHandler = schema.getCFTipClientHandler().getResponseHandler();
    CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised();
    if (exceptionRaised != null) {
        throw exceptionRaised;
    }
    CFAstISOCountryLanguageBuff buff = null;
    Object lastObjectProcessed = responseHandler.getLastObjectProcessed();
    if (lastObjectProcessed != null) {
        ICFAstISOCountryLanguageObj realized = null;
        if (lastObjectProcessed instanceof ICFAstISOCountryLanguageObj) {
            realized = (ICFAstISOCountryLanguageObj) lastObjectProcessed;
        } else {
            throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName,
                    "lastObjectProcessed", lastObjectProcessed, "ICFAstISOCountryLanguageObj");
        }
        if (realized != null) {
            buff = realized.getISOCountryLanguageBuff();
        }
    }
    return (buff);
}