----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi ALl,

I'm using Apache-Jserv combination on Sunsparc machine.
I'm trying to make a JDBC call to extract data from a LONG RAW column by
giving command 
                byte [] buffer  =       new byte[1000];

                InputStream story_data =
(InputStream)result.getBinaryStream(10);
                story_data.read(buffer);

But at run time it's giving exception :

java.sql.SQLException: Stream has already been closed: getBinaryStream
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at java.sql.SQLException.<init>(Compiled Code)
        at oracle.jdbc.dbaccess.DBError.check_error(Compiled Code)
        at oracle.jdbc.driver.OracleStatement.getBinaryStreamValue(Compiled
Code)
        at oracle.jdbc.driver.OracleResultSet.getBinaryStream(Compiled Code)
        at sfa.common.content.NewsQuery.query1(Compiled Code)
        at sfa.common.content.NewsQuery.query(Compiled Code)
        at sfa.common.content.ContentQuery.execQuery(Compiled Code)
        at sfa.common.content.BaseContentServer.query(Compiled Code)
        at sfa.server.ContentServlet.processContentRequest(Compiled Code)
        at sfa.server.ContentServlet.processQueryRequest(Compiled Code)
        at sfa.server.ContentServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.jserv.JServConnection.processRequest(Compiled Code)
        at org.apache.jserv.JServConnection.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)


Any Idea / Solution will be greatly appreciated .

Thanks
Soumitra


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to