db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bassel_kh <bkhash...@hotmail.com>
Subject Re: Derby crash (urgent)
Date Thu, 12 Jun 2008 12:07:12 GMT


Knut Anders Hatlen wrote:
> 
> Bassel_kh <bkhashfeh@hotmail.com> writes:
> 
>> Actually, I removed C3P0 totally, and upgraded derby to 10.4, the new
>> Exception occured:
> 
> Hi,
> 
> Did you create a new database after upgrading to Derby 10.4, or did you
> continue with an old database created with an earlier version of Derby?
> I'm asking this to find out if this is a new bug or a know bug that was
> fixed in Derby 10.4. If the database has become corrupted (as we know
> could happen with some of the 10.2 and 10.3 releases), upgrading Derby
> won't help you accessing that database.
> 
> 

I got this problem earlier, so I created a new database using derby 10.4,
and then migrated the data from the old one, the same exception thrown:

Database Class Loader started - derby.database.classpath=''
2008-06-12 11:42:47.937 GMT Thread[WrapperSimpleAppMain,5,main] (XID =
14975), (SESSIONID = 0), (DATABASE = db/Arena), (DRDAID = null), Cleanup
action starting
2008-06-12 11:42:47.937 GMT Thread[WrapperSimpleAppMain,5,main] (XID =
14975), (SESSIONID = 0), (DATABASE = db/Arena), (DRDAID = null), Failed
Statement is: select user0_.ID as ID6_, user0_.USERNAME as USERNAME6_,
user0_.PASSWORD as PASSWORD6_, user0_.ROLE_ID as ROLE4_6_ from Arena.USERS
user0_
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.apache.derby.impl.store.raw.data.AllocPage.ReadContainerInfo(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.FileContainer.readHeader(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.RAFContainer.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.derby.impl.store.raw.data.RAFContainer.openContainer(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.RAFContainer4.openContainer(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.FileContainer.setIdent(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.RAFContainer.setIdentity(Unknown
Source)
	at org.apache.derby.impl.services.cache.ConcurrentCache.find(Unknown
Source)
	at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown
Source)
	at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown
Source)
	at org.apache.derby.impl.store.raw.xact.Xact.openContainer(Unknown Source)
	at
org.apache.derby.impl.store.access.btree.index.B2IFactory.readConglomerate(Unknown
Source)
	at
org.apache.derby.impl.store.access.RAMAccessManager.conglomCacheFind(Unknown
Source)
	at
org.apache.derby.impl.store.access.RAMTransaction.findExistingConglomerate(Unknown
Source)
	at org.apache.derby.impl.store.access.RAMTransaction.openStoreCost(Unknown
Source)
	at
org.apache.derby.impl.sql.compile.CompilerContextImpl.getStoreCostController(Unknown
Source)
	at
org.apache.derby.impl.sql.compile.FromBaseTable.getStoreCostController(Unknown
Source)
	at org.apache.derby.impl.sql.compile.FromBaseTable.estimateCost(Unknown
Source)
	at
org.apache.derby.impl.sql.compile.OptimizerImpl.estimateTotalCost(Unknown
Source)
	at
org.apache.derby.impl.sql.compile.OptimizerImpl.costBasedCostOptimizable(Unknown
Source)
	at org.apache.derby.impl.sql.compile.OptimizerImpl.costOptimizable(Unknown
Source)
	at org.apache.derby.impl.sql.compile.FromBaseTable.optimizeIt(Unknown
Source)
	at org.apache.derby.impl.sql.compile.ProjectRestrictNode.optimizeIt(Unknown
Source)
	at org.apache.derby.impl.sql.compile.OptimizerImpl.costPermutation(Unknown
Source)
	at org.apache.derby.impl.sql.compile.SelectNode.optimize(Unknown Source)
	at
org.apache.derby.impl.sql.compile.DMLStatementNode.optimizeStatement(Unknown
Source)
	at org.apache.derby.impl.sql.compile.CursorNode.optimizeStatement(Unknown
Source)
	at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
	at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
	at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown
Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown
Source)
	at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
	at
org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
	at
org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:368)
	at
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
	at org.hibernate.loader.Loader.doQuery(Loader.java:661)
	at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
	at org.hibernate.loader.Loader.doList(Loader.java:2147)
	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
	at org.hibernate.loader.Loader.list(Loader.java:2021)
	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
	at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:298)
	at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:137)
	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1014)
	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
	at ae.sphere.arena.db.dao.UserDAO.getAllUsers(UserDAO.java:52)
	at
ae.sphere.arena.server.eventManager.EventManagerPlugin.createUsers(EventManagerPlugin.java:384)
	at
ae.sphere.arena.server.eventManager.EventManagerPlugin.startJmsServer(EventManagerPlugin.java:277)
	at
ae.sphere.arena.server.eventManager.EventServerStartup.start(EventServerStartup.java:9)
	at
ae.sphere.arena.server.ArenaServerPlugin.startArenaStartupMembers(ArenaServerPlugin.java:201)
	at
ae.sphere.arena.server.ArenaServerPlugin.start(ArenaServerPlugin.java:185)
	at
ae.sphere.arena.server.ArenaServerApplication.run(ArenaServerApplication.java:29)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:237)
	at java.lang.Thread.run(Unknown Source)
Cleanup action completed
2008-06-12 11:42:57.664 GMT Thread[WrapperSimpleAppMain,5,main] (XID =
14983), (SESSIONID = 1), (DATABASE = db/Arena), (DRDAID = null), Cleanup
action starting
2008-06-12 11:42:57.664 GMT Thread[WrapperSimpleAppMain,5,main] (XID =
14983), (SESSIONID = 1), (DATABASE = db/Arena), (DRDAID = null), Failed
Statement is: insert into Arena.NOTIFICATION_SCHEDULER (NAME, MATCH_TYPE,
ENABLED, STATUS, LAST_RUN_TIME, IS_NOTIFIER, SYSTEM_NOTIFIER_ID,
COMPOSITECATEGORY, ACCESSRIGHTS, USER_ID, ID) values (?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?) with 11 parameters begin parameter #1: Fault Notification :end
parameter begin parameter #2: 1 :end parameter begin parameter #3: 1 :end
parameter begin parameter #4: null :end parameter begin parameter #5: null
:end parameter begin parameter #6: 1 :end parameter begin parameter #7: NULL
:end parameter begin parameter #8:
ae.sphere.arena.networkmanager.faultManager.notifications :end parameter
begin parameter #9: M#MA :end parameter begin parameter #10: null :end
parameter begin parameter #11: 87870 :end parameter 
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.apache.derby.impl.store.raw.data.AllocPage.ReadContainerInfo(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.FileContainer.readHeader(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.RAFContainer.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.derby.impl.store.raw.data.RAFContainer.openContainer(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.RAFContainer4.openContainer(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.FileContainer.setIdent(Unknown
Source)
	at org.apache.derby.impl.store.raw.data.RAFContainer.setIdentity(Unknown
Source)
	at org.apache.derby.impl.services.cache.ConcurrentCache.find(Unknown
Source)
	at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown
Source)
	at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown
Source)
	at org.apache.derby.impl.store.raw.xact.Xact.openContainer(Unknown Source)
	at
org.apache.derby.impl.store.access.btree.index.B2IFactory.readConglomerate(Unknown
Source)
	at
org.apache.derby.impl.store.access.RAMAccessManager.conglomCacheFind(Unknown
Source)
	at
org.apache.derby.impl.store.access.RAMTransaction.findExistingConglomerate(Unknown
Source)
	at
org.apache.derby.impl.store.access.RAMTransaction.getDynamicCompiledConglomInfo(Unknown
Source)
	at org.apache.derby.impl.sql.execute.GenericRIChecker.<init>(Unknown
Source)
	at org.apache.derby.impl.sql.execute.ForeignKeyRIChecker.<init>(Unknown
Source)
	at org.apache.derby.impl.sql.execute.RISetChecker.<init>(Unknown Source)
	at
org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown
Source)
	at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
	at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown
Source)
	at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown
Source)
	at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown
Source)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown
Source)
	at
org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:23)
	at
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2061)
	at
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2426)
	at
org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
	at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
	at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:908)
	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:344)
	at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
	at
ae.sphere.arena.db.dao.base._BaseRootDAO.commitTransaction(_BaseRootDAO.java:226)
	at ae.sphere.arena.db.dao.base._BaseRootDAO.run(_BaseRootDAO.java:790)
	at ae.sphere.arena.db.dao.base._BaseRootDAO.save(_BaseRootDAO.java:649)
	at
ae.sphere.arena.db.dao.base.BaseNotificationSchedulerDAO.save(BaseNotificationSchedulerDAO.java:103)
	at
ae.sphere.arena.server.notifications.NotificationsManager.setSystemNotification(NotificationsManager.java:327)
	at
ae.sphere.arena.server.notifications.NotificationsManager.handleServerEvent(NotificationsManager.java:814)
	at
ae.sphere.arena.server.eventManager.EventManager.sendServerEvent(EventManager.java:164)
	at
ae.sphere.arena.networkManager.server.faultManager.ServerFaultManagerPlugin.<init>(ServerFaultManagerPlugin.java:90)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:136)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:966)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)
	at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)
	at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:339)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:391)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
	at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:276)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
	at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:147)
	at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
	at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
	at
ae.sphere.arena.server.eventManager.EventManagerPlugin.computeServerManagers(EventManagerPlugin.java:124)
	at
ae.sphere.arena.server.eventManager.EventManagerPlugin.getServerManagers(EventManagerPlugin.java:242)
	at
ae.sphere.arena.server.eventManager.EventServerStartup.start(EventServerStartup.java:10)
	at
ae.sphere.arena.server.ArenaServerPlugin.startArenaStartupMembers(ArenaServerPlugin.java:201)
	at
ae.sphere.arena.server.ArenaServerPlugin.start(ArenaServerPlugin.java:185)
	at
ae.sphere.arena.server.ArenaServerApplication.run(ArenaServerApplication.java:29)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:237)
	at java.lang.Thread.run(Unknown Source)



> 
>> I got tired of using Derby, It is not that professional, and still not
>> stable!!
> 
> If it is possible, it would be great if you could post some code to
> reproduce the problem. That would be very helpful for those who would
> like to track it down and make Derby more stable.
> 

I'll try to create a sample in order to reproduce this exception again ASAP,
but the thing is we are in a very critical situation, and we have a
presentation after 2 days



>> Also new bug came today: Inconsistent index!!
> 
> My guess is that it is probably not a new bug, just a different
> manifestation of the same one. Since it seems like your database has
> become corrupted, all sorts of errors may happen, and the exact error
> message may vary depending on which operation is performed when the
> damaged data is accessed.
> 
> 

I hope so

Thanks

-- 
View this message in context: http://www.nabble.com/Derby-crash-%28urgent%29-tp16217446p17798347.html
Sent from the Apache Derby Developers mailing list archive at Nabble.com.


Mime
View raw message