10 Replies Latest reply on Dec 17, 2010 8:59 AM by Marek Novotny

    Seam 2.2.1-SNAPSHOT Update Question

    Robert Morse Apprentice

      Hello, I'm working with the 2.2 nightly builds.  According to the Hudson site:




      This build polls SVN every 24 hours for changes, and executes the testsuite and if successful uploads to the snapshot repository.

      But it appears that either build 299 or 300 made it to the repository despite its failing the test suite.  I only know this because the 15-dec build broke rendering Excel documents. 


      This isn't a big deal, and I realize the builds may be unstable, just thought I'd point out that the build / migration process doesn't seem to do what's stated on the Hudson site: 


      http://hudson.jboss.org/hudson/job/Seam-2.2.X-nightly/




        • 1. Re: Seam 2.2.1-SNAPSHOT Update Question
          Robert Morse Apprentice

          Looks like a bug was introduced into the nightly builds after 295.  I created a JIRA
          https://issues.jboss.org/browse/JBSEAM-4747
          Not sure if this is the proper protocol for nightly builds.

          • 2. Re: Seam 2.2.1-SNAPSHOT Update Question
            Marek Novotny Newbie

            nightly builds can be unstable, I noticed the error in testsuite. Because there were some issues generally with Seam nightly hudson job, I haven't noticed before. Try snapshot from build #301

            • 3. Re: Seam 2.2.1-SNAPSHOT Update Question
              Robert Morse Apprentice

              I did, it still fails which is why I posted the JIRA, which I see you closed.

              • 4. Re: Seam 2.2.1-SNAPSHOT Update Question
                Marek Novotny Newbie

                Ok, so you are saying that this snapshot still fails, isn't it?

                • 5. Re: Seam 2.2.1-SNAPSHOT Update Question
                  Robert Morse Apprentice

                  Hello Marek,
                  The link you provided doesn't resolve.  Looks like there's a 302 build now.  I'll try that, and then try to isolate which jar and when causes the problem.  As always, thanks for your time in looking into this.

                  • 6. Re: Seam 2.2.1-SNAPSHOT Update Question
                    Marek Novotny Newbie

                    Thanks a lot! You can reopen the issue if you find the same problem and please provide full stack trace or test case/steps to reproduce it.


                    Again thanks in advance,

                    • 7. Re: Seam 2.2.1-SNAPSHOT Update Question
                      Robert Morse Apprentice

                      Hello Marek,
                      The 302 build and 303 build exhibit the same problem when rendering an Excel spreadsheet.
                      By simply copying the 20-Nov-2010 Seam jars into the deployed application, it works.  Seems to be isolated to the jboss-seam-2.2.1-SNAPSHOT jar itself.  I believe build 295 also works, but have not confirmed it.   The stack trace follows.  The exception is thrown at the Renderer.render(some xhtml file).






                      05:01:04,271 SEVERE [application] java.lang.NullPointerException
                      javax.faces.el.EvaluationException: java.lang.NullPointerException
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
                           at org.primefaces.application.CleanupActionListener.processAction(CleanupActionListener.java:42)
                           at javax.faces.component.UICommand.broadcast(UICommand.java:387)
                           at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
                           at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
                           at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
                           at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
                           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
                           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                           at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.picketlink.identity.seam.federation.ExternalAuthenticationFilter.doFilter(ExternalAuthenticationFilter.java:134)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                           at java.lang.Thread.run(Thread.java:680)
                      Caused by: java.lang.NullPointerException
                           at com.sun.faces.context.RequestHeaderValuesMap.get(ExternalContextImpl.java:1357)
                           at com.sun.faces.context.RequestHeaderValuesMap.get(ExternalContextImpl.java:1337)
                           at java.util.Collections$UnmodifiableMap.get(Collections.java:1282)
                           at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:207)
                           at org.jboss.seam.ui.facelet.RendererRequest.init(RendererRequest.java:67)
                           at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:106)
                           at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)
                           at com.predictivelogic.plus.action.demo.DemoAction.processFile(DemoAction.java:942)
                           at com.predictivelogic.plus.action.insurance.AbstractLoader.upload(AbstractLoader.java:66)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                           at com.predictivelogic.plus.action.demo.DemoAction_$$_javassist_seam_37.upload(DemoAction_$$_javassist_seam_37.java)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
                           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
                           ... 60 more
                      05:01:04,280 WARNING [lifecycle] #{demoAction.upload}: java.lang.NullPointerException
                      javax.faces.FacesException: #{demoAction.upload}: java.lang.NullPointerException
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
                           at org.primefaces.application.CleanupActionListener.processAction(CleanupActionListener.java:42)
                           at javax.faces.component.UICommand.broadcast(UICommand.java:387)
                           at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
                           at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
                           at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
                           at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
                           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
                           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                           at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.picketlink.identity.seam.federation.ExternalAuthenticationFilter.doFilter(ExternalAuthenticationFilter.java:134)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                           at java.lang.Thread.run(Thread.java:680)
                      Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
                           ... 59 more
                      Caused by: java.lang.NullPointerException
                           at com.sun.faces.context.RequestHeaderValuesMap.get(ExternalContextImpl.java:1357)
                           at com.sun.faces.context.RequestHeaderValuesMap.get(ExternalContextImpl.java:1337)
                           at java.util.Collections$UnmodifiableMap.get(Collections.java:1282)
                           at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:207)
                           at org.jboss.seam.ui.facelet.RendererRequest.init(RendererRequest.java:67)
                           at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:106)
                           at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)
                           at com.predictivelogic.plus.action.demo.DemoAction.processFile(DemoAction.java:942)
                           at com.predictivelogic.plus.action.insurance.AbstractLoader.upload(AbstractLoader.java:66)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                           at com.predictivelogic.plus.action.demo.DemoAction_$$_javassist_seam_37.upload(DemoAction_$$_javassist_seam_37.java)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
                           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
                           ... 60 more
                      05:01:04,281 SEVERE [lifecycle] JSF1054: (Phase ID: INVOKE_APPLICATION 5, View ID: /view/demo/demoTestUpload.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@60b3c78b]
                      05:01:04,322 ERROR [Exceptions] handled and logged exception
                      javax.servlet.ServletException: #{demoAction.upload}: java.lang.NullPointerException
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                           at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.picketlink.identity.seam.federation.ExternalAuthenticationFilter.doFilter(ExternalAuthenticationFilter.java:134)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                           at java.lang.Thread.run(Thread.java:680)
                      Caused by: javax.faces.FacesException: #{demoAction.upload}: java.lang.NullPointerException
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
                           at org.primefaces.application.CleanupActionListener.processAction(CleanupActionListener.java:42)
                           at javax.faces.component.UICommand.broadcast(UICommand.java:387)
                           at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
                           at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
                           at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
                           at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
                           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
                           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                           ... 49 more
                      Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
                           ... 59 more
                      Caused by: java.lang.NullPointerException
                           at com.sun.faces.context.RequestHeaderValuesMap.get(ExternalContextImpl.java:1357)
                           at com.sun.faces.context.RequestHeaderValuesMap.get(ExternalContextImpl.java:1337)
                           at java.util.Collections$UnmodifiableMap.get(Collections.java:1282)
                           at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:207)
                           at org.jboss.seam.ui.facelet.RendererRequest.init(RendererRequest.java:67)
                           at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:106)
                           at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)
                           at com.predictivelogic.plus.action.demo.DemoAction.processFile(DemoAction.java:942)
                           at com.predictivelogic.plus.action.insurance.AbstractLoader.upload(AbstractLoader.java:66)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                           at com.predictivelogic.plus.action.demo.DemoAction_$$_javassist_seam_37.upload(DemoAction_$$_javassist_seam_37.java)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
                           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
                           ... 60 more
                      



                      • 8. Re: Seam 2.2.1-SNAPSHOT Update Question
                        Marek Novotny Newbie

                        Hmm, it seems that changes for JBSEAM-3770 in org.jboss.seam.mock.MockExternalContext.getRequestHeaderValuesMap() causes this. Could you replaced classess org/jboss/seam/mock/MockHttpServletRequest.class and org/jboss/seam/mock/MockExternalContext.class in the last snapshot build with your confirmed working build to check it?


                        Notice:
                        Although this was a fix for existing NPE, it seems that there is a bug (not checking null value) in JSF after fixing in seam.
                        I can see it in com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(Writer, String, String):


                        String[] typeArray = (String[])context.getExternalContext().getRequestHeaderValuesMap().get("Accept");



                        and because of fix in the following:


                              Map<String, String[]> result = new HashMap<String, String[]>();
                              Enumeration<String> en = request.getHeaderNames();
                              while (en.hasMoreElements())
                              {
                                 String header = en.nextElement();
                                 Enumeration requestHeaders = request.getHeaders(header);
                                 if (requestHeaders != null)
                                 {
                                    List<String> headerList =  Collections.list(requestHeaders);
                                    String[] headers = new String[headerList.size()];
                                    for (int i = 0; i < headerList.size(); i++)
                                    {
                                       headers[i] = headerList.get(i);
                                    }
                                    result.put(header, headers);
                                 }
                              }
                              return result;
                        


                        it fails. Seam test suite didn't discover this issue, it is weird.

                        • 9. Re: Seam 2.2.1-SNAPSHOT Update Question
                          Robert Morse Apprentice

                          Sure, but I won't get to it until late this afternoon (GMT-7).
                          As always, thanks again for your help.

                          • 10. Re: Seam 2.2.1-SNAPSHOT Update Question
                            Marek Novotny Newbie

                            Anyway I will roll back the changes and will look more deeper later after 2.2.1.CR3 release, JBSEAM-3770 is not big issue so it can wait