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