Problem in configuring JDBC Driver

In Struts 1.1 application I define a datasource in struts-config.xml like this:
<data-source key="TOTO" type="oracle.jdbc.pool.OracleDataSource">
<set-property property="defaultAutoCommit" value="false" />
<set-property property="description" value="Connection Oracle dcpbom" />
<set-property property="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<set-property property="maxCount" value="4" />
<set-property property="minCount" value="2" />
<set-property property="url" value="jdbc:oracle:thin:@123.45.678.99:1521:toto" />
<set-property property="username" value="toto" />
<set-property property="password" value="toto" />
<set-property property="validationQuery" value="SELECT COUNT(*) FROM DUAL" />
</data-source>
when I try to obtein a DataSource object in Action class,
OracleDataSource dataSource = (OracleDataSource)getDataSource(request,"SIGNE")
I have this error:
java.sql.SQLException: L'URL Oracle indiqu�e n'est pas valide: OracleDataSource.makeURL
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
at oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
at oracle.jdbc.pool.OracleDataSource.getURL(OracleDataSource.java:575)
at fr.renault.test.signe.ValiderXmlMessageAction.execute(ValiderXmlMessageAction.java:68)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
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:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
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:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:536)
BUT, when I define the SAME datasource in server.xml like this:
<Resource auth="Container" name="jdbc/dcpbom" scope="Shareable" type="oracle.jdbc.pool.OracleDataSource"/>
<ResourceParams name="jdbc/dcpbom">
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@123.45.678.99:1521:toto</value>
</parameter>
<parameter>
<name>validationQuery</name>
<value>select COUNT(*) from dual</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>15</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
<parameter>
<name>factory</name>
<value>oracle.jdbc.pool.OracleDataSourceFactory</value>
</parameter>
<parameter>
<name>autoCommit</name>
<value>false</value>
</parameter>
<parameter>
<name>user</name>
<value>toto</value>
</parameter>
<parameter>
<name>password</name>
<value>toto</value>
</parameter>
</ResourceParams>
when I try to obtein a DataSource object in Action class direcly by JNDI,
(OracleDataSource)jndiCntx.lookup("java:comp/env/jdbc/dcpbom")
It work.
Can some one help me.
Server: tomcat 4.1.29
DBMS: Oracle 8.1.7.4.0
Driver: classe12.zip

Why can't the Action class just do the JNDI lookup using the Context information you supplied in server.xml? I don't see why Struts has to care about how you've pooled your connections.
I'd just put the JNDI lookup code into the Action class and leave the data source stuff out of Struts. JMO - MOD

Similar Messages

  • Beginner Has Problem With Loading JDBC Driver Using MySQL

    Hi, I am having problem with loading JDBC driver, and need your diagnotic help.
    1. I have installed MySQL (C:\mysql), created a databse (soup), and created a littel table (VIDEOS). I am able to see the table in the console:
    sql> select * from videos
    2. I have downloaded the latest version of Connector/J (mysql-connector-java-3.1.0-alpha.zip), and unzip the zip file into my C:\ directory.
    3. I copied the mysql-connector-java-3.1.0-alpha-bin.jar to the C:\j2sdk1.4.1_02\jre\lib\ext folder and it is in my CLASSPATH
    4. MySQL server is running
    C:\> C:\mysql\bin\mysqld-nt --standalone
    5. open another DOS window and use the database
    mysql>USE SOUP
    6. succesfully compiled a Java program (javac Test.java):
    import java.sql.* ;
    public class Test
    public static void main( String[] args )
    try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    try
    Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/soup" );
    try
    Statement statement = con.createStatement();
    ResultSet rs = statement.executeQuery("SELECT TITLE FROM VIDEOS");
    while ( rs.next() )
    System.out.println( rs.getString( "TITLE" ) );
    rs.close();
    statement.close();
    catch ( SQLException e )
    System.out.println( "JDBC error: " + e );
    finally
    con.close();
    catch( SQLException e )
    System.out.println( "could not get JDBC connection: " + e );
    catch( Exception e )
    System.out.println( "could not load JDBC driver: " + e );
    7. when I run the Java program (java Test), I got
    the message:
    could not load JDBC driver: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    What am I missing?

    Hi,
    I missed to specify test in my last post.
    Try running your program by explicitly setting the classspath when
    running your program . java -classpath c:\mysql-connector-java-3.1.0-alpha-bin.jar test
    Make sure your jar file contains org.gjt.mm.mysql.Driver class

  • Problem using Oracle JDBC Driver

    Hi,
    I try to configure the Oracle JDBC Driver the following way:
    I load the Oracle drivers ojdbc14_g.jar and nls_charset12.jar
    I configure the DataSource using the Driver Class oracle.jdbc.driver.OracleDriver, the database URL: jdbc:oracle:thin:@h50a430:1521:WLP1E1A0 and the User with Password.
    As soon as its activated I get the following error:
    java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Complex error : server ID 4123350:Cannot start DataSource "Oracle".
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:678)
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:660)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:535)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
    any hint?

    I can't create an Oracle datasource too.
    Uploaded ojdbc14.jar, used the same Oracle jdbc settings as in my jdbc explorer where everything works fine, set initial connections to 1, set SQL Engine to Native SQL,...
    -> won't start.
    I restarted the cluster too. The Datasource is still marked with a red cross in the admin tool.
    This is with the type 1.x setting, as XA seems to be still broken in WAS 6.40.

  • Problem with Oracle jdbc driver and jdk1.4

    Hi
    I have some java code which uses Oracle jdbc driver.
    This code works with java 1.1.8, 1.2 & 1.3 but not with java 1.4 !
    I have that exception :
    java.sql.SQLException: The Network Adapter could not establish the connection
    at oracle/jdbc/dbaccess/DBError.check_error(DBError.java)
    at oracle/jdbc/driver/OracleConnection.<init>(OracleConnection.java)
    at oracle/jdbc/driver/OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle/jdbc/driver/OracleDriver.connect(OracleDriver.java)
    at java/sql/DriverManager.getConnection(DriverManager.java:529)
    at java/sql/DriverManager.getConnection(DriverManager.java:179)
    at SimpleQuery.<init>(SimpleQuery.java:21)
    at SimpleQuery.main(SimpleQuery.java:56)
    when I try a getConnection...
    I've tried all the jdbc drivers provided by Oracle, but it's still the same problem !
    Any Idea ?
    Thanks

    Have you tried the drivers shipped with Oracle9i Db R2? they should work against JDK 1.4
    Kuassi
    Hi
    I have some java code which uses Oracle jdbc driver.
    This code works with java 1.1.8, 1.2 & 1.3 but not with java 1.4 !
    I have that exception :
    java.sql.SQLException: The Network Adapter could not establish the connection
    at oracle/jdbc/dbaccess/DBError.check_error(DBError.java)
    at oracle/jdbc/driver/OracleConnection.<init>(OracleConnection.java)
    at oracle/jdbc/driver/OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle/jdbc/driver/OracleDriver.connect(OracleDriver.java)
    at java/sql/DriverManager.getConnection(DriverManager.java:529)
    at java/sql/DriverManager.getConnection(DriverManager.java:179)
    at SimpleQuery.<init>(SimpleQuery.java:21)
    at SimpleQuery.main(SimpleQuery.java:56)
    when I try a getConnection...
    I've tried all the jdbc drivers provided by Oracle, but it's still the same problem !
    Any Idea ?
    Thanks

  • Problems with Oracle jdbc Driver

    Hi... I'm trying to connect to my Oracle Database and I get the folowing error:
    "package oracle.jdbc.driver does not exist"
    I have installed Oracle 9.1.0.2 Database...
    The value of the Classpath variable is:
    ".;c:\oracle\ora92\jdbc\lib"
    What could be the problem???...
    Thanks in advance.-
    Alberto.-

    Are you building your application from the command line? Or using a GUI? GUI's will frequently overwrite your CLASSPATH environment variable...
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Install and configuring JDBC Driver in SAP Java stack

    Hi Experts,
    We are fetching data from GRC to BIW, for this we are using UD Connect in biw.
    For this we need to configure and installed the JDBC Connectors.
    Please suggest how to go about this.
    Thanks,
    Vijay

    Hi
    Check this SAP Notes
    1347514 - How to setup and configure the webi/deski JDBC connection for the Microsoft SQL Server 2005 and Oracle 9i&10g Database
    1602614 - How To Install And Configure Microsoft SQL JDBC Drivers
      831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 JDBC Adapter
    Check the SCN blog
    Michal's PI tips: JDBC/JMS driver deployment - now more forceMode=true
    Configuring the JDBC Adapter - Advanced Adapter Engine - SAP Library
    Regards
    Ram

  • Problem in configuring my driver for JMS Queues

    Hello,
    I'm working in connecting ODI to Sonic ESB.
    I have added all the drivers needed to ODI/Drivers and I continue to have an error.
    After searching in our ESB Doc i finally found why.
    I have to change a property of my Driver.
    I have tryied to change it in the Property Tab of the JMS Queue Data Server.
    with Key= "My Property Name" and Value= "the new Value needed"
    But there's no change, where can I do this ???
    Thanks for your answer,
    Cordially,
    BM

    In fact I have to change the domain in which I will be connected.
    On Sonic ESB by default it is nammed Domain1 and I want to change this name to SonicTestDomain.
    In java I just have to put :
    prop.put("com.sonicsw.jndi.mfcontext.domain", "SonicTestDomain");
    but in my Topology I'm using the Property Tab and in the first column nammed Key I put
    com.sonicsw.jndi.mfcontext.domain and on the other nammed Value I put SonicTestDomain.
    But when I put Test it always responding me :
    javax.naming.NamingException [Root exception is com.sonicsw.mf.comm.InvokeTimeoutException: Domain1.DIRECTORY SERVICE:ID=DIRECTORY SERVICE - listDirectories()]
    --> with Domain1 so the ghange of the property didn't do nothing.
    If someone can help me...

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • Oracle JDBC Driver Problem

    Hi,
    When I write code as
    Resultset rs = .....
    rs.last();
    there is no problem for MySQL JDBC Driver, but when I use this code for Oracle, I am getting error with line 2. Why ? Do you know any Oracle JDBC Driver that supports "rs.last()" ? Or is there another way to handle it?
    Thanks.

    Most of the JDBC Drivers can handle "rs.last()".
    The question here is, how do you create a Scrollable ResultSet using DatabaseMetaData, or if this is even possible.
    A thorough read of the API docs, for the Classes and methods being used here will answer this question (now that you know what the actual question is).

  • How to use Oracle jdbc driver fixedString property?

    Oracle pads values in char columns so if I insert "a" in a CHAR(2) column then I cannot get that record by comparing that column to "a", I should get it by comparing it to "a ". Right?
    To solve this problem the Oracle jdbc driver has the property fixedString but I cannot make it work. (look for fixedString here )
    I'm using ojdbc14.jar driver for Oracle 10gR2 and accessing an Oracle 10gR2 database.
    This is my code:
    try {
    Properties props = new Properties();
    props.put("user", "****");
    props.put("password", "****");
    props.put("fixedString", true);
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String jdbcUrl = "jdbc:oracle:thin:@<host>:<port>:<sid>";
    Connection connection = DriverManager.getConnection(jdbcUrl, props);
    PreparedStatement ps = connection.prepareStatement(
    "SELECT * FROM MY_TABLE WHERE MY_TABLE_ID = ?");
    ps.setObject(1, "abc"); // (*)
    // MY_TABLE_ID is CHAR(15)
    ResultSet rs = ps.executeQuery();
    while (rs.next())
    System.out.print("data: ");
    System.out.println(rs.getString("MY_TABLE_ID"));
    rs.close();
    ps.close();
    connection.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    } catch (ClassNotFoundException ex) {
    ex.printStackTrace();
    The above code executes fine (no exceptions thrown) but the ResultSet is empty after executeQuery().
    If I change the line (*) for
    ps.setObject(1, "abc ");
    Then I get the column I wanted. So it seems the driver is ignoring the fixedString option.
    I've also tried changing the line (*) for
    ps.setObject(1, "abc", java.sql.Types.CHAR);
    But the ResultSet I get is empty again. What am I missing?
    Thanks in advance

    Es un Bug se corrige en la versión del OAS 10.1.2.3
    Bug 10222534: UNABLE TO SET FIXEDSTRING PROPERTY IN DATASOURCE

  • How to register a new list of JDBC driver to ODI?

    Hi Guys,
    How to register a new list of JDBC driver to appear on ODI?
    exam :
    When I defined a new master repository that resides on MSSQL 2005
    I already had sqljdbc.jar (This is mssql2005 jdbc driver) on the ..\oracledi\drivers
    But when I browsed jdbc driver list it will not appear any new driver we just put them in the driver folder.
    I knew this is a common issue.
    So I need to manually define a driver class and url to match exactly with the jdbc document say for sqljdbc.jar
    which is
    Driver Class : com.microsoft.sqlserver.jdbc.SQLServerDriver
    URL : jdbc:sqlserver://localhost:1084
    I think that the driver list will have to store in somewhere in the xml files OR some records on the master repository database.
    But where ?
    Because I saw the new list driver (Microsoft SQL Server 2005 driver for JDBC) on the vmware image that I had (actually it is ODI Training workshop VMware Image).
    But I don't know where to looks.
    Here are some proof that they actually appear in the driver list
    [Original MSSQL 2000 Driver List|http://img.ihere.org/uploads/1f6d1601bb.png]
    [New MSSQL 2005 Driver List|http://img.ihere.org/uploads/94cc91e1ac.png]
    How comes?
    Thank you in advance.
    Somchai
    Edited by: somchai on Feb 12, 2009 8:24 AM

    Hi CTS !
    Then, its impossible add new drivers into ODI ? So, if I need to add a driver and this exist in Oracle list drivers, what can I do in this case ?
    I have problems with Oracle JDBC driver in ODI. When I try generate web services the "Not suitable driver" message is shown. In Design, module part, when i generate web service i have the "*name of data source*" field and I put into "oracle.jdbc.driver.OracleDriver". Ok, this isn&acute;t a correct sintax, then I read in this manual "*note that the name of the data source must be consistent with the entries in context.xml and web.xml, prefixed with:java:/comp/env/*".
    Ok, In other post (Re: Not found web.xml and content.xml files into ODI folders
    you said me only necessary to change the web.xml and context.xml is only necessary if I use Tomcat. Then, how to discover a correct sintax to put into this field and generate my web service ?
    Best regards,
    Joao.
    Edited by: JohnnyBeGood on 16/02/2009 09:00
    Edited by: JohnnyBeGood on 16/02/2009 09:29

  • Oracle JDBC Driver for Linux

    I'm looking for a place to download an Oracle JDBC driver for Linux. I have installed Oracle 8.1.5 for Linux, but don't find the driver either in the installation, nor on the CD. Can anyone point me to someplace I might be able to find it?
    Also, generic help in setting this up to work, JDBC API calls would also be of great help.
    Thanks.

    Luis Claudio Rodrigues da Silveira (guest) wrote:
    : How can I configure JDBC driver in a Suse environment? What
    are
    : the necessary steps?
    : Thanks in advance.
    1) You need classes111.zip usually located at
    $ORACLE_HONE/jdbc/lib.
    2) Add classes111.zip to CLASSPATH and export
    3) If you use thin driver your code should look like:
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    // Connect to the database
    // You must put a database name after the @ sign in the
    connection URL.
    // You can use either the fully specified SQL*net syntax or
    a short cut
    // syntax as <host>:<port>:<sid>. The example uses the
    short cut syntax.
    Connection conn =
    DriverManager.getConnection
    (jdbc:oracle:thin:@hostname:port:ORACLE_SID,
    USER_NAME, PASSWOED);
    null

  • Is Oracle JDBC driver thread safe

    Is the Oracle JDBC driver thread safe?

    Seems that this is not totally true.
    We have a Problem with Oracle JDBC driver 9.2.0.5.0 (thin)
    Using an IBM JDK 1.4
    Szenario:
    Thread 1 access to a CLOB via
    ResulSet.getCharacterStream(int)
    Thread 2 normal access via some select and
    ResulSet.getString(int)
    (Both using the same connection)
    The following threads appear to be in a circular deadlock.
    Further information can be found by looking in the Overall Thread Analysis
    section of this tool.
    Multi-threaded deadlock 1:
    "Servlet.Engine.Transports : 6" of (sys:0x39778800) (TID:0x104590D0)
    Holding Resource: oracle.jdbc.ttc7.TTC7Protocol@1ADEB358/1ADEB360
    Thread Waiting: "ProcessNotificationTask" (sys:0x3C51FC18) (TID:0x103B4C40)
    "ProcessNotificationTask" of (sys:0x3C51FC18) (TID:0x103B4C40)
    Holding Resource: oracle.jdbc.driver.OracleConnection@1AE45160/1AE45168
    Thread Waiting: "Servlet.Engine.Transports : 6" (sys:0x39778800) (TID:0x104590D0)
    4XESTACKTRACE at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2667)
    4XESTACKTRACE at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2840)
    4XESTACKTRACE at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
    4XESTACKTRACE at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:536)
    4XESTACKTRACE at com.top_logic.knowledge.service.db.DBKnowledgeBase.getObjectsByAttribute(Unknown Source)
    4XESTACKTRACE at oracle.jdbc.ttc7.TTC7Protocol.getLobChunkSize(TTC7Protocol.java:3050)
    4XESTACKTRACE at oracle.sql.LobDBAccessImpl.getChunkSize(LobDBAccessImpl.java:687)
    4XESTACKTRACE at oracle.sql.CLOB.getChunkSize(CLOB.java:692)
    4XESTACKTRACE at oracle.sql.CLOB.getBufferSize(CLOB.java:717)
    4XESTACKTRACE at oracle.sql.CLOB.getCharacterStream(CLOB.java:345)
    4XESTACKTRACE at oracle.sql.CLOB.characterStreamValue(CLOB.java:1377)
    4XESTACKTRACE at oracle.jdbc.driver.OracleStatement.getCharacterStreamValue(OracleStatement.java:5817)
    4XESTACKTRACE at oracle.jdbc.driver.OracleResultSetImpl.getCharacterStream(OracleResultSetImpl.java:1230)
    It seems that the access to the CLOB needs another,
    internal SELECT to the Database and this way
    TTC7Protocol and OracleConnection lock out each other.
    This only happens on a true multiprocessor machine.
    We tried to reprodcue it on a Single Processor
    and some HyperThreading Machine but had no real sucess.
    Now where can I sumbit this as a Bug ?

  • Can't load jdbc driver from localhost

    I'm having problems loading the jdbc driver from localhost when using a java com object in ASP.
    The simple class compiles fine and runs perfect from dos command line but gives this exception when run from personal webserver:
    java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver
    Obviously, it is not finding the jdbc driver, but what is the problem? It finds the driver when run from dos locally. Do I need a 3rd party driver when using as a COM object?
    Here is a code snippet:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection TestConnection = DriverManager.getConnection("jdbc:odbc:systemDSN", "username", "password");
    Any help is appreciated, thanks!

    I don't think it's exactly a classpath problem. I think when you run from the DOS command line, you are using the java.exe program that contains Sun's JVM and all the associated classes including sun/jdbc/odbc/JdbcOdbcDriver. But when you use this Java COM object (which I am not familiar with), if it doesn't find that class then it must be using the Microsoft VM, which naturally doesn't include that class you are having a problem with.

  • Does JDBC driver support encryption?

    Does the JDBC driver support Oracle encryption?
    Is there a particular version of the jdbc zip file that we need?
    We're running on a Sequent, which does yet have the latest version of oracle- we're running Oracle 8.0.5.
    Is it 40 bit or 128 bit encryption?

    I have this sample code:
    String Query = "ALTER USER ? IDENTIFIED BY ? QUOTA 0 ON SYSTEM QUOTA 0 ON TEMP";
    PreparedStatement pstmt = conn.prepareStatement(Query);
    pstmt.setString(1,"\"TESTVIPIN\"");
    pstmt.setString(2,"\"abc123\"");
    pstmt.executeUpdate();
    Executing this, i get the same error. But if i try UPDATE statement, it is working fine. Is this problem with ORACLE JDBC driver (for ALTER USER...) or problem of code?
    Thanks,
    Vipin Koul

Maybe you are looking for

  • New Macbook Air stopped transmitting to overhead projector

    Hello, Up until last week, I was successfully using 2 different overhead projectors with my MacBook Air (purchased around 2008 or 2009). I've just bought a new MacBook Air, and it has stopped projecting. I use the same connector (VGA?). Seems like it

  • How do I determine which version of Firefox I currently am running?

    How do I determine which version of Firefox I am currently running on my laptop? I use Quickbooks Online and I keep getting a message that they will shortly discontinue supporting the version of Firefox that I have.

  • How to click on linkbuttons in the rows of a data grid

    I'm trying to write automation test cases for a flex application using Flex Selenium. The flex selenium API provides only 2 click events: click(String objectId) and click(String objectId, String optionalButtonLabel) There are no click events for rows

  • Playbook BB world won't respond

    Hi. I have been trying to download applications on my playbook but the BB world just won't respond. I keep seeing a blue screen that shows installed. I try swiping down and I see three options; 1.content setting, 2. Payment Option 3. Help. I tried th

  • What's the best way to incorporate a d3 chart into UI5 application?

    Hi folks, I'm on a project which requires to incorporate a d3.js based chart into a UI5 application.( sap.viz library doesn't fullfill ) I'm thinking maybe to extend a sap.ui.core.Control. But here comes some problems: 1. how to implement the rendere