2 Replies Latest reply on Jun 21, 2009 7:07 PM by Jose Antonio Da Rocha Padilla

    NullPointerException with message: "Argument Error: Parameter message is null"

    Alan Stock Newbie

      Hi,


      What is the cause of such a message...  am I missing configuration file?
      I am seam newbie.


      I am using jboss-4.2.3.GA, jboss-seam-2.1.1.CR1 and MySQL 5.0.67.


      The program is a variation of the todo example with seam-gen generated forms and an expanded process-definition. Should rather ask on the jBPM list ?


      I am posting here because this message seem to have been addressed in JBSEAM-3318 for the seambay example.
      I didn't quite understand how what was fixed.


      Below is stack trace and further down are the variables when the exception was thrown (collected with JBDS 2.0.0.Beta1).


      Thank you for any help or clue.



      Exception during request processing: 
      Caused by java.lang.NullPointerException with message: "Argument Error: Parameter message is null" 
      com.sun.faces.util.Util.notNull(Util.java:241)
      com.sun.faces.context.FacesContextImpl.addMessage(FacesContextImpl.java:322)
      org.jboss.seam.faces.FacesMessages.beforeRenderResponse(FacesMessages.java:46)
      org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:485)
      org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
      org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
      com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:54)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      java.lang.Thread.run(Unknown Source)



      varname     "message" (id=368)     
           count     7     
           hash     954925063     
           offset     0     
           value     char[7]  (id=373)     
                [0]     m     
                [1]     e     
                [2]     s     
                [3]     s     
                [4]     a     
                [5]     g     
                [6]     e     
      var     null     
      
      
      this     FacesContextImpl  (id=332)     
           application     SeamApplication  (id=376)     
                application     ApplicationImpl  (id=407)     
                     actionListener     ActionListenerImpl  (id=409)     
                     associate     ApplicationAssociate  (id=414)     
                     componentMap     ConcurrentHashMap<K,V>  (id=416)     
                     compositeELResolver     FacesCompositeELResolver  (id=419)     
                     converterIdMap     ConcurrentHashMap<K,V>  (id=421)     
                     converterTypeMap     ConcurrentHashMap<K,V>  (id=423)     
                     defaultLocale     Locale  (id=425)     
                     defaultRenderKitId     null     
                     elContextListeners     null     
                     elResolvers     null     
                     messageBundle     "org.jboss.seam.core.SeamResourceBundle" (id=427)     
                     navigationHandler     SeamNavigationHandler  (id=428)     
                     propertyResolver     PropertyResolverImpl  (id=432)     
                     STANDARD_BY_TYPE_CONVERTER_CLASSES     String[10]  (id=435)     
                     stateManager     SeamStateManager  (id=436)     
                     supportedLocales     ArrayList<E>  (id=443)     
                     validatorMap     ConcurrentHashMap<K,V>  (id=453)     
                     variableResolver     VariableResolverImpl  (id=437)     
                     viewHandler     AjaxViewHandler  (id=444)     
           componentMessageLists     LinkedHashMap<K,V>  (id=379)     
           elContext     ELContextImpl  (id=382)     
           externalContext     ExternalContextImpl  (id=386)     
           lastRk     RenderKitImpl  (id=389)     
           lastRkId     "HTML_BASIC" (id=391)     
           released     false     
           renderResponse     true     
           responseComplete     false     
           responseStream     null     
           responseWriter     null     
           rkFactory     ChameleonRenderKitFactory  (id=394)     
           viewRoot     AjaxViewRoot  (id=397)