Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34600

Plugin Security Manager portlet throws IllegalStateException on JBoss 5.1

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      3
    • Fix Priority:
      4

      Description

      1) Deploy Liferay 6.1.20 on JBoss 5.1 AS using the official documentation (https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen14-installing-liferay-on-jboss-51-0)
      2) Deploy Plugin Security Manager portlet from Marketplace
      3) Try to access the portlet from Control Panel

      RESULT: ERROR is thrown. Please see the attached log.

      The error occurs when the plugin's PluginsSecurityManagerUtil.getPACLPoliciesJSONObjects() method tries to serialize an InactivePACLPolicy object using org.jabsorb.JSONSerializer.toJSON().

      java.lang.IllegalAccessException: Class org.jabsorb.serializer.impl.BeanSerializer can not access a member of class org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader with modifiers "public"
      	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
      	at java.lang.reflect.Method.invoke(Method.java:588)
      	at org.jabsorb.serializer.impl.BeanSerializer.marshall(BeanSerializer.java:223)
      	at org.jabsorb.JSONSerializer.marshall(JSONSerializer.java:390)
      	at org.jabsorb.serializer.impl.BeanSerializer.marshall(BeanSerializer.java:240)
      	at org.jabsorb.JSONSerializer.marshall(JSONSerializer.java:390)
      	at org.jabsorb.JSONSerializer.toJSON(JSONSerializer.java:528)
      	at com.liferay.portal.json.JSONFactoryImpl.serialize(JSONFactoryImpl.java:274)
      	at sun.reflect.GeneratedMethodAccessor623.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:86)
      	at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:54)
      	at com.sun.proxy.$Proxy261.serialize(Unknown Source)
      	at com.liferay.portal.kernel.json.JSONFactoryUtil.serialize(JSONFactoryUtil.java:139)
      	at com.liferay.pluginssecuritymanager.util.PluginsSecurityManagerUtil.getPACLPoliciesJSONObjects(PluginsSecurityManagerUtil.java:71)
      
      

        Attachments

          Activity

            People

            • Assignee:
              he.song Serena Song (Inactive)
              Reporter:
              gergely.mathe Gergely Mathe
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 4 weeks, 6 days ago