4 Replies Latest reply on Aug 29, 2011 11:00 AM by clerum

    WARN org.jboss.seam.faces.environment.SeamApplicationWrapper Cannot attempt extension on null

    esteve

      Hi,


      I am facing this problem in log with SEAM 3 CR1:
      WARN  org.jboss.seam.faces.environment.SeamApplicationWrapper Cannot attempt extension on null


      I think this is the cause of problems related to annotations @Begin and @End not working.


      Regards,
      Esteve

        • 1. Re: WARN org.jboss.seam.faces.environment.SeamApplicationWrapper Cannot attempt extension on null

          Same problem here... Seam 3 faces module and GlassFish.

          • 2. Re: WARN org.jboss.seam.faces.environment.SeamApplicationWrapper Cannot attempt extension on null
            mausbull.stephan.pabinger.gmail.com

            I get the same warnings in my project (Seam 3.Final).

            Any news about this?


            Stephan

            • 3. Re: WARN org.jboss.seam.faces.environment.SeamApplicationWrapper Cannot attempt extension on null
              andrewwheeler

              This isn't a problem  with seam faces. The seam application wrapper intercepts the creation of validators and converters so that they can act like CDI beans. In other words they can have resources injected using the @Inject annotation.


              In my particular case the faces application is trying to create a converter for java.sql.Date. From my point of view this is very strange as I don't use java.sql.Date anywhere.


              Turning on debug reveals:


              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Creating converter for targetClass java.sql.Date
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Cannot attempt extension on null
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Creating converter for converterId javax.faces.DateTime
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Extending class: javax.faces.convert.DateTimeConverter
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Creating converter for targetClass java.sql.Date
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Cannot attempt extension on null
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Creating converter for targetClass java.sql.Date
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Cannot attempt extension on null
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Creating converter for targetClass java.sql.Date
              [org.jboss.seam.faces.environment.SeamApplicationWrapper] Cannot attempt extension on null
              



              Note: SeamApplicationWrapper delegates to the installed faces Application to create the converter.


              I have one date field on my page and I'm using the Richfaces calendar. If I replace the calendar with a simple inputText then it all goes away. I haven't trawled through the Richfaces code but it looks like a strong suspect.


              If it is not a java.sql.Date causing your problem then it may be any other type for which there is not a standard converter. To find out what is causing your problem just up the logging level and all will be revealed.