java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getClob [message #179835] |
Thu, 29 June 2006 00:08 |
ksrk
Messages: 6 Registered: June 2006
|
Junior Member |
|
|
Hi Techies,
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
java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getClob(Ljava/lang/String;)Ljava/sql/Clob;
at com.stivant.esp.ruleengine.webpms.DBRulePM.getDTOFromResultSet(Unknown Source)
at com.stivant.esp.ruleengine.webpms.DBRulePM.getRuleListItems(Unknown Source)
at com.stivant.esp.ruleengine.webpms.DBRuleSetPM.getRuleListItems(Unknown Source)
at com.stivant.esp.ruleengine.servlet.util.sessionclient.RuleSetSessionClient.getRuleListItems(Unknown Source)
at com.stivant.esp.ruleengine.servlet.util.rule.RuleNavigationManager.expandRuleSet(Unknown Source)
at com.stivant.esp.ruleengine.servlet.util.rule.RuleNavigationManager.expandApplication(Unknown Source)
at com.stivant.esp.ruleengine.servlet.util.rule.RuleNavigationManager.getRuleNavigator(Unknown Source)
at org.apache.jsp.htmls.jsps.RuleManagement_jsp._jspService(RuleManagement_jsp.java:140)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
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
|
|
|