[weld-issues] [JBoss JIRA] Commented: (WELD-809) NPE in ForwardingContextual.toString during session failover
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Thu Jan 27 10:21:04 EST 2011
[ https://issues.jboss.org/browse/WELD-809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578443#comment-12578443 ]
Carlo de Wolf commented on WELD-809:
------------------------------------
Calling toString on proxies is always tricky as they are mostly implemented wrongly.
The toString of SerializableContextualInstanceImpl can be made more robust.
Note that this is only because of a log.trace statement in AttributeBeanStore.
> NPE in ForwardingContextual.toString during session failover
> ------------------------------------------------------------
>
> Key: WELD-809
> URL: https://issues.jboss.org/browse/WELD-809
> Project: Weld
> Issue Type: Bug
> Reporter: Sivakumar Thyagarajan
> Fix For: 1.2.0.Beta1
>
>
> Please see the corresponding GlassFish issue for more information http://java.net/jira/browse/GLASSFISH-15277
> GlassFish SQE has a multi-machine HA cluster setup, where during session failover of a shopping cart sample application, the following NPE is thrown is ForwardingContextual.toString
> java.lang.NullPointerException
> at org.jboss.weld.context.ForwardingContextual.toString(ForwardingContextual.java:53)
> at java.lang.String.valueOf(String.java:2826)
> at java.lang.StringBuilder.append(StringBuilder.java:115)
> at org.jboss.weld.context.SerializableContextualInstanceImpl.toString(SerializableContextualInstanceImpl.java:66)
> at java.lang.String.valueOf(String.java:2826)
> at java.lang.StringBuilder.append(StringBuilder.java:115)
> at org.jboss.weld.context.beanstore.AttributeBeanStore.attach(AttributeBeanStore.java:120)
> at org.jboss.weld.context.AbstractBoundContext.activate(AbstractBoundContext.java:75)
> at org.jboss.weld.servlet.WeldListener.requestInitialized(WeldListener.java:138)
> at org.apache.catalina.core.StandardContext.fireRequestInitializedEvent(StandardContext.java:4544)
> at org.apache.catalina.core.StandardHostValve.preInvoke(StandardHostValve.java:626)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:323)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list