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

Flávio Botelho commented on DS-296:
-----------------------------------

Maybe this exception happenning at shutdown helps out finding why Dspace is 
trying to serialize DspaceFeedGenerator:

2009-09-22 10:24:05,287 ERROR 
org.springframework.beans.factory.support.DefaultListableBeanFactory @ Destroy 
method on bean with name 'org.apache.cocoon.Processor' threw an exception
org.apache.cocoon.components.source.SourceFactoryNotFoundException: Unable to 
select source factory for resource://aspects/EPerson/sitemap.xmap
        at 
org.apache.cocoon.components.source.CocoonSourceResolver.release(CocoonSourceResolver.java:258)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.dispose(TreeProcessor.java:465)
        at 
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:307)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.dispose(MountNode.java:153)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.dispose(ConcreteTreeProcessor.java:334)
        at 
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:307)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.dispose(TreeProcessor.java:455)
        at 
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:307)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.dispose(MountNode.java:153)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.dispose(ConcreteTreeProcessor.java:334)
        at 
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:307)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.dispose(TreeProcessor.java:455)
        at 
org.apache.avalon.framework.container.ContainerUtil.dispose(ContainerUtil.java:307)
        at 
org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor.postProcessBeforeDestruction(AvalonBeanPostProcessor.java:273)
        at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:143)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:397)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:375)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:348)
        at 
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:861)
        at 
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:839)
        at 
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:802)
        at 
org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:367)
        at 
org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:70)
        at 
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
        at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
        at 
org.apache.catalina.core.StandardService.stop(StandardService.java:510)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.apache.cocoon.ProcessingException: Unable to lookup source 
factory for scheme: resource
        at 
org.apache.cocoon.components.source.CocoonSourceResolver.getSourceFactory(CocoonSourceResolver.java:229)
        at 
org.apache.cocoon.components.source.CocoonSourceResolver.release(CocoonSourceResolver.java:251)
        ... 37 more
Caused by: org.apache.avalon.framework.service.ServiceException: Exception 
during lookup of component with 
'org.apache.excalibur.source.SourceFactory/resource'. 
(Key='AvalonServiceManager')
        at 
org.apache.cocoon.core.container.spring.avalon.AvalonServiceManager.lookup(AvalonServiceManager.java:63)
        at 
org.apache.cocoon.components.source.CocoonSourceResolver.getSourceFactory(CocoonSourceResolver.java:227)
        ... 38 more
Caused by: org.springframework.beans.factory.BeanCreationNotAllowedException: 
Error creating bean with name 
'org.apache.excalibur.source.SourceFactory/resource': Singleton bean creation 
not allowed while the singletons of this factory are in destruction (Do not 
request a bean from a BeanFactory in a destroy method implementation!)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at 
org.apache.cocoon.core.container.spring.avalon.AvalonServiceManager.lookup(AvalonServiceManager.java:61)
        ... 39 more
2009-09-22 10:24:05,409 ERROR net.sf.ehcache.store.DiskStore @ 
cocoon-ehcacheCache: Failed to write element to disk 
'PK_G-DSpaceFeedGenerator--4634940687910199067_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:1156)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
        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.flush(DiskStore.java:547)
        at net.sf.ehcache.store.DiskStore.dispose(DiskStore.java:510)
        at net.sf.ehcache.Cache.dispose(Cache.java:1085)
        at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:702)
        at 
org.apache.cocoon.components.store.impl.EHDefaultStore.destroy(EHDefaultStore.java:427)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:204)
        at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:162)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:397)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:375)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:348)
        at 
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:861)
        at 
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:839)
        at 
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:802)
        at 
org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:367)
        at 
org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:70)
        at 
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
        at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
        at 
org.apache.catalina.core.StandardService.stop(StandardService.java:510)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)


> 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
>            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

       

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to