Updated the JDBC-driver to the latest: "Microsoft SQL Server 2005 JDBC Driver Beta 1". This works fine with Cocoon 2.1.7.

-Tuomo

On Sun, 17 Jul 2005, Joerg Heinicke wrote:

On 17.07.2005 00:36, Tuomo L wrote:
Thanks, I tested the sample, and it does work with HSQLDB. But when I tested it against SQL Server with similar results I got before: Upload works but reading the file with DatabaseReader returns 0 bytes. :(

So, my guess is, something has changed between 2.1.5 and 2.1.7 that makes
the JDBC driver for SQL Server incompatible with Cocoon. With the jar-files from 2.1.5 (same setup otherwise) this works. What could this change be?

The method that throws this error "Assuming client reset stream" in DatabaseReader.java is:

public void generate() throws ProcessingException, SAXException, IOException {
        try {
            Response response = ObjectModelHelper.getResponse(objectModel);
            this.serialize(response);
        } catch (IOException ioe) {
            getLogger().warn("Assuming client reset stream");

Try to log the IOException or do some remote debugging to find out the reason.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to