[jira] [Created] (OFBIZ-6917) Error with UtilMisc.availableLocales() shows with Java 8

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-6917) Error with UtilMisc.availableLocales() shows with Java 8

Nicolas Malin (Jira)
Jacques Le Roux created OFBIZ-6917:
--------------------------------------

             Summary: Error with UtilMisc.availableLocales() shows with Java 8
                 Key: OFBIZ-6917
                 URL: https://issues.apache.org/jira/browse/OFBIZ-6917
             Project: OFBiz
          Issue Type: Bug
    Affects Versions: Release Branch 12.04
            Reporter: Jacques Le Roux
            Assignee: Jacques Le Roux
             Fix For: 12.04.06


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
{code}
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
{code}

It's OK with Java 1.7



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)