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

InstantiationException thrown during execution of JSR 329 TCK on WebLogic 12c

    Details

      Description

      When executing the JSR 329 TCK on WebLogic, the following exception appears in the WebLogic console log:

      Feb 14, 2014 1:55:16 PM org.apache.myfaces.trinidadinternal.application.StateManagerImpl restoreView
      SEVERE: 
      java.lang.InstantiationException: com.liferay.faces.bridge.tck.application.view.ViewDeclarationLanguageJspTCKImpl$EncodedURLHiddenField
      	at java.lang.Class.newInstance0(Class.java:342)
      	at java.lang.Class.newInstance(Class.java:310)
      	at org.apache.myfaces.trinidadinternal.application.Structure.createComponent(Structure.java:86)
      	at org.apache.myfaces.trinidadinternal.application.Structure.createComponent(Structure.java:107)
      	at org.apache.myfaces.trinidadinternal.application.Structure.createComponent(Structure.java:107)
      	at org.apache.myfaces.trinidadinternal.application.Structure.createComponent(Structure.java:107)
      	at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.restoreView(StateManagerImpl.java:796)
      	at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
      	at com.liferay.faces.bridge.application.view.ViewDeclarationLanguageWrapper.restoreView(ViewDeclarationLanguageWrapper.java:54)
      	at com.liferay.faces.bridge.application.view.ViewDeclarationLanguageWrapper.restoreView(ViewDeclarationLanguageWrapper.java:54)
      	at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.restoreView(ViewDeclarationLanguageFactoryImpl.java:335)
      	at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:141)
      	at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
      	at org.apache.myfaces.portlet.faces.testsuite.common.util.faces.application.TestSuiteViewHandlerImpl.restoreView(TestSuiteViewHandlerImpl.java:92)
      	at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
      	at com.liferay.faces.bridge.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:86)
      	at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
      	at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
      	at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:242)
      	at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      	at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
      	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      	at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:103)
      	at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:128)
      	at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:178)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:122)
      	at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:82)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:116)
      	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:112)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      
      

      For some reason WebLogic is unable to create an instance of EncodedURLHiddenField as an inner-class. The solution is to simply refactor to make it a normal (non-inner) public class.

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            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