on Java you MUST close the Connection to avoid memory leaks. Every
object has a closing feature for this purpose, closing the connection
will close any other object derived from it...

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  Text serialization with XQJ

Status in Zorba - The XQuery Processor:

Bug description:
  With the XQJ branch, the following program:

                XQDataSource xqds = new XQDataSource();
                XQConnection xqc = xqds.getConnection();
                Properties serializationProps = new java.util.Properties();
                serializationProps.setProperty("method", "text");
                XQExpression xqe;
                XQSequence xqs;
                xqe = xqc.createExpression();
                xqs = xqe.executeQuery("(<foo />, <bar />)");
                int i = 1;
                while (xqs.next()) {
                  FileOutputStream file;
                  xqs.writeItem(System.out, serializationProps);


  <foo/><bar/>i = 0 String file:/// is still in the pool
  Zorba Internal Fatal Error in 
  "count == 0": condition failed: 1 strings remain in the string pool

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to