When I start the java client it shows no collections. But I can navigate to collections and subcollections from the command line, as long as I don't try to go back to root level. If I do that the client hangs for a very long time.

I assume this message in exist.log is relevant:

2007-04-27 15:27:53,725 [http-8080-Processor14] WARN  (Collection.java [getPermissions]:564) - time out while acquiring a lock
org.exist.util.LockException: time out while acquiring a lock
        at org.exist.storage.lock.ReentrantReadWriteLock.acquire(ReentrantReadWriteLock.java:94)
        at org.exist.collections.Collection.getPermissions(Collection.java:561)
        at org.exist.xmlrpc.RpcConnection.getPermissions(RpcConnection.java:979)
        at org.exist.xmlrpc.RpcConnection.getPermissions(RpcConnection.java:962)
        at org.exist.xmlrpc.RpcServer.getPermissions(RpcServer.java:474)
        at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.exist.xmlrpc.AuthenticatedHandler.execute(AuthenticatedHandler.java:120)
        at org.exist.xmlrpc.AuthenticatedHandler.execute(AuthenticatedHandler.java:67)
        at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:128)
        at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:185)
        at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:151)
        at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
        at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:65)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
2007-04-27 15:27:53,728 [http-8080-Processor14] WARN  (ReentrantReadWriteLock.java [release]:147) - Possible lock problem: thread Thread[http-8080-Processor14,5,main] released a lock it didn't hold. Either the thread was interrupted or it never acquired the lock. The lock was owned by: Thread[Thread-5,5,]
2007-04-27 15:27:53,729 [http-8080-Processor14] WARN  (ReentrantReadWriteLock.java [release]:147) - Possible lock problem: thread Thread[http-8080-Processor14,5,main] released a lock it didn't hold. Either the thread was interrupted or it never acquired the lock. The lock was owned by: Thread[Thread-5,5,]

There are also messages from one of the apps using eXist. The app seems to work fine, though:


2007-04-27 15:32:31,252 [http-8080-Processor22] DEBUG (NativeBroker.java [getXMLResource]:1541) - document '/db' not found!
2007-04-27 15:32:31,262 [http-8080-Processor22] DEBUG (XQuery.java [compile]:154) - Query diagnostics:
let  <4>
    $resultid := "result_593413928_2007-04-26-15-05-15-228840",
    let  <5>
        $n := "m_1",
        let  <6>
            $result := doc("/db/diplom/resultat/resultater.xml")/descendant-or-self::result[[attribute::id = "result_593413928_2007-04-26-15-05-15-228840"]],
            let  <7>
                $item := $result
                descendant-or-self::item union descendant-or-self::relatedtranscription union descendant-or-self::relatedimage[[attribute::this = $n]]
            return
                element {"hit"} {
                    (
                        $result/attribute::attribute(), element {"searchtext"} {
                            (
                                normalize-space(string($result/child::searchtext)),
                            )
                        } , $item,
                    )
                }
2007-04-27 15:32:31,263 [http-8080-Processor22] DEBUG (XQuery.java [compile]:156) - Compilation took 7
2007-04-27 15:32:31,264 [http-8080-Processor22] DEBUG (HTTPUtils.java [addLastModifiedHeader]:61) - mostRecentDocumentTime: 0
2007-04-27 15:32:31,265 [http-8080-Processor22] DEBUG (RESTServer.java [search]:904) - Found 1 in 2ms.

Finally there are messages
2007-04-27 15:11:10,453 [http-8080-Processor22] WARN  (NativeBroker.java [openCollection]:754) - Failed to acquire lock on collection '/db/system'
and

2007-04-27 15:44:47,340 [http-8080-Processor22] DEBUG (XQueryContext.java [storeTemporaryDoc]:1635) - Stored: 364: /db/system/temp/fdb5ab8816a1a3d26c3f2d3783968a81.xml

that might be relevant.

Any ideas about what is wrong?

I use version 1.1.1-20061024.

- Øystein -

-- 
Øystein Reigem, The department of culture, language and information technology (Aksis), Allegt 27, N-5007 Bergen, Norway. Tel: +47 55 58 32 42. Fax: +47 55 58 94 70. E-mail: <oystein.reigem@aksis.uib.no>. Home tel: +47 56 14 06 11. Mobile: +47 97 16 96 64. Home e-mail: <oreigem@broadpark.no>. Aksis home page: <www.aksis.uib.no>.