myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bozhidar Bozhanov (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (ORCHESTRA-41) NullPointerException in method findConversationContextId
Date Sun, 12 Jul 2009 11:31:15 GMT

    [ https://issues.apache.org/jira/browse/ORCHESTRA-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730064#action_12730064
] 

Bozhidar Bozhanov commented on ORCHESTRA-41:
--------------------------------------------

Sorry, my bad - I'm using 1.3.1 (not 1.3). And it is still there. I also checked the repository
code, and there is no NPE check.  How was it fixed?.

> NullPointerException in method findConversationContextId
> --------------------------------------------------------
>
>                 Key: ORCHESTRA-41
>                 URL: https://issues.apache.org/jira/browse/ORCHESTRA-41
>             Project: MyFaces Orchestra
>          Issue Type: Bug
>          Components: Conversation, FrameworkAdapter
>    Affects Versions: 1.3.1
>         Environment: Windows XP SP2, Tomcat 6.0.20
>            Reporter: Bozhidar Bozhanov
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> After some time, (probably when a thread times-out) the following appears:
> Exception in thread "org.apache.myfaces.orchestra.conversation.ConversationWiperThread"
java.lang.NullPointerException
> 	at org.apache.myfaces.orchestra.conversation.ConversationManager.findConversationContextId(ConversationManager.java:140)
> 	at org.apache.myfaces.orchestra.conversation.ConversationManager.removeAndInvalidateConversationContext(ConversationManager.java:343)
> 	at org.apache.myfaces.orchestra.conversation.ConversationManager.checkTimeouts(ConversationManager.java:626)
> 	at org.apache.myfaces.orchestra.conversation.ConversationWiperThread._run(ConversationWiperThread.java:113)
> 	at org.apache.myfaces.orchestra.conversation.ConversationWiperThread.run(ConversationWiperThread.java:90)
> It doesn't bring any trouble to the front-end, but still, it is an exception :)
> The problem, I think is that the ThreadLocal variable (after the thread has timed-out)
return null, so no conversationContext anymore. A little anti-NPE check in the findConversaionContextId
would get rid of the exception.
> I'm not sure whether this happens in 1.3.1, I checked the source code in the repository
and there was no NPE check, so I presume the issue is still there.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message