Current Position:Home > Got AbstractMethodError with PreparedStatement.setCharacterStream

Got AbstractMethodError with PreparedStatement.setCharacterStream

Update:11-30Source: network consolidation
Advertisement
Hi,
I'm running WLS510SP12 NT with Oracle 5.0.6 and JDBC-Thin-Drivers, and
i'm getting this exception when writing a character stream into a
prepared sql-statement:
java.rmi.RemoteException: Exception in non-transactional EJB invoke:
java.lang.AbstractMethodError:
weblogic/jdbc/pool/PreparedStatement.setCharacterStream
     at weblogic.jdbc20.rmi.internal.PreparedStatementImpl.setCharacterStream(PreparedStatementImpl.java:330)
     at weblogic.jdbc20.rmi.SerialPreparedStatement.setCharacterStream(SerialPreparedStatement.java:421)
     at com.mybean.add(BOFaxBean.java:970)
Note that the Exception is not thrown in the oracle jdbc-driver, but
in a weblogic class.
Sourcecode:
pstm = con.prepareStatement("INSERT INTO FAX VALUES(?,?,?,?,?,?,?)");
pstm.setCharacterStream(3, new StringReader(sFAX.toString()),
sFAX.length() );
Can anybody help?
Regards,
Andy

The Best Answer

Advertisement
Andreas Lange wrote:
Hi,
I'm running WLS510SP12 NT with Oracle 5.0.6 and JDBC-Thin-Drivers, and
i'm getting this exception when writing a character stream into a
prepared sql-statement:
java.rmi.RemoteException: Exception in non-transactional EJB invoke:
java.lang.AbstractMethodError:
weblogic/jdbc/pool/PreparedStatement.setCharacterStream
at weblogic.jdbc20.rmi.internal.PreparedStatementImpl.setCharacterStream(PreparedStatementImpl.java:330)
at weblogic.jdbc20.rmi.SerialPreparedStatement.setCharacterStream(SerialPreparedStatement.java:421)
at com.mybean.add(BOFaxBean.java:970)
Note that the Exception is not thrown in the oracle jdbc-driver, but
in a weblogic class.That class is just catching all exceptions from the DBMS driver, and casting them to a SQLException.
It's the Oracle driver you're using. It doesn't even know about that JDBC 2.0 call. It must be a
JDBC 1.0 driver.
Joe
>
>
Sourcecode:
pstm = con.prepareStatement("INSERT INTO FAX VALUES(?,?,?,?,?,?,?)");
pstm.setCharacterStream(3, new StringReader(sFAX.toString()),
sFAX.length() );
Can anybody help?
Regards,
Andy
  • Got AbstractMethodError with PreparedStatement.setCharacterStream Update:11-30

    Hi, I'm running WLS510SP12 NT with Oracle 5.0.6 and JDBC-Thin-Drivers, and i'm getting this exception when writing a character stream into a prepared sql-statement: java.rmi.RemoteException: Exception in non-transactional EJB invoke: java.lang.Abstra

  • PreparedStatement.setCharacterStream()  length Update:11-30

    It seems perverse that PreparedStatement.setCharacterStream() requires the length of the character stream as a parameter. Is there a value you can feed it so it will simply read to EOF? public void setCharacterStream(int�parameterIndex, Reader�reader

  • Inserting to a CLOB field in Oracle 8i  Database Update:10-11

    Hi All, I am trying to insert a value to a CLOB field in Oracle 8i DB. The value gets inserted when the size is less (Up to around 80 Bytes). When the size becomes larger the insertion does not take place but no exception is thrown. Please see below

  • Character Encodings when using Streams for Text Update:11-30

    hi there, i have a table with a key column (ordinary varchar) and a text column (memo field in ms access, connection is done via the jdbc2odbc bridge). if i read the stuff with ResultSet.getAsciiStream() everything is fine, i.e., printing the resulti

  • SQLServer 2000 & JDBC Update:11-30

    Hi, I still have problems with the SQL Server 2000 drivers for JDBC. The documentation shows that .beforeFirst(), .absolute() and others methods are available but when i run my app, I have the error : [Microsoft][SQLServer 2000 Driver for JDBC]Unsupp

  • ORA-24334 error after loadSampleData Update:11-30

     Hi Stephen, There is a known issue with reading/writing large CLOBs and double-byte characters. For the Oracle jDriver in WLS 6.1 sp1 you will need to request two patches from WLS support ( http://www.bea.com/support/index.jsp ). Request the patches

  • AbstractMethodError while calling PreparedStatement.setBinaryStream() Update:10-11

    I am getting AbstractMethodError while calling PreparedStatement.setBinaryStream(int, InputStream) for a BLOB column I am using Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit JDBC Driver ojdbc6.jar (downloaded from oracle website c

  • Blob and java.lang.AbstractMethodError Update:10-11

    I can't make this code (below) to work. I get an java.lang.AbstractMethodError trying. Does anyone have a clue about what might cause this error? My setup: jsdk 1.4 Oracle 8.1.7 Forte4J 4.0 Thanks in advance Roland ---------- the code --------------

  • Oracle 10G Java PreparedStatement.setString problem Update:11-30

    I am using jboss application server on a windows XP operating system. I installed Oracle 10G production release and am using the jdk 1.4.2. When I do a preparedStatment.setString method call to bind the code it does not appear to be binding the varia

  • AbstractMethodError with addBatch on CallableStatement Update:11-30

    Hi!! I am connecting to DB2 through Weblogic5.1 connection Pool and trying to execute a batch update statement on both PreparedStatement and CallableStatement, but it gives me the error AbstractMethodError. Could anyone please suggest the cause of th