AnsweredAssumed Answered

Strange exception after importing an ACP package

Question asked by theorbix on Jun 4, 2008
Hello,

I've done an export of a space and its subspaces from an Alfresco Enterprise 2.1.1 server, then I've imported it into another Alfresco Enterprise installation (running version 2.1.2).

During the import, the following exception was logged in alfresco.log:


CompilerOracle: exclude org/apache/lucene/index/IndexReader$1 doBody
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Mer
ger mergeIndexes
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Mer
ger mergeDeletions
4-giu-2008 14.29.05 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

INFO: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: C:\Program Files\Java
\jdk1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0
_11\bin;C:\Alfresco\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\PROGRA~1\ULTRAE~1
4-giu-2008 14.29.06 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
4-giu-2008 14.29.06 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3125 ms
4-giu-2008 14.29.06 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
4-giu-2008 14.29.06 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
4-giu-2008 14.29.06 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
4-giu-2008 14.29.08 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
14:30:06,576 INFO  [alfresco.mbeans.VirtServerRegistry] Creating VirtServerRegis
try MBean
14:30:08,341 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI re
gistry - creating new one
14:30:09,419 INFO  [alfresco.mbeans.VirtServerRegistry] Created JMX serverConnec
tor
14:30:14,544 INFO  [domain.schema.SchemaBootstrap] Schema managed by database di
alect org.hibernate.dialect.MySQLInnoDBDialect.
14:30:17,154 INFO  [domain.schema.SchemaBootstrap] No changes were made to the s
chema.
14:30:20,904 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data dire
ctory ('dir.root') is: C:\Alfresco\alf_data
14:30:21,169 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …

14:30:21,732 INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
14:30:22,685 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_
11-b03; maximum heap size 506,313MB
14:30:22,685 INFO  [service.descriptor.DescriptorService] Alfresco license: Ente
rprise Network granted to Alfresco Partner (does not expire)
14:30:22,685 INFO  [service.descriptor.DescriptorService] Alfresco started (Ente
rprise Network): Current version 2.1.2 (268) schema 81 - Installed version 2.1.2
(268) schema 81
4-giu-2008 14.30.27 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
4-giu-2008 14.30.27 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
4-giu-2008 14.30.27 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/93  config=null
4-giu-2008 14.30.27 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
4-giu-2008 14.30.28 org.apache.catalina.startup.Catalina start
INFO: Server startup in 82094 ms
[WARNING] Unknown Ptg 14 (20) at cell (7,1)
[WARNING] Unknown Ptg 14 (20) at cell (10,1)
java.lang.reflect.InvocationTargetException
        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.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.j
ava:224)
        at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.
java:160)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
63)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:2
10)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
91)
        at org.alfresco.repo.content.transform.PoiHssfContentTransformer.transfo
rmInternal(PoiHssfContentTransformer.java:87)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transf
orm(AbstractContentTransformer.java:246)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transf
orm(AbstractContentTransformer.java:210)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.indexProper
ty(ADMLuceneIndexerImpl.java:825)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocum
ents(ADMLuceneIndexerImpl.java:540)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.updateFullT
extSearch(ADMLuceneIndexerImpl.java:1272)
        at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.in
dex(FullTextSearchIndexerImpl.java:188)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:154)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:210)
        at $Proxy25.index(Unknown Source)
        at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSInd
exerJob.java:52)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:529)
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62
)
        at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:5
7)
        at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
        at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
        … 30 more
java.lang.reflect.InvocationTargetException
        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.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.j
ava:224)
        at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.
java:160)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
63)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:2
10)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
91)
        at org.alfresco.repo.content.transform.PoiHssfContentTransformer.transfo
rmInternal(PoiHssfContentTransformer.java:87)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transf
orm(AbstractContentTransformer.java:246)
        at org.alfresco.repo.content.transform.AbstractContentTransformer.transf
orm(AbstractContentTransformer.java:210)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.indexProper
ty(ADMLuceneIndexerImpl.java:825)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.createDocum
ents(ADMLuceneIndexerImpl.java:540)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.updateFullT
extSearch(ADMLuceneIndexerImpl.java:1272)
        at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.in
dex(FullTextSearchIndexerImpl.java:188)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:154)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:210)
        at $Proxy25.index(Unknown Source)
        at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSInd
exerJob.java:52)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:529)
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62
)
        at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:5
7)
        at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
        at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
        … 30 more
[WARNING] Unknown Ptg 14 (20) at cell (7,1)
[WARNING] Unknown Ptg 14 (20) at cell (10,1)

Apart from the exception, it seems that all spaces and documents have been imported successfully (the whole ACP package contains several spaces and hundreds of documents… it is difficult to check each single document).

Does anybody know what this exception means?

Outcomes