db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Schuster <sschus...@pironet-ndh.com>
Subject Re: What does next Exception mean, now another question: DB already in use?
Date Tue, 22 Nov 2005 15:33:07 GMT
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


Oyvind.Bakksjo@Sun.COM 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.
>



Mime
View raw message