db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Hausi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5936) AllocPage.ReadContainerInfo throws ArrayIndexOutOfBoundsException at arraycopy
Date Thu, 05 Sep 2013 08:18:52 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758883#comment-13758883
] 

Tom Hausi commented on DERBY-5936:
----------------------------------

I'm able to reproduce this issue:
----------------------------------------------------------------
Wed Sep 04 07:29:24 CEST 2013:
Booting Derby version The Apache Software Foundation - Apache Derby - 10.9.1.0 - (1344872):
instance 582f8014-0140-e772-1a68-0000034f0da8 
on database directory C:\Users\Public\ProgData\DB\50  with class loader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1fecaeb

Loaded from file:/C:/Program Files (x86)/Prog/plugins/at.arz.eb01a.hbp.derby_1.0.0/lib/derby.jar
java.vendor=Sun Microsystems Inc.
java.runtime.version=1.6.0_17-b04
user.dir=C:\Program Files (x86)\HBP
derby.system.home=null
derby.stream.error.file=C:\Users\Public\ProgData\logs\derby.log
Database Class Loader started - derby.database.classpath=''
Wed Sep 04 07:29:49 CEST 2013 Thread[Worker-2,5,main] (XID = 256172), (SESSIONID = 17), (DATABASE
= C:\Users\Public\HBPData\DB/50), (DRDAID = null), Cleanup action starting
Wed Sep 04 07:29:49 CEST 2013 Thread[Worker-2,5,main] (XID = 256172), (SESSIONID = 17), (DATABASE
= C:\Users\Public\ProgData\DB/50), (DRDAID = null), Failed Statement is: select itanbindun0_.ID
as ID104_, itanbindun0_.EBZID as EBZID104_, itanbindun0_.ITANBRIEFID as ITANBRIE3_104_, itanbindun0_.ITANINDEXID
as ITANINDE4_104_, itanbindun0_.VERFUEGERID as VERFUEGE5_104_ from HBP.ITANBINDUNG itanbindun0_
where itanbindun0_.EBZID=?
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.FileContainer.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.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
	at org.apache.derby.jdbc.Driver40.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:534)
	at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
	at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1700)
	at org.hibernate.loader.Loader.doQuery(Loader.java:801)
	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
	at org.hibernate.loader.Loader.doList(Loader.java:2542)
	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
	at org.hibernate.loader.Loader.list(Loader.java:2271)
	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
	at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:246)
	at at.arz.eb01a.hbp.core.dataaccess.internal.ITanBindungAccess.findByEBZ(ITanBindungAccess.java:81)
	at at.arz.eb01a.hbp.core.module.internal.signature.ReleaseIndexTanModule.executeInContext(ReleaseIndexTanModule.java:72)
	at at.arz.eb01a.hbp.core.module.internal.signature.ReleaseIndexTanModule.executeInContext(ReleaseIndexTanModule.java:1)
	at at.arz.eb01a.hbp.core.module.internal.AbstractContextModule.executeInternal(AbstractContextModule.java:157)
	at at.arz.eb01a.hbp.core.module.internal.AbstractModule.execute(AbstractModule.java:159)
	at at.arz.eb01a.hbp.core.module.internal.bestand.UpdateBestandArchivModule.executeInContext(UpdateBestandArchivModule.java:147)
	at at.arz.eb01a.hbp.core.module.internal.bestand.UpdateBestandArchivModule.executeInContext(UpdateBestandArchivModule.java:1)
	at at.arz.eb01a.hbp.core.module.internal.AbstractContextModule.executeInternal(AbstractContextModule.java:157)
	at at.arz.eb01a.hbp.core.module.internal.AbstractModule.execute(AbstractModule.java:159)
	at at.arz.eb01a.hbp.core.module.internal.comm.rsp.arz.KontoBewegungsDatenResponseCBModule.executeOKResponse(KontoBewegungsDatenResponseCBModule.java:307)
	at at.arz.eb01a.hbp.core.module.internal.comm.rsp.arz.ARZResponseCallbackModule.executeInContext(ARZResponseCallbackModule.java:129)
	at at.arz.eb01a.hbp.core.module.internal.comm.rsp.arz.ARZResponseCallbackModule.executeInContext(ARZResponseCallbackModule.java:1)
	at at.arz.eb01a.hbp.core.module.internal.AbstractContextModule.executeInternal(AbstractContextModule.java:157)
	at at.arz.eb01a.hbp.core.module.internal.AbstractModule.execute(AbstractModule.java:159)
	at at.arz.eb01a.hbp.core.module.internal.comm.CommunicationResponseModule.process(CommunicationResponseModule.java:421)
	at at.arz.eb01a.hbp.core.module.internal.comm.CommunicationResponseModule.executeInContext(CommunicationResponseModule.java:201)
	at at.arz.eb01a.hbp.core.module.internal.comm.CommunicationResponseModule.executeInContext(CommunicationResponseModule.java:1)
	at at.arz.eb01a.hbp.core.module.internal.AbstractContextModule.executeInternal(AbstractContextModule.java:157)
	at at.arz.eb01a.hbp.core.module.internal.AbstractModule.execute(AbstractModule.java:159)
	at at.arz.eb01a.hbp.core.module.internal.comm.arz.CommunicationARZAPIModule.processRequests(CommunicationARZAPIModule.java:2458)
	at at.arz.eb01a.hbp.core.module.internal.comm.arz.CommunicationARZAPIModule.executeInContext(CommunicationARZAPIModule.java:390)
	at at.arz.eb01a.hbp.core.module.internal.comm.arz.CommunicationARZAPIModule.executeInContext(CommunicationARZAPIModule.java:1)
	at at.arz.eb01a.hbp.core.module.internal.AbstractContextModule.executeInternal(AbstractContextModule.java:157)
	at at.arz.eb01a.hbp.core.module.internal.AbstractModule.execute(AbstractModule.java:159)
	at at.arz.eb01a.hbp.core.module.internal.comm.CommunicationModule.executeSynchronized(CommunicationModule.java:233)
	at at.arz.eb01a.hbp.core.module.internal.comm.CommunicationModule.executeSynchronized(CommunicationModule.java:1)
	at at.arz.eb01a.hbp.core.module.internal.AbstractSynchronizedModule.executeInContext(AbstractSynchronizedModule.java:66)
	at at.arz.eb01a.hbp.core.module.internal.AbstractContextModule.executeInternal(AbstractContextModule.java:157)
	at at.arz.eb01a.hbp.core.module.internal.AbstractModule.execute(AbstractModule.java:159)
	at at.arz.eb01a.hbp.core.service.secure.internal.CommunicationService.communicate(CommunicationService.java:542)
	at at.arz.eb01a.hbp.ui.internal.handlers.DefaultCommunicationHandler.executeCommunication(DefaultCommunicationHandler.java:47)
	at at.arz.eb01a.hbp.ui.internal.handlers.CommunicationHandler.baseExecuteWithProgress(CommunicationHandler.java:91)
	at at.arz.eb01a.hbp.ui.internal.handlers.JobBaseHandler$3.run(JobBaseHandler.java:134)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Cleanup action completed
                
> AllocPage.ReadContainerInfo throws ArrayIndexOutOfBoundsException at arraycopy
> ------------------------------------------------------------------------------
>
>                 Key: DERBY-5936
>                 URL: https://issues.apache.org/jira/browse/DERBY-5936
>             Project: Derby
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 10.6.1.0
>         Environment: intel, windows XP, embedded driver, c3p0
>            Reporter: Yuan Yao
>
> The db may not be closed normally. It throws following exceptions as starting.
> logs:
> {code}
> Caused by: 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.openDroppedContainer(Unknown
Source)
> 	at org.apache.derby.impl.store.raw.xact.Xact.openDroppedContainer(Unknown Source)
> 	at org.apache.derby.impl.store.raw.data.ContainerBasicOperation.findContainer(Unknown
Source)
> 	at org.apache.derby.impl.store.raw.data.ContainerBasicOperation.needsRedo(Unknown Source)
> 	at org.apache.derby.impl.store.raw.log.FileLogger.redo(Unknown Source)
> 	at org.apache.derby.impl.store.raw.log.LogToFile.recover(Unknown Source)
> 	at org.apache.derby.impl.store.raw.RawStore.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)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
> 	at org.apache.derby.impl.store.access.RAMAccessManager.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)
> 	at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown 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 Source)
> 	at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown
Source)
> 	at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown
Source)
> 	at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
> 	... 24 more
> {code}
> I'd like to upload data files if necessary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message