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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oracle JDBC insert table using WebSphere 5.0