There was one bug in this area ( Derby-32) in the first version of
Derby (10.0 I think). What is the Derby version and the OS are you
using ?
Other than that bug, this error occurs only when some one boots derby
db through multiple jvms/different class loaders in the same jvm at
the same time.
Thanks
-suresht
Stefan Schuster wrote:
Hi,
thank you, this helped a lot. Which brings me to the real problem:
ERROR XSDB6: Another instance of Derby may have already booted the
database /tmp/apache-tomcat-5.5.12/bin/e2emappingdb.
at org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown
Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
I am shure that there is no other instance of Derby using the DB, I use the
same set of prepared Statements all the time (all from the same
connection).
What am I doing wrong? The application runs in Tomcat, but as I said,
the class holding my statements
(call it persistence-Layer) is a singleton, its getInstance()-Method is
synchronized and the returned instance
is always the same...
Thanks in advance,
Stefan
[EMAIL PROTECTED] wrote:
Stefan Schuster wrote:
Hi,
I get an error:
SQL Exception: Failed to start database 'e2emappingdb', see the next
exception for details.
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown
Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown
Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
Source)
What is meant by "next Exception" ? The cause ? The exception arising
with the next call ?
The next exception I see in my log/project/life ? ;)
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/SQLException.html#getNextException()
:)
BTW: Is there a way to search through this mailing-list via an
web interface (I already found the web-interface that allows
browsing, but
I cant find a "search" field....)
I think most people use Google... :o) Yes, I know, it's not adequate.