[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3566) Conversation.isLongRunning() causes NPE
Nikolay Elenkov (JIRA)
jira-events at lists.jboss.org
Tue Dec 2 20:18:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12440826#action_12440826 ]
Nikolay Elenkov commented on JBSEAM-3566:
-----------------------------------------
I was not able to reproduce this in my development environment.
It did (before I stopped logging c.isLongRunning()), however, occur quite often in production (I have a bunch of logs).
> Conversation.isLongRunning() causes NPE
> ---------------------------------------
>
> Key: JBSEAM-3566
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3566
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.3.CR1
> Environment: JBoss 4.2.2, Seam 2.0.3.CR1
> Reporter: Nikolay Elenkov
> Fix For: 2.1.2.CR1
>
> Attachments: trace.log
>
>
> I have a couple of methods that log conversation start/end for debugging purposes in may app.
> The code is pretty simple:
> @Observer(value = "org.jboss.seam.beginConversation")
> public void onConversationStart() {
> log.debug("CONVERSATION Started");
> Conversation c = Conversation.instance();
> log.debug(String.format("id: %s; isLongRunning %s; viewId: %s",
> c.getId(), c.isLongRunning(), c.getViewId()));
> }
> Most of the time that works OK, but I get an occasional NPE, seems to happen when
> you access the app right after JBoss has started. Here is the trace:
> Caused by: java.lang.NullPointerException
> at org.jboss.seam.core.Manager.isReallyLongRunningConversation(Manager.java:230)
> at org.jboss.seam.core.Conversation.isLongRunning(Conversation.java:308)
> at myapp.LoggerBean.onConversationEnd(LoggerBean.java:145)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list