13 Replies Latest reply on Apr 18, 2007 3:57 PM by Richard Leherpeur

    Exception when page is re-rendered after missing required fi

    Richard Leherpeur Novice

      hello,

      I'm using jboss-4.2.0.CR1 and jboss-seam-CVS.20070416.
      This flow was working fine with jboss-4.0.5.GA and previous version of Seam

      I have xhtml page containing multiple required fields. The page is part of a page flow. If I click the next button without filling out the required field, an exception is thrown when the page is re-rendered due to a class not being loaded properly.

      The class is used in the custom method pc:displayType.
      This methods works fine is that same page. It is only when redisplayig the page because some required field are null, that the exception occurs.

      Here is the part of the xhtml:

       <f:subview id="select" rendered="#{pageAction.displayChoice}">
       <h:selectOneRadio id="userType" value="#{pageAction.userType}" required="true" layout="pageDirection" styleClass="radio" converter="#{pageAction.userTypeConverter}">
       <f:selectItems value="#{pageAction.userTypes}" />
       </h:selectOneRadio>
       </f:subview>
       <f:subview rendered="#{not pageAction.displayChoice}">
       <h:outputText value="#{messages[pc:displayType(categoryType, pageAction.userType)]}" styleClass="boldText" />
       </f:subview>
      


      The exception is:

      11:39:24,359 ERROR [STDERR] Apr 18, 2007 11:39:24 AM com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/userForm.xhtml]
      java.lang.NullPointerException
       at org.apache.el.lang.FunctionMapperImpl$Function.writeExternal(FunctionMapperImpl.java:123)
       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
       at java.util.HashMap.writeObject(HashMap.java:1039)
       at sun.reflect.GeneratedMethodAccessor629.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
       at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
       at org.apache.el.lang.FunctionMapperImpl.writeExternal(FunctionMapperImpl.java:74)
       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
       at org.apache.el.ValueExpressionImpl.writeExternal(ValueExpressionImpl.java:256)
       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
       at com.sun.facelets.el.TagValueExpression.writeExternal(TagValueExpression.java:128)
       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
       at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
       at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
       at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:233)
       at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:155)
       at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:300)
       at org.jboss.seam.jsf.SeamStateManager.writeState(SeamStateManager.java:66)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:599)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
       at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
       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:228)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
       at java.lang.Thread.run(Thread.java:595)
      11:39:24,484 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: com.app.ui.util.ELUtils
      11:39:24,484 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      11:39:24,484 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
      11:39:24,484 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
      11:39:24,484 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      11:39:24,484 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      11:39:24,484 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
      11:39:24,484 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
      11:39:24,484 ERROR [STDERR] at org.apache.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMapperImpl.java:147)
      11:39:24,484 ERROR [STDERR] at org.apache.el.lang.FunctionMapperImpl.resolveFunction(FunctionMapperImpl.java:53)
      11:39:24,484 ERROR [STDERR] at org.apache.el.parser.AstFunction.getValue(AstFunction.java:71)
      11:39:24,484 ERROR [STDERR] at org.apache.el.parser.AstBracketSuffix.getValue(AstBracketSuffix.java:21)
      11:39:24,484 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:92)
      11:39:24,484 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
      11:39:24,484 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
      11:39:24,484 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor756.invoke(Unknown Source)
      11:39:24,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      11:39:24,484 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeAttributes(DevTools.java:240)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeStart(DevTools.java:284)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:189)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:107)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:671)
      11:39:24,484 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:639)
      11:39:24,484 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      11:39:24,484 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      11:39:24,484 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      11:39:24,484 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      11:39:24,484 ERROR [STDERR] at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      11:39:24,484 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      11:39:24,484 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      11:39:24,484 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      11:39:24,484 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
      11:39:24,484 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      11:39:24,484 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      


        • 1. Re: Exception when page is re-rendered after missing require
          Pete Muir Master

          This bug was fixed yesterday so you'll need a more recent copy of Seam - try a bit later today as CVS isn't quite building just now. Sorry.

          • 2. Re: Exception when page is re-rendered after missing require
            Pete Muir Master

            Or get current CVS and replace your jboss-el.jar with the current one should work

            • 3. Re: Exception when page is re-rendered after missing require
              Richard Leherpeur Novice

              So I got the lasted from cvs and built Seam (the build doesn't seem to be broken anymore, I had no problem).
              Replaced all the Seam jar in my project by the new ones.
              Replaced jboss-el.jar in my project by the one found in jboss-seam/lib folder.

              I still get the same exception though.

              • 4. Re: Exception when page is re-rendered after missing require
                Richard Leherpeur Novice

                Actually, lastest from CVS + jboss-4.2.0.CR2 fix it :)
                (I was still using jboss-4.2.0.CR1 earlier)

                • 5. Re: Exception when page is re-rendered after missing require
                  Richard Leherpeur Novice

                  Actually I spoke too fast. The page is re-rendered properly this time, but the log still has the exception.

                  • 6. Re: Exception when page is re-rendered after missing require
                    Pete Muir Master

                    Can you post the whole log again? Just so I can see the latest exception :)

                    • 7. Re: Exception when page is re-rendered after missing require
                      Richard Leherpeur Novice

                      Here is the new exception stacktrace:

                      13:37:09,953 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: com.app.ui.util.ELUtils
                      13:37:09,953 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
                      13:37:09,953 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
                      13:37:09,953 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
                      13:37:09,953 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                      13:37:09,953 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
                      13:37:09,953 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
                      13:37:09,953 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
                      13:37:09,953 ERROR [STDERR] at org.jboss.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMapperImpl.java:148)
                      13:37:09,953 ERROR [STDERR] at org.jboss.el.lang.FunctionMapperImpl$Function.writeExternal(FunctionMapperImpl.java:124)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                      13:37:09,953 ERROR [STDERR] at java.util.HashMap.writeObject(HashMap.java:1039)
                      13:37:09,953 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor172.invoke(Unknown Source)
                      13:37:09,953 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      13:37:09,953 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                      13:37:09,953 ERROR [STDERR] at org.jboss.el.lang.FunctionMapperImpl.writeExternal(FunctionMapperImpl.java:74)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                      13:37:09,953 ERROR [STDERR] at org.jboss.el.ValueExpressionImpl.writeExternal(ValueExpressionImpl.java:256)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                      13:37:09,953 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.writeExternal(TagValueExpression.java:128)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                      13:37:09,953 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                      13:37:09,953 ERROR [STDERR] at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:244)
                      13:37:09,953 ERROR [STDERR] at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:155)
                      13:37:09,953 ERROR [STDERR] at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:298)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.jsf.SeamStateManager.writeState(SeamStateManager.java:131)
                      13:37:09,953 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:599)
                      13:37:09,953 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                      13:37:09,953 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                      13:37:09,953 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                      13:37:09,953 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                      13:37:09,953 ERROR [STDERR] at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      13:37:09,953 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                      13:37:09,953 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                      13:37:09,953 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                      13:37:09,953 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      13:37:09,953 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
                      13:37:09,953 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                      13:37:09,953 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
                      13:37:09,953 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
                      13:37:09,953 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
                      13:37:09,953 ERROR [STDERR] Apr 18, 2007 1:37:09 PM com.sun.facelets.FaceletViewHandler handleRenderException
                      SEVERE: Error Rendering View[/userForm.xhtml]
                      java.lang.NullPointerException
                       at org.jboss.el.lang.FunctionMapperImpl$Function.writeExternal(FunctionMapperImpl.java:124)
                       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                       at java.util.HashMap.writeObject(HashMap.java:1039)
                       at sun.reflect.GeneratedMethodAccessor172.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
                       at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
                       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                       at org.jboss.el.lang.FunctionMapperImpl.writeExternal(FunctionMapperImpl.java:74)
                       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                       at org.jboss.el.ValueExpressionImpl.writeExternal(ValueExpressionImpl.java:256)
                       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                       at com.sun.facelets.el.TagValueExpression.writeExternal(TagValueExpression.java:128)
                       at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
                       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                       at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
                       at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
                       at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
                       at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
                       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
                       at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:244)
                       at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:155)
                       at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:298)
                       at org.jboss.seam.jsf.SeamStateManager.writeState(SeamStateManager.java:131)
                       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:599)
                       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
                       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
                       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
                       at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
                       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:228)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
                       at java.lang.Thread.run(Thread.java:595)
                      


                      • 9. Re: Exception when page is re-rendered after missing require
                        Richard Leherpeur Novice

                        In development, the class is under project.ear/project.war/WEB-INF/classes/... in the Jboss deploy folder.
                        In "production" mode, the jar is in the war file under WEB_INF/lib. And the war file is in the ear file that is itself in the Jboss deploy folder.

                        I tried both (ear file and exploded) just to see and get the same exception.

                        I hope this helps.

                        • 10. Re: Exception when page is re-rendered after missing require
                          Pete Muir Master

                          Can you try packaging them off the ear? (in your ejb module for example?)

                          • 11. Re: Exception when page is re-rendered after missing require
                            Richard Leherpeur Novice

                            So I move that particular class in the jar that contains the ebj and I don't see the exception anymore.
                            So it seems that being in the war file is the problem.

                            I guess I'll keep that class there (It was in the war because I only use this class in custom functions through tags)

                            • 12. Re: Exception when page is re-rendered after missing require
                              Pete Muir Master

                              So, it should be in the war - this is a bug, and putting it in the ear is a workaround :(

                              • 13. Re: Exception when page is re-rendered after missing require
                                Richard Leherpeur Novice

                                Yes it would be nice to be able to keep it in the war.
                                But for now I think I can live having it with the ebj :)