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 ______________________________________________________________________ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
