You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Belem <li...@online.de> on 2009/07/09 14:40:54 UTC

exception with extval - JSF1054 RENDER_RESPONSE 6

Hi all,

I built an application with MyFaces, Tomahawk and Icefaces.
Started in Tomcat the first time the console alerts:

JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /myapp/templates/Layout.jsp)
Exception thrown during phase execution:
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@bf1a4a]


After restarting Tomcat all is fine and the pages are displayed perfectly.


I've following lib's:
 myfaces-extval-core-1.2.2.jar
 myfaces-extval-property-validation-1.2.2.jar
 tomahawk12-1.1.8.jar
 icefaces-comps.jar, Implementation-Version: 1.8.0_12 (2009-04-01 20:34 MDT)

The Stack trace I got is following:

javax.servlet.ServletException: error at binding: #{userBean.loginUserName}
-- an el-resolver error occurred! maybe you used an invalid binding.
otherwise: please report the issue, deactivate the el-resovler of extval via
web.xml context-param:
org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
again.
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
        at
de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:155)
        at
de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:134)
        at
de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:113)
        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:225)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:159)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:60)
        at
de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
        at
de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
        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:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: error at binding:
#{userBean.loginUserName} -- an el-resolver error occurred! maybe you used
an invalid binding. otherwise: please report the issue, deactivate the
el-resovler of extval via web.xml context-param:
org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
again.
        at
org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:181)
        at
org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
        at
org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
        at
org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
        at
org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
        at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererProxy.encodeChildren(ExtValRendererProxy.java:131)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
        at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
        at
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
        at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
        at
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
        at
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
        at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
        ... 31 more
Caused by: org.apache.jasper.el.JspPropertyNotFoundException:
/myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
Unreachable, identifier 'userBean' resolved to null
        at
org.apache.jasper.el.JspValueExpression.setValue(JspValueExpression.java:91)
        at
org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:177)
        ... 54 more



Following the advice, I modified my web.xml and added following:

<context-param>
  <param-name>org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER
  </param-name>
  <param-value>true</param-value>
</context-param>

Also, I created a StartupListener class (extending AbstractStartupListener)
implementing the init method:

@Override
protected void init()
{
  ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,
      null);
}

This one, I registered in faces-config.xml:

<lifecycle>
<phase-listener>
	de.belemapps.myapp.filter.jsf.MyStartupListener
    </phase-listener>
</lifecycle>


After cleaning Tomcat before the new deployment, the new stack trace is
following:

javax.servlet.ServletException
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
        at
de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
        at
de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
        at
de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:214)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
        at
de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
        at
de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
        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:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at
org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsViaReflectionFallback(DefaultELHelper.java:202)
        at
org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:160)
        at
org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
        at
org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
        at
org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
        at
org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
        at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
        at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
        at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
        at
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
        at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
        at
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
        at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
        ... 31 more



I also tried new libraries with no effect, having the same exceptions as
above:
 myfaces-extval-core-1.2.3-SNAPSHOT.jar
 myfaces-extval-property-validation-1.2.3-SNAPSHOT.jar

Was my proceeding correct or should I revert web.xml and faces-config.xml to
my original state before my changes mentioned above?
Could someone please help me solving this exception?
If there's something useful I could also attach, just tell me.

Thanks
Belem
-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24409424.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi belem,

you are welcome!
thx for sharing the result with the community!
(even though it's a special constellation in your project - but as you
mentioned - maybe someone else has a similar issue.)

fyi:
we started component support modules at sandbox890 [1]. due to the special
icefaces add-on for extval, developers don't have to care about technical
details (behind the scenes it does the same as you have to do manually
without it). icefaces is quite special in some cases. if you see any issue
with this combination, you can report it also at sandbox890. we have to
analyze/solve such issues there. at sandbox890 committers of different
projects work together to increase the compatibility (if needed) and/or
introduce advanced features requested by users of extval and the special
component lib (in this case advanced features are features specific to a
special component lib - similar to the trinidad support module).

regards,
gerhard

[1] http://code.google.com/p/sandbox890/

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2009/7/22 Belem <li...@online.de>

>
> Hi Gerhard,
>
> it took longer than expected to resolve the problem with following
> exception:
> org.apache.jasper.el.JspPropertyNotFoundException:
> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> Unreachable, identifier 'userBean' resolved to null
>
> > it doesn't look like an extval issue. extval is just the first point
> where
> > you see the issue.
> However, you're right, it's no extval issue! Sorry for that!
>
> I realised that web.xml loads faces-config.xml and faces configuration in
> the following manner differently:
> <context-param>
>  <param-name>javax.faces.CONFIG_FILES
>  </param-name>
>  <param-value>
>             /WEB-INF/faces-beans.xml,/WEB-INF/faces-navigation.xml,
>             /WEB-INF/faces-validators.xml,
>             /${app.path}/config/faces-config.xml
>  </param-value>
> </context-param>
>
> With /${app.path}/config/faces-config.xml I load another faces-config.xml
> (containing my definitions for the managed-beans). But that file is
> generated/copied by one of my classes. So the problem is, web.xml reads all
> faces configurations, however, the file copied by source code isn't there
> at
> runtime. The class that does the copying is kicked off as a filter in
> web.xml itself, so I assume - even if I reorder my web.xml - it's no
> difference because web.xml just kicks off filters and doesn't wait for a
> generation of such a faces-config.xml file... Therefore I used an
> environment variable to point to the path of the additional faces
> configuration containing my managed-beans.
> So now i understand why I had to restart tomcat: after a restart, the file
> could be found at the time web.xml searches there for!
>
> Perhaps this thread could be useful for others having problems with
> managed-beans or faces configuration in combination with exceptions of this
> kind:
>
> JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID:
> /myapp/templates/Layout.jsp)
> Exception thrown during phase execution:
>
> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@bf1a4a
> ]
>
>
> javax.servlet.ServletException: error at binding: #{userBean.loginUserName}
> -- an el-resolver error occurred! maybe you used an invalid binding.
> otherwise: please report the issue, deactivate the el-resovler of extval
> via
> web.xml context-param:
> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
> again.
>
>
> org.apache.jasper.el.JspPropertyNotFoundException:
> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> Unreachable, identifier 'userBean' resolved to null
>
>
> So, Gerhard, thank you very much for your support and all your hints
> pointing me into the right direction!! :D
> This thread can be marked as solved and I have to mention again that extval
> was not was not the cause of the exception!
>
> Belem
> --
> View this message in context:
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24605999.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Belem <li...@online.de>.
Hi Gerhard,

it took longer than expected to resolve the problem with following
exception:
org.apache.jasper.el.JspPropertyNotFoundException:
/myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
Unreachable, identifier 'userBean' resolved to null

> it doesn't look like an extval issue. extval is just the first point where
> you see the issue.
However, you're right, it's no extval issue! Sorry for that!

I realised that web.xml loads faces-config.xml and faces configuration in
the following manner differently:
<context-param>
  <param-name>javax.faces.CONFIG_FILES
  </param-name>
  <param-value>
  	     /WEB-INF/faces-beans.xml,/WEB-INF/faces-navigation.xml,
  	     /WEB-INF/faces-validators.xml,
  	     /${app.path}/config/faces-config.xml
  </param-value>
</context-param>

With /${app.path}/config/faces-config.xml I load another faces-config.xml
(containing my definitions for the managed-beans). But that file is
generated/copied by one of my classes. So the problem is, web.xml reads all
faces configurations, however, the file copied by source code isn't there at
runtime. The class that does the copying is kicked off as a filter in
web.xml itself, so I assume - even if I reorder my web.xml - it's no
difference because web.xml just kicks off filters and doesn't wait for a
generation of such a faces-config.xml file... Therefore I used an
environment variable to point to the path of the additional faces
configuration containing my managed-beans.
So now i understand why I had to restart tomcat: after a restart, the file
could be found at the time web.xml searches there for!

Perhaps this thread could be useful for others having problems with
managed-beans or faces configuration in combination with exceptions of this
kind:

JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /myapp/templates/Layout.jsp)
Exception thrown during phase execution:
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@bf1a4a]


javax.servlet.ServletException: error at binding: #{userBean.loginUserName}
-- an el-resolver error occurred! maybe you used an invalid binding.
otherwise: please report the issue, deactivate the el-resovler of extval via
web.xml context-param:
org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
again.


org.apache.jasper.el.JspPropertyNotFoundException:
/myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
Unreachable, identifier 'userBean' resolved to null


So, Gerhard, thank you very much for your support and all your hints
pointing me into the right direction!! :D
This thread can be marked as solved and I have to mention again that extval
was not was not the cause of the exception!

Belem
-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24605999.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Belem <li...@online.de>.
Hi Gerhard,

ok, you're right... the #{userBean.loginUserName} declaration in my jsp
templates seem to be causing this, however, I don't see why this issue is no
more relevant when tomcat was restarted again... couldn't it be a caching
problem?
(Tomcat started from console or out of eclipse, it's no difference, I need
to restart tomcat for a good running application.)

I try to resolve this userBean-issue first... traced it back to jasper /
el-api ... perhaps my project is missing something. More on monday.

Have a nice weekend and thank you very much for your support!
Belem


Gerhard Petracek wrote:
> 
> hi belem,
> 
> it doesn't look like an extval issue. extval is just the first point where
> you see the issue.
> the stacktrace contains:
> 
> org.apache.jasper.el.JspPropertyNotFoundException:
> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> Unreachable, identifier 'userBean' resolved to null
> 
> that's an issue in any case.
> as you can see it happens at:
> 
> org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
>        at
> com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
> 
> regards,
> gerhard
> 

-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24428390.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi belem,

it doesn't look like an extval issue. extval is just the first point where
you see the issue.
the stacktrace contains:

org.apache.jasper.el.JspPropertyNotFoundException:
/myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
Unreachable, identifier 'userBean' resolved to null

that's an issue in any case.
as you can see it happens at:

org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
       at
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


2009/7/10 Belem <li...@online.de>

>
> Hi Gerhard,
>
> here's the stack trace of the exception after I applied your code into the
> StartupListener and afterwards pressed the login button on my login-page
> (the jsp/jsf-resource):
>
> 10.07.2009 12:44:59 com.sun.faces.lifecycle.ProcessValidationsPhase execute
> WARNUNG: /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}'
> Target Unreachable, identifier 'userBean' resolved to null
> org.apache.jasper.el.JspPropertyNotFoundException:
> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> Unreachable, identifier 'userBean' resolved to null
>        at
> org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
>        at
>
> com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.getConvertedValue(ExtValLazyRendererProxy.java:101)
>        at
>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:132)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
>        at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
>        at javax.faces.component.UIInput.validate(UIInput.java:868)
>        at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
>        at javax.faces.component.UIInput.processValidators(UIInput.java:672)
>        at javax.faces.component.UIForm.processValidators(UIForm.java:235)
>        at
>
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
>        at
>
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
>        at
> javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
>        at
>
> com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
>         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>         at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>        at
>
> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
>        at
>
> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
>        at
> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
>         at de.belemapps.myapp.MyAppServlet.doPost(MyAppServlet.java:222)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
>        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:233)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>        at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>        at java.lang.Thread.run(Thread.java:619)
> 10.07.2009 12:44:59 com.sun.faces.lifecycle.Phase doPhase
> SCHWERWIEGEND: JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID:
> /myapp/templates/Layout.jsp) Exception thrown during phase execution:
>
> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a1686
> ]
> 10.07.2009 12:44:59 org.apache.catalina.core.ApplicationDispatcher invoke
> SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet (original) threw
> exception
> org.apache.jasper.el.JspPropertyNotFoundException:
> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> Unreachable, identifier 'userBean' resolved to null
>        at
> org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
>        at
>
> com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.getConvertedValue(ExtValLazyRendererProxy.java:101)
>        at
>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:132)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
>        at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
>        at javax.faces.component.UIInput.validate(UIInput.java:868)
>        at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
>        at javax.faces.component.UIInput.processValidators(UIInput.java:672)
>        at javax.faces.component.UIForm.processValidators(UIForm.java:235)
>        at
>
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
>        at
>
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
>        at
> javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
>        at
>
> com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
>         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>         at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>        at
>
> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
>        at
>
> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
>        at
> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
>         at de.belemapps.myapp.MyAppServlet.doPost(MyAppServlet.java:222)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
>        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:233)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>        at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>        at java.lang.Thread.run(Thread.java:619)
>
>
> Thanks,
> Belem
>
>
> Gerhard Petracek wrote:
> >
> > hi belem,
> >
> > @#1:
> > it's clear with your special constellation.
> >
> > @#2:
> > yes - please send the full stacktrace.
> >
> > regards,
> > gerhard
> >
>
> --
> View this message in context:
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24425685.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Belem <li...@online.de>.
Hi Gerhard,

here's the stack trace of the exception after I applied your code into the
StartupListener and afterwards pressed the login button on my login-page
(the jsp/jsf-resource):

10.07.2009 12:44:59 com.sun.faces.lifecycle.ProcessValidationsPhase execute
WARNUNG: /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}'
Target Unreachable, identifier 'userBean' resolved to null
org.apache.jasper.el.JspPropertyNotFoundException:
/myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
Unreachable, identifier 'userBean' resolved to null
	at
org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
	at
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
	at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.getConvertedValue(ExtValLazyRendererProxy.java:101)
	at
org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:132)
	at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
	at javax.faces.component.UIInput.validate(UIInput.java:868)
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
	at javax.faces.component.UIInput.processValidators(UIInput.java:672)
	at javax.faces.component.UIForm.processValidators(UIForm.java:235)
	at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
	at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
	at
de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
	at
de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
	at de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
	at de.belemapps.myapp.MyAppServlet.doPost(MyAppServlet.java:222)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
	at
de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
	at
de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
	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:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)
10.07.2009 12:44:59 com.sun.faces.lifecycle.Phase doPhase
SCHWERWIEGEND: JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID:
/myapp/templates/Layout.jsp) Exception thrown during phase execution:
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a1686]
10.07.2009 12:44:59 org.apache.catalina.core.ApplicationDispatcher invoke
SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet (original) threw
exception
org.apache.jasper.el.JspPropertyNotFoundException:
/myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
Unreachable, identifier 'userBean' resolved to null
	at
org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
	at
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
	at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.getConvertedValue(ExtValLazyRendererProxy.java:101)
	at
org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeGetConvertedValue(ValidationInterceptor.java:132)
	at
org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:468)
	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
	at javax.faces.component.UIInput.validate(UIInput.java:868)
	at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
	at javax.faces.component.UIInput.processValidators(UIInput.java:672)
	at javax.faces.component.UIForm.processValidators(UIForm.java:235)
	at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
	at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
	at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
	at
de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
	at
de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
	at de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
	at de.belemapps.myapp.MyAppServlet.doPost(MyAppServlet.java:222)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
	at
de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
	at
de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
	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:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)


Thanks,
Belem


Gerhard Petracek wrote:
> 
> hi belem,
> 
> @#1:
> it's clear with your special constellation.
> 
> @#2:
> yes - please send the full stacktrace.
> 
> regards,
> gerhard
> 

-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24425685.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi belem,

@#1:
it's clear with your special constellation.

@#2:
yes - please send the full stacktrace.

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2009/7/10 Belem <li...@online.de>

>
> Hi Gerhard,
>
> before I applied your provided code, I debugged and set a breakpoint at the
> root of my exception and I found:
> The exception has it's origin one line above.
> DefaultELHelper.java:201
>  ValueBindingExpression valueBindingExpression =
> getValueBindingExpression(uiComponent, false);
>
> getValueBindingExpression(uiComponent, false) returns null
>
> here are two variables:
> valueBindingExpression  null
>
> facesContext    FacesContextImpl  (id=196)
>        application     ApplicationImpl  (id=216)
>        componentMessageLists   null
>        elContext       ELContextImpl  (id=219)
>        externalContext ExternalContextImpl  (id=222)
>        lastRk  ExtValRenderKit  (id=225)
>        lastRkId        "HTML_BASIC" (id=228)
>        released        false
>        renderResponse  true
>        responseComplete        false
>        responseStream  null
>        responseWriter  HtmlResponseWriter  (id=229)
>        rkFactory       ExtValRenderKitFactory  (id=236)
>        viewRoot        UIViewRoot  (id=182)
>                afterPhase      null
>                attributes      UIComponentBase$AttributesMap  (id=239)
>                attributesThatAreSet    ArrayList<E>  (id=240)
>                beforeMethodException   false
>                beforePhase     null
>                bindings        null
>                children        UIComponentBase$ChildrenList  (id=241)
>                clientId        null
>                events  null
>                facets  null
>                id      "j_id_jsp_333505498_0" (id=243)
>                isUIComponentBase       true
>                isUIComponentBaseIsSet  false
>                lastId  20
>                listeners       null
>                locale  Locale  (id=244)
>                parent  null
>                pdMap   HashMap<K,V>  (id=246)
>                phaseListenerIterator   null
>                phaseListeners  null
>                rendered        true
>                renderedSet     false
>                rendererType    null
>                renderKitId     "HTML_BASIC" (id=228)
>                skipPhase       false
>                transientFlag   false
>                values  null
>                values  null
>                viewId  "/myapp/templates/Layout.jsp" (id=247)
>
>
> Then I applied your code into the StartupListener and the application opens
> the requested resource (jsp/jsf file) but further actions on this resource
> (like a login button) result in another exception. BTW, I have another
> resource, a contact page, that also displays only if a cleaned tomcat is
> started twice. This contact site doesn't display any uicomponents in
> contrast to the jsp-resource I mentioned before (the one with login button,
> let's call it login-page) with the applied code in the StartupListener.
>
> This other exception (by pressing the login button on login-page) starts
> with:
> JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID:
> /myapp/templates/Layout.jsp) Exception thrown during phase execution:
>
> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a1686
> ]
> 10.07.2009 12:44:59 org.apache.catalina.core.ApplicationDispatcher invoke
>
> Do you want the stack trace of this one too?
>
> If there are variable' values I could attach of the original or the actual
> exception cause, please tell me.
>
> Thanks,
> Belem
>
>
> Gerhard Petracek wrote:
> >
> > hi belem,
> >
> > that might be the problem. extval initializes input components with
> > metadata
> > of the bound property before the component is rendered
> > (to provide different features). so extval has to inspect the property of
> > every input component. it seems that this isn't compatible with your
> > custom
> > mechanism.
> > you can test it with a custom impl. - use the following code in your
> > startup-listener.
> >
> >     protected void init()
> >     {
> >         //workaround to allow forced double-rendering used in icefaces
> >
> > ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,
> > null);
> >
> >         //deregister the default implementation
> >
> >
> ExtValContext.getContext().denyRendererInterceptor(ValidationInterceptorWithSkipValidationSupport.class);
> >
> >         //register a custom implementation without component
> > initialization
> >         ExtValContext.getContext().registerRendererInterceptor(new
> > ValidationInterceptorWithSkipValidationSupport() {
> >             @Override
> >             public void beforeEncodeBegin(FacesContext facesContext,
> > UIComponent uiComponent, Renderer wrapped)
> >                 throws IOException, SkipBeforeInterceptorsException,
> > SkipRendererDelegationException
> >             {
> >                 //do nothing
> >             }
> >         });
> >     }
> >
> > regards,
> > gerhard
> >
>
> --
> View this message in context:
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24425393.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Belem <li...@online.de>.
Hi Gerhard,

before I applied your provided code, I debugged and set a breakpoint at the
root of my exception and I found:
The exception has it's origin one line above.
DefaultELHelper.java:201
 ValueBindingExpression valueBindingExpression =
getValueBindingExpression(uiComponent, false);

getValueBindingExpression(uiComponent, false) returns null

here are two variables:
valueBindingExpression	null

facesContext	FacesContextImpl  (id=196)	
	application	ApplicationImpl  (id=216)	
	componentMessageLists	null	
	elContext	ELContextImpl  (id=219)	
	externalContext	ExternalContextImpl  (id=222)	
	lastRk	ExtValRenderKit  (id=225)	
	lastRkId	"HTML_BASIC" (id=228)	
	released	false	
	renderResponse	true	
	responseComplete	false	
	responseStream	null	
	responseWriter	HtmlResponseWriter  (id=229)	
	rkFactory	ExtValRenderKitFactory  (id=236)	
	viewRoot	UIViewRoot  (id=182)	
		afterPhase	null	
		attributes	UIComponentBase$AttributesMap  (id=239)	
		attributesThatAreSet	ArrayList<E>  (id=240)	
		beforeMethodException	false	
		beforePhase	null	
		bindings	null	
		children	UIComponentBase$ChildrenList  (id=241)	
		clientId	null	
		events	null	
		facets	null	
		id	"j_id_jsp_333505498_0" (id=243)	
		isUIComponentBase	true	
		isUIComponentBaseIsSet	false	
		lastId	20	
		listeners	null	
		locale	Locale  (id=244)	
		parent	null	
		pdMap	HashMap<K,V>  (id=246)	
		phaseListenerIterator	null	
		phaseListeners	null	
		rendered	true	
		renderedSet	false	
		rendererType	null	
		renderKitId	"HTML_BASIC" (id=228)	
		skipPhase	false	
		transientFlag	false	
		values	null	
		values	null	
		viewId	"/myapp/templates/Layout.jsp" (id=247)	


Then I applied your code into the StartupListener and the application opens
the requested resource (jsp/jsf file) but further actions on this resource
(like a login button) result in another exception. BTW, I have another
resource, a contact page, that also displays only if a cleaned tomcat is
started twice. This contact site doesn't display any uicomponents in
contrast to the jsp-resource I mentioned before (the one with login button,
let's call it login-page) with the applied code in the StartupListener.

This other exception (by pressing the login button on login-page) starts
with:
JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID:
/myapp/templates/Layout.jsp) Exception thrown during phase execution:
javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a1686]
10.07.2009 12:44:59 org.apache.catalina.core.ApplicationDispatcher invoke

Do you want the stack trace of this one too?

If there are variable' values I could attach of the original or the actual
exception cause, please tell me.

Thanks,
Belem


Gerhard Petracek wrote:
> 
> hi belem,
> 
> that might be the problem. extval initializes input components with
> metadata
> of the bound property before the component is rendered
> (to provide different features). so extval has to inspect the property of
> every input component. it seems that this isn't compatible with your
> custom
> mechanism.
> you can test it with a custom impl. - use the following code in your
> startup-listener.
> 
>     protected void init()
>     {
>         //workaround to allow forced double-rendering used in icefaces
> 
> ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,
> null);
> 
>         //deregister the default implementation
> 
> ExtValContext.getContext().denyRendererInterceptor(ValidationInterceptorWithSkipValidationSupport.class);
> 
>         //register a custom implementation without component
> initialization
>         ExtValContext.getContext().registerRendererInterceptor(new
> ValidationInterceptorWithSkipValidationSupport() {
>             @Override
>             public void beforeEncodeBegin(FacesContext facesContext,
> UIComponent uiComponent, Renderer wrapped)
>                 throws IOException, SkipBeforeInterceptorsException,
> SkipRendererDelegationException
>             {
>                 //do nothing
>             }
>         });
>     }
> 
> regards,
> gerhard
> 

-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24425393.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi belem,

that might be the problem. extval initializes input components with metadata
of the bound property before the component is rendered
(to provide different features). so extval has to inspect the property of
every input component. it seems that this isn't compatible with your custom
mechanism.
you can test it with a custom impl. - use the following code in your
startup-listener.

    protected void init()
    {
        //workaround to allow forced double-rendering used in icefaces

ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY, null);

        //deregister the default implementation

ExtValContext.getContext().denyRendererInterceptor(ValidationInterceptorWithSkipValidationSupport.class);

        //register a custom implementation without component initialization
        ExtValContext.getContext().registerRendererInterceptor(new
ValidationInterceptorWithSkipValidationSupport() {
            @Override
            public void beforeEncodeBegin(FacesContext facesContext,
UIComponent uiComponent, Renderer wrapped)
                throws IOException, SkipBeforeInterceptorsException,
SkipRendererDelegationException
            {
                //do nothing
            }
        });
    }

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2009/7/10 Belem <li...@online.de>

>
> Hi Gerhard,
>
> Gerhard Petracek wrote:
> >
> > hmmm - i'm not aware of such issues with mojarra.
> > what's the functionality of MyAppServlet?
> >
>
> MyAppServlet.init() initializes some attributes and checks the templates
> folder.
> MyAppServlet.doGet(..) /.doPost(..) then calls this servlets' method
> processDocumentRequest(..) which checks the existence of a View-Template
> object and if not null passes the Request further to
> includeLayoutTemplate(httpRequest, httpResponse, view) which checks if the
> called resource (jsp file) in the servlet context isn't null, replaces .jsp
> by .jsf and then calls the include methode of this resource'
> RequestDispatcher.
>
> I'll try debugging until the start of this exception by attaching api
> sources... is there something I can watch out for?
>
> Thanks,
> Belem
> --
> View this message in context:
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24424370.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Belem <li...@online.de>.
Hi Gerhard,

Gerhard Petracek wrote:
> 
> hmmm - i'm not aware of such issues with mojarra.
> what's the functionality of MyAppServlet?
> 

MyAppServlet.init() initializes some attributes and checks the templates
folder.
MyAppServlet.doGet(..) /.doPost(..) then calls this servlets' method
processDocumentRequest(..) which checks the existence of a View-Template
object and if not null passes the Request further to
includeLayoutTemplate(httpRequest, httpResponse, view) which checks if the
called resource (jsp file) in the servlet context isn't null, replaces .jsp
by .jsf and then calls the include methode of this resource'
RequestDispatcher.

I'll try debugging until the start of this exception by attaching api
sources... is there something I can watch out for?

Thanks,
Belem
-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24424370.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi belem,

hmmm - i'm not aware of such issues with mojarra.
what's the functionality of MyAppServlet?

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2009/7/10 Belem <li...@online.de>

>
> Hi Gerhard,
>
> Thanks for your fast answer.
>
>
> Gerhard Petracek wrote:
> >
> > the interesting part is that the answer depends on the jsf-impl.
> > are you using myfaces-core or mojarra? (please also provide the version)
> >
>
> Well, I am not sure concerning myfaces-core... jsf-impl.jar consists 3
> tld's:
> html_basic.tld, jsf_core.tld and mojarra_ext.tld
>
> The Manifest there contains following information:
>  jsf-impl.jar, 1.2MR2, TSTAMP: 0944, DSTAMP: 20090113
>  Mojarra JSF Implementation 1.2_12-b01-FCS
>
> (FYI, jsf-api.jar has the same timestamp and information.)
> Also, I've a just-ice.jar with the same icefaces version of 1.8.0_12
> (2009-04-01 20:36 MDT).
>
> So, would it be helpful if I use the version 1.2_13 of jsf-api and jsf-impl
> from latest mojarra project?
>
> Thanks,
> Belem
> --
> View this message in context:
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24423102.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Belem <li...@online.de>.
Hi Gerhard,

Thanks for your fast answer.


Gerhard Petracek wrote:
> 
> the interesting part is that the answer depends on the jsf-impl.
> are you using myfaces-core or mojarra? (please also provide the version)
> 

Well, I am not sure concerning myfaces-core... jsf-impl.jar consists 3
tld's:
html_basic.tld, jsf_core.tld and mojarra_ext.tld

The Manifest there contains following information:
 jsf-impl.jar, 1.2MR2, TSTAMP: 0944, DSTAMP: 20090113
 Mojarra JSF Implementation 1.2_12-b01-FCS

(FYI, jsf-api.jar has the same timestamp and information.)
Also, I've a just-ice.jar with the same icefaces version of 1.8.0_12
(2009-04-01 20:36 MDT).

So, would it be helpful if I use the version 1.2_13 of jsf-api and jsf-impl
from latest mojarra project?

Thanks,
Belem
-- 
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24423102.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi matthias,

some details are available at [1].

furthermore, we started [2].
there you can find an example [3] which works with a patched icefaces
version (just an additional constructor for D2DRenderKit).
anyway, there are also workarounds for some issues (to avoid a patched
icefaces version) - it depends e.g. on the jsf impl.

as you can see ted is also member of the google code project. so i hope we
will have the icefaces fixes quite soon.
we (myfaces) can just provide workarounds, because icefaces has to fix some
parts...
(the el-resolver issue will be solved as soon as icefaces is compatible with
jsf 2.0. hopefully, they will also patch the version for jsf 1.2).

regards,
gerhard

[1] http://jira.icefaces.org/secure/IssueNavigator.jspa
[2] http://code.google.com/p/sandbox890/
[3]
http://code.google.com/p/sandbox890/source/browse/#svn/trunk/examples/icefaces_extval/example_01

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2009/7/9 Matthias Wessendorf <ma...@apache.org>

> On Thu, Jul 9, 2009 at 7:36 PM, Gerhard
> Petracek<ge...@gmail.com> wrote:
> > hi belem,
> >
> > icefaces has some issues here (also issues with myfaces-core).
> > (i'm already in contact with the icefaces team. they have to fix some of
> the
> > issues - also in respect of jsf 2.0 compatibility)
>
> what exactly ?
>
> >
> > the interesting part is that the answer depends on the jsf-impl.
> > are you using myfaces-core or mojarra? (please also provide the version)
> >
> > regards,
> > gerhard
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> >
> > 2009/7/9 Belem <li...@online.de>
> >>
> >> Hi all,
> >>
> >> I built an application with MyFaces, Tomahawk and Icefaces.
> >> Started in Tomcat the first time the console alerts:
> >>
> >> JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID:
> >> /myapp/templates/Layout.jsp)
> >> Exception thrown during phase execution:
> >>
> >>
> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@bf1a4a
> ]
> >>
> >>
> >> After restarting Tomcat all is fine and the pages are displayed
> perfectly.
> >>
> >>
> >> I've following lib's:
> >>  myfaces-extval-core-1.2.2.jar
> >>  myfaces-extval-property-validation-1.2.2.jar
> >>  tomahawk12-1.1.8.jar
> >>  icefaces-comps.jar, Implementation-Version: 1.8.0_12 (2009-04-01 20:34
> >> MDT)
> >>
> >> The Stack trace I got is following:
> >>
> >> javax.servlet.ServletException: error at binding:
> >> #{userBean.loginUserName}
> >> -- an el-resolver error occurred! maybe you used an invalid binding.
> >> otherwise: please report the issue, deactivate the el-resovler of extval
> >> via
> >> web.xml context-param:
> >> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
> >> again.
> >>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
> >>        at
> >>
> >>
> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:155)
> >>        at
> >>
> >>
> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:134)
> >>        at
> >> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:113)
> >>        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:225)
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:159)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:60)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
> >>        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:233)
> >>        at
> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >>        at
> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >>        at
> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>        at
> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>        at
> >>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >>        at
> >>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >>        at
> >>
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>        at
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>        at java.lang.Thread.run(Thread.java:619)
> >> Caused by: java.lang.IllegalStateException: error at binding:
> >> #{userBean.loginUserName} -- an el-resolver error occurred! maybe you
> used
> >> an invalid binding. otherwise: please report the issue, deactivate the
> >> el-resovler of extval via web.xml context-param:
> >> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
> >> again.
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:181)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
> >>        at
> >>
> >>
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
> >>        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererProxy.encodeChildren(ExtValRendererProxy.java:131)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
> >>        at
> >>
> >>
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
> >>        at
> >>
> >>
> com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
> >>        at
> >>
> >>
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
> >>        at
> >>
> >>
> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
> >>        at
> >>
> >>
> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
> >>        at
> >>
> >>
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
> >>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> >>        at
> >> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> >>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
> >>        ... 31 more
> >> Caused by: org.apache.jasper.el.JspPropertyNotFoundException:
> >> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> >> Unreachable, identifier 'userBean' resolved to null
> >>        at
> >>
> >>
> org.apache.jasper.el.JspValueExpression.setValue(JspValueExpression.java:91)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:177)
> >>        ... 54 more
> >>
> >>
> >>
> >> Following the advice, I modified my web.xml and added following:
> >>
> >> <context-param>
> >>
> >>
>  <param-name>org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER
> >>  </param-name>
> >>  <param-value>true</param-value>
> >> </context-param>
> >>
> >> Also, I created a StartupListener class (extending
> >> AbstractStartupListener)
> >> implementing the init method:
> >>
> >> @Override
> >> protected void init()
> >> {
> >>  ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,
> >>      null);
> >> }
> >>
> >> This one, I registered in faces-config.xml:
> >>
> >> <lifecycle>
> >> <phase-listener>
> >>        de.belemapps.myapp.filter.jsf.MyStartupListener
> >>    </phase-listener>
> >> </lifecycle>
> >>
> >>
> >> After cleaning Tomcat before the new deployment, the new stack trace is
> >> following:
> >>
> >> javax.servlet.ServletException
> >>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
> >>        at
> >>
> >>
> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
> >>        at
> >>
> >>
> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
> >>        at
> >> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
> >>        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:214)
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>        at
> >>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
> >>        at
> >>
> >>
> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
> >>        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:233)
> >>        at
> >>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >>        at
> >>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >>        at
> >>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>        at
> >>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>        at
> >>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >>        at
> >>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >>        at
> >>
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>        at
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>        at java.lang.Thread.run(Thread.java:619)
> >> Caused by: java.lang.NullPointerException
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsViaReflectionFallback(DefaultELHelper.java:202)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:160)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
> >>        at
> >>
> >>
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
> >>        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
> >>        at
> >>
> >>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
> >>        at
> >>
> >>
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
> >>        at
> >> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
> >>        at
> >>
> >>
> com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
> >>        at
> >>
> >>
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
> >>        at
> >>
> >>
> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
> >>        at
> >>
> >>
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
> >>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> >>        at
> >> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> >>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
> >>        ... 31 more
> >>
> >>
> >>
> >> I also tried new libraries with no effect, having the same exceptions as
> >> above:
> >>  myfaces-extval-core-1.2.3-SNAPSHOT.jar
> >>  myfaces-extval-property-validation-1.2.3-SNAPSHOT.jar
> >>
> >> Was my proceeding correct or should I revert web.xml and
> faces-config.xml
> >> to
> >> my original state before my changes mentioned above?
> >> Could someone please help me solving this exception?
> >> If there's something useful I could also attach, just tell me.
> >>
> >> Thanks
> >> Belem
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24409424.html
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Matthias Wessendorf <ma...@apache.org>.
On Thu, Jul 9, 2009 at 7:36 PM, Gerhard
Petracek<ge...@gmail.com> wrote:
> hi belem,
>
> icefaces has some issues here (also issues with myfaces-core).
> (i'm already in contact with the icefaces team. they have to fix some of the
> issues - also in respect of jsf 2.0 compatibility)

what exactly ?

>
> the interesting part is that the answer depends on the jsf-impl.
> are you using myfaces-core or mojarra? (please also provide the version)
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2009/7/9 Belem <li...@online.de>
>>
>> Hi all,
>>
>> I built an application with MyFaces, Tomahawk and Icefaces.
>> Started in Tomcat the first time the console alerts:
>>
>> JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID:
>> /myapp/templates/Layout.jsp)
>> Exception thrown during phase execution:
>>
>> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@bf1a4a]
>>
>>
>> After restarting Tomcat all is fine and the pages are displayed perfectly.
>>
>>
>> I've following lib's:
>>  myfaces-extval-core-1.2.2.jar
>>  myfaces-extval-property-validation-1.2.2.jar
>>  tomahawk12-1.1.8.jar
>>  icefaces-comps.jar, Implementation-Version: 1.8.0_12 (2009-04-01 20:34
>> MDT)
>>
>> The Stack trace I got is following:
>>
>> javax.servlet.ServletException: error at binding:
>> #{userBean.loginUserName}
>> -- an el-resolver error occurred! maybe you used an invalid binding.
>> otherwise: please report the issue, deactivate the el-resovler of extval
>> via
>> web.xml context-param:
>> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
>> again.
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>>
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>>        at
>>
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>>        at
>>
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>>        at
>>
>> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:155)
>>        at
>>
>> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:134)
>>        at
>> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:113)
>>        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:225)
>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>>
>> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:159)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>>
>> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:60)
>>        at
>>
>> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
>>        at
>>
>> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
>>        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:233)
>>        at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>        at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>        at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>        at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>        at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>        at
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>        at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.lang.IllegalStateException: error at binding:
>> #{userBean.loginUserName} -- an el-resolver error occurred! maybe you used
>> an invalid binding. otherwise: please report the issue, deactivate the
>> el-resovler of extval via web.xml context-param:
>> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
>> again.
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:181)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
>>        at
>>
>> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
>>        at
>>
>> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
>>        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererProxy.encodeChildren(ExtValRendererProxy.java:131)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
>>        at
>>
>> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>>        at
>>
>> com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
>>        at
>>
>> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
>>        at
>>
>> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
>>        at
>>
>> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
>>        at
>>
>> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
>>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>>        at
>> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
>>        ... 31 more
>> Caused by: org.apache.jasper.el.JspPropertyNotFoundException:
>> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
>> Unreachable, identifier 'userBean' resolved to null
>>        at
>>
>> org.apache.jasper.el.JspValueExpression.setValue(JspValueExpression.java:91)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:177)
>>        ... 54 more
>>
>>
>>
>> Following the advice, I modified my web.xml and added following:
>>
>> <context-param>
>>
>>  <param-name>org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER
>>  </param-name>
>>  <param-value>true</param-value>
>> </context-param>
>>
>> Also, I created a StartupListener class (extending
>> AbstractStartupListener)
>> implementing the init method:
>>
>> @Override
>> protected void init()
>> {
>>  ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,
>>      null);
>> }
>>
>> This one, I registered in faces-config.xml:
>>
>> <lifecycle>
>> <phase-listener>
>>        de.belemapps.myapp.filter.jsf.MyStartupListener
>>    </phase-listener>
>> </lifecycle>
>>
>>
>> After cleaning Tomcat before the new deployment, the new stack trace is
>> following:
>>
>> javax.servlet.ServletException
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>>
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>>        at
>>
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>>        at
>>
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>>        at
>>
>> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
>>        at
>>
>> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
>>        at
>> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
>>        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:214)
>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>>
>> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>        at
>>
>> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
>>        at
>>
>> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
>>        at
>>
>> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
>>        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:233)
>>        at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>        at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>        at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>        at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>        at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>        at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>>        at
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>        at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.lang.NullPointerException
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsViaReflectionFallback(DefaultELHelper.java:202)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:160)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
>>        at
>>
>> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
>>        at
>>
>> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
>>        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
>>        at
>>
>> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
>>        at
>>
>> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>>        at
>> javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>>        at
>>
>> com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
>>        at
>>
>> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
>>        at
>>
>> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
>>        at
>>
>> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
>>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>>        at
>> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
>>        ... 31 more
>>
>>
>>
>> I also tried new libraries with no effect, having the same exceptions as
>> above:
>>  myfaces-extval-core-1.2.3-SNAPSHOT.jar
>>  myfaces-extval-property-validation-1.2.3-SNAPSHOT.jar
>>
>> Was my proceeding correct or should I revert web.xml and faces-config.xml
>> to
>> my original state before my changes mentioned above?
>> Could someone please help me solving this exception?
>> If there's something useful I could also attach, just tell me.
>>
>> Thanks
>> Belem
>> --
>> View this message in context:
>> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24409424.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Re: exception with extval - JSF1054 RENDER_RESPONSE 6

Posted by Gerhard Petracek <ge...@gmail.com>.
hi belem,

icefaces has some issues here (also issues with myfaces-core).
(i'm already in contact with the icefaces team. they have to fix some of the
issues - also in respect of jsf 2.0 compatibility)

the interesting part is that the answer depends on the jsf-impl.
are you using myfaces-core or mojarra? (please also provide the version)

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2009/7/9 Belem <li...@online.de>

>
> Hi all,
>
> I built an application with MyFaces, Tomahawk and Icefaces.
> Started in Tomcat the first time the console alerts:
>
> JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID:
> /myapp/templates/Layout.jsp)
> Exception thrown during phase execution:
>
> javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@bf1a4a
> ]
>
>
> After restarting Tomcat all is fine and the pages are displayed perfectly.
>
>
> I've following lib's:
>  myfaces-extval-core-1.2.2.jar
>  myfaces-extval-property-validation-1.2.2.jar
>  tomahawk12-1.1.8.jar
>  icefaces-comps.jar, Implementation-Version: 1.8.0_12 (2009-04-01 20:34
> MDT)
>
> The Stack trace I got is following:
>
> javax.servlet.ServletException: error at binding: #{userBean.loginUserName}
> -- an el-resolver error occurred! maybe you used an invalid binding.
> otherwise: please report the issue, deactivate the el-resovler of extval
> via
> web.xml context-param:
> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
> again.
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>        at
>
> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:155)
>        at
>
> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:134)
>        at
> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:113)
>        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:225)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:159)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:60)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
>        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:233)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>        at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.IllegalStateException: error at binding:
> #{userBean.loginUserName} -- an el-resolver error occurred! maybe you used
> an invalid binding. otherwise: please report the issue, deactivate the
> el-resovler of extval via web.xml context-param:
> org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER and test
> again.
>        at
>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:181)
>        at
>
> org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
>        at
>
> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
>        at
>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
>        at
>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
>        at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
>        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererProxy.encodeChildren(ExtValRendererProxy.java:131)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
>        at
>
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>        at
>
> com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
>        at
>
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
>        at
>
> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
>        at
>
> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
>        at
>
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>        at
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
>        ... 31 more
> Caused by: org.apache.jasper.el.JspPropertyNotFoundException:
> /myapp/templates/Login.jsp(20,56) '#{userBean.loginUserName}' Target
> Unreachable, identifier 'userBean' resolved to null
>        at
>
> org.apache.jasper.el.JspValueExpression.setValue(JspValueExpression.java:91)
>        at
>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:177)
>        ... 54 more
>
>
>
> Following the advice, I modified my web.xml and added following:
>
> <context-param>
>  <param-name>org.apache.myfaces.extensions.validator.DEACTIVATE_EL_RESOLVER
>  </param-name>
>  <param-value>true</param-value>
> </context-param>
>
> Also, I created a StartupListener class (extending AbstractStartupListener)
> implementing the init method:
>
> @Override
> protected void init()
> {
>  ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,
>      null);
> }
>
> This one, I registered in faces-config.xml:
>
> <lifecycle>
> <phase-listener>
>        de.belemapps.myapp.filter.jsf.MyStartupListener
>    </phase-listener>
> </lifecycle>
>
>
> After cleaning Tomcat before the new deployment, the new stack trace is
> following:
>
> javax.servlet.ServletException
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>        at
>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>        at
>
> de.belemapps.myapp.MyAppServlet.includeLayoutTemplate(MyAppServlet.java:144)
>        at
>
> de.belemapps.myapp.MyAppServlet.processDocumentRequest(MyAppServlet.java:123)
>        at
> de.belemapps.myapp.MyAppServlet.processRequest(MyAppServlet.java:102)
>        at de.belemapps.myapp.MyAppServlet.doGet(MyAppServlet.java:214)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> de.belemapps.myapp.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:160)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> de.belemapps.myapp.filter.EditServerFilter.upcall(EditServerFilter.java:68)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.handleRequest(ServerFilterBase.java:139)
>        at
>
> de.belemapps.myapp.filter.ServerFilterBase.doFilter(ServerFilterBase.java:75)
>        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:233)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>        at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
>        at
>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsViaReflectionFallback(DefaultELHelper.java:202)
>        at
>
> org.apache.myfaces.extensions.validator.core.el.DefaultELHelper.getPropertyDetailsOfValueBinding(DefaultELHelper.java:160)
>        at
>
> org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractor.extract(DefaultComponentMetaDataExtractor.java:85)
>        at
>
> org.apache.myfaces.extensions.validator.util.ExtValUtils$1.extract(ExtValUtils.java:188)
>        at
>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.initComponent(ValidationInterceptor.java:77)
>        at
>
> org.apache.myfaces.extensions.validator.core.interceptor.ValidationInterceptor.beforeEncodeBegin(ValidationInterceptor.java:56)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:208)
>        at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
>        at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeChildren(ExtValLazyRendererProxy.java:75)
>        at
>
> org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeChildren(ExtValRendererWrapper.java:327)
>        at
>
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
>        at
>
> com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
>        at
>
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
>        at
>
> com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:145)
>        at
>
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>        at
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
>        ... 31 more
>
>
>
> I also tried new libraries with no effect, having the same exceptions as
> above:
>  myfaces-extval-core-1.2.3-SNAPSHOT.jar
>  myfaces-extval-property-validation-1.2.3-SNAPSHOT.jar
>
> Was my proceeding correct or should I revert web.xml and faces-config.xml
> to
> my original state before my changes mentioned above?
> Could someone please help me solving this exception?
> If there's something useful I could also attach, just tell me.
>
> Thanks
> Belem
> --
> View this message in context:
> http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24409424.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>