Hello everybody,

I have got a following exception:

org.xmldb.api.base.XMLDBException: Connection lost to server.
        at net.cfoster.sedna.xmldb.a.a(Unknown Source)
        at net.cfoster.sedna.xmldb.a.a(Unknown Source)
        at net.cfoster.sedna.xmldb.v.a(Unknown Source)
        at net.cfoster.sedna.xmldb.v.a(Unknown Source)
        at net.cfoster.sedna.xmldb.v.createResource(Unknown Source)
        ...

It rises after much number of iterations like:

        // getting `input' data (of type Node) from DB
...
        XPathQueryService service =
                (XPathQueryService)
inputsCollection.getService("XPathQueryService",
                "1.0");
        ResourceSet resultSet = service.query(xpath);
        ResourceIterator results = resultSet.getIterator();
        Node input = null;
        if (results.hasMoreResources())
        {
            XMLResource resource =
                    (XMLResource) results.nextResource();
            input = resource.getContentAsDOM();
        }
...
and
...
       // placing `data' to DB

        XMLResource resource = (XMLResource)
outputsCollection.createResource(null, XMLResource.RESOURCE_TYPE);
        resource.setContent(data);
        outputsCollection.storeResource(resource);
....
i.e. much number of placing the XML data.

What may be wrong?

Could manipulations with the DB connection pool help?

The current application is java SE application...

-- 
Regards,

   -Andrey

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to