Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3907

NullPointerException in ManagedBeanBuilder after server restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.4
    • 2.0.22, 2.1.16, 2.2.5
    • None
    • None

    Description

      After server restart we sometimes get a NullPointerException in ManagedBeanBuilder when resolving a managed bean property. This should be avoided.

      java.lang.NullPointerException: null
      	at org.apache.myfaces.config.ManagedBeanBuilder.getScope(ManagedBeanBuilder.java:560)
      	at org.apache.myfaces.config.ManagedBeanBuilder.getNarrowestScope(ManagedBeanBuilder.java:464)
      	at org.apache.myfaces.config.ManagedBeanBuilder.isInValidScope(ManagedBeanBuilder.java:435)
      	at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:319)
      	at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:163)
      	at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:333)
      	at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:296)
      	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
      	at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179)
      

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            deki Dennis Kieselhorst
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: