[
https://issues.apache.org/jira/browse/OFBIZ-6917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-6917.
----------------------------------
Resolution: Fixed
Fixed in R12.04 (only concerned). I simply used the version introduced by Adrian at r1647873 which replaces DCL code with lazy-initializer class.
> 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)