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

Error with UtilMisc.availableLocales() shows with Java 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 12.04
    • 12.04.06
    • None
    • 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

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: