Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9668

Calendar: NullPointerException when running with MyFaces

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.0.0.Milestone3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      RichFaces 4.0.0-SNAPSHOT r.19944
      Metamer 4.0.0-SNAPSHOT r.19944
      Apache MyFaces JSF-2.0 Core Impl 2.0.2
      Apache Tomcat 6.0.28
      OpenJDK Runtime Environment 1.6.0_18-b18 @Linux
      Chrome 7.0.517.44 @ Linux x86_64

      Description

      1. deploy Metamer with MyFaces
      2. open http://localhost:8080/metamer/faces/components/richCalendar/simple.xhtml

      result:

      javax.faces.FacesException: java.lang.NullPointerException
      at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
      at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:258)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: java.lang.NullPointerException
      at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2043)
      at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2013)
      at java.util.Calendar.setTimeInMillis(Calendar.java:1126)
      at java.util.GregorianCalendar.<init>(GregorianCalendar.java:593)
      at java.util.Calendar.createCalendar(Calendar.java:1028)
      at java.util.Calendar.getInstance(Calendar.java:1010)
      at org.richfaces.utils.CalendarHelper.getCalendar(CalendarHelper.java:209)
      at org.richfaces.utils.CalendarHelper.getCurrentDateOrDefault(CalendarHelper.java:231)
      at org.richfaces.renderkit.CalendarRendererBase.getCurrentDateAsString(CalendarRendererBase.java:346)
      at org.richfaces.renderkit.html.CalendarRenderer.encodeEnd(CalendarRenderer.java:373)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:543)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:520)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:541)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:520)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:92)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:618)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
      at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1159)
      at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:263)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
      ... 16 more

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbelaevski Nick Belaevski
                  Reporter:
                  ppitonak Pavol Pitoňák
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: