Oracle.jdbc.driver.oracleResultSet Vs java.sql.ResultSet

Hi all
Could any one got any idea on this problem...
My application program is forced to use both Java Result Set(java.sql.ResultSet) and Oracle ResultSet(jdbc.driver.oracleResultSet).
This on javac get compiled and is working fine....
But when i try to compile with vbjc(visibroker-java compiler)... it failes to compile...
throwing ...
.."The method oracle.jdbc2.Blob getBlob(int) declared in class oracle.jdbc.driver.OracleResultSet cannot override the method of the same signature declared in interface java.sql.ResultSet. They must have the same return
type."

Hi Prowzen,
Ur reply was much userful, which gave me a direction to prob into... Thank You Very MUCH.
I relpaced
BLOB blob = ((OracleResultSet)rs).getBLOB(int);
with
oracle.sql.BLOB blob =(BLOB)rs.getObject(int);
So eliminating usage of OracleResultSet, the conflicts got cleared...
Keep writing...
Regards
Sreekumar P P.
[email protected]

Similar Messages

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z

    Hello.
    I'm trying to detect if a row is the last one of a ResultSet (from a
    executeQuery):
    ResultSet results = sql.executeQuery();
    if (results.isLast())
         out.println("EMPTY");
    But I get this error message:
    Error 500
    Servlet internal error:
    java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z
         at estructura_10._jspService(mycode_10.java:93)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
    What am I doing wrong?
    Thank you very much.

    What do you want to do with a RS instead at least 1 next() ?
    Only 1 next() - then you know, if it is empty.
    If it's not empty, I assume you will do any retrieval, so you will have needed at least this first next(), don't you?
    Even if you would like to skip the first row (though you have retrieved it), it would not be too much costs.
    If you don't want to retrieve but only count your rows, do a query "SELECT COUNT(*) FROM table WHERE <your condition ...>".
    However, to get the count you would have to do one - only one - next() call.

  • Java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getBlob

    Hi,
    I am using WSAD 4.0.3. While I am running application I am getting this error.
    [10/5/02 13:26:17:984 GMT+08:00] 7a483a9b ExceptionUtil X CNTR0020E: Non-application exception occurred while processing method lodge on bean BeanId(CePAC#CePACEJB.jar#CfsControllerBean, f0b300abe8): java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getBlob
    I have set the classpath i.e classes111.zip. This function is to insert record to a database having blob field.
    Waiting for a quick response.

    java.lang.AbstractMethodErrorIn jdbc that often occurs because you are using a newer version of JDBC (the jvm) and an older driver. It occurs because you called a method which exists in the newer JDBC but does not exist in the older driver.
    getBlob() was introduced in java 1.2, so it was not in JDBC 1.0.

  • Java.lang.AbstractMethodError: oracle/ jdbc/ driver/ OracleResultSet. getBigDecimal

    My JSP works fine using Sun's JSWDK and Jakarta-Tomcat. I just started using WebSphere Application Server v3.5 and now my JSP blows up at "rs.getBigDecimal"
    I'm using WebSphere v3.5, JDBC 2.0(classes102.zip), and JDK 1.2.2
    What can I do to fix this?
    Thanks,
    Brian
    null

    Hello Brian,
    I am facing the same problem and with JSP only. So if you have solution pl let me know.
    [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Brian Stechly ([email protected]):
    My JSP works fine using Sun's JSWDK and Jakarta-Tomcat. I just started using WebSphere Application Server v3.5 and now my JSP blows up at "rs.getBigDecimal"
    I'm using WebSphere v3.5, JDBC 2.0(classes102.zip), and JDK 1.2.2
    What can I do to fix this?
    Thanks,
    Brian <HR></BLOCKQUOTE>
    null

  • Bad support for ts hint in Oracle jdbc driver (for preparedStatement)

    hi
    I have the following SQL
    SELECT TRUNC({ ts '2004-01-01 00:00:00.0' }) FROM ET1_ELEMENT
    With the jdbc.odbc driver the following meta data is returned:
    ResultSet meta data are...
    Column [1]
    name [TRUNC(TO_DATE('2004-01-0100:00]
    type [93]
    class name [java.sql.Timestamp]
    which is fine.
    Nevertheless with Oracle thin driver I got an SQL exception:
    The SQL Error is:
    ORA-00932: inconsistent datatypes: expected NUMBER got TIMESTAMP
    internal exception:
    (class java.sql.SQLException):
    java.sql.SQLException: ORA-00932: inconsistent datatypes: expected NUMBER got TIMESTAMP
    If I use the TO_DATE in the sentence (e.g. t_date('2004-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS')) everything is fine on both driver.
    Any idea on the problem? Is it a bug?
    Thanks

    Mikael,
    I couldn't ascertain your environment from your post, so the below may be irrelevant for you. But in the hope that is isn't...
    I tried your example on an Oracle 9i (9.2.0.4) database on SUN [sparc] Solaris 9, with J2SE 1.4.2_04 and the "ojdbc14.jar" [JDBC] driver. If I remove the "trunc" function, then I do not get an Oracle error. I must admit, though, that I don't understand why you need to trunc(ate) a literal value. All that the "trunc" function does is set the time part -- the hours, minutes, seconds, etc. -- of your timestamp to (all) zeroes -- which is what you have in your literal, anyway, so why the need for "trunc"?
    I believe the Oracle JDBC driver converts the java sql-escape syntax -- "{ts '2004-01-01 00:00:00.0'}" -- to a call to the "to_date" function, anyway. Possibly one way to verify this would be to use P6 Spy. If I am correct, then it would only be logical that Oracle allows you to use the sql-escape syntax wherever it is all right to use the "to_date" function. But then again, I guess that
    select trunc(to_date('2004-01-01 00:00','YYYY-MM-DD HH24:MI')
    from   ET1_ELEMENTis allowable syntax anyway. So I guess maybe that this may be a bug in the JDBC driver. Have you checked the MetaLink Web site?
    Good Luck,
    Avi.

  • Re : Error java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDrive

    Hello All,
    I am writing this simple program which connects to Oracle DB ( 10.2 ). The Java version I have is 1.5.0_13 . I do have oracle client installed. When I run the below code ...I get error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at OraThin.main(OraThin.java:13)The code I have is :
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    } Please suggest as to what am I missing, I am not that well versed with Java.
    Thanks in advance,
    Sam

    Hello Paul,
    Thanks for you suggestion. Based on it , I did add the exact jar file in the PATH environmental variable in XP.
    Path=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\a
    pp\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Ora
    cle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\
    client;C:\j2sdk1.4.2_06\bin;Even after adding the specific jar file *("C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar")* ..I am getting the exact same error. moreover, to verify this I also tried to import import oracle.jdbc.driver.*.....and now my code would not even complie and I get error *(c:\Program Files\Java\jdk1.5.0_13\bin\OraThin.java:3: package oracle.jdbc.driver*
    does not exist ) . I also rebooted my machine just to make sure ...that didnt work either. Also, I changed these jar to be first in the PATH varibale ..to avoid conflict with any later .jar's classes. The code is :
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    }What am I missing here!! ?
    Thanks again,
    Sam

  • Java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection

    Hi,
    I am using weblogic 9.2 on windows. I have the data source configured(Oracle 9.2)
    I am getting the following exception when I try to create temporaryBlob -
    BLOB blob = BLOB.createTemporary(conn, false,
                        BLOB.DURATION_SESSION);
    Exception messages ------
    Exception in thread "main" weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_920_WLStub.physicalConnectionWithin(Unknown Source)
         at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_920_WLStub.physicalConnectionWithin(Unknown Source)
         at oracle.sql.BLOB.createTemporary(BLOB.java:587)
         at com.hp.nuoss.fm.cs.test.SessionBeanClient.testInsertBLOBData(SessionBeanClient.java:109)
         at com.hp.nuoss.fm.cs.test.SessionBeanClient.main(SessionBeanClient.java:154)
    Caused by: java.rmi.MarshalException: error marshalling return; nested exception is:
         java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:195)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
         ... 5 more
    Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
         at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
         at weblogic.utils.io.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:73)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_WLSkel.internalInvoke1(Unknown Source)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Someone else had this same problem and they seem to have solved it:
    http://forum.java.sun.com/thread.jspa?threadID=5105589&messageID=9363332
    I guess SessionBean1 is not serializable perhaps because it doesn't implement Serializable, and the writeObject method in StandardSession is trying to write it to disk (trying to serialize it).
    Try changing SessionBean 1 to
    public class SessionBean1 implements Serializable{
    }

  • SchemaTool() throws ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    KODO 2.5.3
    I am trying to use the SchemaTool java class for schema manipulations. When
    I try to construct a SchemaTool object I get the following exception:
    com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    NestedThrowables:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I am passing an instance of MultiLoaderClassResolver (constructed using a
    custom URLClassLoader) as the ClassResolver argument to the SchemaTool
    constructor. The orcale jar "classes12.jar" is one of the URLs in the
    URLClassResolver. Before constructing a SchemaTool object, a call to
    canResolveClass("oracle.jdbc.driver.OracleDriver") on the class resolver
    returns true. So why is SchemaTool not able to find this class?
    Thanks
    Vijay

    Marc,
    It might well be problems with my custom class loader (which are a pain to
    debug indeed) or my lack of understanding of some of your schema tool
    classes, but the basic problem I encountered (before getting to the Logger
    issue) is as follows:
    I have an instance of MultiLoaderClassResolver constructed using my custom
    class loader.
    A call to resolveClass("orcale.jdbc.driver.OrcaleDriver") on this instance
    returns the correct Class (does not throw a ClassNotFound exception).
    The same MultiLoaderClassResolver instance is passed as an argument to
    SchemaTool(). SchemaTool.refresh() throws an exception:
    ClassNotFound: orcale.jdbc.driver.OrcaleDriver
    So it seems to me that somewhere in the SchemaTool code you are trying to
    resolve orcale.jdbc.driver.OrcaleDriver using something other than the
    instance of MultiLoaderClassResolver that I passed in. From the stack trace
    in my earlier message, it seems like that is happening in:
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassM
    apping.java:1584)where an instance of ConfigurationConnector is constructed. BTW, this is how
    I construct and pass a ConfigurationConnector to SchemaTool:
    JDBCConfiguration conf = new JDBCSimpleConfiguration(someProps);
    ClassResolver resolver = new MultiLoaderClassResolver(myCustomClassLoader);
    Connector connector = new ConfigurationConnector(conf, resolver, false);
    SchemaTool sTool = new SchemaTool(conf, resolver, connector);
    Vijay
    "Marc Prud'hommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Vijay-
    Custom ClassLoader problems are often very hairy to debug. The first
    error message you are receiving indicates a problem:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement LogThis indicates to me that the
    "org.apache.commons.logging.impl.Log4JLogger" and
    "org.apache.commons.logging.Log" classes are being loaded in different
    ClassLoaders, which is generally a bad thing. Is your URLClassLoader
    deferring to the parent ClassLoader?
    I think that the first step is to identify why the class loaders are
    different for these two classes (which should be easy to do with some
    printlns in a test program that uses your URLClassLoader).
    Bear in mind that this isn't technicall a Kodo issue, but a general
    ClassLoader issue. However, we are happy to try to provide hints and
    guidance about how to isolate the source of the problem.
    In article <[email protected]>, Vijay Ganesan wrote:
    After trying out some combinations, the stack trace at the bottom of
    this
    message gives a better clue of what my problem is:
    Looks like a new ConfigurationConnector is created in ClassMapping.javathat
    ignores my class resolver (based on my custom class loader) that Icreated
    as follows:
    JDBCConfiguration conf = new JDBCSimpleConfiguration(someProps);
    ClassResolver resolver = newMultiLoaderClassResolver(myCustomClassLoader);
    >>
    Connector connector = new ConfigurationConnector(conf, resolver, false);
    SchemaTool sTool = new SchemaTool(conf, resolver, connector);
    Adding the following line before the schema related code solves theproblem:
    Thread.currentThread().setContextClassLoader(myCustomClassLoader);
    However, that causes another error which, from a brief look at
    LogFactoryImpl, seems surely related to custom class loaders. Don't knowhow
    to get past this one:
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:532)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:272)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.createConnecti
    onFactory(ConfigurationConnector.java:140)
    --------Stack trace------------
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at
    com.solarmetric.util.classes.LoaderClassResolver.resolveClass(LoaderClassRes
    olver.java:34)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.createConnecti
    onFactory(ConfigurationConnector.java:113)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
    rationConnector.java:67)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
    rationConnector.java:59)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
    rationConnector.java:39)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassM
    apping.java:1584)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.install(ClassMapping.j
    ava:1416)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:
    169)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java
    :116)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java
    :86)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.j
    ava:831)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:311
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    My guess is that your custom classloader is preventing instanceof. Can
    you try using the system classloader or see if java.sql.Driver is
    assignable from oracle.jdbc.dirver.OracleDriver?
    Vijay Ganesan wrote:
    KODO 2.5.3
    I am trying to use the SchemaTool java class for schema
    manipulations.
    When
    I try to construct a SchemaTool object I get the following exception:
    com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    NestedThrowables:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I am passing an instance of MultiLoaderClassResolver (constructed
    using
    a
    custom URLClassLoader) as the ClassResolver argument to the
    SchemaTool
    constructor. The orcale jar "classes12.jar" is one of the URLs in the
    URLClassResolver. Before constructing a SchemaTool object, a call to
    canResolveClass("oracle.jdbc.driver.OracleDriver") on the classresolver
    returns true. So why is SchemaTool not able to find this class?
    Thanks
    Vijay
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver

    When I run java servlet test_ora.java with IE6.0 I get the following error page:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at test_ora.doGet(test_ora.java:21)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:536)
    Java Web Services Developer Pack/1.0-fcs
    I thought it is about JDBC configuration. But when I run JdbcCheckup.java everything works fine. Can anybody help me, please?
    test_ora.java looks like this:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class test_ora extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    String str_dok_numer, str_f_inkraft;
    int int_dok_wal_id;
    Connection conn=null;
    Statement s = null;
    response.setContentType("text/html;charset=iso-8859-2");
    PrintWriter out = response.getWriter();
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@192.168.15.2:1521:DB2","janusz","kimono");
    s = conn.createStatement();
    } catch (SQLException e) {
    out.println("Blad polaczenia z baza danych: " + e.getMessage());
    try {
    ResultSet r =s.executeQuery("select dok_numer, f_inkraft, dok_wal_id from gndlf_umowy_inkraft");
    out.println("DOK_NUMER\tF_INKRAFT\tDOK_WAL_ID");
    while(r.next()){
    out.println (r.getString (1) +"\t" + r.getString (2) + "\t" +r.getString (3));
    conn.close();
    } catch (Exception e) {
    out.println("Wystapil problem z wyslaniem SQL do bazy danych: " + e.getMessage());
    finally {
    try { conn.close(); }
    catch(SQLException e) {}
    and here is code for JdbcCheckup.java (I get it from Internet and made some modifications):
    * This sample can be used to check the JDBC installation.
    * Just run it and provide the connect information. It will select
    * "Hello World" from the database.
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    // We import java.io to be able to read from the command line
    import java.io.*;
    class JdbcCheckup {
    public static void main(String args[])
    throws SQLException, IOException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Prompt the user for connect information
    System.out.println("Please enter information to test connection to the database");
    String user;
    String password;
    String database;
    user = readEntry("user: ");
    int slash_index = user.indexOf('/');
    if (slash_index != -1)
    password = user.substring(slash_index + 1);
    user = user.substring(0, slash_index);
    else
    password = readEntry("password: ");
    database = readEntry("database(a TNSNAME entry): ");
    System.out.print("Connecting to the database...");
    System.out.flush();
    System.out.println("Connecting...");
    //Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" + database, user, password);
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.15.2:1521:" + database, user, password);
    System.out.println("connected!!!");
    // Create a statement
    Statement stmt = conn.createStatement();
    // Do the SQL "Hello World" thing
    ResultSet rset = stmt.executeQuery("select 'Hello World' from dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    // close the result set, the statement and connect
    rset.close();
    stmt.close();
    conn.close();
    System.out.println("Your JDBC installation is correct.");
    // Utility function to read a line from standard input
    static String readEntry(String prompt)
    try
    StringBuffer buffer = new StringBuffer();
    System.out.print(prompt);
    System.out.flush();
    int c = System.in.read();
    while (c != '\n' && c != -1)
    buffer.append((char)c);
    c = System.in.read();
    return buffer.toString().trim();
    catch(IOException e) {
    return "";
    I use Java Web Service Developer Pack 1.0 on Win98 SE, database Oracle 8.1.7 is installed on dedicated IBM server (AIX 4.x).
    I put these lines in autoexec.bat:
    set PATH=C:\Perl\bin\;"C:\j2sdk1.4.0\bin";%PATH%
    set CLASSPATH=.;C:\j2sdk1.4.0\lib\tools.jar;C:\j2sdk1.4.0\lib\classes12.zip;C:\j2sdk1.4.0\lib\classes111.zip;%CLASSPATH%
    set CLASSPATH=C:\jwsdp_1_0\common\lib\servlet.jar;C:\jwsdp_1_0\common\lib\jasper-compiler.jar;C:\jwsdp_1_0\common\lib\jasper-runtime.jar;%CLASSPATH%
    set JAVA_HOME=C:\j2sdk1.4.0

    I have the same problem. I created a JSP page that uses a class to retrieve database information. I added a main method to the class so I would be able to test it. When I test the class using the main method the method returns all the information from the database. When I try it using Tomcat, I get the following error: java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    Does anyone have an idea of what is going on?
    My CLASSPATH configuration is the same.

  • JDBC,Oracle - java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracle

    I am using JBuilder5 which comes with jdk1.3. I have installed oracle 8.1.7 Enterprise version.
    I am using Win NT 4.0.
    I have set the PATH variable as E:\oracle\ora81\lib; and
    CLASSPATH as : E:\oracle\ora81\jdbc\lib\classes12.zip;E:\oracle\ora81\jdbc\lib\nls_charset12.zip;
    My JDBC code is
    package sample2;
    import java.sql.*;
    public class Two {
    Connection con;
    Statement st;
    public Two() {
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:oci8:@First","scott","tiger");
    st = con.createStatement();
    ResultSet rs = st.executeQuery("Select * from Book");
    while(rs.next())
    System.out.print(rs.getInt("ID")+"\t");
    System.out.print(rs.getString("title")+"\t");
    System.out.print(rs.getString("author")+"\t");
    System.out.print(rs.getString("subject")+"\t");
    System.out.println(rs.getInt("copies")+"\t");
    st.close();
    con.close();
    catch(Exception ex)
    System.out.println("Exception : " + ex.toString());
    public static void main(String[] args) {
    Two two1 = new Two();
    I am getting this exception:
    Exception : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I can understand that the classpath for the driver is the problem here.
    Also, I tried to run this file without JBuilder as a independent file on a notepad. Even then this exception is thrown.
    I have set the PATH to E:\oracle\ora81\bin and also to E:\oracle\ora81\lib.
    I ran "echo %classpath%" from my command prompt and this is what i am getting.
    E:\JBuilder5\jdk1.3\lib\tools.jar;E:\JBuilder5\jdk1.3\dt.jar;E:\oracle\ora81\jdbc\lib\classes12.zip;E:
    \oracle\ora81\jdbc\lib\nls_charset12.zip;
    I searched solution for this probldem in Sun JDC Forum itself. Many of them suggested to unzip classes12.zip and create jar file and add it in the classpath. Alos, some have suggested to copy the classes12.zip in home directory and then include this path in the classpath. I tried those solutions also. But, nothing seem to work.
    Somebody help me fix this problem.
    Thanks in advance.

    Jbuilder5 uses a different means of loading dependent classes. Use menu : Tools -->Configure Libraries - Click New and setup a new named library that points to classes12.zip .
    Then include this in u'r required Libraries of your project using menu Project --> Project Properties - required Libraries tab.
    I don't thnk Jbuilder5 even refers to CLASSPATH set in Windows NT environement. Path may need to be set to include oracle/ora81/bin directory though.
    Hope this helps.

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.lo

    I am evaluating the sun RI of javax.sql package . I downloaded the jdbc_rowset_tiger-1_0_1-mrel-jwsdp.zip package and installed in my machine.
    I tried the JdbcRowSet implmenation and it worked pretty smooth. I wanted to try the disconnected Rowset implementation. I tried CachedRowSet Implementation with thin driver. I get the following error message.
    Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z
    at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)
    at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)
    at CachedRowSetSampl.main(CachedRowSetSampl.java:79)
    I am using thin driver with Oracle8i db.
    Appreciate any early responses

    I had the same problem initially.
    I fixed it by downloading an updated ojdbc14.jar (1).
    It may be because I downloaded the ocrs12.jar from there a bit earlier and the versions of ojdbc14.jar and ocrs12.jar need to match (that is, come from the Oracle10g suite of jars).
    Here is the class I used:
    import java.sql.*;
    import javax.sql.*;
    import com.sun.rowset.WebRowSetImpl;
    import com.sun.rowset.providers.RIXMLProvider;
    public class test {
      public static void main(String[] args) {
        try {
          Class.forName("oracle.jdbc.driver.OracleDriver");
          WebRowSetImpl wrs = new WebRowSetImpl();
          wrs.setCommand("select table_name from user_tables");
          wrs.setUsername("scott");
          wrs.setPassword("tiger");
          wrs.setUrl("jdbc:oracle:thin:@paramount.com:1521:ORCL");
          wrs.execute();
          wrs.writeXml(System.out);
        } catch (Exception e) {
          System.out.println("Exception:"+e);
    Dale(1) http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html (Oracle Database 10g JDBC Drivers)

  • Error oracle.sql.* and oracle.jdbc.driver.* not found when using oracle as a database

    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama

    Hi Anupama,
    First of all I would be surprised if you would not like to use the connection pooling feature of weblogic (in which case you might not be needing the import the classes directly), and would like to open direct connections to your database. Anyways for doing that I would recommend you to check out the readme doc that ships
    along with the jdbc oracle (classes12.zip etc). I am giving an excerpt over here:
    These are a few simple things that you should do in your JDBC program:
    1. Import the necessary JDBC classes in your programs that use JDBC.
    For example:
    import java.sql.*;
    import java.math.*;
    2. Register the Oracle driver before before calling other JDBC APIs.
    (This is not needed if you are using the JDBC Server-side Internal
    Driver because registration is done automatically in the server.)
    To register the Oracle driver, make sure the following statement
    is executed at least once in your Java session:
    DriverManager.registerDriver(
    new oracle.jdbc.driver.OracleDriver());
    3. Open a connection to the database with the getConnection call.
    Different connection URLs should be used for different JDBC
    drivers. The following examples demonstrate the different URLs.
    For the JDBC OCI8 Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:oci8:@<database>",
    "scott", "tiger");
    where <database> is either an entry in tnsnames.ora or a SQL*net
    name-value pair.
    For the JDBC Thin Driver, or Server-side Thin Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@<database>",
    "scott", "tiger");
    where <database> is either a string of the form
    <host>:<port>:<sid> or a SQL*net name-value pair.
    For the JDBC Server-side Internal Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:kprb:");
    Note that the trailing ':' character is necessary. When you use
    the Server-side Internal Driver, you always connect to the
    database you are executing in. You can also do this:
    Connection conn
    = new oracle.jdbc.driver.OracleDriver().defaultConnection();
    Hope this helps,
    Thanks,
    Anupama wrote:
    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama--
    Apurb Kumar

  • Java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriveroracle.j

    My compile works just fine: javac mail_create.java
    but when I try to run I get OracleDriver error. Not sure how to fix this. Using RedHat Linux 7.3
    [ora9ias@tautog classes]$ java mail_create
    Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriveroracle.j
    dbc.driver.OracleDriver
    [ora9ias@tautog classes]$ pwd
    /home/oracle/9iAS/j2ee/home/default-web-app/WEB-INF/classes
    [ora9ias@tautog classes]$
    Some of my code...
    import java.io.*;
    import java.util.*;
    import java.text.*;
    import java.sql.*;
    public class mail_create {
    public static void main(String[] arguments) {
    StringTokenizer st1;
         int cnt1, cnt2, cnt3, cnt4, ival, newal;
         String commabv, commemail, comabbrv, commca, commail;
         String comcod []=new String [99];
         String comvar []=new String [800];
         String curabr []=new String [800];
         String comail []=new String [800];
    try {
         Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    .....

    http://search.java.sun.com/search/java/index.jsp?qt=%2Boracledriver+%2Bclassnotfoundexception&nh=10&qp=&rf=1&since=&country=&language=&charset=&variant=&col=javaforums

  • Exception Occur  "java.lang.AbstractMethodError: oracle.jdbc.driver....."

    I am using oracle 10.2.0.1.0. I can able to connect the database using sqlplus. I am executing some ant task. While running the ant script I am getting the following exception.
    [java] INFO: Locale id is:1
    [java] Oct 16, 2006 7:20:24 PM com.cramer.globalisation.resourcebundleloader.DataBaseMgr getLocaleI
    d
    [java] INFO: Using the default locale ID :1
    [java] Oct 16, 2006 7:20:24 PM com.cramer.globalisation.resourcebundleloader.ResourceBundleReader l
    oadPropertyFile
    [java] INFO: .\html\homepages\thersholdhomepage\config\bundle\thersholdhomepage.properties is Crame
    r resource bundle file
    [java] java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/lang/Stri
    ng;)Ljava/sql/Savepoint;
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
    [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
    [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
    [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
    [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [java] at org.apache.tools.ant.Task.perform(Task.java:364)
    [java] at org.apache.tools.ant.Target.execute(Target.java:341)
    [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.ja
    va:37)
    [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [java] at org.apache.tools.ant.Task.perform(Task.java:364)
    [java] at org.apache.tools.ant.Target.execute(Target.java:341)
    [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [java] Caused by: java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljav
    a/lang/String;)Ljava/sql/Savepoint;
    [java] at com.cramer.globalisation.resourcebundleloader.DataBaseMgr.insertBundleRow(DataBaseMgr
    .java:118)
    [java] at com.cramer.globalisation.resourcebundleloader.ResourceBundleLoader.loadPropertyFiles(
    ResourceBundleLoader.java:77)
    [java] at com.cramer.globalisation.resourcebundleloader.ResourceBundleLoader.main(ResourceBundl
    eLoader.java:47)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
    [java] ... 24 more
    [java] --- Nested Exception ---
    [java] java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/lang/Stri
    ng;)Ljava/sql/Savepoint;
    [java] at com.cramer.globalisation.resourcebundleloader.DataBaseMgr.insertBundleRow(DataBaseMgr
    .java:118)
    Can anyone help me in this issue?.....

    few of my colligue are using the same database, and
    they are not getting these kind of error. Only my
    system and 2 more system is giving these problem.
    All of us are using the same version of oracle
    only.I said driver not database.
    >
    Only I am and 2 more friends are getting the "
    java.lang.AbstractMethodError:
    oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/la
    ng/String")
    "And are you running the same exact code as everyone else?
    Additionally you might want to check your class path to verify that only what is required is in that.
    You haven't put anything in the ext directory have you?

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getCl

    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
    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

    no ideas

Maybe you are looking for

  • Report row limit?

    I have a report and there should be a total 4212 records. In my APEX report it is cutting off at 500 records. Should I be able to display (and download from report) greater than 500 records? Is it possible some setting is limiting my report to 500 re

  • Problem with Action/Batch

    OK, PS CS4 extended v. 11.0.1 on a Win XP sp3 OS I recorded a simple action set Open | Set File Info of current document | Save | Close I then performed an Automated Batch run to duplicate this on a series of more than 100 photo images in a folder. 

  • Installing 10g on Win XP. oui.exe will not come up, get error

    I downloaded 10g rel 2 from website. I used the standard unzip (Extract All...) that comes with Windows XP. It looked like it worked, but when I tried to run the setup.exe, first it said that it was an unknown publisher, and then it just produced an

  • Formula Help with SUMIFS

    So currently I can do this: Look at my account and total all figures in month February and with a label of "Food". This works all fine and dandy. =SUMIFS(Savings Account :: $Amount,Savings Account :: $Month,"=February", $Label, "Food") What I am look

  • Parentalcontrols app eating my processor

    Well, it's not literally eating my processor, but it's using quite a bit and I don't know why. I only noticed it yesterday, but in Activity Monitor, there is something called "parentalcontrols" with the user "root" and parent process "launchd." It us