java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.
- From: seetharamakrishna@xxxxxxxxx
- Date: 30 Jun 2006 03:19:27 -0700
Hi All,
I am trying to write the jdbc code which is independent to database. I
am trying to access the clob datatype for oracle n mysql.
But I am getting the following xception
javax.servlet.ServletException:
oracle.jdbc.driver.OracleResultSetImpl.getClob(Ljava/lang/String;)Ljava/sql/Clob;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
org.apache.jsp.htmls.jsps.RuleManagement_jsp._jspService(RuleManagement_jsp.java:461)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
Here is my code
if (dataType.equals("CLOB")) {
System.out.println("inside if");
oracle.sql.CLOB expressionClob = (oracle.sql.CLOB) rs
..getClob("EXPRESSION");
System.out.println("inside");
long clobLenLong = expressionClob.length();
int clobLenInt = (new Long(clobLenLong)).intValue();
System.out.println( clobLenInt);
String expression = expressionClob.getSubString(1, clobLenInt);
}
else {
System.out.println("inside else");
msclob = MYSQLUtil.getBlobString((java.sql.Blob) rs
..getBlob("EXPRESSION"));
}
Am i missing something in my code .
thanks,
Krish
.
- Prev by Date: Re: hsqldb vs. derby
- Previous by thread: ResultSet.updateString against DB2 giving "Column not updatable"
- Index(es):