Java:java.sql.Clob.getCharacterStream()中的IllegalArgumentException

时间:2015-03-11 11:13:40

标签: java jdbc ejb clob illegalargumentexception

我正在开发一个应用程序,它包含一个单独的jboss 4.2服务器(是的,它是旧的)中的EJB模块(一个耳朵)和另一个jboss 4.2实例中的fornt结束模块(.war)。

在该结果集中执行JDBC调用并从中检索数据时, 我称之为以下方法。

public static String clobToString(Clob clob) {
    StringBuilder strOut = new StringBuilder();
    if (null != clob) {
        String aux;
        try {
            BufferedReader br = new BufferedReader(clob.getCharacterStream());
            while ((aux = br.readLine()) != null) {
                strOut.append(aux);
            }
        } catch (Exception e) {
            log.error(e);
        }

    }
    return strOut.toString();
}

然后我收到以下错误。

java.lang.IllegalStateException: Failed to find method for
hash:6019464871547390790 available={8276829932266231084=public abstract void
java.sql.CallableStatement.registerOutParameter(int,int,java.lang.String)
throws java.sql.SQLException, -4870182504746961607=public abstract
void java.sql.ResultSet.updateBlob(int,java.io.InputStream,long)
throws java.sql.SQLException, -986249454302332938=public abstract
java.math.BigDecimal java.sql.ResultSet.getBigDecimal(int,int) throws
java.sql.SQLException, -2603556243611874803=public abstract void
java.sql.ResultSet.updateAsciiStream(int,java.io.InputStream,int)
throws java.sql.SQLException, 6940864310164095298=public abstract void
java.sql.PreparedStatement.setObject(int,java.lang.Object,int) throws
java.sql.SQLException, -1839048404132746204=public abstract
java.io.InputStream java.sql.ResultSet.getBinaryStream(int) throws
java.sql.SQLException, 2412962096532620147=public abstract
java.net.URL java.sql.CallableStatement.getURL(int) throws
java.sql.SQLException, 3699478856524182484=public abstract int
java.sql.ResultSet.getInt(int) throws java.sql.SQLException,
-5709151791635973835=public abstract java.sql.Blob java.sql.ResultSet.getBlob(int) throws java.sql.SQLException,
1622039847402469151=public abstract java.sql.ResultSet
java.sql.DatabaseMetaData.getUDTs(java.lang.String,java.lang.String,java.lang.String,int[])
throws java.sql.SQLException, -2433480034363362194=public abstract
void java.sql.PreparedStatement.setNClob(int,java.sql.NClob) throws
java.sql.SQLException, -6485565124723778908=public abstract
java.net.URL jav

0 个答案:

没有答案