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

change language cause exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • None
    • ALL APPLICATIONS
    • None

    Description

      select the link to change language.

      ...console output...

      2015-04-28 23:31:34,542 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getUserPreferenceGroup] finished in [5] milliseconds
      2015-04-28 23:31:34,567 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getVisualThemeResources] finished in [24] milliseconds
      2015-04-28 23:31:34,724 |http-bio-8443-exec-3 |ScreenFactory |I| Got 9 screens in 0.064s from: file:/home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-wrk-restapi/framework/common/widget/LookupScreens.xml
      2015-04-28 23:31:34,741 |http-bio-8443-exec-3 |ScreenFactory |I| Got 24 screens in 0.015s from: file:/home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-wrk-restapi/framework/common/widget/CommonScreens.xml
      2015-04-28 23:31:34,746 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getUserPreferenceGroup] finished in [1] milliseconds
      2015-04-28 23:31:34,749 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getVisualThemeResources] finished in [2] milliseconds
      2015-04-28 23:31:35,146 |http-bio-8443-exec-3 |runtime |E| Error executing FreeMarker template
      freemarker.core._TemplateModelException: ?substring(...) argument #2 had invalid value: The index mustn't be greater than the length of the string, 0, but it was 2.


      FTL stack trace ("~" means nesting-related):

      • Failed at: #if "ar.iw"?contains(langAttr?substri... [in template "component://common/webcommon/includes/listLocales.ftl" at line 34, column 9]

        at freemarker.core.MessageUtil.newMethodArgInvalidValueException(MessageUtil.java:262) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.BuiltInsForStringsBasic$substringBI$1.newIndexGreaterThanLengthException(BuiltInsForStringsBasic.java:598) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.BuiltInsForStringsBasic$substringBI$1.exec(BuiltInsForStringsBasic.java:581) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.ListLiteral.getModelList(ListLiteral.java:89) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MethodCall._eval(MethodCall.java:60) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.evalToBoolean(Expression.java:118) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Expression.evalToBoolean(Expression.java:110) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:46) ~[freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visitByHiddingParent(Environment.java:333) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:148) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visitIteratorBlock(Environment.java:559) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22]
        at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22]
        at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1315) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:906) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:127) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:943) [ofbiz-widget.jar:?]
        at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) [ofbiz-widget.jar:?]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wt Wai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: