Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6917

Error with UtilMisc.availableLocales() shows with Java 8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 12.04
    • Fix Version/s: 12.04.06
    • Component/s: None
    • Labels:
      None

      Description

      I encountered this error while working on OFBIZ-6650. I noticed that when you use R12.04 with Java 8 front-end is completly messed up, even locally.

      This is due to the "language" screen in CommonScreens, if you comment it out from <screen name="rightbar"> then it's OK.

      The error is

      Error in request handler:
      Exception: org.ofbiz.widget.screen.ScreenRenderException
      Message: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#language]: java.lang.StringIndexOutOfBoundsException: String index out of range: 2 (String index out of range: 2)
      ---- cause ---------------------------------------------------------------------
      Exception: java.lang.StringIndexOutOfBoundsException
      Message: String index out of range: 2
      

      It's OK with Java 1.7

        Attachments

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              jacques.le.roux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: