cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mumbai <chin...@hotmail.com>
Subject How can I access clob using esql. Gives error java.lang.AbstractMethodError
Date Tue, 12 Feb 2002 02:02:26 GMT
import java.lang.*;
import java.sql.*;
import java.sql.CallableStatement;
import oracle.jdbc.driver.*;
public class FirstThinDr {
  public static void main (String args []) throws SQLException
  {
        String s = null;
        DriverManager.registerDriver (new
oracle.jdbc.driver.OracleDriver());
        Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@bbbbbbb:", "dododo", "sososo");
                             // @machineName:port:SID,   userid,
password

        Statement stmt = conn.createStatement();
        ResultSet rset = stmt.executeQuery("select received_from,text
from carmen_email_alert where id = 5483");
        //if (rset.next()) {
         System.out.println("I am in");
         while (rset.next()){
----->               t = rset.getClob(2);
               int y = (int) t.length();
               System.out.Println (rset.getString("received_from"));
               System.out.println ("The length is" + y);
         }// Print col 1
         stmt.close();

        //}
  }
}

This prog. Gives error  java.lang.AbstractMethodError at -----> (pl. go
to the prog.) What could be the problem ?

Thanks in advance
chinmay


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message