[
https://issues.apache.org/jira/browse/OWB-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689498#action_12689498
]
James Carman commented on OWB-87:
---------------------------------
When I try to ask the current conversation (obtained by doing
Manager.getInstanceByType(Conversation.class)), if it's long-running, I get:
java.lang.NullPointerException
at org.apache.webbeans.util.JSFUtil.getViewRoot(JSFUtil.java:78)
at org.apache.webbeans.util.JSFUtil.getConversationId(JSFUtil.java:83)
at
org.apache.webbeans.component.ConversationComponent.createInstance(ConversationComponent.java:34)
at
org.apache.webbeans.component.ConversationComponent.createInstance(ConversationComponent.java:23)
at
org.apache.webbeans.component.AbstractComponent.create(AbstractComponent.java:163)
at
org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:127)
at
org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:104)
at
org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:61)
at
org.apache.webbeans.jsf.ConversationImpl_$$_javassist_0.isLongRunning(ConversationImpl_$$_javassist_0.java)
at
org.wicketstuff.candi.WebBeansIntegrationLogic.onEndRequest(WebBeansIntegrationLogic.java:66)
So, looks like ConversationImpl definitely has JSF-specific logic in it (hence
the jsf package I presume). Is there another way to manage conversations? I
was following the JSF phase listener's lead here.
> move all non-JSF specific parts of Conversations handling to an own general
> package
> -----------------------------------------------------------------------------------
>
> Key: OWB-87
> URL: https://issues.apache.org/jira/browse/OWB-87
> Project: OpenWebBeans
> Issue Type: Task
> Components: Context and Scopes
> Affects Versions: M1
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: M2
>
>
> Most of the conversation handling code is currently in the package
> > org.apache.webbeans.jsf
> but all non-JSF specific stuff should finally land in something like
> > org.apache.webbeans.conversation
> to also support common conversation functionality for e.g. a Wicket
> integration
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.