As Eric points out, you need to set native-resultset to true, which means you will use Oracle resultset implementation so that you can cast to it.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:21 AM To: JRun-Talk Subject: RE: ClassCastException: jrun.sql.JRunResultSet I am using JRun 4 and the database driver is oracle.jdbc.driver.OracleDriver. For more information, native-resultset is set to false. -----Original Message----- From: Theodore Zimmerman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 5:46 PM To: JRun-Talk Subject: RE: ClassCastException: jrun.sql.JRunResultSet Which version of JRun are you using? Can you show the full stack trace? If you're using Oracle's implentation then you wouldn't be able to use JRunResultSet. Ted Zimmerman -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 3:48 PM To: JRun-Talk Subject: ClassCastException: jrun.sql.JRunResultSet In the below given code, I am keep getting -ClassCastException: jrun.sql.JRunResultSet - at line 8. Can anybody suggest why is it throwing? 1) String query = "SELECT XML_DATA FROM ADVT_XML WHERE XML_NAME='TOOLS_XML' for update"; 3) Connection conn = ConnectionFactory.getConnection(); 4) conn.setAutoCommit(false); 5) PreparedStatement statement = conn.prepareStatement(query); 6) ResultSet rs = (ResultSet)statement.executeQuery(); 7) rs.next(); 8) CLOB clob = ((OracleResultSet)rs).getCLOB("XML_DATA"); 9) OutputStream out = clob.getAsciiOutputStream(); Thanks ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
