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
    • Similar Issues:
      Show 5 results 

      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)
      
      

        Activity

        Hide
        Serena Song (Inactive) added a comment - - edited

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        JBoss 5.1 + MySQL 5. Portal 6.1.x.EE GIT ID: 4836a463aca4a1d6c64408c0e5065a25725f7d88.
        Plugins 6.1.x EE GIT ID: 4ad4ddd98cf3e9fa0b959b4e3c7f64c8eb7f0a59.
        JBoss 5.1 + MySQL 5. Portal 6.2.x GIT ID: 526e4f900894f992f1cfbc9942764ca8441c1fdc.
        Plugins 6.2.x EE GIT ID: 02200210b7b5d9d568ce6d6c6f5f79b74c7b30a5.

        You can access to control panel with no exception after deploy Plugin Security Manager portlet successfully.

        Show
        Serena Song (Inactive) added a comment - - edited PASSED Manual Testing following the steps in the description. Fixed on: JBoss 5.1 + MySQL 5. Portal 6.1.x.EE GIT ID: 4836a463aca4a1d6c64408c0e5065a25725f7d88. Plugins 6.1.x EE GIT ID: 4ad4ddd98cf3e9fa0b959b4e3c7f64c8eb7f0a59. JBoss 5.1 + MySQL 5. Portal 6.2.x GIT ID: 526e4f900894f992f1cfbc9942764ca8441c1fdc. Plugins 6.2.x EE GIT ID: 02200210b7b5d9d568ce6d6c6f5f79b74c7b30a5. You can access to control panel with no exception after deploy Plugin Security Manager portlet successfully.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 39 weeks, 5 days ago

              Development

                Structure Helper Panel