CachedRowSet Problems for JDBC Driver
Hello Joe,
I've encounting the same problem.
Can you tell me how can I get your hacked version of driver?
Thanks,
Howard
Joseph Weinstein <[email protected]> wrote:
I'll send it to you.
Joe
Andrew Zarudnev wrote:
Joseph Weinstein <[email protected]> wrote:
I'll send you the driver.
JoeHello Joe,
I've encounting the same problem.
Can you tell me how can I get your hacked version of driver?
Thanks,
Andrew
Eugen Bulboaca wrote:
Hi Joe,
I've hacked a
new version of our driver that simply returns "" instead of
null for the relevant functions, and that seemed to help
the original requestor. Anyone who wants it let me know...I just discovered the problem within our software and now I'm looking
for a quick (a REALLY quick soluction, because we have to make a demo
in a couple of days :( )... I just read the Javadoc for the interface
ResultSetMetaData, and it does specify that it <<returns schema name
or "" if not applicable>> for getSchemaName(). So, can you help me with
that version of the driver you updated ?! Thanks ALOT !!
Eugen--
PS: Folks: BEA WebLogic is in S.F., and now has some entry-level positionsfor
people who want to work with Java and E-Commerce infrastructure products.Send
resumes to [email protected]
The Weblogic Application Server from BEA
JavaWorld Editor's Choice Award: Best Web Application Server
Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
Crossroads A-List Award: Rapid Application Development Toolsfor Java
Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
http://www.bea.com/press/awards_weblogic.html--
PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions
for
people who want to work with Java and E-Commerce infrastructure products.
Send
resumes to [email protected]
The Weblogic Application Server from BEA
JavaWorld Editor's Choice Award: Best Web Application Server
Java Developer's Journal Editor's Choice Award: Best Web Application
Server
Crossroads A-List Award: Rapid Application Development Tools for
Java
Intelligent Enterprise RealWare: Best Application Using a Component Architecture
http://www.bea.com/press/awards_weblogic.html
Similar Messages
-
CachedRowSet with sybase JDBC driver
In previous postings you mentioned the solution to using CachedRowSets with Sybase
JDBC involves setting certain properties. My question is WHERE and WHEN do you
set these properties?Peter Wu wrote:
Hello,
Does anyone know if there is any way to use CachedRowSet with sybase JDBC
driver?
I knew there was posting regarding this in the year 2000. And now it 2003. Thanks!
PeterYes there is, but it involves some driver-specific properties, and I know this from
a discussion I read on their jdbc support newsgroup. That would be the best place
for an answer about their driver. Try news://forums.sybase.com, in the sybase.public.jconnect50
group.
Joe -
Using CachedRowSet with sybase JDBC driver
Hello,
Does anyone know if there is any way to use CachedRowSet with sybase JDBC
driver?
I knew there was posting regarding this in the year 2000. And now it 2003. Thanks!
PeterPeter Wu wrote:
Hello,
Does anyone know if there is any way to use CachedRowSet with sybase JDBC
driver?
I knew there was posting regarding this in the year 2000. And now it 2003. Thanks!
PeterYes there is, but it involves some driver-specific properties, and I know this from
a discussion I read on their jdbc support newsgroup. That would be the best place
for an answer about their driver. Try news://forums.sybase.com, in the sybase.public.jconnect50
group.
Joe -
Where can I find installation instructions for JDBC driver?
Is any one here to help me out by pointing out where I can find the installation instructions for the downloaded oracle 8i jdbc driver?
ThanksHi,
You will find the installation instructions for JDBC Driver in the JDBC Developer's Guide & Reference.
Here is a direct link to it http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/java.901/a90211/getsta.htm
Hope this helps,
OTN Team -
Problem with JDBC driver for Oracle 10g
Hi.
I've successfully accessed a MySQL database via a DataSource from a servlet (that uses a DAO). However, when I try to do the same with an Oracle 10g Database, I get the error message:
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter of which I downloaded this afternoon as the latest driver JAR available on the Oracle site. As with the MySQL driver, I've placed it in the commons\lib folder within Tomcat. (I've also, of course, made the necessary modifications to server.xml and web.xml.)
Upon examining the ReadMe file at the top of the Oracle download page, I found that the oracle.jdbc.driver package is now deprecated and all references to oracle.jdbc.driver should be replaced with oracle.jdbc. However, I got a similar error message when I tried this modification. Upon examining the contents of ojdbc.jar, I found that the driver was there and that it was, in fact, still oracle\jdbc\driver\OracleDriver!
It appears as though the Oracle site has not been updated with a driver that matches its latest documentation. However, this does not explain why the driver is not even being loacted when it is in the correct place. Can anybody shed any light on this? Any help would be much appreciated.
Thanks in anticipation.
Cheers.
JanI've successfully accessed a MySQL database via a
DataSource from a servlet (that uses a DAO). However,
when I try to do the same with an Oracle 10g
Database, I get the error message:
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
That's different from a ClassNotFoundException.
>
I'm using J2SE1.5.0/5.0 and ojdbc14.jar, the latter
of which I downloaded this afternoon as the latest
driver JAR available on the Oracle site. So you got ojdbc14.jar or ojdbc14_g.jar under the 10g drivers?
As with the
MySQL driver, I've placed it in the commons\lib
folder within Tomcat. I think it's a better idea to put in the WEB-INF/lib directory of your Web app rather than commons/lib. WAR files are a very good idea, too.
(I've also, of course, made the
necessary modifications to server.xml and web.xml.)So you're using a JNDI data source? It sounds to me like that's where the problem is.
You should not have to edit the server.xml at all. If you put the <ResourceParams> in a context XML file with the same name as your WAR file into the TOMCAT_HOME/webapps directory it'll be picked up automatically. (It might also be accessible in the META-INF directory for your app, but I haven't done it that way.)
Upon examining the ReadMe file at the top of the
Oracle download page, I found that the
oracle.jdbc.driver package is now deprecated and all
references to oracle.jdbc.driver should be replaced
with oracle.jdbc.
However, I got a similar error
message when I tried this modification. Upon
examining the contents of ojdbc.jar, I found that the
driver was there and that it was, in fact, still
oracle\jdbc\driver\OracleDriver! The fully-resolved class name you should be using MUST match the class that's in the ojdbc14.jar that you're using. Look in the JAR for the definitive answer: the one that I downloaded is still using the oracle.jdbc.driver package for OracleDriver.class. Ignore the docs - use the name that's in the JAR.
It appears as though the Oracle site has not been
updated with a driver that matches its latest
documentation. That often happens with docs.
However, this does not explain why the
driver is not even being loacted when it is in the
correct place. Can anybody shed any light on this?
Any help would be much appreciated.I think the problem lies in your web.xml and server.xml
I'd recommend that you decouple the JDBC from the Web app for now. See if you can connect to Oracle using a simple desktop app and leave the Web piece out of the equation for now. Once you can do that, you'll be certain that the parameters you're using are correct and you can turn your attention to getting the Tomcat configuration right.
PS - I'm using Oracle 9.2.0.1 and Tomcat successfully right now, so it can be done. -
Problem with JDBC driver for mysql
I have downloaded the Connector/J3.0 mysql-connector-java-3.0.7-stable.tar.gz from www.mysql.com/downloads/api-jdbc-stable.html web site and used gunzip and tar to extract the file. I have received the following error message:
tar: directory checksum error
Will this error cause some problem later on?
Which directory should I put the driver into? Can I put it in any directory?
Do I need to set the classpath for the driver? If yes, how can I set it?
What is the connect string? Can you give a sample for me? I am using Solaris 5.8 and mysql is on the same machine.
Thanks a lot,
Lisathis is an example of a connect string for mysql that i used...
public Connection CreateConnection () throws Exception
Connection myConn = null;
String driverName = "org.gjt.mm.mysql.Driver";
String dbUrl = "jdbc:mysql://www.desres.com/jhazrd?user=jhazrd&password=????";
Class.forName(driverName);
myConn = DriverManager.getConnection (dbUrl);
return myConn;
} -
Problem using JDBC driver with JSP
Hi, I am trying to connecto to my mysql server via a JSP page, but it seems that there is a problem with the driver call or something in my configuration that unables me to connect. I have the mysql-connector-java-3.0.7-stable driver.
This is how my classpath looks like:
CLASSPATH=/home/hooper/Sources/mysql-connector-java-4.0.7-stable/lib:/home/hooper/Sources/mysql-connector-java-3.0.7-stable/com:/home/hooper/Sources/mysql-connector-java-3.0.7-stable/mysql-connector-java-3.0.7-stable-bin.jar:/usr/java/j2sdk1.4.1_02:.:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02
And this is my JSP page code:
<%@ page language="java" import= "java.sql.*"%>
<%
Connection con = null;
String userName = "hooper";
String password = ""; //No password
String url = "jdbc:mysql://localhost/test";
//Load the Driver class file
Class.forName("com.mysql.jdbc.Driver");
//Make a connection to the MySQL database
con = DriverManager.getConnection (url, userName, password);
out.println ("Database connection established");
if (con != null){
//Close the connection
con.close();
%>
And this is the error I get from Tomcat4.1.18:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: com.mysql.jdbc.Driver
root cause
javax.servlet.ServletException: com.mysql.jdbc.Driver
I hope someone can help me with this.
Thanks,
LuisHi..
Try using this way
String userName = "hooper";
String password = ""; //No password
String url = "jdbc:mysql://localhost:3306/test";
Class.forName("org.gjt.mm.mysql.Driver");
try to download the driver for mysql and add it to your classpath
Hope this works
Regd
Vasi -
Update statement problem for jdbc adapter
Hi all
In the jdbc sender adapter, I configured as follows:
Query statement
select * from pickdiff where tid is null
Update statement
delete from pickdiff where tid is null
I got following error message:
Database-level error reported by JDBC driver while executing statement 'delete from pickdiff where tid is null'. The JDBC driver returned the following error message: 'java.sql.SQLException: [SQLServer 2000 Driver for JDBC][SQLServer]Die Unterabfrage gab mehr als einen Wert zurück. Das ist ungültig, wenn die Unterabfrage auf =, !=, <, <= , >, >= folgt oder als Ausdruck verwendet wird.'. For details, contact your database server vendor.
If I change the Update statement to
update pickdiff set tid = 'sapxi' where tid is null
Then everything is ok.
Doese any one have some idea about this problem?
Regards
HuiHi,
The below statements are from SAP help...
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm
The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
● Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
SQL statement for query: SELECT * FROM table WHERE processed = 0;
SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
processed is the indicator in the database.
please see if setting the isolation level would help....Also are you getting this error always or is it intermitent ?
Thanks,
Renjith -
JDBC driver patch for JDBC driver 8.1.7 on NT to connect 9i db
The patch number 1725012 related to JDBC driver patch for 8.1.7
for use with JDK 1.2.x/1.1.x to connect to a oracle 9i database
now shows patch support for six items but the NT operating
system is missing in the list. Do we need to wait for the NT
support patch release..? or any other work around to address
this bug in the mean time for testing in NT OS.
The JDBC error thrown is
ORA-00600: internal error code, arguments: [ttcgcshnd-1],[0]...You must include "classes12.zip" instead of "classes111.zip".
Since "classes111.zip" is required only for Java 1
and "classes12.zip" is required for Java 2 which means from J2SE 1.2 on forward.
In adition you might need to inlcude "nls_charset12.zip" as well. Try it first without and if it is not working include it as well.
The required files can you get from the OTN.
This should help
Roger -
Classpath in tomcat.bat for jdbc driver (jsp page)
Dear Friends,
I am able to run my java program with Microsoft JDBC driver from console (dos prompt).
But, when i am trying to run JSP program on browser using, the same driver, it is saying classNotFoundException().
do i need to set the classpath for Microsoft jdbc driver in my tomcat.bat ?
Please help me, what changes do i have to do in tomcat.bat to run the microsoft jdbc driver for jsp application.
If anyone having idea, please share ur valuable ideas.
thanks in advance.
yours
Rajesh
[email protected]If the driver is packed in a jar-file, you can just place the jar in the lib directory of Tomcat. If it's not, you can pack it in a jar and do the same thing:)
-
Requirements for JDBC Driver needed for SOA 8 }connection pool
Hi,
I have an AS400 jdbc driver. This driver is JDBC API version 2.x. Also is a Driver Type 4.
What are the requirements of a JDBC Driver needed for connection pool in SOA 8?
Thanks.
Lorenzo JimenezYou can use pretty much any jdbc driver, including type 2 and type 4.
You need to make sure your shared libraries needed by the driver are available to the appserver when you boot.
Other than that, it is no different than configuring any other driver. -
Problem loading jdbc driver in Tomcat
Hi,
I have got a connection to MySQL5.0 from TomCat 5.5.13, that was test correctly in development (JSC Upd 1) but I encounter the following deployment error :
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
When I verify, I found that if I put the mysql Connector JDBC driver in <tomcat>/common/lib, there is no error.
But when the MySql Connector JDBC driver resides in <tomcat>/shared/lib, the error persists.
What's the difference ? shouldn't it work for both ?
Thanks in advance for any pointers and advise.hmm... i guess that it's a must to include the lib at /common/lib instead of shared/lib .
Is there a Tomcat resource that I can read up on ?
rgds -
Lock generator for JDBC driver ...
NetIQ's IDM ( iManager) product ships with OraLockGenerator java class (for Oracle). Does MSSQL have a sample of an equivalent functionality ?
The OraLock java code is very simple and uses most of the Novell base classes. Am not sure if the calls there (SQL statements) are supported by the MS SQL JDBC driver.>Does MSSQL have a sample of an equivalent functionality ?
Can you detail the functionality you want?
Are you trying to implement similar functionality in your own project? Or are you trying to run the NetIQ's IDM ( iManager) product on SQL Server?
David
David http://blogs.msdn.com/b/dbrowne/ -
Problem registering jdbc driver in jar
My java oracle program runs fine as a class.
(java myclass)
But when I run the program as an executable jar (java -jar myclass.jar), a statement like
Class.forName("oracle.jdbc.driver.
OracleDriver"); throws the ClassDefNotFound exception, in other words it can not find and load the driver class !
Any solutions ?
ThanksI had the same issue, as a work around I included classes12.zip (in my case) in a sub directory from my application /jdbc. Then added the following line to the manifest
Class-Path: jdbc/classes12.zip
Hope this helps -
Hi,
I am using PostgreSQL as the database. I have downloaded the driver for postgreSQL. The problem is when i try to connect to the database using JDBC through DriverManager.getConnection() in JSP it gives java.sql.Exception ... No suitable driver error... the same code works fine if executed on a local machine where postgreSQL is installed ...
can you help me in this ??
thanxdid u obtain the driver name using
Class.forName("postgresql.Driver");
right before invoking the getConnection() method? Try that if u haven't already done so.
Maybe you are looking for
-
I had to reimage my computer at work and had to install acrobat v9 again and now when I got to open it - i get the following error: You cannot use this product at this time. You must repair the problem by uninstalling and then reinstalling this produ
-
Hi Team, how can we prepare aging analysis of vendor. there is no input field available for mention payment terms in advance booking screen F-48 hence it is difficult to prepare the aging analysis. advice any for this..... Regards Sree
-
Recently my backups have started to fail. The interesting thing is that all failures appear to be related to a lack of space. What makes this interesting is that disk I am trying to back up is using 117GB and has 170GB free and the drive that I'm bac
-
Network problem when update ios 5.1.1
hi, I am in big problem with my iphone 4, when upgrade in ios 5.1.1 then my operator's network some times showing and sometimes not showing. Also notice that if the network bars is full but it is not working. Please help me with some advise at [ema
-
I have received a message that my Apple ID has been disabled and don't know what to do?
I recently purchased a new iPhone4 and registered it immediately on line. I needed to download an application to be able to use it with an FM transmitter in the car and I was informed that my Apple ID has been disabled. There was nothing about securi