db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom_ <tom12...@web.de>
Subject Re: Failed to start database
Date Mon, 07 Jan 2008 11:50:06 GMT

Here is the debug stack trace

java.sql.SQLException: Failed to start database
'/Programme/Chemikalienverzeichnis-Einzelplatz/db/chev21', see the next
exception for details.
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:95)
	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
	at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:224)
	at
org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1903)
	at
org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:255)
	at
org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:73)
	at
org.apache.derby.impl.jdbc.EmbedConnection40.<init>(EmbedConnection40.java:54)
	at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Driver40.java:68)
	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:209)
	at org.apache.derby.jdbc.EmbeddedDriver.connect(EmbeddedDriver.java:128)
	at
org.executequery.datasource.ConnectionDataSource.getConnection(ConnectionDataSource.java:290)
	at
org.executequery.datasource.ConnectionDataSource.getConnection(ConnectionDataSource.java:267)
	at
org.executequery.datasource.ConnectionPool.ensureCapacity(ConnectionPool.java:291)
	at
org.executequery.datasource.ConnectionManager.createDataSource(ConnectionManager.java:90)
	at
org.executequery.databasemediators.ConnectionBuilder.connect(ConnectionBuilder.java:133)
	at
org.executequery.databasemediators.ConnectionBuilder.access$000(ConnectionBuilder.java:44)
	at
org.executequery.databasemediators.ConnectionBuilder$1.construct(ConnectionBuilder.java:117)
	at org.underworldlabs.swing.util.SwingWorker$2.run(SwingWorker.java:138)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.sql.SQLException: Failed to start database
'/Programme/Chemikalienverzeichnis-Einzelplatz/db/chev21', see the next
exception for details.
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory40.java:135)
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:70)
	... 18 more
Caused by: java.sql.SQLException: Java exception: ':
java.lang.NullPointerException'.
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45)
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory40.java:135)
	at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:70)
	at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:88)
	at org.apache.derby.impl.jdbc.Util.javaException(Util.java:245)
	at
org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1899)
	... 15 more
Caused by: java.lang.NullPointerException
	at org.apache.derby.iapi.types.SQLChar.getCollationKey(SQLChar.java:2516)
	at
org.apache.derby.iapi.types.WorkHorseForCollatorDatatypes.stringCompare(WorkHorseForCollatorDatatypes.java:88)
	at
org.apache.derby.iapi.types.CollatorSQLVarchar.stringCompare(CollatorSQLVarchar.java:159)
	at org.apache.derby.iapi.types.SQLChar.compare(SQLChar.java:902)
	at
org.apache.derby.impl.store.access.btree.ControlRow.compareIndexRowToKey(ControlRow.java:1354)
	at
org.apache.derby.impl.store.access.btree.index.B2IUndo.findUndo(B2IUndo.java:221)
	at
org.apache.derby.impl.store.raw.data.LogicalPageOperation.findLogicalPage(LogicalPageOperation.java:358)
	at
org.apache.derby.impl.store.raw.data.LogicalPageOperation.generateUndo(LogicalPageOperation.java:164)
	at org.apache.derby.impl.store.raw.log.FileLogger.undo(FileLogger.java:991)
	at org.apache.derby.impl.store.raw.xact.Xact.abort(Xact.java:933)
	at
org.apache.derby.impl.store.raw.xact.XactFactory.rollbackAllTransactions(XactFactory.java:529)
	at
org.apache.derby.impl.store.raw.log.LogToFile.recover(LogToFile.java:1100)
	at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:309)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1992)
	at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:546)
	at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:419)
	at
org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:985)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1992)
	at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:546)
	at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:419)
	at org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:759)
	at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:190)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1992)
	at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:291)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1829)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1695)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1575)
	at
org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:994)
	at
org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:542)
	at
org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:1864)
	... 15 more




Knut Anders Hatlen wrote:
> 
> tom_ <tom12167@web.de> writes:
> 
>> It has to be set in the file derby.properties which has to be created.
>> Now
>> the upgrade message has gone, but the exception with getCollationKey() is
>> shown again.
> 
> Could you try to do the same with a debug build and post the stack trace
> you are seeing? You can find a debug build here:
> http://db.apache.org/derby/releases/release-10.3.2.1.cgi (pick one of
> the lib-debug downloads).
> 
> -- 
> Knut Anders
> 
> 

-- 
View this message in context: http://www.nabble.com/Failed-to-start-database-tp14561205p14663974.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message