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

Petr Slaby commented on DERBY-5936:
-----------------------------------

The derby log says:
{code}
----------------------------------------------------------------
Tue Dec 13 13:08:56 CET 2016:
Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.2.0 
- (1582446): instance a816c00e-0158-f815-ed4c-00002690e807 
on database directory C:\XXX\data\0e3984a5_0f4c_4e6f_98d8_b599690891fa\mxcsDb 
with class loader 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1e1699[de.myapp.api:6.7.0.212-hotfix8(id=169)]
 
Loaded from 
file:/C:/Users/XXX/AppData/Local/Temp/XXX/osgi/org.eclipse.osgi/bundles/170/1/.cp/lib/derby-10.10.2.0.jar
java.vendor=Oracle Corporation
java.runtime.version=1.7.0_51-201408140914.jpse.patchmaker-forest-jdk7-b13
user.dir=C:\XXX
os.name=Windows 7
os.arch=x86
os.version=6.1
derby.system.home=C:\XXX\data\0e3984a5_0f4c_4e6f_98d8_b599690891fa
Database Class Loader started - derby.database.classpath=''
Tue Dec 13 13:08:56 CET 2016 Thread[Thread-73,6,main] (XID = 24079), (SESSIONID 
= 1), (DATABASE = mxcsDb), (DRDAID = null), Cleanup action starting
Tue Dec 13 13:08:56 CET 2016 Thread[Thread-73,6,main] (XID = 24079), (SESSIONID 
= 1), (DATABASE = mxcsDb), (DRDAID = null), Failed Statement is: select 
VERSIONNUMBER from MXCS.MXCSDERBYSCHEMAVERSION FOR UPDATE OF VERSIONNUMBER
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.heap.HeapConglomerateFactory.readConglomerate(Unknown
 Source)
...     
{code}

Content of the dat files in the examples I got from the customer always looks 
like this:

{code}
tor length out of bounds!
WARN.: XXXArm.arm_start0() - child correlator length out of bounds!
WARN.: XXXArm.arm_start0() - child correlator length out of bounds!
{code}
The line is repeated many times. I have replaced the name of the customer by 
XXX. ARM stands for Application Response Measurement. It is running in the same 
JVM, the text above is supposed to be written to std err output. The ARM is 
somehow a mixture of java and native code, but I do not know the details. The 
application itself is running on an OSGi container based on Eclipse OSGi 
implementation.

Many possible sources of error, but I would never imagine that std err could be 
redirected to a Derby file. Luckily, we use Derby just as a cache which can be 
recreated at any time. But user has to restart the complete application so it 
is very annoying anyway. Any help or hint would be appreciated.


> 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
>              Labels: derby_triage10_12
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to