You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Christian Beikov <c....@curecomp.com> on 2012/02/16 16:18:03 UTC

CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Hello there!

I have a problem with the CODI JSF Scope ViewAccessScope and the 
PrimeFaces ResourceHandler.

Primefaces evaluates a value expression within the resource handler to 
retrieve dynamic content, why and how is not important. The fact is, 
that the ResourceHandler is called before everything else within the JSF 
Lifecycle.

I am using the ViewAccessScope for the bean which should be evaluated 
with the value expression within the ResourceHandler. I debugged into it 
and found out that 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ViewAccessConversationExpirationEvaluator 
tries to retrieve the view root of the FacesContext or more exactly the 
view id of it. The problem is, that the view root is null at that time, 
so the evaluation ends with a NullPointerException in a CODI class.

Who is responsible for this issue? Can anyone suggest me a workaround?

I am using:

  * Websphere 8.0.0.2
  * MyFaces, the version shipped with Websphere
  * CODI 1.0.1
  * Primefaces 3.1.1

Here is the full stacktrace:

[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R 
javax.el.ELException: Error reading 'companyLogo' on type 
com.clevercure.web.sob.bean.SobSupplierRegistrationBean_$$_javassist_920
[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at 
javax.el.BeanELResolver.getValue(BeanELResolver.java:93)
[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at 
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:55)
[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at 
org.apache.el.parser.AstValue.getValue(AstValue.java:169)
[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:283)
[16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.el.WrappedValueExpression.getValue(WrappedValueExpression.java:68)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
org.primefaces.application.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:75)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.FileUploadFilter.doFilter(FileUploadFilter.java:78)
[16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:30)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:115)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.UserFilter.doFilter(UserFilter.java:42)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.IbmApplicationSessionFilter.doFilter(IbmApplicationSessionFilter.java:25)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
[16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at 
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
[16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by: 
java.lang.NullPointerException
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ViewAccessConversationExpirationEvaluator.getCurrentViewId(ViewAccessConversationExpirationEvaluator.java:114)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ViewAccessConversationExpirationEvaluator.touch(ViewAccessConversationExpirationEvaluator.java:100)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultConversation.touchConversation(DefaultConversation.java:201)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultConversation.addBean(DefaultConversation.java:177)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.GroupedConversationContext.scopeBeanEntry(GroupedConversationContext.java:204)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.AbstractGroupedConversationContext.create(AbstractGroupedConversationContext.java:98)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.get(ConversationContextAdapter.java:81)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.context.CustomContextImpl.get(CustomContextImpl.java:43)
[16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.context.CustomPassivatingContextImpl.get(CustomPassivatingContextImpl.java:41)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:135)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:95)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
com.clevercure.web.sob.bean.SobSupplierRegistrationBean_$$_javassist_920.getCompanyLogo(SobSupplierRegistrationBean_$$_javassist_920.java)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
java.lang.reflect.Method.invoke(Method.java:611)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at 
javax.el.BeanELResolver.getValue(BeanELResolver.java:89)
[16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
[16.02.12 16:15:51:503 CET] 0000002a SystemErr     R 
javax.el.ELException: Error reading 'companyLogo' on type 
com.clevercure.web.sob.bean.SobSupplierRegistrationBean_$$_javassist_920
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
javax.el.BeanELResolver.getValue(BeanELResolver.java:93)
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:55)
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
org.apache.el.parser.AstValue.getValue(AstValue.java:169)
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:283)
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.el.WrappedValueExpression.getValue(WrappedValueExpression.java:68)
[16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at 
org.primefaces.application.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:75)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.FileUploadFilter.doFilter(FileUploadFilter.java:78)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:30)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:115)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.UserFilter.doFilter(UserFilter.java:42)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.clevercure.web.core.filter.IbmApplicationSessionFilter.doFilter(IbmApplicationSessionFilter.java:25)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by: 
java.lang.NullPointerException
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ViewAccessConversationExpirationEvaluator.getCurrentViewId(ViewAccessConversationExpirationEvaluator.java:114)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ViewAccessConversationExpirationEvaluator.touch(ViewAccessConversationExpirationEvaluator.java:100)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultConversation.touchConversation(DefaultConversation.java:201)
[16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultConversation.addBean(DefaultConversation.java:177)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.GroupedConversationContext.scopeBeanEntry(GroupedConversationContext.java:204)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.AbstractGroupedConversationContext.create(AbstractGroupedConversationContext.java:98)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.get(ConversationContextAdapter.java:81)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.context.CustomContextImpl.get(CustomContextImpl.java:43)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.context.CustomPassivatingContextImpl.get(CustomPassivatingContextImpl.java:41)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:135)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:95)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
com.clevercure.web.sob.bean.SobSupplierRegistrationBean_$$_javassist_920.getCompanyLogo(SobSupplierRegistrationBean_$$_javassist_920.java)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at 
java.lang.reflect.Method.invoke(Method.java:611)
[16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at 
javax.el.BeanELResolver.getValue(BeanELResolver.java:89)
[16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Gerhard Petracek <ge...@gmail.com>.
@mark:
that's correct. however, since it's possible to customize most parts, it
would be possible (for sure that would cause a performance impact).
everybody is welcome to share use-cases which aren't supported and we can
discuss them.

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces



2012/2/16 Mark Struberg <st...@yahoo.de>

> Hi!
>
> > the short answer is: no - it was never intended to support it.
> +1
>
> To add a bit more info. This is not even intended/supported by JSF. You
> would need to hit the server for each and every css, img, js, etc served as
> resource. No caching on the browser side would be possible! By default all
> JSF containers I know set the expires to +2 weeks. So even if you would
> distinguish e.g. the language on the resource side, you would only resolve
> it for the very first page hit! All subsequent language changes would be
> ignored.
>
> Jakob started a more advanced resource handler and a modified version of
> it is also in the myfaces shared project.
>
>
> http://www.jakobk.com/2011/11/bachelor-thesis-about-relative-resource-handler/
>
> Jakob and Leo are also JSF Expert Group members and are actively pushing
> this in the JSF-2.2 spec.
>
> LieGrue,
> strub
>
>
>
>
> ----- Original Message -----
> > From: Gerhard Petracek <ge...@gmail.com>
> > To: MyFaces Discussion <us...@myfaces.apache.org>
> > Cc:
> > Sent: Thursday, February 16, 2012 5:05 PM
> > Subject: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
> ValueExpression
> >
> > hi christian,
> >
> > the short answer is: no - it was never intended to support it.
> > however, if you provide an use-case which isn't supported, we will
> discuss
> > it.
> >
> > regards,
> > gerhard
> >
> > http://www.irian.at
> >
> > Your JSF/JavaEE powerhouse -
> > JavaEE Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> >
> > 2012/2/16 Christian Beikov <c....@curecomp.com>
> >
> >>  The more concrete question on the problem i face would probably be:
> >>
> >>  Is the ViewAccessScope designed to work for a JSF ResourceHandler
> which is
> >>  called instead of the normal JSF Lifecycle? None of the JSF Phases is
> >>  executed when a ResourceHandler is invoked, so would it actually be
> >>  possible that the VIewAccessScope could work?
> >>
> >>  Resolving a bean within a ResourceHandler is probably not a big thing
> and
> >>  should not cause problems. Maybe the primefaces implementation is just
> >>  wrong to put the evaluation out of the JSF Phases and should use a
> >>  PhaseListener instead? I am pretty sure that the evaluation would work
> when
> >>  it was done within a PhaseListener, correct me if I am wrong.
> >>
> >>  Am 16.02.2012 16:47, schrieb Gerhard Petracek:
> >>
> >>>  hi christian,
> >>>
> >>>  a workaround would be an own ConversationFactory - but that means a
> lot
> > of
> >>>  work.
> >>>  since the myfaces codi conversation scopes (the view-access scope is
> > just
> >>>  a
> >>>  special conversation type) are bound to jsf by default, it wasn't
> > intended
> >>>  to support access outside of the jsf request-lifecycle.
> >>>  however, you can checkout the source-code [1], fix it and check if the
> >>>  rest
> >>>  would work as needed for your use-case (and provide the patch
> > afterwards).
> >>>  or you provide a simple demo which shows the issue and we will do the
> >>>  rest.
> >>>
> >>>  regards,
> >>>  gerhard
> >>>
> >>>  [1]
> > https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<
> https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
> >>>
> >>>  http://www.irian.at
> >>>
> >>>  Your JSF/JavaEE powerhouse -
> >>>  JavaEE Consulting, Development and
> >>>  Courses in English and German
> >>>
> >>>  Professional Support for Apache MyFaces
> >>>
> >>>
> >>>
> >>>  2012/2/16 Christian Beikov<c....@curecomp.com>
> >>>
> >>>   Hello there!
> >>>>
> >>>>  I have a problem with the CODI JSF Scope ViewAccessScope and the
> >>>>  PrimeFaces ResourceHandler.
> >>>>
> >>>>  Primefaces evaluates a value expression within the resource handler
> > to
> >>>>  retrieve dynamic content, why and how is not important. The fact
> > is, that
> >>>>  the ResourceHandler is called before everything else within the JSF
> >>>>  Lifecycle.
> >>>>
> >>>>  I am using the ViewAccessScope for the bean which should be
> > evaluated
> >>>>  with
> >>>>  the value expression within the ResourceHandler. I debugged into it
> > and
> >>>>  found out that
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
> >>>>  conversation.****ViewAccessConversationExpirati****onEvaluator
> > tries to
> >>>>
> >>>>  retrieve the view root of the FacesContext or more exactly the view
> > id of
> >>>>  it. The problem is, that the view root is null at that time, so the
> >>>>  evaluation ends with a NullPointerException in a CODI class.
> >>>>
> >>>>  Who is responsible for this issue? Can anyone suggest me a
> > workaround?
> >>>>
> >>>>  I am using:
> >>>>
> >>>>   * Websphere 8.0.0.2
> >>>>   * MyFaces, the version shipped with Websphere
> >>>>   * CODI 1.0.1
> >>>>   * Primefaces 3.1.1
> >>>>
> >>>>  Here is the full stacktrace:
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
> >>>>  javax.el.ELException:
> >>>>  Error reading 'companyLogo' on type
> > com.clevercure.web.sob.bean.**
> >>>>  SobSupplierRegistrationBean_$$****_javassist_920
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>  javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
> >>>>  **java:55)
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.myfaces.el.unified.****resolver.****
> >>>>  FacesCompositeELResolver.**
> >>>>  getValue(****FacesCompositeELResolver.java:****142)
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.el.
> >>>>  **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
> >>>>
> >>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
> >>>>  WrappedValueExpression.java:****68)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  org.primefaces.application.****PrimeResourceHandler.****
> >>>>  handleResourceRequest(
> >>>>  **PrimeResourceHandler.java:**75)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  javax.faces.application.****ResourceHandlerWrapper.****
> >>>>  handleResourceRequest(*
> >>>>  *ResourceHandlerWrapper.java:****62)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>
> > javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>  service(ServletWrapper.java:****1188)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>  handleRequest(ServletWrapper.****java:763)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>  handleRequest(ServletWrapper.****java:454)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
> >>>>  handleRequest(**
> >>>>
> >>>>  ServletWrapperImpl.java:178)
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
> >>>>
> >>>>  WebAppFilterChain.java:125)
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:92)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>  com.clevercure.web.core.****filter.FileUploadFilter.**
> >>>>  doFilter(FileUploadFilter.****java:78)
> >>>>
> >>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>
> > com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
> >>>>
> >>>>  CharsetEncodingFilter.java:30)
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>  com.clevercure.web.core.****filter.UserFilter.doFilter(****
> >>>>  UserFilter.java:42)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>
> > com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
> >>>>  doFilter(
> >>>>  **IbmApplicationSessionFilter.****java:25)
> >>>>
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
> >>>>  doFilter(WebAppFilterManager.****java:919)
> >>>>
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
> >>>>  invokeFilters(**
> >>>>
> >>>>  WebAppFilterManager.java:1016)
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
> >>>>  handleRequest(**
> >>>>
> >>>>  CacheServletWrapper.java:87)
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
> >>>>
> >>>>  WebContainer.java:895)
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
> >>>>
> >>>>  WSWebContainer.java:1662)
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
> >>>>
> >>>>  WCChannelLink.java:195)
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
> >>>>  handleDiscrimination(****HttpInboundLink.java:452)
> >>>>
> >>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>  *handleNewRequest(
> >>>>  **HttpInboundLink.java:511)
> >>>>
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>  *processRequest(**
> >>>>
> >>>>  HttpInboundLink.java:305)
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.****
> >>>>  HttpICLReadCallback.complete(****
> >>>>
> >>>>  HttpICLReadCallback.java:83)
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
> >>>>  futureCompleted(
> >>>>  **AioReadCompletionListener.****java:165)
> >>>>
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
> >>>>
> >>>>  AbstractAsyncFuture.java:217)
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
> >>>>
> >>>>  AsyncChannelFuture.java:161)
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
> >>>>
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
> >>>>
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
> >>>>
> >>>>  ResultHandler.java:775)
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
> >>>>
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
> >>>>
> >>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
> >>>>  java.lang.NullPointerException
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
> >>>>  ViewAccessConversationExpirati****onEvaluator.java:114)
> >>>>
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  ViewAccessConversationExpirati****onEvaluator.touch(**
> >>>>  ViewAccessConversationExpirati****onEvaluator.java:100)
> >>>>
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  DefaultConversation.****touchConversation(****
> >>>>  DefaultConversation.java:201)
> >>>>
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  DefaultConversation.addBean(****DefaultConversation.java:177)
> >>>>
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  GroupedConversationContext.****scopeBeanEntry(****
> >>>>  GroupedConversationContext.*
> >>>>
> >>>>  *java:204)
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>  conversation.**
> >>>>  AbstractGroupedConversationCon****text.create(**
> >>>>  AbstractGroupedConversationCon****text.java:98)
> >>>>
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>  conversation.**
> >>>>
> > ConversationContextAdapter.****get(****ConversationContextAdapter.****
> >>>>  java:81)
> >>>>
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.webbeans.context.****CustomContextImpl.get(**
> >>>>
> >>>>  CustomContextImpl.java:43)
> >>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
> >>>>  CustomPassivatingContextImpl.****java:41)
> >>>>
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
> >>>>  dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
> >>>>
> >>>>  dler.java:135)
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
> >>>>  dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
> >>>>
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>  com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
> >>>>
> > _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
> >>>>  _javassist_920.java)
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>  sun.reflect.**
> >>>>  NativeMethodAccessorImpl.****invoke0(Native Method)
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>  sun.reflect.**
> >>>>
> > NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
> >>>>  **60)
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>  sun.reflect.**
> >>>>  DelegatingMethodAccessorImpl.****invoke(****
> >>>>  DelegatingMethodAccessorImpl.****
> >>>>
> >>>>  java:37)
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>  java.lang.reflect.Method.****invoke(Method.java:611)
> >>>>
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
> >>>>
> >>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47
> > more
> >>>>  [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
> >>>>  javax.el.ELException:
> >>>>  Error reading 'companyLogo' on type
> > com.clevercure.web.sob.bean.**
> >>>>  SobSupplierRegistrationBean_$$****_javassist_920
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
> >>>>  **java:55)
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.myfaces.el.unified.****resolver.****
> >>>>  FacesCompositeELResolver.**
> >>>>  getValue(****FacesCompositeELResolver.java:****142)
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.el.
> >>>>  **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
> >>>>  WrappedValueExpression.java:****68)
> >>>>
> >>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>  org.primefaces.application.****PrimeResourceHandler.****
> >>>>  handleResourceRequest(
> >>>>  **PrimeResourceHandler.java:**75)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  javax.faces.application.****ResourceHandlerWrapper.****
> >>>>  handleResourceRequest(*
> >>>>  *ResourceHandlerWrapper.java:****62)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>
> > javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>  service(ServletWrapper.java:****1188)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>  handleRequest(ServletWrapper.****java:763)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>  handleRequest(ServletWrapper.****java:454)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
> >>>>  handleRequest(**
> >>>>
> >>>>  ServletWrapperImpl.java:178)
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
> >>>>
> >>>>  WebAppFilterChain.java:125)
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:92)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.clevercure.web.core.****filter.FileUploadFilter.**
> >>>>  doFilter(FileUploadFilter.****java:78)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
> >>>>
> >>>>  CharsetEncodingFilter.java:30)
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>  com.clevercure.web.core.****filter.UserFilter.doFilter(****
> >>>>  UserFilter.java:42)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
> >>>>  doFilter(
> >>>>  **IbmApplicationSessionFilter.****java:25)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
> >>>>  FilterInstanceWrapper.java:****192)
> >>>>
> >>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>  doFilter(WebAppFilterChain.****java:89)
> >>>>
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
> >>>>  doFilter(WebAppFilterManager.****java:919)
> >>>>
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
> >>>>  invokeFilters(**
> >>>>
> >>>>  WebAppFilterManager.java:1016)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
> >>>>  handleRequest(**
> >>>>
> >>>>  CacheServletWrapper.java:87)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
> >>>>
> >>>>  WebContainer.java:895)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
> >>>>
> >>>>  WSWebContainer.java:1662)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
> >>>>
> >>>>  WCChannelLink.java:195)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
> >>>>  handleDiscrimination(****HttpInboundLink.java:452)
> >>>>
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>  *handleNewRequest(
> >>>>  **HttpInboundLink.java:511)
> >>>>
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>  *processRequest(**
> >>>>
> >>>>  HttpInboundLink.java:305)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.http.channel.****inbound.impl.****
> >>>>  HttpICLReadCallback.complete(****
> >>>>
> >>>>  HttpICLReadCallback.java:83)
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
> >>>>  futureCompleted(
> >>>>  **AioReadCompletionListener.****java:165)
> >>>>
> >>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
> >>>>
> >>>>  AbstractAsyncFuture.java:217)
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
> >>>>
> >>>>  AsyncChannelFuture.java:161)
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
> >>>>
> >>>>  ResultHandler.java:775)
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>  com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
> >>>>  java.lang.NullPointerException
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
> >>>>  ViewAccessConversationExpirati****onEvaluator.java:114)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  ViewAccessConversationExpirati****onEvaluator.touch(**
> >>>>  ViewAccessConversationExpirati****onEvaluator.java:100)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  DefaultConversation.****touchConversation(****
> >>>>  DefaultConversation.java:201)
> >>>>
> >>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  DefaultConversation.addBean(****DefaultConversation.java:177)
> >>>>
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
> >>>>  GroupedConversationContext.****scopeBeanEntry(****
> >>>>  GroupedConversationContext.*
> >>>>
> >>>>  *java:204)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>  conversation.**
> >>>>  AbstractGroupedConversationCon****text.create(**
> >>>>  AbstractGroupedConversationCon****text.java:98)
> >>>>
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>  conversation.**
> >>>>
> > ConversationContextAdapter.****get(****ConversationContextAdapter.****
> >>>>  java:81)
> >>>>
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  org.apache.webbeans.context.****CustomContextImpl.get(**
> >>>>
> >>>>  CustomContextImpl.java:43)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
> >>>>  CustomPassivatingContextImpl.****java:41)
> >>>>
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
> >>>>  dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
> >>>>
> >>>>  dler.java:135)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>
> > org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
> >>>>  dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
> >>>>
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
> >>>>
> > _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
> >>>>  _javassist_920.java)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  sun.reflect.**
> >>>>  NativeMethodAccessorImpl.****invoke0(Native Method)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  sun.reflect.**
> >>>>
> > NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
> >>>>  **60)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  sun.reflect.**
> >>>>  DelegatingMethodAccessorImpl.****invoke(****
> >>>>  DelegatingMethodAccessorImpl.****
> >>>>
> >>>>  java:37)
> >>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>  java.lang.reflect.Method.****invoke(Method.java:611)
> >>>>
> >>>>  [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
> >>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
> >>>>
> >>>>  [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47
> > more
> >>>>
> >>>>
> >
>

RE: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by "Carlson, John W." <ca...@llnl.gov>.
Looks like it is available.  I guess the task is to make it work.

John
________________________________________
From: owner-java@lists.llnl.gov [owner-java@lists.llnl.gov] On Behalf Of Carlson, John W. [carlson14@llnl.gov]
Sent: Thursday, February 16, 2012 1:36 PM
To: MyFaces Discussion; Mark Struberg
Cc: Java Programmers List
Subject: [java] RE: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Uh, are you guys saying the FacesContext isn't available in a ResourceHandler?  If it's not available, this is a major pain for people with dynamic resource generation.  Essentially, one would have to pass all the necessary information through the URL, or through a non-JSF session.

I realize that static resource generation is more desirable, and that we're moving towards HTML5 with dynamic stuff happening on the browser.

If this is not fixed with JSF2, then I would say my statement about JSF not being suitable for a readonly/downloads application is still valid.

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Mark Struberg <st...@yahoo.de>.
The problem with the mechanism introduced in JSF-2.0 is to rely on Expression Language evaluation for the dynamic parts. But that doesn't perform well so the JSF containers serve it with a cache header. Please checkout Jakobs enhanced resource handler [1] (especially the Requirements Wiki page) and based on it the myfaces-commons-resourcehandler [2] . It's pluggable.
The issue should be fixed in JSF-2.2 (or latest 2.3, not sure if Ed has it on the schedule already).

LieGrue,
strub


[1] http://www.jakobk.com/2011/11/bachelor-thesis-about-relative-resource-handler
[2] https://cwiki.apache.org/MYFACES/myfaces-commons-resourcehandler.html



----- Original Message -----
> From: "Carlson, John W." <ca...@llnl.gov>
> To: MyFaces Discussion <us...@myfaces.apache.org>; Mark Struberg <st...@yahoo.de>
> Cc: Java Programmers List <ja...@llnl.gov>
> Sent: Thursday, February 16, 2012 10:36 PM
> Subject: RE: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression
> 
> Uh, are you guys saying the FacesContext isn't available in a 
> ResourceHandler?  If it's not available, this is a major pain for people 
> with dynamic resource generation.  Essentially, one would have to pass all the 
> necessary information through the URL, or through a non-JSF session.
> 
> I realize that static resource generation is more desirable, and that we're 
> moving towards HTML5 with dynamic stuff happening on the browser.
> 
> If this is not fixed with JSF2, then I would say my statement about JSF not 
> being suitable for a readonly/downloads application is still valid.
> 

RE: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by "Carlson, John W." <ca...@llnl.gov>.
Uh, are you guys saying the FacesContext isn't available in a ResourceHandler?  If it's not available, this is a major pain for people with dynamic resource generation.  Essentially, one would have to pass all the necessary information through the URL, or through a non-JSF session.

I realize that static resource generation is more desirable, and that we're moving towards HTML5 with dynamic stuff happening on the browser.

If this is not fixed with JSF2, then I would say my statement about JSF not being suitable for a readonly/downloads application is still valid.

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Mark Struberg <st...@yahoo.de>.
Hi!

> the short answer is: no - it was never intended to support it.
+1

To add a bit more info. This is not even intended/supported by JSF. You would need to hit the server for each and every css, img, js, etc served as resource. No caching on the browser side would be possible! By default all JSF containers I know set the expires to +2 weeks. So even if you would distinguish e.g. the language on the resource side, you would only resolve it for the very first page hit! All subsequent language changes would be ignored.

Jakob started a more advanced resource handler and a modified version of it is also in the myfaces shared project.

http://www.jakobk.com/2011/11/bachelor-thesis-about-relative-resource-handler/

Jakob and Leo are also JSF Expert Group members and are actively pushing this in the JSF-2.2 spec.

LieGrue,
strub




----- Original Message -----
> From: Gerhard Petracek <ge...@gmail.com>
> To: MyFaces Discussion <us...@myfaces.apache.org>
> Cc: 
> Sent: Thursday, February 16, 2012 5:05 PM
> Subject: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression
> 
> hi christian,
> 
> the short answer is: no - it was never intended to support it.
> however, if you provide an use-case which isn't supported, we will discuss
> it.
> 
> regards,
> gerhard
> 
> http://www.irian.at
> 
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 
> 
> 2012/2/16 Christian Beikov <c....@curecomp.com>
> 
>>  The more concrete question on the problem i face would probably be:
>> 
>>  Is the ViewAccessScope designed to work for a JSF ResourceHandler which is
>>  called instead of the normal JSF Lifecycle? None of the JSF Phases is
>>  executed when a ResourceHandler is invoked, so would it actually be
>>  possible that the VIewAccessScope could work?
>> 
>>  Resolving a bean within a ResourceHandler is probably not a big thing and
>>  should not cause problems. Maybe the primefaces implementation is just
>>  wrong to put the evaluation out of the JSF Phases and should use a
>>  PhaseListener instead? I am pretty sure that the evaluation would work when
>>  it was done within a PhaseListener, correct me if I am wrong.
>> 
>>  Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>> 
>>>  hi christian,
>>> 
>>>  a workaround would be an own ConversationFactory - but that means a lot 
> of
>>>  work.
>>>  since the myfaces codi conversation scopes (the view-access scope is 
> just
>>>  a
>>>  special conversation type) are bound to jsf by default, it wasn't 
> intended
>>>  to support access outside of the jsf request-lifecycle.
>>>  however, you can checkout the source-code [1], fix it and check if the
>>>  rest
>>>  would work as needed for your use-case (and provide the patch 
> afterwards).
>>>  or you provide a simple demo which shows the issue and we will do the
>>>  rest.
>>> 
>>>  regards,
>>>  gerhard
>>> 
>>>  [1] 
> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>> 
>>>  http://www.irian.at
>>> 
>>>  Your JSF/JavaEE powerhouse -
>>>  JavaEE Consulting, Development and
>>>  Courses in English and German
>>> 
>>>  Professional Support for Apache MyFaces
>>> 
>>> 
>>> 
>>>  2012/2/16 Christian Beikov<c....@curecomp.com>
>>> 
>>>   Hello there!
>>>> 
>>>>  I have a problem with the CODI JSF Scope ViewAccessScope and the
>>>>  PrimeFaces ResourceHandler.
>>>> 
>>>>  Primefaces evaluates a value expression within the resource handler 
> to
>>>>  retrieve dynamic content, why and how is not important. The fact 
> is, that
>>>>  the ResourceHandler is called before everything else within the JSF
>>>>  Lifecycle.
>>>> 
>>>>  I am using the ViewAccessScope for the bean which should be 
> evaluated
>>>>  with
>>>>  the value expression within the ResourceHandler. I debugged into it 
> and
>>>>  found out that 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>>  conversation.****ViewAccessConversationExpirati****onEvaluator 
> tries to
>>>> 
>>>>  retrieve the view root of the FacesContext or more exactly the view 
> id of
>>>>  it. The problem is, that the view root is null at that time, so the
>>>>  evaluation ends with a NullPointerException in a CODI class.
>>>> 
>>>>  Who is responsible for this issue? Can anyone suggest me a 
> workaround?
>>>> 
>>>>  I am using:
>>>> 
>>>>   * Websphere 8.0.0.2
>>>>   * MyFaces, the version shipped with Websphere
>>>>   * CODI 1.0.1
>>>>   * Primefaces 3.1.1
>>>> 
>>>>  Here is the full stacktrace:
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>  javax.el.ELException:
>>>>  Error reading 'companyLogo' on type 
> com.clevercure.web.sob.bean.**
>>>>  SobSupplierRegistrationBean_$$****_javassist_920
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>  javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>  **java:55)
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>  org.apache.myfaces.el.unified.****resolver.****
>>>>  FacesCompositeELResolver.**
>>>>  getValue(****FacesCompositeELResolver.java:****142)
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>  org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>  org.apache.el.
>>>>  **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>> 
>>>>  [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>  org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>  WrappedValueExpression.java:****68)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  org.primefaces.application.****PrimeResourceHandler.****
>>>>  handleResourceRequest(
>>>>  **PrimeResourceHandler.java:**75)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  javax.faces.application.****ResourceHandlerWrapper.****
>>>>  handleResourceRequest(*
>>>>  *ResourceHandlerWrapper.java:****62)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> 
> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>  service(ServletWrapper.java:****1188)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>  handleRequest(ServletWrapper.****java:763)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>  handleRequest(ServletWrapper.****java:454)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>  handleRequest(**
>>>> 
>>>>  ServletWrapperImpl.java:178)
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
>>>> 
>>>>  WebAppFilterChain.java:125)
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:92)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>  com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>  doFilter(FileUploadFilter.****java:78)
>>>> 
>>>>  [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> 
> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
>>>> 
>>>>  CharsetEncodingFilter.java:30)
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> 
> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>  com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>  UserFilter.java:42)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> 
> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
>>>>  doFilter(
>>>>  **IbmApplicationSessionFilter.****java:25)
>>>> 
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>  doFilter(WebAppFilterManager.****java:919)
>>>> 
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>  invokeFilters(**
>>>> 
>>>>  WebAppFilterManager.java:1016)
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>  handleRequest(**
>>>> 
>>>>  CacheServletWrapper.java:87)
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>> 
>>>>  WebContainer.java:895)
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>> 
>>>>  WSWebContainer.java:1662)
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>> 
>>>>  WCChannelLink.java:195)
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>  handleDiscrimination(****HttpInboundLink.java:452)
>>>> 
>>>>  [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>  *handleNewRequest(
>>>>  **HttpInboundLink.java:511)
>>>> 
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>  *processRequest(**
>>>> 
>>>>  HttpInboundLink.java:305)
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.****
>>>>  HttpICLReadCallback.complete(****
>>>> 
>>>>  HttpICLReadCallback.java:83)
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>  futureCompleted(
>>>>  **AioReadCompletionListener.****java:165)
>>>> 
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>> 
>>>>  AbstractAsyncFuture.java:217)
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
>>>> 
>>>>  AsyncChannelFuture.java:161)
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
>>>> 
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
>>>> 
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>> 
>>>>  ResultHandler.java:775)
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
>>>> 
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>> 
>>>>  [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>  java.lang.NullPointerException
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>>  ViewAccessConversationExpirati****onEvaluator.java:114)
>>>> 
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>  ViewAccessConversationExpirati****onEvaluator.java:100)
>>>> 
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  DefaultConversation.****touchConversation(****
>>>>  DefaultConversation.java:201)
>>>> 
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  DefaultConversation.addBean(****DefaultConversation.java:177)
>>>> 
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  GroupedConversationContext.****scopeBeanEntry(****
>>>>  GroupedConversationContext.*
>>>> 
>>>>  *java:204)
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>  conversation.**
>>>>  AbstractGroupedConversationCon****text.create(**
>>>>  AbstractGroupedConversationCon****text.java:98)
>>>> 
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>  conversation.**
>>>> 
> ConversationContextAdapter.****get(****ConversationContextAdapter.****
>>>>  java:81)
>>>> 
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>  org.apache.webbeans.context.****CustomContextImpl.get(**
>>>> 
>>>>  CustomContextImpl.java:43)
>>>>  [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
>>>>  CustomPassivatingContextImpl.****java:41)
>>>> 
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>>  dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>> 
>>>>  dler.java:135)
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>>  dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>> 
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>  com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>> 
> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
>>>>  _javassist_920.java)
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>  sun.reflect.**
>>>>  NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>  sun.reflect.**
>>>> 
> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
>>>>  **60)
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>  sun.reflect.**
>>>>  DelegatingMethodAccessorImpl.****invoke(****
>>>>  DelegatingMethodAccessorImpl.****
>>>> 
>>>>  java:37)
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>  java.lang.reflect.Method.****invoke(Method.java:611)
>>>> 
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>> 
>>>>  [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 
> more
>>>>  [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>  javax.el.ELException:
>>>>  Error reading 'companyLogo' on type 
> com.clevercure.web.sob.bean.**
>>>>  SobSupplierRegistrationBean_$$****_javassist_920
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>  **java:55)
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  org.apache.myfaces.el.unified.****resolver.****
>>>>  FacesCompositeELResolver.**
>>>>  getValue(****FacesCompositeELResolver.java:****142)
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  org.apache.el.
>>>>  **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>  WrappedValueExpression.java:****68)
>>>> 
>>>>  [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>  org.primefaces.application.****PrimeResourceHandler.****
>>>>  handleResourceRequest(
>>>>  **PrimeResourceHandler.java:**75)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  javax.faces.application.****ResourceHandlerWrapper.****
>>>>  handleResourceRequest(*
>>>>  *ResourceHandlerWrapper.java:****62)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> 
> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>  service(ServletWrapper.java:****1188)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>  handleRequest(ServletWrapper.****java:763)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>  handleRequest(ServletWrapper.****java:454)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>  handleRequest(**
>>>> 
>>>>  ServletWrapperImpl.java:178)
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
>>>> 
>>>>  WebAppFilterChain.java:125)
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:92)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>  doFilter(FileUploadFilter.****java:78)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
>>>> 
>>>>  CharsetEncodingFilter.java:30)
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>  com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>  UserFilter.java:42)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
>>>>  doFilter(
>>>>  **IbmApplicationSessionFilter.****java:25)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>>  FilterInstanceWrapper.java:****192)
>>>> 
>>>>  [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>  doFilter(WebAppFilterChain.****java:89)
>>>> 
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>  doFilter(WebAppFilterManager.****java:919)
>>>> 
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>  invokeFilters(**
>>>> 
>>>>  WebAppFilterManager.java:1016)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>  handleRequest(**
>>>> 
>>>>  CacheServletWrapper.java:87)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>> 
>>>>  WebContainer.java:895)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>> 
>>>>  WSWebContainer.java:1662)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>> 
>>>>  WCChannelLink.java:195)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>  handleDiscrimination(****HttpInboundLink.java:452)
>>>> 
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>  *handleNewRequest(
>>>>  **HttpInboundLink.java:511)
>>>> 
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>  *processRequest(**
>>>> 
>>>>  HttpInboundLink.java:305)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.http.channel.****inbound.impl.****
>>>>  HttpICLReadCallback.complete(****
>>>> 
>>>>  HttpICLReadCallback.java:83)
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>  futureCompleted(
>>>>  **AioReadCompletionListener.****java:165)
>>>> 
>>>>  [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>> 
>>>>  AbstractAsyncFuture.java:217)
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
>>>> 
>>>>  AsyncChannelFuture.java:161)
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>> 
>>>>  ResultHandler.java:775)
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>  com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>  java.lang.NullPointerException
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>>  ViewAccessConversationExpirati****onEvaluator.java:114)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>  ViewAccessConversationExpirati****onEvaluator.java:100)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  DefaultConversation.****touchConversation(****
>>>>  DefaultConversation.java:201)
>>>> 
>>>>  [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  DefaultConversation.addBean(****DefaultConversation.java:177)
>>>> 
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>>  GroupedConversationContext.****scopeBeanEntry(****
>>>>  GroupedConversationContext.*
>>>> 
>>>>  *java:204)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>  conversation.**
>>>>  AbstractGroupedConversationCon****text.create(**
>>>>  AbstractGroupedConversationCon****text.java:98)
>>>> 
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>  conversation.**
>>>> 
> ConversationContextAdapter.****get(****ConversationContextAdapter.****
>>>>  java:81)
>>>> 
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  org.apache.webbeans.context.****CustomContextImpl.get(**
>>>> 
>>>>  CustomContextImpl.java:43)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
>>>>  CustomPassivatingContextImpl.****java:41)
>>>> 
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>>  dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>> 
>>>>  dler.java:135)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> 
> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>>  dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>> 
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>> 
> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
>>>>  _javassist_920.java)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  sun.reflect.**
>>>>  NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  sun.reflect.**
>>>> 
> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
>>>>  **60)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  sun.reflect.**
>>>>  DelegatingMethodAccessorImpl.****invoke(****
>>>>  DelegatingMethodAccessorImpl.****
>>>> 
>>>>  java:37)
>>>>  [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>  java.lang.reflect.Method.****invoke(Method.java:611)
>>>> 
>>>>  [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>  javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>> 
>>>>  [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 
> more
>>>> 
>>>> 
> 

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

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

you are welcome & thx for sharing the link with the community.
it looks like the status of the ticket didn't change -> i hope they will
include your fix, because it looks like several users would like to use
such a feature.

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces


2012/2/17 Christian Beikov <c....@curecomp.com>

> Thank you gerhard, your suggestion, to save the viewId, worked perfectly!!!
>
> I want to share my final solution, just implemented it and tested through.
> I hope Primefaces will include the changes in a future version.
>
> You can find the final version of my files here: http://code.google.com/p/
> **primefaces/issues/detail?id=**3549<http://code.google.com/p/primefaces/issues/detail?id=3549>
>
> regards,
> Christian
>
> Am 17.02.2012 10:05, schrieb Gerhard Petracek:
>
>  hi @ all,
>>
>> actually the view-access scope is very different from the view-scope.
>> it just needs the window-id as well as the view-id (a restored view is not
>> needed).
>>
>> that means a custom implementation of ResourceHandler#**
>> handleResourceRequest
>> just has to call:
>>
>> facesContext.setViewRoot(**facesContext.getApplication().**
>> getViewHandler().createView(**facesContext,
>> viewId));
>> at the beginning.
>>
>> besides passing the view-id via an url-parameter, it's possible to
>> calculate it (e.g. based on the referer-url which is always the original
>> page with your use-case - otherwise there won't be a valid window).
>>
>> so it would be pretty easy for primefaces to support it.
>>
>> regards,
>> gerhard
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>> 2012/2/17 Thomas Kernstock<t....@e-technologies.at>
>> >
>>
>>  Hi Christian,
>>>
>>> You say:
>>>
>>> * PhaseListener implementation that acts after RESTORE_VIEW that
>>>    catches the dynamic content request and streams back the content
>>>    just like the resource handler of primefaces does
>>>
>>> This was the solution for Primefaces 2.++ where I simply implemented my
>>> own
>>> DynamicContentStreamer just moving all code from beforePhase() to
>>> afterPhase(). This was the only change needed to make ViewAccessScope
>>> work.
>>> Unfortunately the DynamicContentStreamer isn't used anymore in version
>>> 3.+
>>> :-(
>>>
>>> I really would appreciate if you could post your solution for that
>>> problem
>>> (and I guess not only me but a couple of other people :-))
>>>
>>> best regards
>>> Thomas
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
>>> Gesendet: Freitag, 17. Februar 2012 09:31
>>> An: MyFaces Discussion
>>> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
>>> ValueExpression
>>>
>>> Hi Thomas!
>>>
>>> This is probably already out of topic, but the main reason for the
>>> problem
>>> is, that the scope is just not available if the view restore phase is not
>>> completed.
>>> My current solution is:
>>>
>>>  * Own GraphicImageRenderer implementation that uses
>>>    ViewHandler.getActionURL(**resourcePath) to add the viewId to the
>>>    image URL, then add the rest of the parameters needed for dynamic
>>>    content
>>>  * Own ResourceHandler implementation that overrides
>>>    isResourceRequest() and returns false if the resource request is a
>>>    request for the dynamic content
>>>  * PhaseListener implementation that acts after RESTORE_VIEW that
>>>    catches the dynamic content request and streams back the content
>>>    just like the resource handler of primefaces does
>>>
>>> It's not fully tested yet, but as soon as I have something to show I will
>>> let you know and also post my solution for discussion on the forum and
>>> the
>>> issue tracker.
>>>
>>> regards,
>>>
>>> Christian
>>>
>>> Am 17.02.2012 09:21, schrieb Thomas Kernstock:
>>>
>>>> Hi Christian,
>>>>
>>>> I have the same problem using Primefaces. Since updating to Primefaces
>>>> 3.++ the @ViewAccessScope isn't working anymore. Dynamic Image
>>>> unfortunately works only with SessionScope.
>>>> Here is the forum thread ->
>>>> http://forum.primefaces.org/**viewtopic.php?f=3&t=17609&p=**
>>>> 54313#p54313<http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313>
>>>>
>>>> Cagatay knows that problem but it seems it can't be fixed ->   check
>>>> out these
>>>> issues:
>>>>
>>>> http://code.google.com/p/**primefaces/issues/detail?id=**
>>>> 1877&can=1&q=dyna<http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dyna>
>>>> mic%20
>>>> image&colspec=ID%20Stars%**20Type%20Status%20Priority%**
>>>> 20TargetVersion%20
>>>> Report
>>>> er%20Owner%20Summary
>>>> http://code.google.com/p/**primefaces/issues/detail?id=**
>>>> 2768&can=1&q=dyna<http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dyna>
>>>> mic%20
>>>> image&colspec=ID%20Stars%**20Type%20Status%20Priority%**
>>>> 20TargetVersion%20
>>>> Report
>>>> er%20Owner%20Summary
>>>>
>>>> It's even written in the Primefaces manual on page 197. Quote:
>>>>
>>>> "As a result there will be 2 requests to display an image, first
>>>> browser will make a request to load the page and then another one to
>>>> the dynamic image url that points to JSF resource handler. Please note
>>>> that you cannot use viewscope beans as viewscoped bean is not
>>>> available in resource loading request."
>>>>
>>>> best regards
>>>>
>>>> Thomas
>>>>
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
>>>> Gesendet: Donnerstag, 16. Februar 2012 17:09
>>>> An: MyFaces Discussion
>>>> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
>>>> ValueExpression
>>>>
>>>> Thank you very much gerhard!
>>>>
>>>> I just implemented a test for the problem I face and in fact,
>>>> primefaces did something very wrong. Even the standard ViewScope is,
>>>> as expected, not supported.
>>>>
>>>> I appreciate your fast response time, CODI FTW! ;)
>>>>
>>>> Am 16.02.2012 17:05, schrieb Gerhard Petracek:
>>>>
>>>>> hi christian,
>>>>>
>>>>> the short answer is: no - it was never intended to support it.
>>>>> however, if you provide an use-case which isn't supported, we will
>>>>> discuss it.
>>>>>
>>>>> regards,
>>>>> gerhard
>>>>>
>>>>> http://www.irian.at
>>>>>
>>>>> Your JSF/JavaEE powerhouse -
>>>>> JavaEE Consulting, Development and
>>>>> Courses in English and German
>>>>>
>>>>> Professional Support for Apache MyFaces
>>>>>
>>>>>
>>>>>
>>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>>
>>>>>  The more concrete question on the problem i face would probably be:
>>>>>>
>>>>>> Is the ViewAccessScope designed to work for a JSF ResourceHandler
>>>>>> which is called instead of the normal JSF Lifecycle? None of the JSF
>>>>>> Phases is executed when a ResourceHandler is invoked, so would it
>>>>>> actually be possible that the VIewAccessScope could work?
>>>>>>
>>>>>> Resolving a bean within a ResourceHandler is probably not a big
>>>>>> thing and should not cause problems. Maybe the primefaces
>>>>>> implementation is just wrong to put the evaluation out of the JSF
>>>>>> Phases and should use a PhaseListener instead? I am pretty sure that
>>>>>> the evaluation would work when it was done within a PhaseListener,
>>>>>>
>>>>> correct me if I am wrong.
>>>
>>>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>>>>>
>>>>>>  hi christian,
>>>>>>>
>>>>>>> a workaround would be an own ConversationFactory - but that means a
>>>>>>> lot of work.
>>>>>>> since the myfaces codi conversation scopes (the view-access scope
>>>>>>> is just a special conversation type) are bound to jsf by default,
>>>>>>> it wasn't intended to support access outside of the jsf
>>>>>>> request-lifecycle.
>>>>>>> however, you can checkout the source-code [1], fix it and check if
>>>>>>> the rest would work as needed for your use-case (and provide the
>>>>>>> patch afterwards).
>>>>>>> or you provide a simple demo which shows the issue and we will do
>>>>>>> the rest.
>>>>>>>
>>>>>>> regards,
>>>>>>> gerhard
>>>>>>>
>>>>>>> [1]
>>>>>>> https://svn.apache.org/repos/****asf/myfaces/extensions/cdi/****
>>>>>>> trunk/<https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/>
>>>>>>> <
>>>>>>> h ttps://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<http://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>>>>> >
>>>>>>>
>>>>>>> http://www.irian.at
>>>>>>>
>>>>>>> Your JSF/JavaEE powerhouse -
>>>>>>> JavaEE Consulting, Development and
>>>>>>> Courses in English and German
>>>>>>>
>>>>>>> Professional Support for Apache MyFaces
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>>>>
>>>>>>>    Hello there!
>>>>>>>
>>>>>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>>>>>>>> PrimeFaces ResourceHandler.
>>>>>>>>
>>>>>>>> Primefaces evaluates a value expression within the resource
>>>>>>>> handler to retrieve dynamic content, why and how is not important.
>>>>>>>> The fact is, that the ResourceHandler is called before everything
>>>>>>>> else within the JSF Lifecycle.
>>>>>>>>
>>>>>>>> I am using the ViewAccessScope for the bean which should be
>>>>>>>> evaluated with the value expression within the ResourceHandler. I
>>>>>>>> debugged into it and found out that
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.**
>>>>>>>> conversation.******ViewAccessConversationExpirati******onEvaluator
>>>>>>>> tries to
>>>>>>>>
>>>>>>>> retrieve the view root of the FacesContext or more exactly the
>>>>>>>> view id of it. The problem is, that the view root is null at that
>>>>>>>> time, so the evaluation ends with a NullPointerException in a CODI
>>>>>>>>
>>>>>>> class.
>>>
>>>>  Who is responsible for this issue? Can anyone suggest me a
>>>>>>>>
>>>>>>> workaround?
>>>
>>>>  I am using:
>>>>>>>>
>>>>>>>>    * Websphere 8.0.0.2
>>>>>>>>    * MyFaces, the version shipped with Websphere
>>>>>>>>    * CODI 1.0.1
>>>>>>>>    * Primefaces 3.1.1
>>>>>>>>
>>>>>>>> Here is the full stacktrace:
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>>>>> javax.el.ELException:
>>>>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>>>>> SobSupplierRegistrationBean_$$******_javassist_920
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:***
>>>>>>>> ***93)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.el.CompositeELResolver.******getValue(**
>>>>>>>> CompositeELResolver.**
>>>>>>>> **java:55)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.el.unified.******resolver.****
>>>>>>>> FacesCompositeELResolver.**
>>>>>>>> getValue(******FacesCompositeELResolver.java:******142)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.el.parser.AstValue.******getValue(AstValue.java:**169)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.el.
>>>>>>>> **ValueExpressionImpl.****getValue(******
>>>>>>>> ValueExpressionImpl.java:283)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.el.******WrappedValueExpression.******
>>>>>>>> getValue(**
>>>>>>>> WrappedValueExpression.java:******68)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> org.primefaces.application.******PrimeResourceHandler.****
>>>>>>>> handleResourceRequest(
>>>>>>>> **PrimeResourceHandler.java:****75)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.faces.application.******ResourceHandlerWrapper.****
>>>>>>>> handleResourceRequest(*
>>>>>>>> *ResourceHandlerWrapper.java:******62)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.faces.webapp.******FacesServlet.service(******
>>>>>>>> FacesServlet.java:
>>>>>>>> 1
>>>>>>>> 83)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>>>>> service(ServletWrapper.java:******1188)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>>>>> handleRequest(ServletWrapper.******java:763)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>>>>> handleRequest(ServletWrapper.******java:454)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapperImpl.******
>>>>>>>> handleRequest(**
>>>>>>>>
>>>>>>>> ServletWrapperImpl.java:178)
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.******
>>>>>>>> invokeTar
>>>>>>>> g
>>>>>>>> et(**
>>>>>>>>
>>>>>>>> WebAppFilterChain.java:125)
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:92)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.FileUploadFilter.**
>>>>>>>> doFilter(FileUploadFilter.******java:78)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.CharsetEncodingFilter.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>>
>>>>>>>> CharsetEncodingFilter.java:30)
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ocpsoft.pretty.******PrettyFilter.doFilter(******
>>>>>>>> PrettyFilter.java:
>>>>>>>> 115)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.UserFilter.doFilter(******
>>>>>>>> UserFilter.java:42)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.******
>>>>>>>> IbmApplicationSessionFilter.
>>>>>>>> ****
>>>>>>>> doFilter(
>>>>>>>> **IbmApplicationSessionFilter.******java:25)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.**
>>>>>>>> doFilter(WebAppFilterManager.******java:919)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.******
>>>>>>>> invokeFilters(**
>>>>>>>>
>>>>>>>> WebAppFilterManager.java:1016)
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.CacheServletWrapper.******
>>>>>>>> handleRequest(**
>>>>>>>>
>>>>>>>> CacheServletWrapper.java:87)
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******WebContainer.handleRequest(**
>>>>>>>>
>>>>>>>> WebContainer.java:895)
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******WSWebContainer.handleRequest(******
>>>>>>>>
>>>>>>>> WSWebContainer.java:1662)
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******channel.WCChannelLink.ready(**
>>>>>>>>
>>>>>>>> WCChannelLink.java:195)
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.******
>>>>>>>> handleDiscrimination(******HttpInboundLink.java:452)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>>>> *handleNewRequest(
>>>>>>>> **HttpInboundLink.java:511)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>>>> *processRequest(**
>>>>>>>>
>>>>>>>> HttpInboundLink.java:305)
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.****
>>>>>>>> HttpICLReadCallback.complete(******
>>>>>>>>
>>>>>>>> HttpICLReadCallback.java:83)
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.tcp.channel.impl.******AioReadCompletionListener.******
>>>>>>>> futureCompleted(
>>>>>>>> **AioReadCompletionListener.******java:165)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******AbstractAsyncFuture.******invokeCallback(**
>>>>>>>>
>>>>>>>> AbstractAsyncFuture.java:217)
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******AsyncChannelFuture.******
>>>>>>>> fireCompletionActions(
>>>>>>>> *
>>>>>>>> *
>>>>>>>>
>>>>>>>> AsyncChannelFuture.java:161)
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.AsyncFuture.******completed(AsyncFuture.java:**
>>>>>>>> ****13
>>>>>>>> 8
>>>>>>>> )
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******ResultHandler.complete(******
>>>>>>>> ResultHandler.java:
>>>>>>>> 204)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******ResultHandler.******
>>>>>>>> runEventProcessingLoop(**
>>>>>>>>
>>>>>>>> ResultHandler.java:775)
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******ResultHandler$2.run(******
>>>>>>>> ResultHandler.java:90
>>>>>>>> 5
>>>>>>>> )
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.util.ThreadPool$******Worker.run(ThreadPool.java:****
>>>>>>>> **1659
>>>>>>>> )
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>>>>> java.lang.NullPointerException
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.****
>>>>>>>> getCurrentViewId(*
>>>>>>>> *
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.java:114)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.touch(**
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.java:100)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> DefaultConversation.******touchConversation(****
>>>>>>>> DefaultConversation.java:201)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> DefaultConversation.addBean(******DefaultConversation.java:**177)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> GroupedConversationContext.******scopeBeanEntry(****
>>>>>>>> GroupedConversationContext.*
>>>>>>>>
>>>>>>>> *java:204)
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>>>>> conversation.**
>>>>>>>> AbstractGroupedConversationCon******text.create(**
>>>>>>>> AbstractGroupedConversationCon******text.java:98)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>>>>> conversation.**
>>>>>>>> ConversationContextAdapter.******get(******
>>>>>>>> ConversationContextAdapter.
>>>>>>>> *
>>>>>>>> ***
>>>>>>>> java:81)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.context.******CustomContextImpl.get(**
>>>>>>>>
>>>>>>>> CustomContextImpl.java:43)
>>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.context.********CustomPassivatingContextImpl.**
>>>>>>>> ****g
>>>>>>>> e
>>>>>>>> t(**
>>>>>>>> CustomPassivatingContextImpl.******java:41)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.intercept.**********
>>>>>>>> NormalScopedBeanInterceptorHan
>>>>>>>> *
>>>>>>>> ***
>>>>>>>> dler.getContextualInstance(********NormalScopedBeanInterceptorHan**
>>>>>>>> ****
>>>>>>>>
>>>>>>>> dler.java:135)
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.intercept.**********
>>>>>>>> NormalScopedBeanInterceptorHan
>>>>>>>> *
>>>>>>>> ***
>>>>>>>> dler.invoke(******NormalScopedBeanInterceptorHan******dler.java:95)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.sob.bean.******SobSupplierRegistrationBean_**
>>>>>>>> $$****
>>>>>>>> _javassist_920.getCompanyLogo(********
>>>>>>>> SobSupplierRegistrationBean_****$$
>>>>>>>> *
>>>>>>>> *
>>>>>>>> _javassist_920.java)
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> sun.reflect.**
>>>>>>>> NativeMethodAccessorImpl.******invoke0(Native Method)
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> sun.reflect.**
>>>>>>>> NativeMethodAccessorImpl.******invoke(******
>>>>>>>> NativeMethodAccessorImpl.j
>>>>>>>> a
>>>>>>>> va:**
>>>>>>>> **60)
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> sun.reflect.**
>>>>>>>> DelegatingMethodAccessorImpl.******invoke(****
>>>>>>>> DelegatingMethodAccessorImpl.******
>>>>>>>>
>>>>>>>> java:37)
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> java.lang.reflect.Method.******invoke(Method.java:611)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:***
>>>>>>>> ***89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>>>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>>>>> javax.el.ELException:
>>>>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>>>>> SobSupplierRegistrationBean_$$******_javassist_920
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:***
>>>>>>>> ***93)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.el.CompositeELResolver.******getValue(**
>>>>>>>> CompositeELResolver.**
>>>>>>>> **java:55)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.el.unified.******resolver.****
>>>>>>>> FacesCompositeELResolver.**
>>>>>>>> getValue(******FacesCompositeELResolver.java:******142)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.el.parser.AstValue.******getValue(AstValue.java:**169)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.el.
>>>>>>>> **ValueExpressionImpl.****getValue(******
>>>>>>>> ValueExpressionImpl.java:283)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.el.******WrappedValueExpression.******
>>>>>>>> getValue(**
>>>>>>>> WrappedValueExpression.java:******68)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>>> org.primefaces.application.******PrimeResourceHandler.****
>>>>>>>> handleResourceRequest(
>>>>>>>> **PrimeResourceHandler.java:****75)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.faces.application.******ResourceHandlerWrapper.****
>>>>>>>> handleResourceRequest(*
>>>>>>>> *ResourceHandlerWrapper.java:******62)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.faces.webapp.******FacesServlet.service(******
>>>>>>>> FacesServlet.java:
>>>>>>>> 1
>>>>>>>> 83)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>>>>> service(ServletWrapper.java:******1188)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>>>>> handleRequest(ServletWrapper.******java:763)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>>>>> handleRequest(ServletWrapper.******java:454)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapperImpl.******
>>>>>>>> handleRequest(**
>>>>>>>>
>>>>>>>> ServletWrapperImpl.java:178)
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.******
>>>>>>>> invokeTar
>>>>>>>> g
>>>>>>>> et(**
>>>>>>>>
>>>>>>>> WebAppFilterChain.java:125)
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:92)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.FileUploadFilter.**
>>>>>>>> doFilter(FileUploadFilter.******java:78)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.CharsetEncodingFilter.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>>
>>>>>>>> CharsetEncodingFilter.java:30)
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ocpsoft.pretty.******PrettyFilter.doFilter(******
>>>>>>>> PrettyFilter.java:
>>>>>>>> 115)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.UserFilter.doFilter(******
>>>>>>>> UserFilter.java:42)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.core.******filter.******
>>>>>>>> IbmApplicationSessionFilter.
>>>>>>>> ****
>>>>>>>> doFilter(
>>>>>>>> **IbmApplicationSessionFilter.******java:25)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>>>>> ***doFil
>>>>>>>> t
>>>>>>>> er(**
>>>>>>>> FilterInstanceWrapper.java:******192)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.**
>>>>>>>> doFilter(WebAppFilterManager.******java:919)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.******
>>>>>>>> invokeFilters(**
>>>>>>>>
>>>>>>>> WebAppFilterManager.java:1016)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******servlet.CacheServletWrapper.******
>>>>>>>> handleRequest(**
>>>>>>>>
>>>>>>>> CacheServletWrapper.java:87)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******WebContainer.handleRequest(**
>>>>>>>>
>>>>>>>> WebContainer.java:895)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******WSWebContainer.handleRequest(******
>>>>>>>>
>>>>>>>> WSWebContainer.java:1662)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.webcontainer.******channel.WCChannelLink.ready(**
>>>>>>>>
>>>>>>>> WCChannelLink.java:195)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.******
>>>>>>>> handleDiscrimination(******HttpInboundLink.java:452)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>>>> *handleNewRequest(
>>>>>>>> **HttpInboundLink.java:511)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>>>> *processRequest(**
>>>>>>>>
>>>>>>>> HttpInboundLink.java:305)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.http.channel.******inbound.impl.****
>>>>>>>> HttpICLReadCallback.complete(******
>>>>>>>>
>>>>>>>> HttpICLReadCallback.java:83)
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.tcp.channel.impl.******AioReadCompletionListener.******
>>>>>>>> futureCompleted(
>>>>>>>> **AioReadCompletionListener.******java:165)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******AbstractAsyncFuture.******invokeCallback(**
>>>>>>>>
>>>>>>>> AbstractAsyncFuture.java:217)
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******AsyncChannelFuture.******
>>>>>>>> fireCompletionActions(
>>>>>>>> *
>>>>>>>> *
>>>>>>>>
>>>>>>>> AsyncChannelFuture.java:161)
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.AsyncFuture.******completed(AsyncFuture.java:**
>>>>>>>> ****13
>>>>>>>> 8
>>>>>>>> )
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******ResultHandler.complete(******
>>>>>>>> ResultHandler.java:
>>>>>>>> 204)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******ResultHandler.******
>>>>>>>> runEventProcessingLoop(**
>>>>>>>>
>>>>>>>> ResultHandler.java:775)
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.io.async.******ResultHandler$2.run(******
>>>>>>>> ResultHandler.java:90
>>>>>>>> 5
>>>>>>>> )
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> com.ibm.ws.util.ThreadPool$******Worker.run(ThreadPool.java:****
>>>>>>>> **1659
>>>>>>>> )
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>>>>> java.lang.NullPointerException
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.****
>>>>>>>> getCurrentViewId(*
>>>>>>>> *
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.java:114)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.touch(**
>>>>>>>> ViewAccessConversationExpirati******onEvaluator.java:100)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> DefaultConversation.******touchConversation(****
>>>>>>>> DefaultConversation.java:201)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> DefaultConversation.addBean(******DefaultConversation.java:**177)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>>>>> conversat
>>>>>>>> i
>>>>>>>> on.**
>>>>>>>> GroupedConversationContext.******scopeBeanEntry(****
>>>>>>>> GroupedConversationContext.*
>>>>>>>>
>>>>>>>> *java:204)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>>>>> conversation.**
>>>>>>>> AbstractGroupedConversationCon******text.create(**
>>>>>>>> AbstractGroupedConversationCon******text.java:98)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>>>>> conversation.**
>>>>>>>> ConversationContextAdapter.******get(******
>>>>>>>> ConversationContextAdapter.
>>>>>>>> *
>>>>>>>> ***
>>>>>>>> java:81)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.context.******CustomContextImpl.get(**
>>>>>>>>
>>>>>>>> CustomContextImpl.java:43)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.context.********CustomPassivatingContextImpl.**
>>>>>>>> ****g
>>>>>>>> e
>>>>>>>> t(**
>>>>>>>> CustomPassivatingContextImpl.******java:41)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.intercept.**********
>>>>>>>> NormalScopedBeanInterceptorHan
>>>>>>>> *
>>>>>>>> ***
>>>>>>>> dler.getContextualInstance(********NormalScopedBeanInterceptorHan**
>>>>>>>> ****
>>>>>>>>
>>>>>>>> dler.java:135)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> org.apache.webbeans.intercept.**********
>>>>>>>> NormalScopedBeanInterceptorHan
>>>>>>>> *
>>>>>>>> ***
>>>>>>>> dler.invoke(******NormalScopedBeanInterceptorHan******dler.java:95)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> com.clevercure.web.sob.bean.******SobSupplierRegistrationBean_**
>>>>>>>> $$****
>>>>>>>> _javassist_920.getCompanyLogo(********
>>>>>>>> SobSupplierRegistrationBean_****$$
>>>>>>>> *
>>>>>>>> *
>>>>>>>> _javassist_920.java)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> sun.reflect.**
>>>>>>>> NativeMethodAccessorImpl.******invoke0(Native Method)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> sun.reflect.**
>>>>>>>> NativeMethodAccessorImpl.******invoke(******
>>>>>>>> NativeMethodAccessorImpl.j
>>>>>>>> a
>>>>>>>> va:**
>>>>>>>> **60)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> sun.reflect.**
>>>>>>>> DelegatingMethodAccessorImpl.******invoke(****
>>>>>>>> DelegatingMethodAccessorImpl.******
>>>>>>>>
>>>>>>>> java:37)
>>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>>> java.lang.reflect.Method.******invoke(Method.java:611)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:***
>>>>>>>> ***89)
>>>>>>>>
>>>>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>

AW: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Christian,

thanks a lot for sharing your solution !!

best regards
Thomas


-----Ursprüngliche Nachricht-----
Von: Christian Beikov [mailto:c.beikov@curecomp.com] 
Gesendet: Freitag, 17. Februar 2012 12:36
An: MyFaces Discussion
Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
ValueExpression

Thank you gerhard, your suggestion, to save the viewId, worked perfectly!!!

I want to share my final solution, just implemented it and tested through. I
hope Primefaces will include the changes in a future version.

You can find the final version of my files here: 
http://code.google.com/p/primefaces/issues/detail?id=3549

regards,
Christian

Am 17.02.2012 10:05, schrieb Gerhard Petracek:
> hi @ all,
>
> actually the view-access scope is very different from the view-scope.
> it just needs the window-id as well as the view-id (a restored view is 
> not needed).
>
> that means a custom implementation of 
> ResourceHandler#handleResourceRequest
> just has to call:
>
> facesContext.setViewRoot(facesContext.getApplication().getViewHandler(
> ).createView(facesContext,
> viewId));
> at the beginning.
>
> besides passing the view-id via an url-parameter, it's possible to 
> calculate it (e.g. based on the referer-url which is always the 
> original page with your use-case - otherwise there won't be a valid
window).
>
> so it would be pretty easy for primefaces to support it.
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
> 2012/2/17 Thomas Kernstock<t....@e-technologies.at>
>
>> Hi Christian,
>>
>> You say:
>>
>> * PhaseListener implementation that acts after RESTORE_VIEW that
>>     catches the dynamic content request and streams back the content
>>     just like the resource handler of primefaces does
>>
>> This was the solution for Primefaces 2.++ where I simply implemented 
>> my own DynamicContentStreamer just moving all code from beforePhase() 
>> to afterPhase(). This was the only change needed to make ViewAccessScope
work.
>> Unfortunately the DynamicContentStreamer isn't used anymore in 
>> version 3.+ :-(
>>
>> I really would appreciate if you could post your solution for that 
>> problem (and I guess not only me but a couple of other people :-))
>>
>> best regards
>> Thomas
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
>> Gesendet: Freitag, 17. Februar 2012 09:31
>> An: MyFaces Discussion
>> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating 
>> ValueExpression
>>
>> Hi Thomas!
>>
>> This is probably already out of topic, but the main reason for the 
>> problem is, that the scope is just not available if the view restore 
>> phase is not completed.
>> My current solution is:
>>
>>   * Own GraphicImageRenderer implementation that uses
>>     ViewHandler.getActionURL(resourcePath) to add the viewId to the
>>     image URL, then add the rest of the parameters needed for dynamic
>>     content
>>   * Own ResourceHandler implementation that overrides
>>     isResourceRequest() and returns false if the resource request is a
>>     request for the dynamic content
>>   * PhaseListener implementation that acts after RESTORE_VIEW that
>>     catches the dynamic content request and streams back the content
>>     just like the resource handler of primefaces does
>>
>> It's not fully tested yet, but as soon as I have something to show I 
>> will let you know and also post my solution for discussion on the 
>> forum and the issue tracker.
>>
>> regards,
>>
>> Christian
>>
>> Am 17.02.2012 09:21, schrieb Thomas Kernstock:
>>> Hi Christian,
>>>
>>> I have the same problem using Primefaces. Since updating to 
>>> Primefaces 3.++ the @ViewAccessScope isn't working anymore. Dynamic 
>>> Image unfortunately works only with SessionScope.
>>> Here is the forum thread ->
>>> http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313
>>>
>>> Cagatay knows that problem but it seems it can't be fixed ->   check
>>> out these
>>> issues:
>>>
>>> http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dy
>>> na
>>> mic%20
>>> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%
>>> 20
>>> Report
>>> er%20Owner%20Summary
>>> http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dy
>>> na
>>> mic%20
>>> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%
>>> 20
>>> Report
>>> er%20Owner%20Summary
>>>
>>> It's even written in the Primefaces manual on page 197. Quote:
>>>
>>> "As a result there will be 2 requests to display an image, first 
>>> browser will make a request to load the page and then another one to 
>>> the dynamic image url that points to JSF resource handler. Please 
>>> note that you cannot use viewscope beans as viewscoped bean is not 
>>> available in resource loading request."
>>>
>>> best regards
>>>
>>> Thomas
>>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
>>> Gesendet: Donnerstag, 16. Februar 2012 17:09
>>> An: MyFaces Discussion
>>> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating 
>>> ValueExpression
>>>
>>> Thank you very much gerhard!
>>>
>>> I just implemented a test for the problem I face and in fact, 
>>> primefaces did something very wrong. Even the standard ViewScope is, 
>>> as expected, not supported.
>>>
>>> I appreciate your fast response time, CODI FTW! ;)
>>>
>>> Am 16.02.2012 17:05, schrieb Gerhard Petracek:
>>>> hi christian,
>>>>
>>>> the short answer is: no - it was never intended to support it.
>>>> however, if you provide an use-case which isn't supported, we will 
>>>> discuss it.
>>>>
>>>> regards,
>>>> gerhard
>>>>
>>>> http://www.irian.at
>>>>
>>>> Your JSF/JavaEE powerhouse -
>>>> JavaEE Consulting, Development and
>>>> Courses in English and German
>>>>
>>>> Professional Support for Apache MyFaces
>>>>
>>>>
>>>>
>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>
>>>>> The more concrete question on the problem i face would probably be:
>>>>>
>>>>> Is the ViewAccessScope designed to work for a JSF ResourceHandler 
>>>>> which is called instead of the normal JSF Lifecycle? None of the 
>>>>> JSF Phases is executed when a ResourceHandler is invoked, so would 
>>>>> it actually be possible that the VIewAccessScope could work?
>>>>>
>>>>> Resolving a bean within a ResourceHandler is probably not a big 
>>>>> thing and should not cause problems. Maybe the primefaces 
>>>>> implementation is just wrong to put the evaluation out of the JSF 
>>>>> Phases and should use a PhaseListener instead? I am pretty sure 
>>>>> that the evaluation would work when it was done within a 
>>>>> PhaseListener,
>> correct me if I am wrong.
>>>>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>>>>
>>>>>> hi christian,
>>>>>>
>>>>>> a workaround would be an own ConversationFactory - but that means 
>>>>>> a lot of work.
>>>>>> since the myfaces codi conversation scopes (the view-access scope 
>>>>>> is just a special conversation type) are bound to jsf by default, 
>>>>>> it wasn't intended to support access outside of the jsf 
>>>>>> request-lifecycle.
>>>>>> however, you can checkout the source-code [1], fix it and check 
>>>>>> if the rest would work as needed for your use-case (and provide 
>>>>>> the patch afterwards).
>>>>>> or you provide a simple demo which shows the issue and we will do 
>>>>>> the rest.
>>>>>>
>>>>>> regards,
>>>>>> gerhard
>>>>>>
>>>>>> [1]
>>>>>> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk
>>>>>> /< h 
>>>>>> ttps://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>>>>
>>>>>> http://www.irian.at
>>>>>>
>>>>>> Your JSF/JavaEE powerhouse -
>>>>>> JavaEE Consulting, Development and Courses in English and German
>>>>>>
>>>>>> Professional Support for Apache MyFaces
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>>>
>>>>>>     Hello there!
>>>>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the 
>>>>>>> PrimeFaces ResourceHandler.
>>>>>>>
>>>>>>> Primefaces evaluates a value expression within the resource 
>>>>>>> handler to retrieve dynamic content, why and how is not important.
>>>>>>> The fact is, that the ResourceHandler is called before 
>>>>>>> everything else within the JSF Lifecycle.
>>>>>>>
>>>>>>> I am using the ViewAccessScope for the bean which should be 
>>>>>>> evaluated with the value expression within the ResourceHandler. 
>>>>>>> I debugged into it and found out that
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>>>>> conversation.****ViewAccessConversationExpirati****onEvaluator
>>>>>>> tries to
>>>>>>>
>>>>>>> retrieve the view root of the FacesContext or more exactly the 
>>>>>>> view id of it. The problem is, that the view root is null at 
>>>>>>> that time, so the evaluation ends with a NullPointerException in 
>>>>>>> a CODI
>> class.
>>>>>>> Who is responsible for this issue? Can anyone suggest me a
>> workaround?
>>>>>>> I am using:
>>>>>>>
>>>>>>>     * Websphere 8.0.0.2
>>>>>>>     * MyFaces, the version shipped with Websphere
>>>>>>>     * CODI 1.0.1
>>>>>>>     * Primefaces 3.1.1
>>>>>>>
>>>>>>> Here is the full stacktrace:
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>>>> javax.el.ELException:
>>>>>>> Error reading 'companyLogo' on type 
>>>>>>> com.clevercure.web.sob.bean.**
>>>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>>>> **java:55)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>>>> FacesCompositeELResolver.**
>>>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.
>>>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:28
>>>>>>> 3)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(*
>>>>>>> *
>>>>>>> WrappedValueExpression.java:****68)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>>>> handleResourceRequest(
>>>>>>> **PrimeResourceHandler.java:**75)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>>>> handleResourceRequest(*
>>>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
>>>>>>> 1
>>>>>>> 83)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> service(ServletWrapper.java:****1188)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> ServletWrapperImpl.java:178)
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeT
>>>>>>> ar
>>>>>>> g
>>>>>>> et(**
>>>>>>>
>>>>>>> WebAppFilterChain.java:125)
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>>
>>>>>>> CharsetEncodingFilter.java:30)
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>>>> 115)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>>>> UserFilter.java:42)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>>>> ****
>>>>>>> doFilter(
>>>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>>>> invokeFilters(**
>>>>>>>
>>>>>>> WebAppFilterManager.java:1016)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> CacheServletWrapper.java:87)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>>>
>>>>>>> WebContainer.java:895)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>>>
>>>>>>> WSWebContainer.java:1662)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>>>
>>>>>>> WCChannelLink.java:195)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *handleNewRequest(
>>>>>>> **HttpInboundLink.java:511)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *processRequest(**
>>>>>>>
>>>>>>> HttpInboundLink.java:305)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>>>> HttpICLReadCallback.complete(****
>>>>>>>
>>>>>>> HttpICLReadCallback.java:83)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>>>> futureCompleted(
>>>>>>> **AioReadCompletionListener.****java:165)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>>>
>>>>>>> AbstractAsyncFuture.java:217)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionAction
>>>>>>> s(
>>>>>>> *
>>>>>>> *
>>>>>>>
>>>>>>> AsyncChannelFuture.java:161)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****
>>>>>>> 13
>>>>>>> 8
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>>>> 204)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>>>
>>>>>>> ResultHandler.java:775)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:
>>>>>>> 90
>>>>>>> 5
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****16
>>>>>>> 59
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>>>> java.lang.NullPointerException
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId
>>>>>>> (*
>>>>>>> *
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.****touchConversation(****
>>>>>>> DefaultConversation.java:201)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>>>> GroupedConversationContext.*
>>>>>>>
>>>>>>> *java:204)
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> AbstractGroupedConversationCon****text.create(**
>>>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
>>>>>>> *
>>>>>>> ***
>>>>>>> java:81)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>>>
>>>>>>> CustomContextImpl.java:43)
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.***
>>>>>>> *g
>>>>>>> e
>>>>>>> t(**
>>>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorH
>>>>>>> an
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan***
>>>>>>> *
>>>>>>>
>>>>>>> dler.java:135)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorH
>>>>>>> an
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$**
>>>>>>> ** 
>>>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**
>>>>>>> $$
>>>>>>> *
>>>>>>> *
>>>>>>> _javassist_920.java)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl
>>>>>>> .j
>>>>>>> a
>>>>>>> va:**
>>>>>>> **60)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>>>> DelegatingMethodAccessorImpl.****
>>>>>>>
>>>>>>> java:37)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>>>> javax.el.ELException:
>>>>>>> Error reading 'companyLogo' on type 
>>>>>>> com.clevercure.web.sob.bean.**
>>>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>>>> **java:55)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>>>> FacesCompositeELResolver.**
>>>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.
>>>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:28
>>>>>>> 3)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(*
>>>>>>> *
>>>>>>> WrappedValueExpression.java:****68)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>>>> handleResourceRequest(
>>>>>>> **PrimeResourceHandler.java:**75)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>>>> handleResourceRequest(*
>>>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
>>>>>>> 1
>>>>>>> 83)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> service(ServletWrapper.java:****1188)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> ServletWrapperImpl.java:178)
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeT
>>>>>>> ar
>>>>>>> g
>>>>>>> et(**
>>>>>>>
>>>>>>> WebAppFilterChain.java:125)
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>>
>>>>>>> CharsetEncodingFilter.java:30)
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>>>> 115)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>>>> UserFilter.java:42)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>>>> ****
>>>>>>> doFilter(
>>>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doF
>>>>>>> il
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>>>> invokeFilters(**
>>>>>>>
>>>>>>> WebAppFilterManager.java:1016)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> CacheServletWrapper.java:87)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>>>
>>>>>>> WebContainer.java:895)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>>>
>>>>>>> WSWebContainer.java:1662)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>>>
>>>>>>> WCChannelLink.java:195)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *handleNewRequest(
>>>>>>> **HttpInboundLink.java:511)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *processRequest(**
>>>>>>>
>>>>>>> HttpInboundLink.java:305)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>>>> HttpICLReadCallback.complete(****
>>>>>>>
>>>>>>> HttpICLReadCallback.java:83)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>>>> futureCompleted(
>>>>>>> **AioReadCompletionListener.****java:165)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>>>
>>>>>>> AbstractAsyncFuture.java:217)
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionAction
>>>>>>> s(
>>>>>>> *
>>>>>>> *
>>>>>>>
>>>>>>> AsyncChannelFuture.java:161)
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****
>>>>>>> 13
>>>>>>> 8
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>>>> 204)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>>>
>>>>>>> ResultHandler.java:775)
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:
>>>>>>> 90
>>>>>>> 5
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****16
>>>>>>> 59
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>>>> java.lang.NullPointerException
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId
>>>>>>> (*
>>>>>>> *
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.****touchConversation(****
>>>>>>> DefaultConversation.java:201)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****convers
>>>>>>> at
>>>>>>> i
>>>>>>> on.**
>>>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>>>> GroupedConversationContext.*
>>>>>>>
>>>>>>> *java:204)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> AbstractGroupedConversationCon****text.create(**
>>>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
>>>>>>> *
>>>>>>> ***
>>>>>>> java:81)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>>>
>>>>>>> CustomContextImpl.java:43)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.***
>>>>>>> *g
>>>>>>> e
>>>>>>> t(**
>>>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorH
>>>>>>> an
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan***
>>>>>>> *
>>>>>>>
>>>>>>> dler.java:135)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorH
>>>>>>> an
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$**
>>>>>>> ** 
>>>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**
>>>>>>> $$
>>>>>>> *
>>>>>>> *
>>>>>>> _javassist_920.java)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl
>>>>>>> .j
>>>>>>> a
>>>>>>> va:**
>>>>>>> **60)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>>>> DelegatingMethodAccessorImpl.****
>>>>>>>
>>>>>>> java:37)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>>>>
>>>>>>>
>>


Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Christian Beikov <c....@curecomp.com>.
Thank you gerhard, your suggestion, to save the viewId, worked perfectly!!!

I want to share my final solution, just implemented it and tested 
through. I hope Primefaces will include the changes in a future version.

You can find the final version of my files here: 
http://code.google.com/p/primefaces/issues/detail?id=3549

regards,
Christian

Am 17.02.2012 10:05, schrieb Gerhard Petracek:
> hi @ all,
>
> actually the view-access scope is very different from the view-scope.
> it just needs the window-id as well as the view-id (a restored view is not
> needed).
>
> that means a custom implementation of ResourceHandler#handleResourceRequest
> just has to call:
>
> facesContext.setViewRoot(facesContext.getApplication().getViewHandler().createView(facesContext,
> viewId));
> at the beginning.
>
> besides passing the view-id via an url-parameter, it's possible to
> calculate it (e.g. based on the referer-url which is always the original
> page with your use-case - otherwise there won't be a valid window).
>
> so it would be pretty easy for primefaces to support it.
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
> 2012/2/17 Thomas Kernstock<t....@e-technologies.at>
>
>> Hi Christian,
>>
>> You say:
>>
>> * PhaseListener implementation that acts after RESTORE_VIEW that
>>     catches the dynamic content request and streams back the content
>>     just like the resource handler of primefaces does
>>
>> This was the solution for Primefaces 2.++ where I simply implemented my own
>> DynamicContentStreamer just moving all code from beforePhase() to
>> afterPhase(). This was the only change needed to make ViewAccessScope work.
>> Unfortunately the DynamicContentStreamer isn't used anymore in version 3.+
>> :-(
>>
>> I really would appreciate if you could post your solution for that problem
>> (and I guess not only me but a couple of other people :-))
>>
>> best regards
>> Thomas
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
>> Gesendet: Freitag, 17. Februar 2012 09:31
>> An: MyFaces Discussion
>> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
>> ValueExpression
>>
>> Hi Thomas!
>>
>> This is probably already out of topic, but the main reason for the problem
>> is, that the scope is just not available if the view restore phase is not
>> completed.
>> My current solution is:
>>
>>   * Own GraphicImageRenderer implementation that uses
>>     ViewHandler.getActionURL(resourcePath) to add the viewId to the
>>     image URL, then add the rest of the parameters needed for dynamic
>>     content
>>   * Own ResourceHandler implementation that overrides
>>     isResourceRequest() and returns false if the resource request is a
>>     request for the dynamic content
>>   * PhaseListener implementation that acts after RESTORE_VIEW that
>>     catches the dynamic content request and streams back the content
>>     just like the resource handler of primefaces does
>>
>> It's not fully tested yet, but as soon as I have something to show I will
>> let you know and also post my solution for discussion on the forum and the
>> issue tracker.
>>
>> regards,
>>
>> Christian
>>
>> Am 17.02.2012 09:21, schrieb Thomas Kernstock:
>>> Hi Christian,
>>>
>>> I have the same problem using Primefaces. Since updating to Primefaces
>>> 3.++ the @ViewAccessScope isn't working anymore. Dynamic Image
>>> unfortunately works only with SessionScope.
>>> Here is the forum thread ->
>>> http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313
>>>
>>> Cagatay knows that problem but it seems it can't be fixed ->   check
>>> out these
>>> issues:
>>>
>>> http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dyna
>>> mic%20
>>> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20
>>> Report
>>> er%20Owner%20Summary
>>> http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dyna
>>> mic%20
>>> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20
>>> Report
>>> er%20Owner%20Summary
>>>
>>> It's even written in the Primefaces manual on page 197. Quote:
>>>
>>> "As a result there will be 2 requests to display an image, first
>>> browser will make a request to load the page and then another one to
>>> the dynamic image url that points to JSF resource handler. Please note
>>> that you cannot use viewscope beans as viewscoped bean is not
>>> available in resource loading request."
>>>
>>> best regards
>>>
>>> Thomas
>>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
>>> Gesendet: Donnerstag, 16. Februar 2012 17:09
>>> An: MyFaces Discussion
>>> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
>>> ValueExpression
>>>
>>> Thank you very much gerhard!
>>>
>>> I just implemented a test for the problem I face and in fact,
>>> primefaces did something very wrong. Even the standard ViewScope is,
>>> as expected, not supported.
>>>
>>> I appreciate your fast response time, CODI FTW! ;)
>>>
>>> Am 16.02.2012 17:05, schrieb Gerhard Petracek:
>>>> hi christian,
>>>>
>>>> the short answer is: no - it was never intended to support it.
>>>> however, if you provide an use-case which isn't supported, we will
>>>> discuss it.
>>>>
>>>> regards,
>>>> gerhard
>>>>
>>>> http://www.irian.at
>>>>
>>>> Your JSF/JavaEE powerhouse -
>>>> JavaEE Consulting, Development and
>>>> Courses in English and German
>>>>
>>>> Professional Support for Apache MyFaces
>>>>
>>>>
>>>>
>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>
>>>>> The more concrete question on the problem i face would probably be:
>>>>>
>>>>> Is the ViewAccessScope designed to work for a JSF ResourceHandler
>>>>> which is called instead of the normal JSF Lifecycle? None of the JSF
>>>>> Phases is executed when a ResourceHandler is invoked, so would it
>>>>> actually be possible that the VIewAccessScope could work?
>>>>>
>>>>> Resolving a bean within a ResourceHandler is probably not a big
>>>>> thing and should not cause problems. Maybe the primefaces
>>>>> implementation is just wrong to put the evaluation out of the JSF
>>>>> Phases and should use a PhaseListener instead? I am pretty sure that
>>>>> the evaluation would work when it was done within a PhaseListener,
>> correct me if I am wrong.
>>>>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>>>>
>>>>>> hi christian,
>>>>>>
>>>>>> a workaround would be an own ConversationFactory - but that means a
>>>>>> lot of work.
>>>>>> since the myfaces codi conversation scopes (the view-access scope
>>>>>> is just a special conversation type) are bound to jsf by default,
>>>>>> it wasn't intended to support access outside of the jsf
>>>>>> request-lifecycle.
>>>>>> however, you can checkout the source-code [1], fix it and check if
>>>>>> the rest would work as needed for your use-case (and provide the
>>>>>> patch afterwards).
>>>>>> or you provide a simple demo which shows the issue and we will do
>>>>>> the rest.
>>>>>>
>>>>>> regards,
>>>>>> gerhard
>>>>>>
>>>>>> [1]
>>>>>> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<
>>>>>> h ttps://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>>>>
>>>>>> http://www.irian.at
>>>>>>
>>>>>> Your JSF/JavaEE powerhouse -
>>>>>> JavaEE Consulting, Development and
>>>>>> Courses in English and German
>>>>>>
>>>>>> Professional Support for Apache MyFaces
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>>>
>>>>>>     Hello there!
>>>>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>>>>>>> PrimeFaces ResourceHandler.
>>>>>>>
>>>>>>> Primefaces evaluates a value expression within the resource
>>>>>>> handler to retrieve dynamic content, why and how is not important.
>>>>>>> The fact is, that the ResourceHandler is called before everything
>>>>>>> else within the JSF Lifecycle.
>>>>>>>
>>>>>>> I am using the ViewAccessScope for the bean which should be
>>>>>>> evaluated with the value expression within the ResourceHandler. I
>>>>>>> debugged into it and found out that
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>>>>> conversation.****ViewAccessConversationExpirati****onEvaluator
>>>>>>> tries to
>>>>>>>
>>>>>>> retrieve the view root of the FacesContext or more exactly the
>>>>>>> view id of it. The problem is, that the view root is null at that
>>>>>>> time, so the evaluation ends with a NullPointerException in a CODI
>> class.
>>>>>>> Who is responsible for this issue? Can anyone suggest me a
>> workaround?
>>>>>>> I am using:
>>>>>>>
>>>>>>>     * Websphere 8.0.0.2
>>>>>>>     * MyFaces, the version shipped with Websphere
>>>>>>>     * CODI 1.0.1
>>>>>>>     * Primefaces 3.1.1
>>>>>>>
>>>>>>> Here is the full stacktrace:
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>>>> javax.el.ELException:
>>>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>>>> **java:55)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>>>> FacesCompositeELResolver.**
>>>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.
>>>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>>>> WrappedValueExpression.java:****68)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>>>> handleResourceRequest(
>>>>>>> **PrimeResourceHandler.java:**75)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>>>> handleResourceRequest(*
>>>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
>>>>>>> 1
>>>>>>> 83)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> service(ServletWrapper.java:****1188)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> ServletWrapperImpl.java:178)
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTar
>>>>>>> g
>>>>>>> et(**
>>>>>>>
>>>>>>> WebAppFilterChain.java:125)
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>>
>>>>>>> CharsetEncodingFilter.java:30)
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>>>> 115)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>>>> UserFilter.java:42)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>>>> ****
>>>>>>> doFilter(
>>>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>>>> invokeFilters(**
>>>>>>>
>>>>>>> WebAppFilterManager.java:1016)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> CacheServletWrapper.java:87)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>>>
>>>>>>> WebContainer.java:895)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>>>
>>>>>>> WSWebContainer.java:1662)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>>>
>>>>>>> WCChannelLink.java:195)
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *handleNewRequest(
>>>>>>> **HttpInboundLink.java:511)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *processRequest(**
>>>>>>>
>>>>>>> HttpInboundLink.java:305)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>>>> HttpICLReadCallback.complete(****
>>>>>>>
>>>>>>> HttpICLReadCallback.java:83)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>>>> futureCompleted(
>>>>>>> **AioReadCompletionListener.****java:165)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>>>
>>>>>>> AbstractAsyncFuture.java:217)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(
>>>>>>> *
>>>>>>> *
>>>>>>>
>>>>>>> AsyncChannelFuture.java:161)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****13
>>>>>>> 8
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>>>> 204)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>>>
>>>>>>> ResultHandler.java:775)
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:90
>>>>>>> 5
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>>>> java.lang.NullPointerException
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(*
>>>>>>> *
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.****touchConversation(****
>>>>>>> DefaultConversation.java:201)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>>>> GroupedConversationContext.*
>>>>>>>
>>>>>>> *java:204)
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> AbstractGroupedConversationCon****text.create(**
>>>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
>>>>>>> *
>>>>>>> ***
>>>>>>> java:81)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>>>
>>>>>>> CustomContextImpl.java:43)
>>>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****g
>>>>>>> e
>>>>>>> t(**
>>>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>>>>
>>>>>>> dler.java:135)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$
>>>>>>> *
>>>>>>> *
>>>>>>> _javassist_920.java)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.j
>>>>>>> a
>>>>>>> va:**
>>>>>>> **60)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>>>> DelegatingMethodAccessorImpl.****
>>>>>>>
>>>>>>> java:37)
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>>>> javax.el.ELException:
>>>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>>>> **java:55)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>>>> FacesCompositeELResolver.**
>>>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.el.
>>>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>>>> WrappedValueExpression.java:****68)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>>>> handleResourceRequest(
>>>>>>> **PrimeResourceHandler.java:**75)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>>>> handleResourceRequest(*
>>>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
>>>>>>> 1
>>>>>>> 83)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> service(ServletWrapper.java:****1188)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> ServletWrapperImpl.java:178)
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTar
>>>>>>> g
>>>>>>> et(**
>>>>>>>
>>>>>>> WebAppFilterChain.java:125)
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>>
>>>>>>> CharsetEncodingFilter.java:30)
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>>>> 115)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>>>> UserFilter.java:42)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>>>> ****
>>>>>>> doFilter(
>>>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>>>> t
>>>>>>> er(**
>>>>>>> FilterInstanceWrapper.java:****192)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>>>> invokeFilters(**
>>>>>>>
>>>>>>> WebAppFilterManager.java:1016)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>>>> handleRequest(**
>>>>>>>
>>>>>>> CacheServletWrapper.java:87)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>>>
>>>>>>> WebContainer.java:895)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>>>
>>>>>>> WSWebContainer.java:1662)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>>>
>>>>>>> WCChannelLink.java:195)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *handleNewRequest(
>>>>>>> **HttpInboundLink.java:511)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>>>> *processRequest(**
>>>>>>>
>>>>>>> HttpInboundLink.java:305)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>>>> HttpICLReadCallback.complete(****
>>>>>>>
>>>>>>> HttpICLReadCallback.java:83)
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>>>> futureCompleted(
>>>>>>> **AioReadCompletionListener.****java:165)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>>>
>>>>>>> AbstractAsyncFuture.java:217)
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(
>>>>>>> *
>>>>>>> *
>>>>>>>
>>>>>>> AsyncChannelFuture.java:161)
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****13
>>>>>>> 8
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>>>> 204)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>>>
>>>>>>> ResultHandler.java:775)
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:90
>>>>>>> 5
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659
>>>>>>> )
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>>>> java.lang.NullPointerException
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(*
>>>>>>> *
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.****touchConversation(****
>>>>>>> DefaultConversation.java:201)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>>>> i
>>>>>>> on.**
>>>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>>>> GroupedConversationContext.*
>>>>>>>
>>>>>>> *java:204)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> AbstractGroupedConversationCon****text.create(**
>>>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>>>> conversation.**
>>>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
>>>>>>> *
>>>>>>> ***
>>>>>>> java:81)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>>>
>>>>>>> CustomContextImpl.java:43)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****g
>>>>>>> e
>>>>>>> t(**
>>>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>>>>
>>>>>>> dler.java:135)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>>>> *
>>>>>>> ***
>>>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$
>>>>>>> *
>>>>>>> *
>>>>>>> _javassist_920.java)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.j
>>>>>>> a
>>>>>>> va:**
>>>>>>> **60)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> sun.reflect.**
>>>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>>>> DelegatingMethodAccessorImpl.****
>>>>>>>
>>>>>>> java:37)
>>>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>>>
>>>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>>>>
>>>>>>>
>>

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

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

actually the view-access scope is very different from the view-scope.
it just needs the window-id as well as the view-id (a restored view is not
needed).

that means a custom implementation of ResourceHandler#handleResourceRequest
just has to call:

facesContext.setViewRoot(facesContext.getApplication().getViewHandler().createView(facesContext,
viewId));
at the beginning.

besides passing the view-id via an url-parameter, it's possible to
calculate it (e.g. based on the referer-url which is always the original
page with your use-case - otherwise there won't be a valid window).

so it would be pretty easy for primefaces to support it.

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces


2012/2/17 Thomas Kernstock <t....@e-technologies.at>

> Hi Christian,
>
> You say:
>
> * PhaseListener implementation that acts after RESTORE_VIEW that
>    catches the dynamic content request and streams back the content
>    just like the resource handler of primefaces does
>
> This was the solution for Primefaces 2.++ where I simply implemented my own
> DynamicContentStreamer just moving all code from beforePhase() to
> afterPhase(). This was the only change needed to make ViewAccessScope work.
> Unfortunately the DynamicContentStreamer isn't used anymore in version 3.+
> :-(
>
> I really would appreciate if you could post your solution for that problem
> (and I guess not only me but a couple of other people :-))
>
> best regards
> Thomas
>
> -----Ursprüngliche Nachricht-----
> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
> Gesendet: Freitag, 17. Februar 2012 09:31
> An: MyFaces Discussion
> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
> ValueExpression
>
> Hi Thomas!
>
> This is probably already out of topic, but the main reason for the problem
> is, that the scope is just not available if the view restore phase is not
> completed.
> My current solution is:
>
>  * Own GraphicImageRenderer implementation that uses
>    ViewHandler.getActionURL(resourcePath) to add the viewId to the
>    image URL, then add the rest of the parameters needed for dynamic
>    content
>  * Own ResourceHandler implementation that overrides
>    isResourceRequest() and returns false if the resource request is a
>    request for the dynamic content
>  * PhaseListener implementation that acts after RESTORE_VIEW that
>    catches the dynamic content request and streams back the content
>    just like the resource handler of primefaces does
>
> It's not fully tested yet, but as soon as I have something to show I will
> let you know and also post my solution for discussion on the forum and the
> issue tracker.
>
> regards,
>
> Christian
>
> Am 17.02.2012 09:21, schrieb Thomas Kernstock:
> > Hi Christian,
> >
> > I have the same problem using Primefaces. Since updating to Primefaces
> > 3.++ the @ViewAccessScope isn't working anymore. Dynamic Image
> > unfortunately works only with SessionScope.
> > Here is the forum thread ->
> > http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313
> >
> > Cagatay knows that problem but it seems it can't be fixed ->  check
> > out these
> > issues:
> >
> > http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dyna
> > mic%20
> > image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20
> > Report
> > er%20Owner%20Summary
> > http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dyna
> > mic%20
> > image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20
> > Report
> > er%20Owner%20Summary
> >
> > It's even written in the Primefaces manual on page 197. Quote:
> >
> > "As a result there will be 2 requests to display an image, first
> > browser will make a request to load the page and then another one to
> > the dynamic image url that points to JSF resource handler. Please note
> > that you cannot use viewscope beans as viewscoped bean is not
> > available in resource loading request."
> >
> > best regards
> >
> > Thomas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Christian Beikov [mailto:c.beikov@curecomp.com]
> > Gesendet: Donnerstag, 16. Februar 2012 17:09
> > An: MyFaces Discussion
> > Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
> > ValueExpression
> >
> > Thank you very much gerhard!
> >
> > I just implemented a test for the problem I face and in fact,
> > primefaces did something very wrong. Even the standard ViewScope is,
> > as expected, not supported.
> >
> > I appreciate your fast response time, CODI FTW! ;)
> >
> > Am 16.02.2012 17:05, schrieb Gerhard Petracek:
> >> hi christian,
> >>
> >> the short answer is: no - it was never intended to support it.
> >> however, if you provide an use-case which isn't supported, we will
> >> discuss it.
> >>
> >> regards,
> >> gerhard
> >>
> >> http://www.irian.at
> >>
> >> Your JSF/JavaEE powerhouse -
> >> JavaEE Consulting, Development and
> >> Courses in English and German
> >>
> >> Professional Support for Apache MyFaces
> >>
> >>
> >>
> >> 2012/2/16 Christian Beikov<c....@curecomp.com>
> >>
> >>> The more concrete question on the problem i face would probably be:
> >>>
> >>> Is the ViewAccessScope designed to work for a JSF ResourceHandler
> >>> which is called instead of the normal JSF Lifecycle? None of the JSF
> >>> Phases is executed when a ResourceHandler is invoked, so would it
> >>> actually be possible that the VIewAccessScope could work?
> >>>
> >>> Resolving a bean within a ResourceHandler is probably not a big
> >>> thing and should not cause problems. Maybe the primefaces
> >>> implementation is just wrong to put the evaluation out of the JSF
> >>> Phases and should use a PhaseListener instead? I am pretty sure that
> >>> the evaluation would work when it was done within a PhaseListener,
> correct me if I am wrong.
> >>>
> >>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
> >>>
> >>>> hi christian,
> >>>>
> >>>> a workaround would be an own ConversationFactory - but that means a
> >>>> lot of work.
> >>>> since the myfaces codi conversation scopes (the view-access scope
> >>>> is just a special conversation type) are bound to jsf by default,
> >>>> it wasn't intended to support access outside of the jsf
> >>>> request-lifecycle.
> >>>> however, you can checkout the source-code [1], fix it and check if
> >>>> the rest would work as needed for your use-case (and provide the
> >>>> patch afterwards).
> >>>> or you provide a simple demo which shows the issue and we will do
> >>>> the rest.
> >>>>
> >>>> regards,
> >>>> gerhard
> >>>>
> >>>> [1]
> >>>> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<
> >>>> h ttps://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
> >>>>
> >>>> http://www.irian.at
> >>>>
> >>>> Your JSF/JavaEE powerhouse -
> >>>> JavaEE Consulting, Development and
> >>>> Courses in English and German
> >>>>
> >>>> Professional Support for Apache MyFaces
> >>>>
> >>>>
> >>>>
> >>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
> >>>>
> >>>>    Hello there!
> >>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
> >>>>> PrimeFaces ResourceHandler.
> >>>>>
> >>>>> Primefaces evaluates a value expression within the resource
> >>>>> handler to retrieve dynamic content, why and how is not important.
> >>>>> The fact is, that the ResourceHandler is called before everything
> >>>>> else within the JSF Lifecycle.
> >>>>>
> >>>>> I am using the ViewAccessScope for the bean which should be
> >>>>> evaluated with the value expression within the ResourceHandler. I
> >>>>> debugged into it and found out that
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
> >>>>> conversation.****ViewAccessConversationExpirati****onEvaluator
> >>>>> tries to
> >>>>>
> >>>>> retrieve the view root of the FacesContext or more exactly the
> >>>>> view id of it. The problem is, that the view root is null at that
> >>>>> time, so the evaluation ends with a NullPointerException in a CODI
> class.
> >>>>>
> >>>>> Who is responsible for this issue? Can anyone suggest me a
> workaround?
> >>>>>
> >>>>> I am using:
> >>>>>
> >>>>>    * Websphere 8.0.0.2
> >>>>>    * MyFaces, the version shipped with Websphere
> >>>>>    * CODI 1.0.1
> >>>>>    * Primefaces 3.1.1
> >>>>>
> >>>>> Here is the full stacktrace:
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
> >>>>> javax.el.ELException:
> >>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
> >>>>> SobSupplierRegistrationBean_$$****_javassist_920
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
> >>>>> **java:55)
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.el.unified.****resolver.****
> >>>>> FacesCompositeELResolver.**
> >>>>> getValue(****FacesCompositeELResolver.java:****142)
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.el.
> >>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
> >>>>>
> >>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
> >>>>> WrappedValueExpression.java:****68)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> org.primefaces.application.****PrimeResourceHandler.****
> >>>>> handleResourceRequest(
> >>>>> **PrimeResourceHandler.java:**75)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> javax.faces.application.****ResourceHandlerWrapper.****
> >>>>> handleResourceRequest(*
> >>>>> *ResourceHandlerWrapper.java:****62)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
> >>>>> 1
> >>>>> 83)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>> service(ServletWrapper.java:****1188)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>> handleRequest(ServletWrapper.****java:763)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>> handleRequest(ServletWrapper.****java:454)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
> >>>>> handleRequest(**
> >>>>>
> >>>>> ServletWrapperImpl.java:178)
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTar
> >>>>> g
> >>>>> et(**
> >>>>>
> >>>>> WebAppFilterChain.java:125)
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:92)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
> >>>>> doFilter(FileUploadFilter.****java:78)
> >>>>>
> >>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFil
> >>>>> t
> >>>>> er(**
> >>>>>
> >>>>> CharsetEncodingFilter.java:30)
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
> >>>>> 115)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
> >>>>> UserFilter.java:42)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
> >>>>> ****
> >>>>> doFilter(
> >>>>> **IbmApplicationSessionFilter.****java:25)
> >>>>>
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
> >>>>> doFilter(WebAppFilterManager.****java:919)
> >>>>>
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
> >>>>> invokeFilters(**
> >>>>>
> >>>>> WebAppFilterManager.java:1016)
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
> >>>>> handleRequest(**
> >>>>>
> >>>>> CacheServletWrapper.java:87)
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
> >>>>>
> >>>>> WebContainer.java:895)
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
> >>>>>
> >>>>> WSWebContainer.java:1662)
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
> >>>>>
> >>>>> WCChannelLink.java:195)
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
> >>>>> handleDiscrimination(****HttpInboundLink.java:452)
> >>>>>
> >>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>> *handleNewRequest(
> >>>>> **HttpInboundLink.java:511)
> >>>>>
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>> *processRequest(**
> >>>>>
> >>>>> HttpInboundLink.java:305)
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.****
> >>>>> HttpICLReadCallback.complete(****
> >>>>>
> >>>>> HttpICLReadCallback.java:83)
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
> >>>>> futureCompleted(
> >>>>> **AioReadCompletionListener.****java:165)
> >>>>>
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
> >>>>>
> >>>>> AbstractAsyncFuture.java:217)
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(
> >>>>> *
> >>>>> *
> >>>>>
> >>>>> AsyncChannelFuture.java:161)
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****13
> >>>>> 8
> >>>>> )
> >>>>>
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
> >>>>> 204)
> >>>>>
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
> >>>>>
> >>>>> ResultHandler.java:775)
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:90
> >>>>> 5
> >>>>> )
> >>>>>
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659
> >>>>> )
> >>>>>
> >>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
> >>>>> java.lang.NullPointerException
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(*
> >>>>> *
> >>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
> >>>>>
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
> >>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
> >>>>>
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> DefaultConversation.****touchConversation(****
> >>>>> DefaultConversation.java:201)
> >>>>>
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
> >>>>>
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> GroupedConversationContext.****scopeBeanEntry(****
> >>>>> GroupedConversationContext.*
> >>>>>
> >>>>> *java:204)
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>> conversation.**
> >>>>> AbstractGroupedConversationCon****text.create(**
> >>>>> AbstractGroupedConversationCon****text.java:98)
> >>>>>
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>> conversation.**
> >>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
> >>>>> *
> >>>>> ***
> >>>>> java:81)
> >>>>>
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
> >>>>>
> >>>>> CustomContextImpl.java:43)
> >>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****g
> >>>>> e
> >>>>> t(**
> >>>>> CustomPassivatingContextImpl.****java:41)
> >>>>>
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
> >>>>> *
> >>>>> ***
> >>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
> >>>>>
> >>>>> dler.java:135)
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
> >>>>> *
> >>>>> ***
> >>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
> >>>>>
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
> >>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$
> >>>>> *
> >>>>> *
> >>>>> _javassist_920.java)
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> sun.reflect.**
> >>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> sun.reflect.**
> >>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.j
> >>>>> a
> >>>>> va:**
> >>>>> **60)
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> sun.reflect.**
> >>>>> DelegatingMethodAccessorImpl.****invoke(****
> >>>>> DelegatingMethodAccessorImpl.****
> >>>>>
> >>>>> java:37)
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> java.lang.reflect.Method.****invoke(Method.java:611)
> >>>>>
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> >>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
> >>>>>
> >>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
> >>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
> >>>>> javax.el.ELException:
> >>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
> >>>>> SobSupplierRegistrationBean_$$****_javassist_920
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
> >>>>> **java:55)
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.el.unified.****resolver.****
> >>>>> FacesCompositeELResolver.**
> >>>>> getValue(****FacesCompositeELResolver.java:****142)
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.el.
> >>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
> >>>>> WrappedValueExpression.java:****68)
> >>>>>
> >>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> >>>>> org.primefaces.application.****PrimeResourceHandler.****
> >>>>> handleResourceRequest(
> >>>>> **PrimeResourceHandler.java:**75)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> javax.faces.application.****ResourceHandlerWrapper.****
> >>>>> handleResourceRequest(*
> >>>>> *ResourceHandlerWrapper.java:****62)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
> >>>>> 1
> >>>>> 83)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>> service(ServletWrapper.java:****1188)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>> handleRequest(ServletWrapper.****java:763)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
> >>>>> handleRequest(ServletWrapper.****java:454)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
> >>>>> handleRequest(**
> >>>>>
> >>>>> ServletWrapperImpl.java:178)
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTar
> >>>>> g
> >>>>> et(**
> >>>>>
> >>>>> WebAppFilterChain.java:125)
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:92)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
> >>>>> doFilter(FileUploadFilter.****java:78)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFil
> >>>>> t
> >>>>> er(**
> >>>>>
> >>>>> CharsetEncodingFilter.java:30)
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
> >>>>> 115)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
> >>>>> UserFilter.java:42)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
> >>>>> ****
> >>>>> doFilter(
> >>>>> **IbmApplicationSessionFilter.****java:25)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
> >>>>> t
> >>>>> er(**
> >>>>> FilterInstanceWrapper.java:****192)
> >>>>>
> >>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
> >>>>> doFilter(WebAppFilterChain.****java:89)
> >>>>>
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
> >>>>> doFilter(WebAppFilterManager.****java:919)
> >>>>>
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
> >>>>> invokeFilters(**
> >>>>>
> >>>>> WebAppFilterManager.java:1016)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
> >>>>> handleRequest(**
> >>>>>
> >>>>> CacheServletWrapper.java:87)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
> >>>>>
> >>>>> WebContainer.java:895)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
> >>>>>
> >>>>> WSWebContainer.java:1662)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
> >>>>>
> >>>>> WCChannelLink.java:195)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
> >>>>> handleDiscrimination(****HttpInboundLink.java:452)
> >>>>>
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>> *handleNewRequest(
> >>>>> **HttpInboundLink.java:511)
> >>>>>
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
> >>>>> *processRequest(**
> >>>>>
> >>>>> HttpInboundLink.java:305)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.http.channel.****inbound.impl.****
> >>>>> HttpICLReadCallback.complete(****
> >>>>>
> >>>>> HttpICLReadCallback.java:83)
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
> >>>>> futureCompleted(
> >>>>> **AioReadCompletionListener.****java:165)
> >>>>>
> >>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
> >>>>>
> >>>>> AbstractAsyncFuture.java:217)
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(
> >>>>> *
> >>>>> *
> >>>>>
> >>>>> AsyncChannelFuture.java:161)
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****13
> >>>>> 8
> >>>>> )
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
> >>>>> 204)
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
> >>>>>
> >>>>> ResultHandler.java:775)
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:90
> >>>>> 5
> >>>>> )
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659
> >>>>> )
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
> >>>>> java.lang.NullPointerException
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(*
> >>>>> *
> >>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
> >>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> DefaultConversation.****touchConversation(****
> >>>>> DefaultConversation.java:201)
> >>>>>
> >>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
> >>>>>
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
> >>>>> i
> >>>>> on.**
> >>>>> GroupedConversationContext.****scopeBeanEntry(****
> >>>>> GroupedConversationContext.*
> >>>>>
> >>>>> *java:204)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>> conversation.**
> >>>>> AbstractGroupedConversationCon****text.create(**
> >>>>> AbstractGroupedConversationCon****text.java:98)
> >>>>>
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
> >>>>> conversation.**
> >>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
> >>>>> *
> >>>>> ***
> >>>>> java:81)
> >>>>>
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
> >>>>>
> >>>>> CustomContextImpl.java:43)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****g
> >>>>> e
> >>>>> t(**
> >>>>> CustomPassivatingContextImpl.****java:41)
> >>>>>
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
> >>>>> *
> >>>>> ***
> >>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
> >>>>>
> >>>>> dler.java:135)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
> >>>>> *
> >>>>> ***
> >>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
> >>>>>
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
> >>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$
> >>>>> *
> >>>>> *
> >>>>> _javassist_920.java)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> sun.reflect.**
> >>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> sun.reflect.**
> >>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.j
> >>>>> a
> >>>>> va:**
> >>>>> **60)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> sun.reflect.**
> >>>>> DelegatingMethodAccessorImpl.****invoke(****
> >>>>> DelegatingMethodAccessorImpl.****
> >>>>>
> >>>>> java:37)
> >>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> >>>>> java.lang.reflect.Method.****invoke(Method.java:611)
> >>>>>
> >>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
> >>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
> >>>>>
> >>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
> >>>>>
> >>>>>
>
>

AW: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Christian,

You say:

* PhaseListener implementation that acts after RESTORE_VIEW that
    catches the dynamic content request and streams back the content
    just like the resource handler of primefaces does

This was the solution for Primefaces 2.++ where I simply implemented my own
DynamicContentStreamer just moving all code from beforePhase() to
afterPhase(). This was the only change needed to make ViewAccessScope work.
Unfortunately the DynamicContentStreamer isn't used anymore in version 3.+
:-(

I really would appreciate if you could post your solution for that problem
(and I guess not only me but a couple of other people :-))

best regards
Thomas

-----Ursprüngliche Nachricht-----
Von: Christian Beikov [mailto:c.beikov@curecomp.com] 
Gesendet: Freitag, 17. Februar 2012 09:31
An: MyFaces Discussion
Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
ValueExpression

Hi Thomas!

This is probably already out of topic, but the main reason for the problem
is, that the scope is just not available if the view restore phase is not
completed.
My current solution is:

  * Own GraphicImageRenderer implementation that uses
    ViewHandler.getActionURL(resourcePath) to add the viewId to the
    image URL, then add the rest of the parameters needed for dynamic
    content
  * Own ResourceHandler implementation that overrides
    isResourceRequest() and returns false if the resource request is a
    request for the dynamic content
  * PhaseListener implementation that acts after RESTORE_VIEW that
    catches the dynamic content request and streams back the content
    just like the resource handler of primefaces does

It's not fully tested yet, but as soon as I have something to show I will
let you know and also post my solution for discussion on the forum and the
issue tracker.

regards,

Christian

Am 17.02.2012 09:21, schrieb Thomas Kernstock:
> Hi Christian,
>
> I have the same problem using Primefaces. Since updating to Primefaces 
> 3.++ the @ViewAccessScope isn't working anymore. Dynamic Image 
> unfortunately works only with SessionScope.
> Here is the forum thread ->
> http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313
>
> Cagatay knows that problem but it seems it can't be fixed ->  check 
> out these
> issues:
>
> http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dyna
> mic%20 
> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20
> Report
> er%20Owner%20Summary
> http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dyna
> mic%20 
> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20
> Report
> er%20Owner%20Summary
>
> It's even written in the Primefaces manual on page 197. Quote:
>
> "As a result there will be 2 requests to display an image, first 
> browser will make a request to load the page and then another one to 
> the dynamic image url that points to JSF resource handler. Please note 
> that you cannot use viewscope beans as viewscoped bean is not 
> available in resource loading request."
>
> best regards
>
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
> Gesendet: Donnerstag, 16. Februar 2012 17:09
> An: MyFaces Discussion
> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating 
> ValueExpression
>
> Thank you very much gerhard!
>
> I just implemented a test for the problem I face and in fact, 
> primefaces did something very wrong. Even the standard ViewScope is, 
> as expected, not supported.
>
> I appreciate your fast response time, CODI FTW! ;)
>
> Am 16.02.2012 17:05, schrieb Gerhard Petracek:
>> hi christian,
>>
>> the short answer is: no - it was never intended to support it.
>> however, if you provide an use-case which isn't supported, we will 
>> discuss it.
>>
>> regards,
>> gerhard
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>>
>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>
>>> The more concrete question on the problem i face would probably be:
>>>
>>> Is the ViewAccessScope designed to work for a JSF ResourceHandler 
>>> which is called instead of the normal JSF Lifecycle? None of the JSF 
>>> Phases is executed when a ResourceHandler is invoked, so would it 
>>> actually be possible that the VIewAccessScope could work?
>>>
>>> Resolving a bean within a ResourceHandler is probably not a big 
>>> thing and should not cause problems. Maybe the primefaces 
>>> implementation is just wrong to put the evaluation out of the JSF 
>>> Phases and should use a PhaseListener instead? I am pretty sure that 
>>> the evaluation would work when it was done within a PhaseListener,
correct me if I am wrong.
>>>
>>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>>
>>>> hi christian,
>>>>
>>>> a workaround would be an own ConversationFactory - but that means a 
>>>> lot of work.
>>>> since the myfaces codi conversation scopes (the view-access scope 
>>>> is just a special conversation type) are bound to jsf by default, 
>>>> it wasn't intended to support access outside of the jsf 
>>>> request-lifecycle.
>>>> however, you can checkout the source-code [1], fix it and check if 
>>>> the rest would work as needed for your use-case (and provide the 
>>>> patch afterwards).
>>>> or you provide a simple demo which shows the issue and we will do 
>>>> the rest.
>>>>
>>>> regards,
>>>> gerhard
>>>>
>>>> [1]
>>>> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<
>>>> h ttps://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>>
>>>> http://www.irian.at
>>>>
>>>> Your JSF/JavaEE powerhouse -
>>>> JavaEE Consulting, Development and
>>>> Courses in English and German
>>>>
>>>> Professional Support for Apache MyFaces
>>>>
>>>>
>>>>
>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>
>>>>    Hello there!
>>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the 
>>>>> PrimeFaces ResourceHandler.
>>>>>
>>>>> Primefaces evaluates a value expression within the resource 
>>>>> handler to retrieve dynamic content, why and how is not important. 
>>>>> The fact is, that the ResourceHandler is called before everything 
>>>>> else within the JSF Lifecycle.
>>>>>
>>>>> I am using the ViewAccessScope for the bean which should be 
>>>>> evaluated with the value expression within the ResourceHandler. I 
>>>>> debugged into it and found out that
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>>> conversation.****ViewAccessConversationExpirati****onEvaluator
>>>>> tries to
>>>>>
>>>>> retrieve the view root of the FacesContext or more exactly the 
>>>>> view id of it. The problem is, that the view root is null at that 
>>>>> time, so the evaluation ends with a NullPointerException in a CODI
class.
>>>>>
>>>>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>>>>
>>>>> I am using:
>>>>>
>>>>>    * Websphere 8.0.0.2
>>>>>    * MyFaces, the version shipped with Websphere
>>>>>    * CODI 1.0.1
>>>>>    * Primefaces 3.1.1
>>>>>
>>>>> Here is the full stacktrace:
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>> javax.el.ELException:
>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>> **java:55)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>> FacesCompositeELResolver.**
>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.
>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>> WrappedValueExpression.java:****68)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>> handleResourceRequest(
>>>>> **PrimeResourceHandler.java:**75)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>> handleResourceRequest(*
>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
>>>>> 1
>>>>> 83)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> service(ServletWrapper.java:****1188)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>> handleRequest(**
>>>>>
>>>>> ServletWrapperImpl.java:178)
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTar
>>>>> g
>>>>> et(**
>>>>>
>>>>> WebAppFilterChain.java:125)
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFil
>>>>> t
>>>>> er(**
>>>>>
>>>>> CharsetEncodingFilter.java:30)
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>> 115)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>> UserFilter.java:42)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>> ****
>>>>> doFilter(
>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>> invokeFilters(**
>>>>>
>>>>> WebAppFilterManager.java:1016)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>> handleRequest(**
>>>>>
>>>>> CacheServletWrapper.java:87)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>
>>>>> WebContainer.java:895)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>
>>>>> WSWebContainer.java:1662)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>
>>>>> WCChannelLink.java:195)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *handleNewRequest(
>>>>> **HttpInboundLink.java:511)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *processRequest(**
>>>>>
>>>>> HttpInboundLink.java:305)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>> HttpICLReadCallback.complete(****
>>>>>
>>>>> HttpICLReadCallback.java:83)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>> futureCompleted(
>>>>> **AioReadCompletionListener.****java:165)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>
>>>>> AbstractAsyncFuture.java:217)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(
>>>>> *
>>>>> *
>>>>>
>>>>> AsyncChannelFuture.java:161)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****13
>>>>> 8
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>> 204)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>
>>>>> ResultHandler.java:775)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:90
>>>>> 5
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>> java.lang.NullPointerException
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(*
>>>>> *
>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> DefaultConversation.****touchConversation(****
>>>>> DefaultConversation.java:201)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>> GroupedConversationContext.*
>>>>>
>>>>> *java:204)
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> AbstractGroupedConversationCon****text.create(**
>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
>>>>> *
>>>>> ***
>>>>> java:81)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>
>>>>> CustomContextImpl.java:43)
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****g
>>>>> e
>>>>> t(**
>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>> *
>>>>> ***
>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>>
>>>>> dler.java:135)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>> *
>>>>> ***
>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$
>>>>> *
>>>>> *
>>>>> _javassist_920.java)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.j
>>>>> a
>>>>> va:**
>>>>> **60)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>> DelegatingMethodAccessorImpl.****
>>>>>
>>>>> java:37)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>> javax.el.ELException:
>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>> **java:55)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>> FacesCompositeELResolver.**
>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.
>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>> WrappedValueExpression.java:****68)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>> handleResourceRequest(
>>>>> **PrimeResourceHandler.java:**75)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>> handleResourceRequest(*
>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:
>>>>> 1
>>>>> 83)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> service(ServletWrapper.java:****1188)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>> handleRequest(**
>>>>>
>>>>> ServletWrapperImpl.java:178)
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTar
>>>>> g
>>>>> et(**
>>>>>
>>>>> WebAppFilterChain.java:125)
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFil
>>>>> t
>>>>> er(**
>>>>>
>>>>> CharsetEncodingFilter.java:30)
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>> 115)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>> UserFilter.java:42)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>> ****
>>>>> doFilter(
>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFil
>>>>> t
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>> invokeFilters(**
>>>>>
>>>>> WebAppFilterManager.java:1016)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>> handleRequest(**
>>>>>
>>>>> CacheServletWrapper.java:87)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>
>>>>> WebContainer.java:895)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>
>>>>> WSWebContainer.java:1662)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>
>>>>> WCChannelLink.java:195)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *handleNewRequest(
>>>>> **HttpInboundLink.java:511)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *processRequest(**
>>>>>
>>>>> HttpInboundLink.java:305)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>> HttpICLReadCallback.complete(****
>>>>>
>>>>> HttpICLReadCallback.java:83)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>> futureCompleted(
>>>>> **AioReadCompletionListener.****java:165)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>
>>>>> AbstractAsyncFuture.java:217)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(
>>>>> *
>>>>> *
>>>>>
>>>>> AsyncChannelFuture.java:161)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****13
>>>>> 8
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>> 204)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>
>>>>> ResultHandler.java:775)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:90
>>>>> 5
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>> java.lang.NullPointerException
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(*
>>>>> *
>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> DefaultConversation.****touchConversation(****
>>>>> DefaultConversation.java:201)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversat
>>>>> i
>>>>> on.**
>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>> GroupedConversationContext.*
>>>>>
>>>>> *java:204)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> AbstractGroupedConversationCon****text.create(**
>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.
>>>>> *
>>>>> ***
>>>>> java:81)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>
>>>>> CustomContextImpl.java:43)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****g
>>>>> e
>>>>> t(**
>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>> *
>>>>> ***
>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>>
>>>>> dler.java:135)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan
>>>>> *
>>>>> ***
>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$
>>>>> *
>>>>> *
>>>>> _javassist_920.java)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.j
>>>>> a
>>>>> va:**
>>>>> **60)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>> DelegatingMethodAccessorImpl.****
>>>>>
>>>>> java:37)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>
>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>
>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>>
>>>>>


Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Christian Beikov <c....@curecomp.com>.
Hi Thomas!

This is probably already out of topic, but the main reason for the 
problem is, that the scope is just not available if the view restore 
phase is not completed.
My current solution is:

  * Own GraphicImageRenderer implementation that uses
    ViewHandler.getActionURL(resourcePath) to add the viewId to the
    image URL, then add the rest of the parameters needed for dynamic
    content
  * Own ResourceHandler implementation that overrides
    isResourceRequest() and returns false if the resource request is a
    request for the dynamic content
  * PhaseListener implementation that acts after RESTORE_VIEW that
    catches the dynamic content request and streams back the content
    just like the resource handler of primefaces does

It's not fully tested yet, but as soon as I have something to show I 
will let you know and also post my solution for discussion on the forum 
and the issue tracker.

regards,

Christian

Am 17.02.2012 09:21, schrieb Thomas Kernstock:
> Hi Christian,
>
> I have the same problem using Primefaces. Since updating to Primefaces 3.++
> the @ViewAccessScope isn't working anymore. Dynamic Image unfortunately
> works only with SessionScope.
> Here is the forum thread ->
> http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313
>
> Cagatay knows that problem but it seems it can't be fixed ->  check out these
> issues:
>
> http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dynamic%20
> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20Report
> er%20Owner%20Summary
> http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dynamic%20
> image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20Report
> er%20Owner%20Summary
>
> It's even written in the Primefaces manual on page 197. Quote:
>
> "As a result there will be 2 requests to display an image, first browser
> will make a request to load the
> page and then another one to the dynamic image url that points to JSF
> resource handler. Please note
> that you cannot use viewscope beans as viewscoped bean is not available in
> resource loading
> request."
>
> best regards
>
> Thomas
>
>
> -----Ursprüngliche Nachricht-----
> Von: Christian Beikov [mailto:c.beikov@curecomp.com]
> Gesendet: Donnerstag, 16. Februar 2012 17:09
> An: MyFaces Discussion
> Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
> ValueExpression
>
> Thank you very much gerhard!
>
> I just implemented a test for the problem I face and in fact, primefaces did
> something very wrong. Even the standard ViewScope is, as expected, not
> supported.
>
> I appreciate your fast response time, CODI FTW! ;)
>
> Am 16.02.2012 17:05, schrieb Gerhard Petracek:
>> hi christian,
>>
>> the short answer is: no - it was never intended to support it.
>> however, if you provide an use-case which isn't supported, we will
>> discuss it.
>>
>> regards,
>> gerhard
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>>
>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>
>>> The more concrete question on the problem i face would probably be:
>>>
>>> Is the ViewAccessScope designed to work for a JSF ResourceHandler
>>> which is called instead of the normal JSF Lifecycle? None of the JSF
>>> Phases is executed when a ResourceHandler is invoked, so would it
>>> actually be possible that the VIewAccessScope could work?
>>>
>>> Resolving a bean within a ResourceHandler is probably not a big thing
>>> and should not cause problems. Maybe the primefaces implementation is
>>> just wrong to put the evaluation out of the JSF Phases and should use
>>> a PhaseListener instead? I am pretty sure that the evaluation would
>>> work when it was done within a PhaseListener, correct me if I am wrong.
>>>
>>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>>
>>>> hi christian,
>>>>
>>>> a workaround would be an own ConversationFactory - but that means a
>>>> lot of work.
>>>> since the myfaces codi conversation scopes (the view-access scope is
>>>> just a special conversation type) are bound to jsf by default, it
>>>> wasn't intended to support access outside of the jsf
>>>> request-lifecycle.
>>>> however, you can checkout the source-code [1], fix it and check if
>>>> the rest would work as needed for your use-case (and provide the
>>>> patch afterwards).
>>>> or you provide a simple demo which shows the issue and we will do
>>>> the rest.
>>>>
>>>> regards,
>>>> gerhard
>>>>
>>>> [1]
>>>> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<h
>>>> ttps://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>>
>>>> http://www.irian.at
>>>>
>>>> Your JSF/JavaEE powerhouse -
>>>> JavaEE Consulting, Development and
>>>> Courses in English and German
>>>>
>>>> Professional Support for Apache MyFaces
>>>>
>>>>
>>>>
>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>
>>>>    Hello there!
>>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>>>>> PrimeFaces ResourceHandler.
>>>>>
>>>>> Primefaces evaluates a value expression within the resource handler
>>>>> to retrieve dynamic content, why and how is not important. The fact
>>>>> is, that the ResourceHandler is called before everything else
>>>>> within the JSF Lifecycle.
>>>>>
>>>>> I am using the ViewAccessScope for the bean which should be
>>>>> evaluated with the value expression within the ResourceHandler. I
>>>>> debugged into it and found out that
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>>> conversation.****ViewAccessConversationExpirati****onEvaluator
>>>>> tries to
>>>>>
>>>>> retrieve the view root of the FacesContext or more exactly the view
>>>>> id of it. The problem is, that the view root is null at that time,
>>>>> so the evaluation ends with a NullPointerException in a CODI class.
>>>>>
>>>>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>>>>
>>>>> I am using:
>>>>>
>>>>>    * Websphere 8.0.0.2
>>>>>    * MyFaces, the version shipped with Websphere
>>>>>    * CODI 1.0.1
>>>>>    * Primefaces 3.1.1
>>>>>
>>>>> Here is the full stacktrace:
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>> javax.el.ELException:
>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>> **java:55)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>> FacesCompositeELResolver.**
>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.
>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>> WrappedValueExpression.java:****68)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>> handleResourceRequest(
>>>>> **PrimeResourceHandler.java:**75)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>> handleResourceRequest(*
>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:1
>>>>> 83)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> service(ServletWrapper.java:****1188)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>> handleRequest(**
>>>>>
>>>>> ServletWrapperImpl.java:178)
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarg
>>>>> et(**
>>>>>
>>>>> WebAppFilterChain.java:125)
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilt
>>>>> er(**
>>>>>
>>>>> CharsetEncodingFilter.java:30)
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>> 115)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>> UserFilter.java:42)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>> ****
>>>>> doFilter(
>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>> invokeFilters(**
>>>>>
>>>>> WebAppFilterManager.java:1016)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>> handleRequest(**
>>>>>
>>>>> CacheServletWrapper.java:87)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>
>>>>> WebContainer.java:895)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>
>>>>> WSWebContainer.java:1662)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>
>>>>> WCChannelLink.java:195)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *handleNewRequest(
>>>>> **HttpInboundLink.java:511)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *processRequest(**
>>>>>
>>>>> HttpInboundLink.java:305)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>> HttpICLReadCallback.complete(****
>>>>>
>>>>> HttpICLReadCallback.java:83)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>> futureCompleted(
>>>>> **AioReadCompletionListener.****java:165)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>
>>>>> AbstractAsyncFuture.java:217)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(*
>>>>> *
>>>>>
>>>>> AsyncChannelFuture.java:161)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>> 204)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>
>>>>> ResultHandler.java:775)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>> java.lang.NullPointerException
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> DefaultConversation.****touchConversation(****
>>>>> DefaultConversation.java:201)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>> GroupedConversationContext.*
>>>>>
>>>>> *java:204)
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> AbstractGroupedConversationCon****text.create(**
>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.*
>>>>> ***
>>>>> java:81)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>
>>>>> CustomContextImpl.java:43)
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****ge
>>>>> t(**
>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>>> ***
>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>>
>>>>> dler.java:135)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>>> ***
>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$*
>>>>> *
>>>>> _javassist_920.java)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.ja
>>>>> va:**
>>>>> **60)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>> DelegatingMethodAccessorImpl.****
>>>>>
>>>>> java:37)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>> javax.el.ELException:
>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>>> **java:55)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.el.unified.****resolver.****
>>>>> FacesCompositeELResolver.**
>>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.
>>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>>> WrappedValueExpression.java:****68)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>>> handleResourceRequest(
>>>>> **PrimeResourceHandler.java:**75)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>>> handleResourceRequest(*
>>>>> *ResourceHandlerWrapper.java:****62)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:1
>>>>> 83)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> service(ServletWrapper.java:****1188)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:763)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.****java:454)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>>> handleRequest(**
>>>>>
>>>>> ServletWrapperImpl.java:178)
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarg
>>>>> et(**
>>>>>
>>>>> WebAppFilterChain.java:125)
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:92)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>>> doFilter(FileUploadFilter.****java:78)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilt
>>>>> er(**
>>>>>
>>>>> CharsetEncodingFilter.java:30)
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>>> 115)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>>> UserFilter.java:42)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>>> ****
>>>>> doFilter(
>>>>> **IbmApplicationSessionFilter.****java:25)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>>> er(**
>>>>> FilterInstanceWrapper.java:****192)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.****java:89)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>>> doFilter(WebAppFilterManager.****java:919)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>>> invokeFilters(**
>>>>>
>>>>> WebAppFilterManager.java:1016)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>>> handleRequest(**
>>>>>
>>>>> CacheServletWrapper.java:87)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>>
>>>>> WebContainer.java:895)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>>
>>>>> WSWebContainer.java:1662)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>>
>>>>> WCChannelLink.java:195)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *handleNewRequest(
>>>>> **HttpInboundLink.java:511)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>>> *processRequest(**
>>>>>
>>>>> HttpInboundLink.java:305)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>>> HttpICLReadCallback.complete(****
>>>>>
>>>>> HttpICLReadCallback.java:83)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>>> futureCompleted(
>>>>> **AioReadCompletionListener.****java:165)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>>
>>>>> AbstractAsyncFuture.java:217)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(*
>>>>> *
>>>>>
>>>>> AsyncChannelFuture.java:161)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>>> 204)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>>
>>>>> ResultHandler.java:775)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905
>>>>> )
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>> java.lang.NullPointerException
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> DefaultConversation.****touchConversation(****
>>>>> DefaultConversation.java:201)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>>> on.**
>>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>>> GroupedConversationContext.*
>>>>>
>>>>> *java:204)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> AbstractGroupedConversationCon****text.create(**
>>>>> AbstractGroupedConversationCon****text.java:98)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.*
>>>>> ***
>>>>> java:81)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>>
>>>>> CustomContextImpl.java:43)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****ge
>>>>> t(**
>>>>> CustomPassivatingContextImpl.****java:41)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>>> ***
>>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>>
>>>>> dler.java:135)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>>> ***
>>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$*
>>>>> *
>>>>> _javassist_920.java)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.ja
>>>>> va:**
>>>>> **60)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>>> DelegatingMethodAccessorImpl.****
>>>>>
>>>>> java:37)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>>
>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>>
>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>>
>>>>>

AW: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Thomas Kernstock <t....@e-technologies.at>.
Hi Christian,

I have the same problem using Primefaces. Since updating to Primefaces 3.++
the @ViewAccessScope isn't working anymore. Dynamic Image unfortunately
works only with SessionScope.
Here is the forum thread ->
http://forum.primefaces.org/viewtopic.php?f=3&t=17609&p=54313#p54313

Cagatay knows that problem but it seems it can't be fixed -> check out these
issues:

http://code.google.com/p/primefaces/issues/detail?id=1877&can=1&q=dynamic%20
image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20Report
er%20Owner%20Summary
http://code.google.com/p/primefaces/issues/detail?id=2768&can=1&q=dynamic%20
image&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20Report
er%20Owner%20Summary

It's even written in the Primefaces manual on page 197. Quote:

"As a result there will be 2 requests to display an image, first browser
will make a request to load the
page and then another one to the dynamic image url that points to JSF
resource handler. Please note
that you cannot use viewscope beans as viewscoped bean is not available in
resource loading
request."

best regards 

Thomas


-----Ursprüngliche Nachricht-----
Von: Christian Beikov [mailto:c.beikov@curecomp.com] 
Gesendet: Donnerstag, 16. Februar 2012 17:09
An: MyFaces Discussion
Betreff: Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating
ValueExpression

Thank you very much gerhard!

I just implemented a test for the problem I face and in fact, primefaces did
something very wrong. Even the standard ViewScope is, as expected, not
supported.

I appreciate your fast response time, CODI FTW! ;)

Am 16.02.2012 17:05, schrieb Gerhard Petracek:
> hi christian,
>
> the short answer is: no - it was never intended to support it.
> however, if you provide an use-case which isn't supported, we will 
> discuss it.
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/2/16 Christian Beikov<c....@curecomp.com>
>
>> The more concrete question on the problem i face would probably be:
>>
>> Is the ViewAccessScope designed to work for a JSF ResourceHandler 
>> which is called instead of the normal JSF Lifecycle? None of the JSF 
>> Phases is executed when a ResourceHandler is invoked, so would it 
>> actually be possible that the VIewAccessScope could work?
>>
>> Resolving a bean within a ResourceHandler is probably not a big thing 
>> and should not cause problems. Maybe the primefaces implementation is 
>> just wrong to put the evaluation out of the JSF Phases and should use 
>> a PhaseListener instead? I am pretty sure that the evaluation would 
>> work when it was done within a PhaseListener, correct me if I am wrong.
>>
>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>
>>> hi christian,
>>>
>>> a workaround would be an own ConversationFactory - but that means a 
>>> lot of work.
>>> since the myfaces codi conversation scopes (the view-access scope is 
>>> just a special conversation type) are bound to jsf by default, it 
>>> wasn't intended to support access outside of the jsf 
>>> request-lifecycle.
>>> however, you can checkout the source-code [1], fix it and check if 
>>> the rest would work as needed for your use-case (and provide the 
>>> patch afterwards).
>>> or you provide a simple demo which shows the issue and we will do 
>>> the rest.
>>>
>>> regards,
>>> gerhard
>>>
>>> [1] 
>>> https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<h
>>> ttps://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>
>>> http://www.irian.at
>>>
>>> Your JSF/JavaEE powerhouse -
>>> JavaEE Consulting, Development and
>>> Courses in English and German
>>>
>>> Professional Support for Apache MyFaces
>>>
>>>
>>>
>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>
>>>   Hello there!
>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the 
>>>> PrimeFaces ResourceHandler.
>>>>
>>>> Primefaces evaluates a value expression within the resource handler 
>>>> to retrieve dynamic content, why and how is not important. The fact 
>>>> is, that the ResourceHandler is called before everything else 
>>>> within the JSF Lifecycle.
>>>>
>>>> I am using the ViewAccessScope for the bean which should be 
>>>> evaluated with the value expression within the ResourceHandler. I 
>>>> debugged into it and found out that 
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>> conversation.****ViewAccessConversationExpirati****onEvaluator 
>>>> tries to
>>>>
>>>> retrieve the view root of the FacesContext or more exactly the view 
>>>> id of it. The problem is, that the view root is null at that time, 
>>>> so the evaluation ends with a NullPointerException in a CODI class.
>>>>
>>>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>>>
>>>> I am using:
>>>>
>>>>   * Websphere 8.0.0.2
>>>>   * MyFaces, the version shipped with Websphere
>>>>   * CODI 1.0.1
>>>>   * Primefaces 3.1.1
>>>>
>>>> Here is the full stacktrace:
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>> javax.el.ELException:
>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>> **java:55)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.el.unified.****resolver.****
>>>> FacesCompositeELResolver.**
>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.
>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>> WrappedValueExpression.java:****68)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>> handleResourceRequest(
>>>> **PrimeResourceHandler.java:**75)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>> handleResourceRequest(*
>>>> *ResourceHandlerWrapper.java:****62)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:1
>>>> 83)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> service(ServletWrapper.java:****1188)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:763)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:454)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>> handleRequest(**
>>>>
>>>> ServletWrapperImpl.java:178)
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarg
>>>> et(**
>>>>
>>>> WebAppFilterChain.java:125)
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:92)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>> doFilter(FileUploadFilter.****java:78)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilt
>>>> er(**
>>>>
>>>> CharsetEncodingFilter.java:30)
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>> 115)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>> UserFilter.java:42)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>> ****
>>>> doFilter(
>>>> **IbmApplicationSessionFilter.****java:25)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>> doFilter(WebAppFilterManager.****java:919)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>> invokeFilters(**
>>>>
>>>> WebAppFilterManager.java:1016)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>> handleRequest(**
>>>>
>>>> CacheServletWrapper.java:87)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>
>>>> WebContainer.java:895)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>
>>>> WSWebContainer.java:1662)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>
>>>> WCChannelLink.java:195)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *handleNewRequest(
>>>> **HttpInboundLink.java:511)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *processRequest(**
>>>>
>>>> HttpInboundLink.java:305)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>> HttpICLReadCallback.complete(****
>>>>
>>>> HttpICLReadCallback.java:83)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>> futureCompleted(
>>>> **AioReadCompletionListener.****java:165)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>
>>>> AbstractAsyncFuture.java:217)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(*
>>>> *
>>>>
>>>> AsyncChannelFuture.java:161)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138
>>>> )
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>> 204)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>
>>>> ResultHandler.java:775)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905
>>>> )
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>> java.lang.NullPointerException
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> DefaultConversation.****touchConversation(****
>>>> DefaultConversation.java:201)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>> GroupedConversationContext.*
>>>>
>>>> *java:204)
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> AbstractGroupedConversationCon****text.create(**
>>>> AbstractGroupedConversationCon****text.java:98)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.*
>>>> ***
>>>> java:81)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>
>>>> CustomContextImpl.java:43)
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****ge
>>>> t(**
>>>> CustomPassivatingContextImpl.****java:41)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>> ***
>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>
>>>> dler.java:135)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>> ***
>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$*
>>>> *
>>>> _javassist_920.java)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.ja
>>>> va:**
>>>> **60)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>> DelegatingMethodAccessorImpl.****
>>>>
>>>> java:37)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>> javax.el.ELException:
>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>> **java:55)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.el.unified.****resolver.****
>>>> FacesCompositeELResolver.**
>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.
>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>> WrappedValueExpression.java:****68)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>> handleResourceRequest(
>>>> **PrimeResourceHandler.java:**75)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>> handleResourceRequest(*
>>>> *ResourceHandlerWrapper.java:****62)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:1
>>>> 83)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> service(ServletWrapper.java:****1188)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:763)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:454)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>> handleRequest(**
>>>>
>>>> ServletWrapperImpl.java:178)
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarg
>>>> et(**
>>>>
>>>> WebAppFilterChain.java:125)
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:92)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>> doFilter(FileUploadFilter.****java:78)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilt
>>>> er(**
>>>>
>>>> CharsetEncodingFilter.java:30)
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:
>>>> 115)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>> UserFilter.java:42)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.
>>>> ****
>>>> doFilter(
>>>> **IbmApplicationSessionFilter.****java:25)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilt
>>>> er(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>> doFilter(WebAppFilterManager.****java:919)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>> invokeFilters(**
>>>>
>>>> WebAppFilterManager.java:1016)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>> handleRequest(**
>>>>
>>>> CacheServletWrapper.java:87)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>
>>>> WebContainer.java:895)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>
>>>> WSWebContainer.java:1662)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>
>>>> WCChannelLink.java:195)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *handleNewRequest(
>>>> **HttpInboundLink.java:511)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *processRequest(**
>>>>
>>>> HttpInboundLink.java:305)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>> HttpICLReadCallback.complete(****
>>>>
>>>> HttpICLReadCallback.java:83)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>> futureCompleted(
>>>> **AioReadCompletionListener.****java:165)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>
>>>> AbstractAsyncFuture.java:217)
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(*
>>>> *
>>>>
>>>> AsyncChannelFuture.java:161)
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138
>>>> )
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:
>>>> 204)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>
>>>> ResultHandler.java:775)
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905
>>>> )
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>> java.lang.NullPointerException
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> DefaultConversation.****touchConversation(****
>>>> DefaultConversation.java:201)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversati
>>>> on.**
>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>> GroupedConversationContext.*
>>>>
>>>> *java:204)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> AbstractGroupedConversationCon****text.create(**
>>>> AbstractGroupedConversationCon****text.java:98)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.*
>>>> ***
>>>> java:81)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>
>>>> CustomContextImpl.java:43)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****ge
>>>> t(**
>>>> CustomPassivatingContextImpl.****java:41)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>> ***
>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>
>>>> dler.java:135)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan*
>>>> ***
>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$*
>>>> *
>>>> _javassist_920.java)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.ja
>>>> va:**
>>>> **60)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>> DelegatingMethodAccessorImpl.****
>>>>
>>>> java:37)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>
>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>
>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>
>>>>


Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Gerhard Petracek <ge...@gmail.com>.
you are welcome! :)

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces


2012/2/16 Christian Beikov <c....@curecomp.com>

> Thank you very much gerhard!
>
> I just implemented a test for the problem I face and in fact, primefaces
> did something very wrong. Even the standard ViewScope is, as expected, not
> supported.
>
> I appreciate your fast response time, CODI FTW! ;)
>
> Am 16.02.2012 17:05, schrieb Gerhard Petracek:
>
>> hi christian,
>>
>> the short answer is: no - it was never intended to support it.
>> however, if you provide an use-case which isn't supported, we will discuss
>> it.
>>
>> regards,
>> gerhard
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>>
>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>
>>  The more concrete question on the problem i face would probably be:
>>>
>>> Is the ViewAccessScope designed to work for a JSF ResourceHandler which
>>> is
>>> called instead of the normal JSF Lifecycle? None of the JSF Phases is
>>> executed when a ResourceHandler is invoked, so would it actually be
>>> possible that the VIewAccessScope could work?
>>>
>>> Resolving a bean within a ResourceHandler is probably not a big thing and
>>> should not cause problems. Maybe the primefaces implementation is just
>>> wrong to put the evaluation out of the JSF Phases and should use a
>>> PhaseListener instead? I am pretty sure that the evaluation would work
>>> when
>>> it was done within a PhaseListener, correct me if I am wrong.
>>>
>>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>>
>>>  hi christian,
>>>>
>>>> a workaround would be an own ConversationFactory - but that means a lot
>>>> of
>>>> work.
>>>> since the myfaces codi conversation scopes (the view-access scope is
>>>> just
>>>> a
>>>> special conversation type) are bound to jsf by default, it wasn't
>>>> intended
>>>> to support access outside of the jsf request-lifecycle.
>>>> however, you can checkout the source-code [1], fix it and check if the
>>>> rest
>>>> would work as needed for your use-case (and provide the patch
>>>> afterwards).
>>>> or you provide a simple demo which shows the issue and we will do the
>>>> rest.
>>>>
>>>> regards,
>>>> gerhard
>>>>
>>>> [1] https://svn.apache.org/repos/****asf/myfaces/extensions/cdi/****
>>>> trunk/<https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/>
>>>> <https://svn.apache.org/**repos/asf/myfaces/extensions/**cdi/trunk/<https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>> >
>>>>
>>>>
>>>> http://www.irian.at
>>>>
>>>> Your JSF/JavaEE powerhouse -
>>>> JavaEE Consulting, Development and
>>>> Courses in English and German
>>>>
>>>> Professional Support for Apache MyFaces
>>>>
>>>>
>>>>
>>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>>
>>>>  Hello there!
>>>>
>>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>>>>> PrimeFaces ResourceHandler.
>>>>>
>>>>> Primefaces evaluates a value expression within the resource handler to
>>>>> retrieve dynamic content, why and how is not important. The fact is,
>>>>> that
>>>>> the ResourceHandler is called before everything else within the JSF
>>>>> Lifecycle.
>>>>>
>>>>> I am using the ViewAccessScope for the bean which should be evaluated
>>>>> with
>>>>> the value expression within the ResourceHandler. I debugged into it and
>>>>> found out that org.apache.myfaces.extensions.**
>>>>> ****cdi.jsf.impl.scope.**
>>>>> conversation.******ViewAccessConversationExpirati******onEvaluator
>>>>> tries to
>>>>>
>>>>>
>>>>> retrieve the view root of the FacesContext or more exactly the view id
>>>>> of
>>>>> it. The problem is, that the view root is null at that time, so the
>>>>> evaluation ends with a NullPointerException in a CODI class.
>>>>>
>>>>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>>>>
>>>>> I am using:
>>>>>
>>>>>  * Websphere 8.0.0.2
>>>>>  * MyFaces, the version shipped with Websphere
>>>>>  * CODI 1.0.1
>>>>>  * Primefaces 3.1.1
>>>>>
>>>>> Here is the full stacktrace:
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>>> javax.el.ELException:
>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>> SobSupplierRegistrationBean_$$******_javassist_920
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:******93)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> javax.el.CompositeELResolver.******getValue(**CompositeELResolver.**
>>>>>
>>>>> **java:55)
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.el.unified.******resolver.****
>>>>> FacesCompositeELResolver.**
>>>>> getValue(******FacesCompositeELResolver.java:******142)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.parser.AstValue.******getValue(AstValue.java:**169)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.
>>>>> **ValueExpressionImpl.****getValue(******ValueExpressionImpl.java:283)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.el.******WrappedValueExpression.******getValue(**
>>>>> WrappedValueExpression.java:******68)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> org.primefaces.application.******PrimeResourceHandler.****
>>>>> handleResourceRequest(
>>>>> **PrimeResourceHandler.java:****75)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.application.******ResourceHandlerWrapper.****
>>>>> handleResourceRequest(*
>>>>> *ResourceHandlerWrapper.java:******62)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.webapp.******FacesServlet.service(******
>>>>> FacesServlet.java:183)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>> service(ServletWrapper.java:******1188)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.******java:763)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.******java:454)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapperImpl.******
>>>>>
>>>>> handleRequest(**
>>>>>
>>>>> ServletWrapperImpl.java:178)
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.******
>>>>> invokeTarget(**
>>>>>
>>>>>
>>>>> WebAppFilterChain.java:125)
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:92)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.FileUploadFilter.**
>>>>> doFilter(FileUploadFilter.******java:78)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.CharsetEncodingFilter.***
>>>>> ***doFilter(**
>>>>>
>>>>>
>>>>> CharsetEncodingFilter.java:30)
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ocpsoft.pretty.******PrettyFilter.doFilter(******
>>>>> PrettyFilter.java:115)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.UserFilter.doFilter(******
>>>>>
>>>>> UserFilter.java:42)
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.******
>>>>> IbmApplicationSessionFilter.******
>>>>> doFilter(
>>>>> **IbmApplicationSessionFilter.******java:25)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.**
>>>>> doFilter(WebAppFilterManager.******java:919)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.******
>>>>>
>>>>> invokeFilters(**
>>>>>
>>>>> WebAppFilterManager.java:1016)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.CacheServletWrapper.******
>>>>>
>>>>> handleRequest(**
>>>>>
>>>>> CacheServletWrapper.java:87)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******WebContainer.handleRequest(**
>>>>>
>>>>>
>>>>> WebContainer.java:895)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******WSWebContainer.handleRequest(******
>>>>>
>>>>>
>>>>> WSWebContainer.java:1662)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******channel.WCChannelLink.ready(**
>>>>>
>>>>>
>>>>> WCChannelLink.java:195)
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.******
>>>>> handleDiscrimination(******HttpInboundLink.java:452)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>
>>>>> *handleNewRequest(
>>>>> **HttpInboundLink.java:511)
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>
>>>>> *processRequest(**
>>>>>
>>>>> HttpInboundLink.java:305)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.****
>>>>> HttpICLReadCallback.complete(******
>>>>>
>>>>>
>>>>> HttpICLReadCallback.java:83)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.tcp.channel.impl.******AioReadCompletionListener.******
>>>>> futureCompleted(
>>>>> **AioReadCompletionListener.******java:165)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******AbstractAsyncFuture.******invokeCallback(**
>>>>>
>>>>>
>>>>> AbstractAsyncFuture.java:217)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******AsyncChannelFuture.******
>>>>> fireCompletionActions(**
>>>>>
>>>>>
>>>>> AsyncChannelFuture.java:161)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.AsyncFuture.******completed(AsyncFuture.java:**
>>>>> ****138)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******ResultHandler.complete(******
>>>>> ResultHandler.java:204)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******ResultHandler.******runEventProcessingLoop(**
>>>>>
>>>>>
>>>>> ResultHandler.java:775)
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******ResultHandler$2.run(******
>>>>> ResultHandler.java:905)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.util.ThreadPool$******Worker.run(ThreadPool.java:****
>>>>> **1659)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>>> java.lang.NullPointerException
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> ViewAccessConversationExpirati******onEvaluator.****
>>>>> getCurrentViewId(**
>>>>> ViewAccessConversationExpirati******onEvaluator.java:114)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> ViewAccessConversationExpirati******onEvaluator.touch(**
>>>>> ViewAccessConversationExpirati******onEvaluator.java:100)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> DefaultConversation.******touchConversation(****
>>>>>
>>>>> DefaultConversation.java:201)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> DefaultConversation.addBean(******DefaultConversation.java:**177)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> GroupedConversationContext.******scopeBeanEntry(****
>>>>>
>>>>> GroupedConversationContext.*
>>>>>
>>>>> *java:204)
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> AbstractGroupedConversationCon******text.create(**
>>>>> AbstractGroupedConversationCon******text.java:98)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> ConversationContextAdapter.******get(******
>>>>> ConversationContextAdapter.******
>>>>>
>>>>> java:81)
>>>>>
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.******CustomContextImpl.get(**
>>>>>
>>>>>
>>>>> CustomContextImpl.java:43)
>>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.********CustomPassivatingContextImpl.***
>>>>> ***get(**
>>>>> CustomPassivatingContextImpl.******java:41)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.**********NormalScopedBeanInterceptorHan
>>>>> ******
>>>>> dler.getContextualInstance(********NormalScopedBeanInterceptorHan**
>>>>> ****
>>>>>
>>>>>
>>>>> dler.java:135)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.**********NormalScopedBeanInterceptorHan
>>>>> ******
>>>>> dler.invoke(******NormalScopedBeanInterceptorHan******dler.java:95)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.sob.bean.******SobSupplierRegistrationBean_**$$****
>>>>> _javassist_920.getCompanyLogo(********SobSupplierRegistrationBean_****
>>>>> $$**
>>>>>
>>>>> _javassist_920.java)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.******invoke0(Native Method)
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.******invoke(******
>>>>> NativeMethodAccessorImpl.java:****
>>>>>
>>>>> **60)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> DelegatingMethodAccessorImpl.******invoke(****
>>>>> DelegatingMethodAccessorImpl.******
>>>>>
>>>>>
>>>>> java:37)
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> java.lang.reflect.Method.******invoke(Method.java:611)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:******89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>>> javax.el.ELException:
>>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>>> SobSupplierRegistrationBean_$$******_javassist_920
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:******93)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> javax.el.CompositeELResolver.******getValue(**CompositeELResolver.**
>>>>>
>>>>> **java:55)
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.el.unified.******resolver.****
>>>>> FacesCompositeELResolver.**
>>>>> getValue(******FacesCompositeELResolver.java:******142)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.parser.AstValue.******getValue(AstValue.java:**169)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.el.
>>>>> **ValueExpressionImpl.****getValue(******ValueExpressionImpl.java:283)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.el.******WrappedValueExpression.******getValue(**
>>>>> WrappedValueExpression.java:******68)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>>> org.primefaces.application.******PrimeResourceHandler.****
>>>>> handleResourceRequest(
>>>>> **PrimeResourceHandler.java:****75)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.application.******ResourceHandlerWrapper.****
>>>>> handleResourceRequest(*
>>>>> *ResourceHandlerWrapper.java:******62)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> javax.faces.webapp.******FacesServlet.service(******
>>>>> FacesServlet.java:183)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>> service(ServletWrapper.java:******1188)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.******java:763)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapper.**
>>>>> handleRequest(ServletWrapper.******java:454)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.ServletWrapperImpl.******
>>>>>
>>>>> handleRequest(**
>>>>>
>>>>> ServletWrapperImpl.java:178)
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.******
>>>>> invokeTarget(**
>>>>>
>>>>>
>>>>> WebAppFilterChain.java:125)
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:92)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.FileUploadFilter.**
>>>>> doFilter(FileUploadFilter.******java:78)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.CharsetEncodingFilter.***
>>>>> ***doFilter(**
>>>>>
>>>>>
>>>>> CharsetEncodingFilter.java:30)
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ocpsoft.pretty.******PrettyFilter.doFilter(******
>>>>> PrettyFilter.java:115)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.UserFilter.doFilter(******
>>>>>
>>>>> UserFilter.java:42)
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.core.******filter.******
>>>>> IbmApplicationSessionFilter.******
>>>>> doFilter(
>>>>> **IbmApplicationSessionFilter.******java:25)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.FilterInstanceWrapper.***
>>>>> ***doFilter(**
>>>>> FilterInstanceWrapper.java:******192)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterChain.**
>>>>> doFilter(WebAppFilterChain.******java:89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.**
>>>>> doFilter(WebAppFilterManager.******java:919)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******filter.WebAppFilterManager.******
>>>>>
>>>>> invokeFilters(**
>>>>>
>>>>> WebAppFilterManager.java:1016)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******servlet.CacheServletWrapper.******
>>>>>
>>>>> handleRequest(**
>>>>>
>>>>> CacheServletWrapper.java:87)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******WebContainer.handleRequest(**
>>>>>
>>>>>
>>>>> WebContainer.java:895)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******WSWebContainer.handleRequest(******
>>>>>
>>>>>
>>>>> WSWebContainer.java:1662)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.webcontainer.******channel.WCChannelLink.ready(**
>>>>>
>>>>>
>>>>> WCChannelLink.java:195)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.******
>>>>> handleDiscrimination(******HttpInboundLink.java:452)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>
>>>>> *handleNewRequest(
>>>>> **HttpInboundLink.java:511)
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.HttpInboundLink.*****
>>>>>
>>>>> *processRequest(**
>>>>>
>>>>> HttpInboundLink.java:305)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.http.channel.******inbound.impl.****
>>>>> HttpICLReadCallback.complete(******
>>>>>
>>>>>
>>>>> HttpICLReadCallback.java:83)
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.tcp.channel.impl.******AioReadCompletionListener.******
>>>>> futureCompleted(
>>>>> **AioReadCompletionListener.******java:165)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******AbstractAsyncFuture.******invokeCallback(**
>>>>>
>>>>>
>>>>> AbstractAsyncFuture.java:217)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******AsyncChannelFuture.******
>>>>> fireCompletionActions(**
>>>>>
>>>>>
>>>>> AsyncChannelFuture.java:161)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.AsyncFuture.******completed(AsyncFuture.java:**
>>>>> ****138)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******ResultHandler.complete(******
>>>>> ResultHandler.java:204)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******ResultHandler.******runEventProcessingLoop(**
>>>>>
>>>>>
>>>>> ResultHandler.java:775)
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.io.async.******ResultHandler$2.run(******
>>>>> ResultHandler.java:905)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> com.ibm.ws.util.ThreadPool$******Worker.run(ThreadPool.java:****
>>>>> **1659)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>>> java.lang.NullPointerException
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> ViewAccessConversationExpirati******onEvaluator.****
>>>>> getCurrentViewId(**
>>>>> ViewAccessConversationExpirati******onEvaluator.java:114)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> ViewAccessConversationExpirati******onEvaluator.touch(**
>>>>> ViewAccessConversationExpirati******onEvaluator.java:100)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> DefaultConversation.******touchConversation(****
>>>>>
>>>>> DefaultConversation.java:201)
>>>>>
>>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> DefaultConversation.addBean(******DefaultConversation.java:**177)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.jsf.impl.scope.******
>>>>> conversation.**
>>>>> GroupedConversationContext.******scopeBeanEntry(****
>>>>>
>>>>> GroupedConversationContext.*
>>>>>
>>>>> *java:204)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> AbstractGroupedConversationCon******text.create(**
>>>>> AbstractGroupedConversationCon******text.java:98)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.myfaces.extensions.******cdi.core.impl.scope.****
>>>>> conversation.**
>>>>> ConversationContextAdapter.******get(******
>>>>> ConversationContextAdapter.******
>>>>>
>>>>> java:81)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.******CustomContextImpl.get(**
>>>>>
>>>>>
>>>>> CustomContextImpl.java:43)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.context.********CustomPassivatingContextImpl.***
>>>>> ***get(**
>>>>> CustomPassivatingContextImpl.******java:41)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.**********NormalScopedBeanInterceptorHan
>>>>> ******
>>>>> dler.getContextualInstance(********NormalScopedBeanInterceptorHan**
>>>>> ****
>>>>>
>>>>>
>>>>> dler.java:135)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> org.apache.webbeans.intercept.**********NormalScopedBeanInterceptorHan
>>>>> ******
>>>>> dler.invoke(******NormalScopedBeanInterceptorHan******dler.java:95)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> com.clevercure.web.sob.bean.******SobSupplierRegistrationBean_**$$****
>>>>> _javassist_920.getCompanyLogo(********SobSupplierRegistrationBean_****
>>>>> $$**
>>>>>
>>>>> _javassist_920.java)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.******invoke0(Native Method)
>>>>>
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> NativeMethodAccessorImpl.******invoke(******
>>>>> NativeMethodAccessorImpl.java:****
>>>>>
>>>>> **60)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> sun.reflect.**
>>>>> DelegatingMethodAccessorImpl.******invoke(****
>>>>> DelegatingMethodAccessorImpl.******
>>>>>
>>>>>
>>>>> java:37)
>>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>>> java.lang.reflect.Method.******invoke(Method.java:611)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>>> javax.el.BeanELResolver.******getValue(BeanELResolver.java:******89)
>>>>>
>>>>>
>>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>>
>>>>>
>>>>>

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Christian Beikov <c....@curecomp.com>.
Thank you very much gerhard!

I just implemented a test for the problem I face and in fact, primefaces 
did something very wrong. Even the standard ViewScope is, as expected, 
not supported.

I appreciate your fast response time, CODI FTW! ;)

Am 16.02.2012 17:05, schrieb Gerhard Petracek:
> hi christian,
>
> the short answer is: no - it was never intended to support it.
> however, if you provide an use-case which isn't supported, we will discuss
> it.
>
> regards,
> gerhard
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/2/16 Christian Beikov<c....@curecomp.com>
>
>> The more concrete question on the problem i face would probably be:
>>
>> Is the ViewAccessScope designed to work for a JSF ResourceHandler which is
>> called instead of the normal JSF Lifecycle? None of the JSF Phases is
>> executed when a ResourceHandler is invoked, so would it actually be
>> possible that the VIewAccessScope could work?
>>
>> Resolving a bean within a ResourceHandler is probably not a big thing and
>> should not cause problems. Maybe the primefaces implementation is just
>> wrong to put the evaluation out of the JSF Phases and should use a
>> PhaseListener instead? I am pretty sure that the evaluation would work when
>> it was done within a PhaseListener, correct me if I am wrong.
>>
>> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>>
>>> hi christian,
>>>
>>> a workaround would be an own ConversationFactory - but that means a lot of
>>> work.
>>> since the myfaces codi conversation scopes (the view-access scope is just
>>> a
>>> special conversation type) are bound to jsf by default, it wasn't intended
>>> to support access outside of the jsf request-lifecycle.
>>> however, you can checkout the source-code [1], fix it and check if the
>>> rest
>>> would work as needed for your use-case (and provide the patch afterwards).
>>> or you provide a simple demo which shows the issue and we will do the
>>> rest.
>>>
>>> regards,
>>> gerhard
>>>
>>> [1] https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>>
>>> http://www.irian.at
>>>
>>> Your JSF/JavaEE powerhouse -
>>> JavaEE Consulting, Development and
>>> Courses in English and German
>>>
>>> Professional Support for Apache MyFaces
>>>
>>>
>>>
>>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>>
>>>   Hello there!
>>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>>>> PrimeFaces ResourceHandler.
>>>>
>>>> Primefaces evaluates a value expression within the resource handler to
>>>> retrieve dynamic content, why and how is not important. The fact is, that
>>>> the ResourceHandler is called before everything else within the JSF
>>>> Lifecycle.
>>>>
>>>> I am using the ViewAccessScope for the bean which should be evaluated
>>>> with
>>>> the value expression within the ResourceHandler. I debugged into it and
>>>> found out that org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>>> conversation.****ViewAccessConversationExpirati****onEvaluator tries to
>>>>
>>>> retrieve the view root of the FacesContext or more exactly the view id of
>>>> it. The problem is, that the view root is null at that time, so the
>>>> evaluation ends with a NullPointerException in a CODI class.
>>>>
>>>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>>>
>>>> I am using:
>>>>
>>>>   * Websphere 8.0.0.2
>>>>   * MyFaces, the version shipped with Websphere
>>>>   * CODI 1.0.1
>>>>   * Primefaces 3.1.1
>>>>
>>>> Here is the full stacktrace:
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>>> javax.el.ELException:
>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>> **java:55)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.el.unified.****resolver.****
>>>> FacesCompositeELResolver.**
>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.
>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>
>>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>> WrappedValueExpression.java:****68)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>> handleResourceRequest(
>>>> **PrimeResourceHandler.java:**75)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>> handleResourceRequest(*
>>>> *ResourceHandlerWrapper.java:****62)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> service(ServletWrapper.java:****1188)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:763)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:454)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>> handleRequest(**
>>>>
>>>> ServletWrapperImpl.java:178)
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
>>>>
>>>> WebAppFilterChain.java:125)
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:92)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>> doFilter(FileUploadFilter.****java:78)
>>>>
>>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
>>>>
>>>> CharsetEncodingFilter.java:30)
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>> UserFilter.java:42)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
>>>> doFilter(
>>>> **IbmApplicationSessionFilter.****java:25)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>> doFilter(WebAppFilterManager.****java:919)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>> invokeFilters(**
>>>>
>>>> WebAppFilterManager.java:1016)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>> handleRequest(**
>>>>
>>>> CacheServletWrapper.java:87)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>
>>>> WebContainer.java:895)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>
>>>> WSWebContainer.java:1662)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>
>>>> WCChannelLink.java:195)
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>
>>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *handleNewRequest(
>>>> **HttpInboundLink.java:511)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *processRequest(**
>>>>
>>>> HttpInboundLink.java:305)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>> HttpICLReadCallback.complete(****
>>>>
>>>> HttpICLReadCallback.java:83)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>> futureCompleted(
>>>> **AioReadCompletionListener.****java:165)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>
>>>> AbstractAsyncFuture.java:217)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
>>>>
>>>> AsyncChannelFuture.java:161)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>
>>>> ResultHandler.java:775)
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>>
>>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>>> java.lang.NullPointerException
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> DefaultConversation.****touchConversation(****
>>>> DefaultConversation.java:201)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>> GroupedConversationContext.*
>>>>
>>>> *java:204)
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> AbstractGroupedConversationCon****text.create(**
>>>> AbstractGroupedConversationCon****text.java:98)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.****
>>>> java:81)
>>>>
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>
>>>> CustomContextImpl.java:43)
>>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
>>>> CustomPassivatingContextImpl.****java:41)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>
>>>> dler.java:135)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
>>>> _javassist_920.java)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
>>>> **60)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>> DelegatingMethodAccessorImpl.****
>>>>
>>>> java:37)
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>
>>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>>> javax.el.ELException:
>>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>>> **java:55)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.el.unified.****resolver.****
>>>> FacesCompositeELResolver.**
>>>> getValue(****FacesCompositeELResolver.java:****142)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.el.
>>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>>> WrappedValueExpression.java:****68)
>>>>
>>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>>> org.primefaces.application.****PrimeResourceHandler.****
>>>> handleResourceRequest(
>>>> **PrimeResourceHandler.java:**75)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> javax.faces.application.****ResourceHandlerWrapper.****
>>>> handleResourceRequest(*
>>>> *ResourceHandlerWrapper.java:****62)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> service(ServletWrapper.java:****1188)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:763)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>>> handleRequest(ServletWrapper.****java:454)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>>> handleRequest(**
>>>>
>>>> ServletWrapperImpl.java:178)
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
>>>>
>>>> WebAppFilterChain.java:125)
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:92)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>>> doFilter(FileUploadFilter.****java:78)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
>>>>
>>>> CharsetEncodingFilter.java:30)
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>>> UserFilter.java:42)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
>>>> doFilter(
>>>> **IbmApplicationSessionFilter.****java:25)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>>> FilterInstanceWrapper.java:****192)
>>>>
>>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>>> doFilter(WebAppFilterChain.****java:89)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>>> doFilter(WebAppFilterManager.****java:919)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>>> invokeFilters(**
>>>>
>>>> WebAppFilterManager.java:1016)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>>> handleRequest(**
>>>>
>>>> CacheServletWrapper.java:87)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>>
>>>> WebContainer.java:895)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>>
>>>> WSWebContainer.java:1662)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>>
>>>> WCChannelLink.java:195)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *handleNewRequest(
>>>> **HttpInboundLink.java:511)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>>> *processRequest(**
>>>>
>>>> HttpInboundLink.java:305)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.http.channel.****inbound.impl.****
>>>> HttpICLReadCallback.complete(****
>>>>
>>>> HttpICLReadCallback.java:83)
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>>> futureCompleted(
>>>> **AioReadCompletionListener.****java:165)
>>>>
>>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>>
>>>> AbstractAsyncFuture.java:217)
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
>>>>
>>>> AsyncChannelFuture.java:161)
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>>
>>>> ResultHandler.java:775)
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>>> java.lang.NullPointerException
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> DefaultConversation.****touchConversation(****
>>>> DefaultConversation.java:201)
>>>>
>>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>>> GroupedConversationContext.****scopeBeanEntry(****
>>>> GroupedConversationContext.*
>>>>
>>>> *java:204)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> AbstractGroupedConversationCon****text.create(**
>>>> AbstractGroupedConversationCon****text.java:98)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>>> conversation.**
>>>> ConversationContextAdapter.****get(****ConversationContextAdapter.****
>>>> java:81)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>>
>>>> CustomContextImpl.java:43)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
>>>> CustomPassivatingContextImpl.****java:41)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>>
>>>> dler.java:135)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>>
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
>>>> _javassist_920.java)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
>>>> **60)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> sun.reflect.**
>>>> DelegatingMethodAccessorImpl.****invoke(****
>>>> DelegatingMethodAccessorImpl.****
>>>>
>>>> java:37)
>>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>>
>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>>
>>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>>
>>>>

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

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

the short answer is: no - it was never intended to support it.
however, if you provide an use-case which isn't supported, we will discuss
it.

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces



2012/2/16 Christian Beikov <c....@curecomp.com>

> The more concrete question on the problem i face would probably be:
>
> Is the ViewAccessScope designed to work for a JSF ResourceHandler which is
> called instead of the normal JSF Lifecycle? None of the JSF Phases is
> executed when a ResourceHandler is invoked, so would it actually be
> possible that the VIewAccessScope could work?
>
> Resolving a bean within a ResourceHandler is probably not a big thing and
> should not cause problems. Maybe the primefaces implementation is just
> wrong to put the evaluation out of the JSF Phases and should use a
> PhaseListener instead? I am pretty sure that the evaluation would work when
> it was done within a PhaseListener, correct me if I am wrong.
>
> Am 16.02.2012 16:47, schrieb Gerhard Petracek:
>
>> hi christian,
>>
>> a workaround would be an own ConversationFactory - but that means a lot of
>> work.
>> since the myfaces codi conversation scopes (the view-access scope is just
>> a
>> special conversation type) are bound to jsf by default, it wasn't intended
>> to support access outside of the jsf request-lifecycle.
>> however, you can checkout the source-code [1], fix it and check if the
>> rest
>> would work as needed for your use-case (and provide the patch afterwards).
>> or you provide a simple demo which shows the issue and we will do the
>> rest.
>>
>> regards,
>> gerhard
>>
>> [1] https://svn.apache.org/repos/**asf/myfaces/extensions/cdi/**trunk/<https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/>
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>>
>>
>> 2012/2/16 Christian Beikov<c....@curecomp.com>
>>
>>  Hello there!
>>>
>>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>>> PrimeFaces ResourceHandler.
>>>
>>> Primefaces evaluates a value expression within the resource handler to
>>> retrieve dynamic content, why and how is not important. The fact is, that
>>> the ResourceHandler is called before everything else within the JSF
>>> Lifecycle.
>>>
>>> I am using the ViewAccessScope for the bean which should be evaluated
>>> with
>>> the value expression within the ResourceHandler. I debugged into it and
>>> found out that org.apache.myfaces.extensions.****cdi.jsf.impl.scope.**
>>> conversation.****ViewAccessConversationExpirati****onEvaluator tries to
>>>
>>> retrieve the view root of the FacesContext or more exactly the view id of
>>> it. The problem is, that the view root is null at that time, so the
>>> evaluation ends with a NullPointerException in a CODI class.
>>>
>>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>>
>>> I am using:
>>>
>>>  * Websphere 8.0.0.2
>>>  * MyFaces, the version shipped with Websphere
>>>  * CODI 1.0.1
>>>  * Primefaces 3.1.1
>>>
>>> Here is the full stacktrace:
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R
>>> javax.el.ELException:
>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>> **java:55)
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.el.unified.****resolver.****
>>> FacesCompositeELResolver.**
>>> getValue(****FacesCompositeELResolver.java:****142)
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>> org.apache.el.
>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>
>>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>> WrappedValueExpression.java:****68)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> org.primefaces.application.****PrimeResourceHandler.****
>>> handleResourceRequest(
>>> **PrimeResourceHandler.java:**75)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> javax.faces.application.****ResourceHandlerWrapper.****
>>> handleResourceRequest(*
>>> *ResourceHandlerWrapper.java:****62)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>> service(ServletWrapper.java:****1188)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>> handleRequest(ServletWrapper.****java:763)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>> handleRequest(ServletWrapper.****java:454)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>> handleRequest(**
>>>
>>> ServletWrapperImpl.java:178)
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
>>>
>>> WebAppFilterChain.java:125)
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:92)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>> doFilter(FileUploadFilter.****java:78)
>>>
>>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
>>>
>>> CharsetEncodingFilter.java:30)
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>> UserFilter.java:42)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
>>> doFilter(
>>> **IbmApplicationSessionFilter.****java:25)
>>>
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>> doFilter(WebAppFilterManager.****java:919)
>>>
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>> invokeFilters(**
>>>
>>> WebAppFilterManager.java:1016)
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>> handleRequest(**
>>>
>>> CacheServletWrapper.java:87)
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>
>>> WebContainer.java:895)
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>
>>> WSWebContainer.java:1662)
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>
>>> WCChannelLink.java:195)
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>
>>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>> *handleNewRequest(
>>> **HttpInboundLink.java:511)
>>>
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>> *processRequest(**
>>>
>>> HttpInboundLink.java:305)
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.****
>>> HttpICLReadCallback.complete(****
>>>
>>> HttpICLReadCallback.java:83)
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>> futureCompleted(
>>> **AioReadCompletionListener.****java:165)
>>>
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>
>>> AbstractAsyncFuture.java:217)
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
>>>
>>> AsyncChannelFuture.java:161)
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
>>>
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
>>>
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>
>>> ResultHandler.java:775)
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
>>>
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>
>>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>>> java.lang.NullPointerException
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> DefaultConversation.****touchConversation(****
>>> DefaultConversation.java:201)
>>>
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> GroupedConversationContext.****scopeBeanEntry(****
>>> GroupedConversationContext.*
>>>
>>> *java:204)
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>> conversation.**
>>> AbstractGroupedConversationCon****text.create(**
>>> AbstractGroupedConversationCon****text.java:98)
>>>
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>> conversation.**
>>> ConversationContextAdapter.****get(****ConversationContextAdapter.****
>>> java:81)
>>>
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>
>>> CustomContextImpl.java:43)
>>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
>>> CustomPassivatingContextImpl.****java:41)
>>>
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>
>>> dler.java:135)
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
>>> _javassist_920.java)
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> sun.reflect.**
>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> sun.reflect.**
>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
>>> **60)
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> sun.reflect.**
>>> DelegatingMethodAccessorImpl.****invoke(****
>>> DelegatingMethodAccessorImpl.****
>>>
>>> java:37)
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>
>>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R
>>> javax.el.ELException:
>>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>>> SobSupplierRegistrationBean_$$****_javassist_920
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****93)
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> javax.el.CompositeELResolver.****getValue(CompositeELResolver.**
>>> **java:55)
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.el.unified.****resolver.****
>>> FacesCompositeELResolver.**
>>> getValue(****FacesCompositeELResolver.java:****142)
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> org.apache.el.parser.AstValue.****getValue(AstValue.java:169)
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> org.apache.el.
>>> **ValueExpressionImpl.**getValue(****ValueExpressionImpl.java:283)
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.el.****WrappedValueExpression.****getValue(**
>>> WrappedValueExpression.java:****68)
>>>
>>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>>> org.primefaces.application.****PrimeResourceHandler.****
>>> handleResourceRequest(
>>> **PrimeResourceHandler.java:**75)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> javax.faces.application.****ResourceHandlerWrapper.****
>>> handleResourceRequest(*
>>> *ResourceHandlerWrapper.java:****62)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> javax.faces.webapp.****FacesServlet.service(****FacesServlet.java:183)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>> service(ServletWrapper.java:****1188)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>> handleRequest(ServletWrapper.****java:763)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapper.**
>>> handleRequest(ServletWrapper.****java:454)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.ServletWrapperImpl.****
>>> handleRequest(**
>>>
>>> ServletWrapperImpl.java:178)
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.****invokeTarget(**
>>>
>>> WebAppFilterChain.java:125)
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:92)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.FileUploadFilter.**
>>> doFilter(FileUploadFilter.****java:78)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.CharsetEncodingFilter.****doFilter(**
>>>
>>> CharsetEncodingFilter.java:30)
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ocpsoft.pretty.****PrettyFilter.doFilter(****PrettyFilter.java:115)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.UserFilter.doFilter(****
>>> UserFilter.java:42)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.core.****filter.****IbmApplicationSessionFilter.****
>>> doFilter(
>>> **IbmApplicationSessionFilter.****java:25)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.FilterInstanceWrapper.****doFilter(**
>>> FilterInstanceWrapper.java:****192)
>>>
>>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterChain.**
>>> doFilter(WebAppFilterChain.****java:89)
>>>
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.**
>>> doFilter(WebAppFilterManager.****java:919)
>>>
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****filter.WebAppFilterManager.****
>>> invokeFilters(**
>>>
>>> WebAppFilterManager.java:1016)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****servlet.CacheServletWrapper.****
>>> handleRequest(**
>>>
>>> CacheServletWrapper.java:87)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****WebContainer.handleRequest(**
>>>
>>> WebContainer.java:895)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****WSWebContainer.handleRequest(****
>>>
>>> WSWebContainer.java:1662)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.webcontainer.****channel.WCChannelLink.ready(**
>>>
>>> WCChannelLink.java:195)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.****
>>> handleDiscrimination(****HttpInboundLink.java:452)
>>>
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>> *handleNewRequest(
>>> **HttpInboundLink.java:511)
>>>
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.HttpInboundLink.***
>>> *processRequest(**
>>>
>>> HttpInboundLink.java:305)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.http.channel.****inbound.impl.****
>>> HttpICLReadCallback.complete(****
>>>
>>> HttpICLReadCallback.java:83)
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.tcp.channel.impl.****AioReadCompletionListener.****
>>> futureCompleted(
>>> **AioReadCompletionListener.****java:165)
>>>
>>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****AbstractAsyncFuture.****invokeCallback(**
>>>
>>> AbstractAsyncFuture.java:217)
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****AsyncChannelFuture.****fireCompletionActions(**
>>>
>>> AsyncChannelFuture.java:161)
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.AsyncFuture.****completed(AsyncFuture.java:****138)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****ResultHandler.complete(****ResultHandler.java:204)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****ResultHandler.****runEventProcessingLoop(**
>>>
>>> ResultHandler.java:775)
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> com.ibm.io.async.****ResultHandler$2.run(****ResultHandler.java:905)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> com.ibm.ws.util.ThreadPool$****Worker.run(ThreadPool.java:****1659)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>>> java.lang.NullPointerException
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> ViewAccessConversationExpirati****onEvaluator.**getCurrentViewId(**
>>> ViewAccessConversationExpirati****onEvaluator.java:114)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> ViewAccessConversationExpirati****onEvaluator.touch(**
>>> ViewAccessConversationExpirati****onEvaluator.java:100)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> DefaultConversation.****touchConversation(****
>>> DefaultConversation.java:201)
>>>
>>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> DefaultConversation.addBean(****DefaultConversation.java:177)
>>>
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.jsf.impl.scope.****conversation.**
>>> GroupedConversationContext.****scopeBeanEntry(****
>>> GroupedConversationContext.*
>>>
>>> *java:204)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>> conversation.**
>>> AbstractGroupedConversationCon****text.create(**
>>> AbstractGroupedConversationCon****text.java:98)
>>>
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.myfaces.extensions.****cdi.core.impl.scope.****
>>> conversation.**
>>> ConversationContextAdapter.****get(****ConversationContextAdapter.****
>>> java:81)
>>>
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.context.****CustomContextImpl.get(**
>>>
>>> CustomContextImpl.java:43)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.context.****CustomPassivatingContextImpl.****get(**
>>> CustomPassivatingContextImpl.****java:41)
>>>
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>> dler.getContextualInstance(****NormalScopedBeanInterceptorHan****
>>>
>>> dler.java:135)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> org.apache.webbeans.intercept.******NormalScopedBeanInterceptorHan****
>>> dler.invoke(****NormalScopedBeanInterceptorHan****dler.java:95)
>>>
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> com.clevercure.web.sob.bean.****SobSupplierRegistrationBean_$$****
>>> _javassist_920.getCompanyLogo(****SobSupplierRegistrationBean_**$$**
>>> _javassist_920.java)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> sun.reflect.**
>>> NativeMethodAccessorImpl.****invoke0(Native Method)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> sun.reflect.**
>>> NativeMethodAccessorImpl.****invoke(****NativeMethodAccessorImpl.java:**
>>> **60)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> sun.reflect.**
>>> DelegatingMethodAccessorImpl.****invoke(****
>>> DelegatingMethodAccessorImpl.****
>>>
>>> java:37)
>>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>>> java.lang.reflect.Method.****invoke(Method.java:611)
>>>
>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>>> javax.el.BeanELResolver.****getValue(BeanELResolver.java:****89)
>>>
>>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>>
>>>

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

Posted by Christian Beikov <c....@curecomp.com>.
The more concrete question on the problem i face would probably be:

Is the ViewAccessScope designed to work for a JSF ResourceHandler which 
is called instead of the normal JSF Lifecycle? None of the JSF Phases is 
executed when a ResourceHandler is invoked, so would it actually be 
possible that the VIewAccessScope could work?

Resolving a bean within a ResourceHandler is probably not a big thing 
and should not cause problems. Maybe the primefaces implementation is 
just wrong to put the evaluation out of the JSF Phases and should use a 
PhaseListener instead? I am pretty sure that the evaluation would work 
when it was done within a PhaseListener, correct me if I am wrong.

Am 16.02.2012 16:47, schrieb Gerhard Petracek:
> hi christian,
>
> a workaround would be an own ConversationFactory - but that means a lot of
> work.
> since the myfaces codi conversation scopes (the view-access scope is just a
> special conversation type) are bound to jsf by default, it wasn't intended
> to support access outside of the jsf request-lifecycle.
> however, you can checkout the source-code [1], fix it and check if the rest
> would work as needed for your use-case (and provide the patch afterwards).
> or you provide a simple demo which shows the issue and we will do the rest.
>
> regards,
> gerhard
>
> [1] https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/2/16 Christian Beikov<c....@curecomp.com>
>
>> Hello there!
>>
>> I have a problem with the CODI JSF Scope ViewAccessScope and the
>> PrimeFaces ResourceHandler.
>>
>> Primefaces evaluates a value expression within the resource handler to
>> retrieve dynamic content, why and how is not important. The fact is, that
>> the ResourceHandler is called before everything else within the JSF
>> Lifecycle.
>>
>> I am using the ViewAccessScope for the bean which should be evaluated with
>> the value expression within the ResourceHandler. I debugged into it and
>> found out that org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**
>> conversation.**ViewAccessConversationExpirati**onEvaluator tries to
>> retrieve the view root of the FacesContext or more exactly the view id of
>> it. The problem is, that the view root is null at that time, so the
>> evaluation ends with a NullPointerException in a CODI class.
>>
>> Who is responsible for this issue? Can anyone suggest me a workaround?
>>
>> I am using:
>>
>>   * Websphere 8.0.0.2
>>   * MyFaces, the version shipped with Websphere
>>   * CODI 1.0.1
>>   * Primefaces 3.1.1
>>
>> Here is the full stacktrace:
>>
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R javax.el.ELException:
>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>> SobSupplierRegistrationBean_$$**_javassist_920
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**93)
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>> javax.el.CompositeELResolver.**getValue(CompositeELResolver.**java:55)
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.el.unified.**resolver.**FacesCompositeELResolver.**
>> getValue(**FacesCompositeELResolver.java:**142)
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>> org.apache.el.parser.AstValue.**getValue(AstValue.java:169)
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at org.apache.el.
>> **ValueExpressionImpl.getValue(**ValueExpressionImpl.java:283)
>> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.el.**WrappedValueExpression.**getValue(**
>> WrappedValueExpression.java:**68)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> org.primefaces.application.**PrimeResourceHandler.**handleResourceRequest(
>> **PrimeResourceHandler.java:75)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> javax.faces.application.**ResourceHandlerWrapper.**handleResourceRequest(*
>> *ResourceHandlerWrapper.java:**62)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> javax.faces.webapp.**FacesServlet.service(**FacesServlet.java:183)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
>> service(ServletWrapper.java:**1188)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
>> handleRequest(ServletWrapper.**java:763)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
>> handleRequest(ServletWrapper.**java:454)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapperImpl.**handleRequest(**
>> ServletWrapperImpl.java:178)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**invokeTarget(**
>> WebAppFilterChain.java:125)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:92)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.FileUploadFilter.**
>> doFilter(FileUploadFilter.**java:78)
>> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.CharsetEncodingFilter.**doFilter(**
>> CharsetEncodingFilter.java:30)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ocpsoft.pretty.**PrettyFilter.doFilter(**PrettyFilter.java:115)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.UserFilter.doFilter(**UserFilter.java:42)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.**IbmApplicationSessionFilter.**doFilter(
>> **IbmApplicationSessionFilter.**java:25)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**
>> doFilter(WebAppFilterManager.**java:919)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**invokeFilters(**
>> WebAppFilterManager.java:1016)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.CacheServletWrapper.**handleRequest(**
>> CacheServletWrapper.java:87)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**WebContainer.handleRequest(**
>> WebContainer.java:895)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**WSWebContainer.handleRequest(**
>> WSWebContainer.java:1662)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**channel.WCChannelLink.ready(**
>> WCChannelLink.java:195)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
>> handleDiscrimination(**HttpInboundLink.java:452)
>> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**handleNewRequest(
>> **HttpInboundLink.java:511)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**processRequest(**
>> HttpInboundLink.java:305)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.**HttpICLReadCallback.complete(**
>> HttpICLReadCallback.java:83)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.tcp.channel.impl.**AioReadCompletionListener.**futureCompleted(
>> **AioReadCompletionListener.**java:165)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**AbstractAsyncFuture.**invokeCallback(**
>> AbstractAsyncFuture.java:217)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**AsyncChannelFuture.**fireCompletionActions(**
>> AsyncChannelFuture.java:161)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.AsyncFuture.**completed(AsyncFuture.java:**138)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**ResultHandler.complete(**ResultHandler.java:204)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**ResultHandler.**runEventProcessingLoop(**
>> ResultHandler.java:775)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**ResultHandler$2.run(**ResultHandler.java:905)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.util.ThreadPool$**Worker.run(ThreadPool.java:**1659)
>> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
>> java.lang.NullPointerException
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> ViewAccessConversationExpirati**onEvaluator.getCurrentViewId(**
>> ViewAccessConversationExpirati**onEvaluator.java:114)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> ViewAccessConversationExpirati**onEvaluator.touch(**
>> ViewAccessConversationExpirati**onEvaluator.java:100)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> DefaultConversation.**touchConversation(**DefaultConversation.java:201)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> DefaultConversation.addBean(**DefaultConversation.java:177)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> GroupedConversationContext.**scopeBeanEntry(**GroupedConversationContext.*
>> *java:204)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
>> AbstractGroupedConversationCon**text.create(**
>> AbstractGroupedConversationCon**text.java:98)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
>> ConversationContextAdapter.**get(**ConversationContextAdapter.**java:81)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.context.**CustomContextImpl.get(**
>> CustomContextImpl.java:43)
>> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.context.**CustomPassivatingContextImpl.**get(**
>> CustomPassivatingContextImpl.**java:41)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
>> dler.getContextualInstance(**NormalScopedBeanInterceptorHan**
>> dler.java:135)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
>> dler.invoke(**NormalScopedBeanInterceptorHan**dler.java:95)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.sob.bean.**SobSupplierRegistrationBean_$$**
>> _javassist_920.getCompanyLogo(**SobSupplierRegistrationBean_$$**
>> _javassist_920.java)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at sun.reflect.**
>> NativeMethodAccessorImpl.**invoke0(Native Method)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at sun.reflect.**
>> NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**60)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at sun.reflect.**
>> DelegatingMethodAccessorImpl.**invoke(**DelegatingMethodAccessorImpl.**
>> java:37)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>> java.lang.reflect.Method.**invoke(Method.java:611)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
>> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**89)
>> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
>> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R javax.el.ELException:
>> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
>> SobSupplierRegistrationBean_$$**_javassist_920
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**93)
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>> javax.el.CompositeELResolver.**getValue(CompositeELResolver.**java:55)
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.el.unified.**resolver.**FacesCompositeELResolver.**
>> getValue(**FacesCompositeELResolver.java:**142)
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>> org.apache.el.parser.AstValue.**getValue(AstValue.java:169)
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at org.apache.el.
>> **ValueExpressionImpl.getValue(**ValueExpressionImpl.java:283)
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.el.**WrappedValueExpression.**getValue(**
>> WrappedValueExpression.java:**68)
>> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
>> org.primefaces.application.**PrimeResourceHandler.**handleResourceRequest(
>> **PrimeResourceHandler.java:75)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> javax.faces.application.**ResourceHandlerWrapper.**handleResourceRequest(*
>> *ResourceHandlerWrapper.java:**62)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> javax.faces.webapp.**FacesServlet.service(**FacesServlet.java:183)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
>> service(ServletWrapper.java:**1188)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
>> handleRequest(ServletWrapper.**java:763)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
>> handleRequest(ServletWrapper.**java:454)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.ServletWrapperImpl.**handleRequest(**
>> ServletWrapperImpl.java:178)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**invokeTarget(**
>> WebAppFilterChain.java:125)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:92)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.FileUploadFilter.**
>> doFilter(FileUploadFilter.**java:78)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.CharsetEncodingFilter.**doFilter(**
>> CharsetEncodingFilter.java:30)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ocpsoft.pretty.**PrettyFilter.doFilter(**PrettyFilter.java:115)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.UserFilter.doFilter(**UserFilter.java:42)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.core.**filter.**IbmApplicationSessionFilter.**doFilter(
>> **IbmApplicationSessionFilter.**java:25)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
>> FilterInstanceWrapper.java:**192)
>> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
>> doFilter(WebAppFilterChain.**java:89)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**
>> doFilter(WebAppFilterManager.**java:919)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**invokeFilters(**
>> WebAppFilterManager.java:1016)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**servlet.CacheServletWrapper.**handleRequest(**
>> CacheServletWrapper.java:87)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**WebContainer.handleRequest(**
>> WebContainer.java:895)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**WSWebContainer.handleRequest(**
>> WSWebContainer.java:1662)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.webcontainer.**channel.WCChannelLink.ready(**
>> WCChannelLink.java:195)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
>> handleDiscrimination(**HttpInboundLink.java:452)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**handleNewRequest(
>> **HttpInboundLink.java:511)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**processRequest(**
>> HttpInboundLink.java:305)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.http.channel.**inbound.impl.**HttpICLReadCallback.complete(**
>> HttpICLReadCallback.java:83)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.tcp.channel.impl.**AioReadCompletionListener.**futureCompleted(
>> **AioReadCompletionListener.**java:165)
>> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**AbstractAsyncFuture.**invokeCallback(**
>> AbstractAsyncFuture.java:217)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**AsyncChannelFuture.**fireCompletionActions(**
>> AsyncChannelFuture.java:161)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.AsyncFuture.**completed(AsyncFuture.java:**138)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**ResultHandler.complete(**ResultHandler.java:204)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**ResultHandler.**runEventProcessingLoop(**
>> ResultHandler.java:775)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> com.ibm.io.async.**ResultHandler$2.run(**ResultHandler.java:905)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> com.ibm.ws.util.ThreadPool$**Worker.run(ThreadPool.java:**1659)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
>> java.lang.NullPointerException
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> ViewAccessConversationExpirati**onEvaluator.getCurrentViewId(**
>> ViewAccessConversationExpirati**onEvaluator.java:114)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> ViewAccessConversationExpirati**onEvaluator.touch(**
>> ViewAccessConversationExpirati**onEvaluator.java:100)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> DefaultConversation.**touchConversation(**DefaultConversation.java:201)
>> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> DefaultConversation.addBean(**DefaultConversation.java:177)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
>> GroupedConversationContext.**scopeBeanEntry(**GroupedConversationContext.*
>> *java:204)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
>> AbstractGroupedConversationCon**text.create(**
>> AbstractGroupedConversationCon**text.java:98)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
>> ConversationContextAdapter.**get(**ConversationContextAdapter.**java:81)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.context.**CustomContextImpl.get(**
>> CustomContextImpl.java:43)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.context.**CustomPassivatingContextImpl.**get(**
>> CustomPassivatingContextImpl.**java:41)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
>> dler.getContextualInstance(**NormalScopedBeanInterceptorHan**
>> dler.java:135)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
>> dler.invoke(**NormalScopedBeanInterceptorHan**dler.java:95)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> com.clevercure.web.sob.bean.**SobSupplierRegistrationBean_$$**
>> _javassist_920.getCompanyLogo(**SobSupplierRegistrationBean_$$**
>> _javassist_920.java)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at sun.reflect.**
>> NativeMethodAccessorImpl.**invoke0(Native Method)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at sun.reflect.**
>> NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**60)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at sun.reflect.**
>> DelegatingMethodAccessorImpl.**invoke(**DelegatingMethodAccessorImpl.**
>> java:37)
>> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
>> java.lang.reflect.Method.**invoke(Method.java:611)
>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
>> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**89)
>> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>>

Re: CODI 1.0.1 NPE in JSF ResourceHandler when evaluating ValueExpression

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

a workaround would be an own ConversationFactory - but that means a lot of
work.
since the myfaces codi conversation scopes (the view-access scope is just a
special conversation type) are bound to jsf by default, it wasn't intended
to support access outside of the jsf request-lifecycle.
however, you can checkout the source-code [1], fix it and check if the rest
would work as needed for your use-case (and provide the patch afterwards).
or you provide a simple demo which shows the issue and we will do the rest.

regards,
gerhard

[1] https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/

http://www.irian.at

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

Professional Support for Apache MyFaces



2012/2/16 Christian Beikov <c....@curecomp.com>

> Hello there!
>
> I have a problem with the CODI JSF Scope ViewAccessScope and the
> PrimeFaces ResourceHandler.
>
> Primefaces evaluates a value expression within the resource handler to
> retrieve dynamic content, why and how is not important. The fact is, that
> the ResourceHandler is called before everything else within the JSF
> Lifecycle.
>
> I am using the ViewAccessScope for the bean which should be evaluated with
> the value expression within the ResourceHandler. I debugged into it and
> found out that org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**
> conversation.**ViewAccessConversationExpirati**onEvaluator tries to
> retrieve the view root of the FacesContext or more exactly the view id of
> it. The problem is, that the view root is null at that time, so the
> evaluation ends with a NullPointerException in a CODI class.
>
> Who is responsible for this issue? Can anyone suggest me a workaround?
>
> I am using:
>
>  * Websphere 8.0.0.2
>  * MyFaces, the version shipped with Websphere
>  * CODI 1.0.1
>  * Primefaces 3.1.1
>
> Here is the full stacktrace:
>
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R javax.el.ELException:
> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
> SobSupplierRegistrationBean_$$**_javassist_920
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**93)
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> javax.el.CompositeELResolver.**getValue(CompositeELResolver.**java:55)
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.el.unified.**resolver.**FacesCompositeELResolver.**
> getValue(**FacesCompositeELResolver.java:**142)
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> org.apache.el.parser.AstValue.**getValue(AstValue.java:169)
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at org.apache.el.
> **ValueExpressionImpl.getValue(**ValueExpressionImpl.java:283)
> [16.02.12 16:15:51:496 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.el.**WrappedValueExpression.**getValue(**
> WrappedValueExpression.java:**68)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> org.primefaces.application.**PrimeResourceHandler.**handleResourceRequest(
> **PrimeResourceHandler.java:75)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> javax.faces.application.**ResourceHandlerWrapper.**handleResourceRequest(*
> *ResourceHandlerWrapper.java:**62)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> javax.faces.webapp.**FacesServlet.service(**FacesServlet.java:183)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
> service(ServletWrapper.java:**1188)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
> handleRequest(ServletWrapper.**java:763)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
> handleRequest(ServletWrapper.**java:454)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapperImpl.**handleRequest(**
> ServletWrapperImpl.java:178)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**invokeTarget(**
> WebAppFilterChain.java:125)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:92)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.FileUploadFilter.**
> doFilter(FileUploadFilter.**java:78)
> [16.02.12 16:15:51:497 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.CharsetEncodingFilter.**doFilter(**
> CharsetEncodingFilter.java:30)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ocpsoft.pretty.**PrettyFilter.doFilter(**PrettyFilter.java:115)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.UserFilter.doFilter(**UserFilter.java:42)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:498 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.**IbmApplicationSessionFilter.**doFilter(
> **IbmApplicationSessionFilter.**java:25)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**
> doFilter(WebAppFilterManager.**java:919)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**invokeFilters(**
> WebAppFilterManager.java:1016)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.CacheServletWrapper.**handleRequest(**
> CacheServletWrapper.java:87)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**WebContainer.handleRequest(**
> WebContainer.java:895)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**WSWebContainer.handleRequest(**
> WSWebContainer.java:1662)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**channel.WCChannelLink.ready(**
> WCChannelLink.java:195)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
> handleDiscrimination(**HttpInboundLink.java:452)
> [16.02.12 16:15:51:499 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**handleNewRequest(
> **HttpInboundLink.java:511)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**processRequest(**
> HttpInboundLink.java:305)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.**HttpICLReadCallback.complete(**
> HttpICLReadCallback.java:83)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.ws.tcp.channel.impl.**AioReadCompletionListener.**futureCompleted(
> **AioReadCompletionListener.**java:165)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**AbstractAsyncFuture.**invokeCallback(**
> AbstractAsyncFuture.java:217)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**AsyncChannelFuture.**fireCompletionActions(**
> AsyncChannelFuture.java:161)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.AsyncFuture.**completed(AsyncFuture.java:**138)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**ResultHandler.complete(**ResultHandler.java:204)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**ResultHandler.**runEventProcessingLoop(**
> ResultHandler.java:775)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**ResultHandler$2.run(**ResultHandler.java:905)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R     at
> com.ibm.ws.util.ThreadPool$**Worker.run(ThreadPool.java:**1659)
> [16.02.12 16:15:51:500 CET] 0000002a SystemErr     R Caused by:
> java.lang.NullPointerException
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> ViewAccessConversationExpirati**onEvaluator.getCurrentViewId(**
> ViewAccessConversationExpirati**onEvaluator.java:114)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> ViewAccessConversationExpirati**onEvaluator.touch(**
> ViewAccessConversationExpirati**onEvaluator.java:100)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> DefaultConversation.**touchConversation(**DefaultConversation.java:201)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> DefaultConversation.addBean(**DefaultConversation.java:177)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> GroupedConversationContext.**scopeBeanEntry(**GroupedConversationContext.*
> *java:204)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
> AbstractGroupedConversationCon**text.create(**
> AbstractGroupedConversationCon**text.java:98)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
> ConversationContextAdapter.**get(**ConversationContextAdapter.**java:81)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.context.**CustomContextImpl.get(**
> CustomContextImpl.java:43)
> [16.02.12 16:15:51:501 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.context.**CustomPassivatingContextImpl.**get(**
> CustomPassivatingContextImpl.**java:41)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
> dler.getContextualInstance(**NormalScopedBeanInterceptorHan**
> dler.java:135)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
> dler.invoke(**NormalScopedBeanInterceptorHan**dler.java:95)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> com.clevercure.web.sob.bean.**SobSupplierRegistrationBean_$$**
> _javassist_920.getCompanyLogo(**SobSupplierRegistrationBean_$$**
> _javassist_920.java)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at sun.reflect.**
> NativeMethodAccessorImpl.**invoke0(Native Method)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at sun.reflect.**
> NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**60)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at sun.reflect.**
> DelegatingMethodAccessorImpl.**invoke(**DelegatingMethodAccessorImpl.**
> java:37)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> java.lang.reflect.Method.**invoke(Method.java:611)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     at
> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**89)
> [16.02.12 16:15:51:502 CET] 0000002a SystemErr     R     ... 47 more
> [16.02.12 16:15:51:503 CET] 0000002a SystemErr     R javax.el.ELException:
> Error reading 'companyLogo' on type com.clevercure.web.sob.bean.**
> SobSupplierRegistrationBean_$$**_javassist_920
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**93)
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> javax.el.CompositeELResolver.**getValue(CompositeELResolver.**java:55)
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.el.unified.**resolver.**FacesCompositeELResolver.**
> getValue(**FacesCompositeELResolver.java:**142)
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> org.apache.el.parser.AstValue.**getValue(AstValue.java:169)
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at org.apache.el.
> **ValueExpressionImpl.getValue(**ValueExpressionImpl.java:283)
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.el.**WrappedValueExpression.**getValue(**
> WrappedValueExpression.java:**68)
> [16.02.12 16:15:51:504 CET] 0000002a SystemErr     R     at
> org.primefaces.application.**PrimeResourceHandler.**handleResourceRequest(
> **PrimeResourceHandler.java:75)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> javax.faces.application.**ResourceHandlerWrapper.**handleResourceRequest(*
> *ResourceHandlerWrapper.java:**62)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> javax.faces.webapp.**FacesServlet.service(**FacesServlet.java:183)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
> service(ServletWrapper.java:**1188)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
> handleRequest(ServletWrapper.**java:763)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapper.**
> handleRequest(ServletWrapper.**java:454)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.ServletWrapperImpl.**handleRequest(**
> ServletWrapperImpl.java:178)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**invokeTarget(**
> WebAppFilterChain.java:125)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:92)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.FileUploadFilter.**
> doFilter(FileUploadFilter.**java:78)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:505 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.CharsetEncodingFilter.**doFilter(**
> CharsetEncodingFilter.java:30)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ocpsoft.pretty.**PrettyFilter.doFilter(**PrettyFilter.java:115)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.UserFilter.doFilter(**UserFilter.java:42)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.clevercure.web.core.**filter.**IbmApplicationSessionFilter.**doFilter(
> **IbmApplicationSessionFilter.**java:25)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> [16.02.12 16:15:51:506 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**
> doFilter(WebAppFilterChain.**java:89)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**
> doFilter(WebAppFilterManager.**java:919)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**invokeFilters(**
> WebAppFilterManager.java:1016)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**servlet.CacheServletWrapper.**handleRequest(**
> CacheServletWrapper.java:87)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**WebContainer.handleRequest(**
> WebContainer.java:895)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**WSWebContainer.handleRequest(**
> WSWebContainer.java:1662)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.webcontainer.**channel.WCChannelLink.ready(**
> WCChannelLink.java:195)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
> handleDiscrimination(**HttpInboundLink.java:452)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**handleNewRequest(
> **HttpInboundLink.java:511)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**processRequest(**
> HttpInboundLink.java:305)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.http.channel.**inbound.impl.**HttpICLReadCallback.complete(**
> HttpICLReadCallback.java:83)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.ws.tcp.channel.impl.**AioReadCompletionListener.**futureCompleted(
> **AioReadCompletionListener.**java:165)
> [16.02.12 16:15:51:507 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**AbstractAsyncFuture.**invokeCallback(**
> AbstractAsyncFuture.java:217)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**AsyncChannelFuture.**fireCompletionActions(**
> AsyncChannelFuture.java:161)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.AsyncFuture.**completed(AsyncFuture.java:**138)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**ResultHandler.complete(**ResultHandler.java:204)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**ResultHandler.**runEventProcessingLoop(**
> ResultHandler.java:775)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> com.ibm.io.async.**ResultHandler$2.run(**ResultHandler.java:905)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> com.ibm.ws.util.ThreadPool$**Worker.run(ThreadPool.java:**1659)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R Caused by:
> java.lang.NullPointerException
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> ViewAccessConversationExpirati**onEvaluator.getCurrentViewId(**
> ViewAccessConversationExpirati**onEvaluator.java:114)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> ViewAccessConversationExpirati**onEvaluator.touch(**
> ViewAccessConversationExpirati**onEvaluator.java:100)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> DefaultConversation.**touchConversation(**DefaultConversation.java:201)
> [16.02.12 16:15:51:508 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> DefaultConversation.addBean(**DefaultConversation.java:177)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.jsf.impl.scope.**conversation.**
> GroupedConversationContext.**scopeBeanEntry(**GroupedConversationContext.*
> *java:204)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
> AbstractGroupedConversationCon**text.create(**
> AbstractGroupedConversationCon**text.java:98)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.myfaces.extensions.**cdi.core.impl.scope.**conversation.**
> ConversationContextAdapter.**get(**ConversationContextAdapter.**java:81)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.context.**CustomContextImpl.get(**
> CustomContextImpl.java:43)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.context.**CustomPassivatingContextImpl.**get(**
> CustomPassivatingContextImpl.**java:41)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
> dler.getContextualInstance(**NormalScopedBeanInterceptorHan**
> dler.java:135)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> org.apache.webbeans.intercept.**NormalScopedBeanInterceptorHan**
> dler.invoke(**NormalScopedBeanInterceptorHan**dler.java:95)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> com.clevercure.web.sob.bean.**SobSupplierRegistrationBean_$$**
> _javassist_920.getCompanyLogo(**SobSupplierRegistrationBean_$$**
> _javassist_920.java)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at sun.reflect.**
> NativeMethodAccessorImpl.**invoke0(Native Method)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at sun.reflect.**
> NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**60)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at sun.reflect.**
> DelegatingMethodAccessorImpl.**invoke(**DelegatingMethodAccessorImpl.**
> java:37)
> [16.02.12 16:15:51:509 CET] 0000002a SystemErr     R     at
> java.lang.reflect.Method.**invoke(Method.java:611)
> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     at
> javax.el.BeanELResolver.**getValue(BeanELResolver.java:**89)
> [16.02.12 16:15:51:510 CET] 0000002a SystemErr     R     ... 47 more
>