AnsweredAssumed Answered

Cannot export Sites data - ChildAssocEntity java.io.NotSeria

Question asked by machtech on Apr 15, 2011
Hi all

This is posted as a JIRA issue to, I just thought I'd cover my bases and see if anyone in the forums might be able to help. JRIA issue is here: http://issues.alfresco.com/jira/browse/ALF-8218

I'm trying to export data using the org.alfresco.tools.Export functionality on 3.4.d. I've exported quite a lot of data from various spaces already without issue, however when trying to export the workspace://SpacesStore//app:company_home/st:sites directory I am getting java.io.NotSerializableExceptions as in the following - get many of these exceptions before the export exits all with element names like 'N.PA.xxxxx' which I assume is some internal reference for Parent Associations.

Any ideas how I solve this?

15:35:48,185 ERROR [ehcache.store.DiskStore] org.alfresco.cache.node.parentAssocsCacheCache: Failed to write element to disk 'N.PA.22836'. Initial cause was org.alfresco.repo.domain.node.ChildAssocEntity
java.io.NotSerializableException: org.alfresco.repo.domain.node.ChildAssocEntity
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
        at java.util.HashMap.writeObject(HashMap.java:1018)
        at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:962)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
        at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:438)
        at net.sf.ehcache.Element.writeObject(Element.java:787)
        at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:962)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
        at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:75)
        at net.sf.ehcache.store.DiskStore.serializeElement(DiskStore.java:810)
        at net.sf.ehcache.store.DiskStore.writeElement(DiskStore.java:767)
        at net.sf.ehcache.store.DiskStore.writeOrReplaceEntry(DiskStore.java:762)
        at net.sf.ehcache.store.DiskStore.flushSpool(DiskStore.java:736)
        at net.sf.ehcache.store.DiskStore.throwableSafeFlushSpoolIfRequired(DiskStore.java:705)
        at net.sf.ehcache.store.DiskStore.spoolAndExpiryThreadMain(DiskStore.java:675)
        at net.sf.ehcache.store.DiskStore.access$900(DiskStore.java:74)
        at net.sf.ehcache.store.DiskStore$SpoolAndExpiryThread.run(DiskStore.java:1170)

Thanks
Johan

Outcomes