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

Getting console error while reading property value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: ecommerce
    • Labels:
      None

      Description

      We are getting same console error on following two screens.

      Steps to regenerate:
      1) Go to eCommerce
      2) Click on Register link
      3) After click on register link, we can see error on console.

      1) Now click on profile link
      2) Click on create new contact information link
      3) select "postal address" contact type and click on create button
      4) After click on create button, we can see error on console.

      Console Error:

       Error executing FreeMarker template
           [java] freemarker.template.TemplateModelException: No error description was specified for this error; low-level message: java.lang.ClassNotFoundException: org.ofbiz.base.util.EntityUtilProperties
           [java] 
           [java] ----
           [java] FTL stack trace ("~" means nesting-related):
           [java] 	- Failed at: #assign defaultCountryGeoId = Static[...  [in template "component://ecommerce/template/customer/EditContactMech.ftl" at line 185, column 13]
           [java] ----
           [java] 	at freemarker.ext.beans.ClassBasedModelFactory.get(ClassBasedModelFactory.java:52) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.DynamicKeyName.dealWithStringKey(DynamicKeyName.java:140) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.DynamicKeyName._eval(DynamicKeyName.java:75) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Dot._eval(Dot.java:41) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.MethodCall._eval(MethodCall.java:58) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Expression.eval(Expression.java:81) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Assignment.accept(Assignment.java:134) ~[freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.visit(Environment.java:326) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.visit(Environment.java:332) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at freemarker.core.Environment.process(Environment.java:305) [freemarker-2.3.24.jar:2.3.24]
           [java] 	at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:261)
      
      1. OFBIZ-7331.patch
        2 kB
        Mohammed Rehan Khan

        Activity

        Hide
        rehan.khan Mohammed Rehan Khan added a comment -

        Thank you Jacques Le Roux !!

        Show
        rehan.khan Mohammed Rehan Khan added a comment - Thank you Jacques Le Roux !!
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Mohammed Rehan Khan,

        Your patch is intrunk at revision: 1748286
        Older branches not concerned

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Mohammed Rehan Khan, Your patch is intrunk at revision: 1748286 Older branches not concerned
        Hide
        rehan.khan Mohammed Rehan Khan added a comment -

        Here is the patch for this issue.

        As we are getting ClassNotFound exception on console. So only changed the reference of EntityUtilProperties class.

        Show
        rehan.khan Mohammed Rehan Khan added a comment - Here is the patch for this issue. As we are getting ClassNotFound exception on console. So only changed the reference of EntityUtilProperties class.

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            rehan.khan Mohammed Rehan Khan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development