Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1740

Managed bean methods annotated with @PostConstruct not called when running in JBoss AS

    Details

      Description

      Steps to Reproduce:

      1. Download and deploy the jsf2-export-pdf-portlet to JBoss AS

      2. Add the "JSF2 Export PDF" portlet to a portal page

      3. Try to view the page

      If the bug still exists, then the following stacktrace will appear in the JBoss console log:

      Caused by: java.lang.NullPointerException
      	at com.liferay.faces.demos.list.CustomersDataModel.<init>(CustomersDataModel.java:38) [classes:]
      	at com.liferay.faces.demos.bean.CustomersModelBean.getCustomers(CustomersModelBean.java:48) [classes:]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_51]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_51]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_51]
      	at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_51]
      

      It seems that the CustomerServiceMockImpl.postConstruct() method is not getting called in a JBoss environment.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neil.griffin Neil Griffin
              Reporter:
              vernon.singleton Vernon Singleton (Inactive)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  liferay-faces-3.0.4-legacy-ga5
                  liferay-faces-3.0.4-ga5
                  liferay-faces-3.1.4-ga5
                  liferay-faces-3.2.4-ga5