|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Cannot access database instanceHi, I am using eXist as an embedded database and updated from v1.2.x to 1.4-rc. I haven't got any errors while compiling the source of my project on eclipse, but found the following when creating the database collection.
org.xmldb.api.base.XMLDBException: Can not access to local database instance
at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:183) at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:155) at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:150) at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) at org.example.ExistDBCollectionManagerImpl.getLocalXmlDBInstance(ExistDBCollectionManagerImpl.java:102) at org.example..ExistDBCollectionManagerImpl.getOrCreateCollection(ExistDBCollectionManagerImpl.java:152) at org.example..TestXmlDBCollectionManager.removeAllCollections(TestXmlDBCollectionManager.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.exist.EXistException: database instance 'exist' is not available at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:286) at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:181) ... 29 more [B@...: database instance 'exist' is not available at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:286) at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:181) at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:155) at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:150) at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) at org.example.ExistDBCollectionManagerImpl.getLocalXmlDBInstance(ExistDBCollectionManagerImpl.java:102) at org.example.ExistDBCollectionManagerImpl.getOrCreateCollection(ExistDBCollectionManagerImpl.java:152) at org.example.TestXmlDBCollectionManager.removeAllCollections(TestXmlDBCollectionManager.java:22) Furthermore I have the following jars in the project's classpath: exist.jar exist-fluent.jar exist-modules.jar exist-ngram-module.jar
exist-optional.jar jEdit-syntax.jar jline-0.9.94.jar Thanks for your help in advance. Shiraz ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: Cannot access database instanceIt would seem to me that the embedded database is not started?
2009/10/28 shiraz memon <shiraz.lists@...>: > Hi, > > I am using eXist as an embedded database and updated from v1.2.x to 1.4-rc. > I haven't got any errors while compiling the source of my project on > eclipse, but found the following when creating the database collection. > org.xmldb.api.base.XMLDBException: Can not access to local database instance > at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:183) > at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:155) > at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:150) > at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) > at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) > at > org.example.ExistDBCollectionManagerImpl.getLocalXmlDBInstance(ExistDBCollectionManagerImpl.java:102) > at > org.example..ExistDBCollectionManagerImpl.getOrCreateCollection(ExistDBCollectionManagerImpl.java:152) > at > org.example..TestXmlDBCollectionManager.removeAllCollections(TestXmlDBCollectionManager.java:22) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) > at > org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) > at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) > at > org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) > at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) > at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) > at > org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) > at > org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) > at > org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) > at > org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) > at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) > at > org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) > at > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) > Caused by: org.exist.EXistException: database instance 'exist' is not > available > at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:286) > at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:181) > ... 29 more > [B@...: database instance 'exist' is not > available > at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:286) > at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:181) > at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:155) > at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:150) > at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) > at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) > at > org.example.ExistDBCollectionManagerImpl.getLocalXmlDBInstance(ExistDBCollectionManagerImpl.java:102) > at > org.example.ExistDBCollectionManagerImpl.getOrCreateCollection(ExistDBCollectionManagerImpl.java:152) > at > org.example.TestXmlDBCollectionManager.removeAllCollections(TestXmlDBCollectionManager.java:22) > Furthermore I have the following jars in the project's classpath: > exist.jar > exist-fluent.jar > exist-modules.jar > exist-ngram-module.jar > exist-optional.jar > jEdit-syntax.jar > jline-0.9.94.jar > Thanks for your help in advance. > Shiraz > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Exist-open mailing list > Exist-open@... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- Adam Retter eXist Developer { United Kingdom } adam@... irc://irc.freenode.net/existdb ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: Cannot access database instanceThanks for your quick reply. As I replace the jars from 1.4-rc to 1.2 it runs out of the box. Though I have also checked the test cases included in the dist. bundle and hopefully doing the same thing. Probably classpath is not correctly set or a bug in the latest eXist?
Shiraz On Wed, Oct 28, 2009 at 5:15 PM, Adam Retter <adam@...> wrote: It would seem to me that the embedded database is not started? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
| Free embeddable forum powered by Nabble | Forum Help |