Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:46:22+00:00 2026-06-12T16:46:22+00:00

I am using the db2jcc driver FIX Pack 6 of the 9 series. My

  • 0

I am using the db2jcc driver FIX Pack 6 of the 9 series.

My code

public void setParamsPreparedStatement(PreparedStatement s, String[][] params) throws Exception {
  ...
  Clob myClob = s.getConnection().createClob();
  myClob.setString(1, params[i][0]);

  s.setClob(i+1, myClob);

In JBoss 5.1.0 GA it throws the error:

12:01:54,914 242266 ERROR [org.jboss.aspects.tx.TxPolicy] (ConsumerMessageQueue:(1):) javax.ejb.EJBTransactionRolledbackException: Unexpected Error
java.lang.AbstractMethodError: org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5.createClob()Ljava/sql/Clob;
    at database.Executer.setParamsPreparedStatement(Executer.java:761)

In plain java it gives the error:

Exception in thread "main" java.lang.AbstractMethodError: com.ibm.db2.jcc.b.b.createClob()Ljava/sql/Clob;
    at TestClob.main(TestClob.java:20)

What is the cause?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:46:23+00:00Added an answer on June 12, 2026 at 4:46 pm

    From my experience the createClob() call is not needed at all. Just use PreparedStatement.setCharacterStream()

    PreparedStatement pstmt = conn.prepareStatement("insert into clob_table (id, clob_colum) values (?,?)";
    String clobData = "....";
    Reader reader = new StringReader(clobData);
    pstmt.setInt(1, 42);
    pstmt.setCharacterStream(2, reader, clobData.length());
    pstmt.executeUpdate();
    

    I have found this to be the only cross-DBMS/JDBC solution to handle CLOBs (and BLOBs in a similar manner).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using this code: Java Server side: ... out = new PrintWriter(this.client.getOutputStream(), true); ... public
Using MongoDB C# Driver (official form 10gen), I'm doing the following code: using (database.RequestStart())
Using import datetime in python, is it possible to take a formatted time/date string
using Telerik.WinControls.Data; using Telerik.WinControls.UI.Export; namespace Directory { public partial class radForm : Form {
Using this code, the following execution yields strange results: C 100 R W The
I'm trying to connect to a remote database using the following java code, but
Using Android NDK is it possible (from native C-code) to get a list of
Using the DateTime class, if I try to run the following code: $mydate =
Using the Excel 2010 OleDb driver and an OleDbConnection I can query and manipulate
Using server-side C#, how can I convert a querystring to a JSON string of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.