geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tina Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6384) @PostConstruct have to be called after the object is initialized and after dependency injection is performed
Date Tue, 04 Sep 2012 05:03:07 GMT

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

Tina Li commented on GERONIMO-6384:
-----------------------------------

When stop this web application, happened warning message:
2012-09-03 16:39:09,417 WARN  [[/testJSF]] Cannot serialize session attribute helloWorldBean
for session 87924F271A59EC28D34DA43F3C1A99E5
java.io.NotSerializableException: org.apache.test.sjf.Service
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
	at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1671)
	at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1077)
	at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:432)
	at org.apache.catalina.session.StandardManager.unload(StandardManager.java:353)
	at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:518)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5462)
	at org.apache.geronimo.tomcat.GeronimoStandardContext.stopInternal(GeronimoStandardContext.java:738)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
	at org.apache.geronimo.tomcat.GeronimoStandardContext.kill(GeronimoStandardContext.java:438)
	at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContainer.java:331)
	at org.apache.geronimo.tomcat.TomcatWebAppContext.doStop(TomcatWebAppContext.java:599)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBeanInstance.java:1191)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(GBeanInstanceState.java:346)
	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:191)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:577)
	at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:430)
	at org.apache.geronimo.kernel.osgi.ConfigurationActivator.stopRecursive(ConfigurationActivator.java:157)
	at org.apache.geronimo.kernel.osgi.ConfigurationActivator.stop(ConfigurationActivator.java:103)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
	at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
	at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1161)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
	at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
	at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:691)
	at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
	at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:261)
	at java.lang.Thread.run(Thread.java:662)

This message also happened before the fix.
                
> @PostConstruct have to be called after the object is initialized and after dependency
injection is performed
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6384
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6384
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: myfaces
>    Affects Versions: 2.2.2, 3.0.1, 2.1.9
>            Reporter: Shawn Jiang
>            Assignee: Shawn Jiang
>         Attachments: testJSF.war
>
>
> @PostConstruct have to be called after the object is initialized and after dependency
injection is performed
> But now in Geronimo,   @PostConstruct is called before @ManagedProperty dependency injection
is performed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message