[ 
http://jira.dspace.org/jira/browse/DS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11788#action_11788
 ] 

Wendy Bossons commented on DS-296:
----------------------------------

We found this at MIT as well. To discontinue the serialization exceptions, I 
changed the DSpaceFeedGenerator to implement Serializable. See below code 
excerpts . . .

/*
 * DSpaceFeedGenerator.java
 *
 * Version: $Revision: 4511 $

....

public class DSpaceFeedGenerator extends AbstractGenerator
                implements Configurable, CacheableProcessingComponent, 
Recyclable, Serializable
{
    private static final long serialVersionUID = 2L;

....

We have been running the code on our production instance without the positive 
effect of not generating the above mentioned java stacktraces.

..\Wendy

> DspaceFeedGenerator not serializable?!
> --------------------------------------
>
>                 Key: DS-296
>                 URL: http://jira.dspace.org/jira/browse/DS-296
>             Project: DSpace 1.x
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.5.2, 1.6.0
>            Reporter: Flávio Botelho
>            Priority: Minor
>
> For some reason, the code wants to serialize 
> org.dspace.app.xmlui.cocoon.DSpaceFeedGenerator, should it?
> If so than it needs to implement serializable.
> Else somewhere there is a pointer to such an object that shouldn't be.
> tor--8594061610370491601_T-i18n-context://i18n/?pt_BR__S-xml-;encoding=UTF-8;indent=yes'.
>  Initial cause was org.dspace.app.xmlui.cocoon.DSpaceFeedGenerator
> java.io.NotSerializableException: 
> org.dspace.app.xmlui.cocoon.DSpaceFeedGenerator
>         at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
>         at 
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
>         at 
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
>         at 
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
>         at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
>         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
>         at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
>         at 
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
>         at 
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
>         at 
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
>         at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
>         at 
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
>         at 
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
>         at 
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
>         at 
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
>         at net.sf.ehcache.store.DiskStore.serializeEntry(DiskStore.java:739)
>         at net.sf.ehcache.store.DiskStore.writeElement(DiskStore.java:678)
>         at 
> net.sf.ehcache.store.DiskStore.writeOrReplaceEntry(DiskStore.java:667)
>         at net.sf.ehcache.store.DiskStore.flushSpool(DiskStore.java:639)
>         at 
> net.sf.ehcache.store.DiskStore.throwableSafeFlushSpoolIfRequired(DiskStore.java:615)
>         at 
> net.sf.ehcache.store.DiskStore.spoolAndExpiryThreadMain(DiskStore.java:583)
>         at net.sf.ehcache.store.DiskStore.access$800(DiskStore.java:65)
>         at 
> net.sf.ehcache.store.DiskStore$SpoolAndExpiryThread.run(DiskStore.java:1057)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to