This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes Oracle JDBC insert table using WebSphere 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle JDBC insert table using WebSphere 5.0" Watch "Oracle JDBC insert table using WebSphere 5.0" New topic
Author

Oracle JDBC insert table using WebSphere 5.0

grace chow
Greenhorn

Joined: Oct 25, 2004
Posts: 13
Dear ,
When I use websphere to insert a row into Oralce Table
with the following code, it always have the exception like this:
EXCEPTION: com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement
java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.
Do you guys know what causes this problem!! Many thanks



[edited to add code tags]
[ April 30, 2005: Message edited by: Jeanne Boyarsky ]
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

on the first place does it insert with standard JDBC ? i mean to ask if it inserts if you don't type cast your prepared statement to Oracle prepared statement.

Shailesh
[ April 30, 2005: Message edited by: Shailesh Chandra ]

Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Oracle JDBC insert table using WebSphere 5.0
 
Similar Threads
servlet not working
how to create BLOB and CLOB data
Inserting Large XML file into Oracle Database through java,Please help
Insert CLOB using JDBC
How to store & retrieve a video file from database?