tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Ripley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TOMEE-1531) TomEE 2 + Mojarra 2.2.10 NPE when navigating into a flow
Date Wed, 25 Mar 2015 18:51:54 GMT
Roger Ripley created TOMEE-1531:
-----------------------------------

             Summary: TomEE 2 + Mojarra 2.2.10 NPE when navigating into a flow
                 Key: TOMEE-1531
                 URL: https://issues.apache.org/jira/browse/TOMEE-1531
             Project: TomEE
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Roger Ripley


On the latest snapshot of TomEE 2, switching out MyFaces for Mojarra 2.2.10, you get a NullPointerException
when trying to navigate into a JSF flow.  I'm using the example here: http://www.byteslounge.com/tutorials/jsf-flow-example
with the required change of making OrderBean passivatible by having it implement Serializable.

This is the stack trace:

java.lang.NullPointerException
	com.sun.faces.flow.FlowCDIContext.get(FlowCDIContext.java:451)
	org.apache.webbeans.context.CustomPassivatingContextImpl.get(CustomPassivatingContextImpl.java:46)
	org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:100)
	org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:70)
	com.byteslounge.flow.order.OrderBean$$OwbNormalScopeProxy0.getItemCount(com/byteslounge/flow/order/OrderBean.java)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:483)
	javax.el.BeanELResolver.getValue(BeanELResolver.java:97)
	com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	org.apache.el.parser.AstValue.getValue(AstValue.java:167)
	org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
	org.apache.webbeans.el22.WrappedValueExpression.getValue(WrappedValueExpression.java:70)
	com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
	javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
	javax.faces.component.UIOutput.getValue(UIOutput.java:174)
	javax.faces.component.UIInput.getValue(UIInput.java:291)
	com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)
	com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355)
	com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)
	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
	javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:456)
	com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
	javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.apache.openejb.server.httpd.WebBeansFilter.doFilter(WebBeansFilter.java:51)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message