Maven/ArchivaDerbyError

HomePage | Maven | RecentChanges | Preferences

After sitting there quietly for a while, Archiva stopped responding. From the console:

Another instance of Derby may have already booted the database C:\svn\maven\arch
iva\archiva-webapp\target\database.
ERROR XSDB6: Another instance of Derby may have already booted the database C:\s
vn\maven\archiva\archiva-webapp\target\database.
        at org.apache.derby.iapi.error.StandardException.newException(Unknown So
urce)
        at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSL
ockOnDB(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.getJBMSLockO
nDB(Unknown Source)
        at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown
 Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Sourc
e)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
n Source)
        at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unkn
own Source)
        at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Sourc
e)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
n Source)
        at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unkn
own Source)
        at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Sour
ce)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Sourc
e)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknow
n Source)
        at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unkn
own Source)
        at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
        at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Sourc
e)
        at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknow
n Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderServi
ce(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndSta
rtService(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentSer
vice(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentSer
vice(Unknown Source)
        at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService
(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Sourc
e)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
        at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
        at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source
)
        at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source
)
        at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:49)
        at org.jpox.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:241)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:64)
        at org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactor
y.java:73)
        at org.jpox.AbstractPersistenceManager.<init>(AbstractPersistenceManager
.java:224)
        at org.jpox.PersistenceManagerImpl.<init>(PersistenceManagerImpl.java:42
)
        at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persiste
nceManagerFactoryImpl.java:175)
        at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persiste
nceManagerFactoryImpl.java:150)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.get
PersistenceManager(JdoTool.java:114)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.get
ObjectById(JdoTool.java:292)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.obj
ectExistsById(JdoTool.java:340)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacMana
ger.roleExists(JdoRbacManager.java:121)
        at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.getRole(A
bstractDynamicRoleProfile.java:170)
        at org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.getDynamic
Role(DefaultRoleProfileManager.java:87)
        at org.apache.maven.archiva.web.check.RoleExistanceEnvironmentCheck.vali
dateEnvironment(RoleExistanceEnvironmentCheck.java:75)
        at org.codehaus.plexus.security.ui.web.interceptor.EnvironmentCheckInter
ceptor.init(EnvironmentCheckInterceptor.java:78)
        at org.codehaus.plexus.xwork.PlexusObjectFactory.buildInterceptor(Plexus
ObjectFactory.java:101)
        at com.opensymphony.xwork.config.providers.InterceptorBuilder.constructI
nterceptorReference(InterceptorBuilder.java:48)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.look
upInterceptorReference(XmlConfigurationProvider.java:702)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.load
InterceptorStack(XmlConfigurationProvider.java:569)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.load
InterceptorStacks(XmlConfigurationProvider.java:582)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.load
Interceptors(XmlConfigurationProvider.java:603)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addP
ackage(XmlConfigurationProvider.java:204)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.load
ConfigurationFile(XmlConfigurationProvider.java:676)
        at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init
(XmlConfigurationProvider.java:91)
        at com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(Defaul
tConfiguration.java:85)
        at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(C
onfigurationManager.java:54)
        at com.opensymphony.xwork.DefaultActionProxy.<init>(DefaultActionProxy.j
ava:57)
        at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(De
faultActionProxyFactory.java:46)
        at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(Dis
patcherUtils.java:216)
        at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterD
ispatcher.java:202)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1040)
        at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilt
er.java:118)
        at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilte
r.java:52)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1040)
        at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(Act
ionContextCleanUp.java:88)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1040)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
52)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:2
30)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:6
27)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:149)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:123)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
41)
        at org.mortbay.jetty.Server.handle(Server.java:286)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:44
4)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo
nnection.java:701)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:340)
        at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.jav
a:270)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:475)

NestedThrowables:
SQL Exception: Failed to start database 'target/database', see the next exceptio
n for details.
        at org.jpox.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:285)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:64)
        at org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactor
y.java:73)
        at org.jpox.AbstractPersistenceManager.<init>(AbstractPersistenceManager
.java:224)
        at org.jpox.PersistenceManagerImpl.<init>(PersistenceManagerImpl.java:42
)
        at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persiste
nceManagerFactoryImpl.java:175)
        at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(Persiste
nceManagerFactoryImpl.java:150)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.get
PersistenceManager(JdoTool.java:114)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.get
ObjectById(JdoTool.java:292)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.obj
ectExistsById(JdoTool.java:340)
        at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacMana
ger.roleExists(JdoRbacManager.java:121)
        at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.getRole(A
bstractDynamicRoleProfile.java:170)
        at org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.getDynamic
Role(DefaultRoleProfileManager.java:87)
        at org.apache.maven.archiva.web.check.RoleExistanceEnvironmentCheck.vali
dateEnvironment(RoleExistanceEnvironmentCheck.java:75)
        at org.codehaus.plexus.security.ui.web.interceptor.EnvironmentCheckInter
ceptor.init(EnvironmentCheckInterceptor.java:78)
        at org.codehaus.plexus.xwork.PlexusObjectFactory.buildInterceptor(Plexus
ObjectFactory.java:101)
        ... 34 more
Caused by: SQL Exception: Failed to start database 'target/database', see the ne
xt 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
)
        at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown So
urce)
        at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Sourc
e)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
        at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
        at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
        at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source
)
        at org.apache.derby.jdbc.EmbeddedDataSource.getConnection(Unknown Source
)
        at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:49)
        at org.jpox.store.rdbms.RDBMSManager.<init>(RDBMSManager.java:241)
        ... 53 more


HomePage | Maven | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited November 27, 2006 11:39 am by WendySmoak (diff)
Search: