geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (GERONIMO-3098) EL in JSF does not work
Date Thu, 19 Apr 2007 16:27:15 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul McMahan resolved GERONIMO-3098.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-M4

Thanks for attaching your app.  The JSF support is more complete in 2.0-M4, and your app seems
to work OK in that version.  M4 has not been officially released yet but if you search dev@geronimo
you'll find a link to the candidate binaries.

> EL in JSF does not work
> -----------------------
>
>                 Key: GERONIMO-3098
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3098
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.0-M3
>         Environment: WinXP
>            Reporter: Alexander Zynevich
>             Fix For: 2.0-M4
>
>         Attachments: E11.war, E11.zip
>
>
> Expression language constructs #{ } does not work, however ${ } work.
> I got an exception:
> 17:16:59,312 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw
exception 
> javax.servlet.ServletException: /jsp/index.jsp(42,23) '#{SignonBean.inputUsername}' java.lang.NullPointerException

>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) 
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

>        at AuthorizationFilter.doFilter(AuthorizationFilter.java:71) 
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)

>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

>        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)

>        at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)

>        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:338)

>        at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)

>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

>        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517) 
>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)

>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)

>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) 
>        at java.lang.Thread.run(Thread.java:619) 
> root cause is:
> java.lang.NullPointerException
>                org.apache.myfaces.config.ManagedBeanBuilder.extractExpressions(ManagedBeanBuilder.java:419)
>                org.apache.myfaces.config.ManagedBeanBuilder.isInValidScope(ManagedBeanBuilder.java:232)
>                org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:169)
>                org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:58)
>                org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:311)
>                org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(VariableResolverToELResolver.java:58)
>                javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
>                javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
>                javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
>                org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
>                org.apache.el.parser.AstValue.getValue(AstValue.java:86)
>                org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
>                org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
>                javax.faces.component.UIOutput.getValue(UIOutput.java:68)
>                org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:222)
>                org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:137)
>                org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:52)
>                javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:581)
>                javax.faces.component.UIComponent.encodeAll(UIComponent.java:183)
>                javax.faces.component.UIComponent.encodeAll(UIComponent.java:179)
>                javax.faces.component.UIComponent.encodeAll(UIComponent.java:179)
>                org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:309)
>                org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>                org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>                javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>                AuthorizationFilter.doFilter(AuthorizationFilter.java:71)
> We have simple set of managed-beans:
> 	<managed-bean>
> 		<managed-bean-name>SignonBean</managed-bean-name>
> 		<managed-bean-class>SignonBean</managed-bean-class>
> 		<managed-bean-scope>application</managed-bean-scope>
> 		<managed-property>
> 			<property-name>userManager</property-name>
> 			<property-class>UserManagerImpl</property-class>
> 			<value>#{userManager}</value>			
> 		</managed-property>
> 		<managed-property>
> 			<property-name>shopManager</property-name>
> 			<property-class>ShopManagerImpl</property-class>
> 			<value>#{shopManager}</value>			
> 		</managed-property>
> 	</managed-bean>
> 	<managed-bean>
> 		<managed-bean-name>userManager</managed-bean-name>
> 		<managed-bean-class>UserManagerImpl</managed-bean-class>
> 		<managed-bean-scope>application</managed-bean-scope>
> 	</managed-bean>
> 	<managed-bean>
> 		<managed-bean-name>shopManager</managed-bean-name>
> 		<managed-bean-class>ShopManagerImpl</managed-bean-class>
> 		<managed-bean-scope>application</managed-bean-scope>
> 	</managed-bean>
> I am not sure whether this bug should be sent to Geronimo or to MyFaces team...

-- 
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