Tuesday, February 28, 2017

eXist Exception


Ref: https://sourceforge.net/p/exist/mailman/message/26727507/

Quote
The XMLRPC server will cache query results for max. 3 minutes and free
them afterwards. This timeout is set to avoid memory issues if the
client fails to explicitly release query results. The timeout is not
configurable, but if you really need to extend it, you can change the
constant TIMEOUT in org.exist.xmlrpc.QueryResultCache.

Ref: http://exist-db.org/exist/apps/doc/devguide_xmldb.xml
Free resource
 if(res != null) {
                try { ((EXistResource)res).freeResources(); } catch(XMLDBExcepti
on xe) {xe.printStackTrace();}
            }
            
            if(col != null) {
                try { col.close(); } catch(XMLDBException xe) {xe.printStackTrac
e();}
            }
        }


org.xmldb.api.base.XMLDBException: Failed to invoke method retrieveFirstChunk in class org.exist.xmlrpc.RpcConnection: result set unknown or timed out: 220
at org.exist.xmldb.AbstractRemoteResource.getRemoteContentIntoLocalFile(AbstractRemoteResource.java:374)
at org.exist.xmldb.AbstractRemoteResource.getStreamContentInternal(AbstractRemoteResource.java:497)
at org.exist.xmldb.RemoteXMLResource.getStreamContent(RemoteXMLResource.java:466)
at org.exist.xmldb.RemoteXMLResource.getContentAsDOM(RemoteXMLResource.java:161)

No comments:

Post a Comment