Re: What does next Exception mean, now another question: DB already in use?

2005-11-22 Thread Suresh Thalamati
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.









Re: What does next Exception mean?

2005-11-22 Thread Jean T. Anderson

[EMAIL PROTECTED] wrote:

Stefan Schuster wrote:


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.



I find nabble's search to be very handy:

http://www.nabble.com/Derby-f356.html

 -jean



Re: What does next Exception mean, now another question: DB already in use?

2005-11-22 Thread Stefan Schuster

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.






Re: What does next Exception mean?

2005-11-22 Thread John Embretsen

Hi,

Here's a quick answer to your second question:

Stefan Schuster wrote:

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)


Nabble is quite good, and has a search field on the top of the page:

http://www.nabble.com/Apache-Derby-Users-f93.html



--
John


Re: What does next Exception mean?

2005-11-22 Thread Oyvind . Bakksjo

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.

--
Oyvind Bakksjo
Sun Microsystems, Database Technology Group
Trondheim, Norway
http://weblogs.java.net/blog/bakksjo/