PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-8435

com.liferay.portal.convert.ConvertPermissionAlgorithm - java.lang.ArrayIndexOutOfBoundsException: 0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 5.2.3, 6.0.4 GA
    • Fix Version/s: 6.0.4 GA, 6.0.5 GA
    • Labels:
      None
    • Environment:
      Liferay 5.2.3 with Derby DB
      Upgraded several times (started with Liferay 3.6.x)
    • Branch Version/s:
      6.0.x, 5.2.x, 5.1.x
    • Backported to Branch:
      Committed
    • Liferay Contributor's Agreement:
      Accept
    • Similar Issues:
      Show 5 results 

      Description

      This happend as I tried to upgrade the permission algorithm from 2 to 5/6 on a long running portal installation.

      INFO | jvm 1 | 2010/03/18 13:00:43 | 2010-03-18 13:00:43,036 FATAL [liferay/convert_process:] com.liferay.portal.convert.ConvertPermissionAlgorithm - java.lang.ArrayIndexOutOfBoundsException: 0
      INFO | jvm 1 | 2010/03/18 13:00:43 | java.lang.ArrayIndexOutOfBoundsException: 0
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.convert.ConvertPermissionAlgorithm._convertToBitwise(ConvertPermissionAlgorithm.java:176)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.convert.ConvertPermissionAlgorithm.doConvert(ConvertPermissionAlgorithm.java:125)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.convert.ConvertProcess.convert(ConvertProcess.java:41)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.convert.messaging.ConvertProcessMessageListener.doReceive(ConvertProcessMessageListener.java:59)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.convert.messaging.ConvertProcessMessageListener.receive(ConvertProcessMessageListener.java:44)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:70)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:54)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      INFO | jvm 1 | 2010/03/18 13:00:43 | at java.lang.Thread.run(Unknown Source)

        Activity

        Hide
        Tobias Kaefer added a comment -

        > @Tobias / @Anton I'm curious as to why you guys are having this problem. Do both of you have a line in the temp file with just a comma?
        Yes. It seems so.
        But I started this issue over a year ago, so I don't have the database that caused this Exception available (too bad, I know).

        Show
        Tobias Kaefer added a comment - > @Tobias / @Anton I'm curious as to why you guys are having this problem. Do both of you have a line in the temp file with just a comma? Yes. It seems so. But I started this issue over a year ago, so I don't have the database that caused this Exception available (too bad, I know).
        Hide
        Alexander Chow added a comment -

        @Urvancev And you were running 5.2 w/ permission 5, upgraded to 6, then executed this conversion?

        Show
        Alexander Chow added a comment - @Urvancev And you were running 5.2 w/ permission 5, upgraded to 6, then executed this conversion?
        Hide
        Urvancev Andrey added a comment -

        >>But when I change permissions.user.check.algorithm to 6 an restart portal. I can't login, can't see any page, because I'm get this message "You do not have permission to view this page."

        Show
        Urvancev Andrey added a comment - >>But when I change permissions.user.check.algorithm to 6 an restart portal. I can't login, can't see any page, because I'm get this message "You do not have permission to view this page."
        Hide
        Alexander Chow added a comment -

        OK, the patch has been committed to SVN trunk. It basically fixes the bug for everybody other than Urvancev. The "name" field in ResourceCode is meant to indicate the ID of the resource (portlet ID or model name). I am not sure why your environments have a blank "name" field; my only guess is you had some kind of custom code that was creating permissions for something without passing in a valid name.

        Urvancev, your problem is somewhat different from everybody else and requires a bit more debugging. Please open a new ticket with more details of your environment. In particular, things like what kind of customizations were done to your system and whether you selected to generate the custom roles (default is to NOT generate them, so I would suggest you enable this and try again). Hope that helps.

        Show
        Alexander Chow added a comment - OK, the patch has been committed to SVN trunk. It basically fixes the bug for everybody other than Urvancev. The "name" field in ResourceCode is meant to indicate the ID of the resource (portlet ID or model name). I am not sure why your environments have a blank "name" field; my only guess is you had some kind of custom code that was creating permissions for something without passing in a valid name. Urvancev, your problem is somewhat different from everybody else and requires a bit more debugging. Please open a new ticket with more details of your environment. In particular, things like what kind of customizations were done to your system and whether you selected to generate the custom roles (default is to NOT generate them, so I would suggest you enable this and try again). Hope that helps.
        Hide
        Brian Chan added a comment -

        Thx Alex

        Show
        Brian Chan added a comment - Thx Alex

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

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

              Development

                Structure Helper Panel