Details

      Description

      Downloaded current trunk and loaded demo data.

      When going for example to EditProductContent (Product --> Content) the following error message appears:

      2016-09-27 20:02:40,822 |http-nio-8444-exec-7 |UtilProperties |I| null
      java.util.MissingResourceException: Can't find resource for bundle org.apache.ofbiz.base.util.UtilProperties$UtilResourceBundle, key FieldDescription.sequenceNum

      Attached the complete error message.

      1. error.txt
        10 kB
        Ingo Wolfmayr
      2. OFBIZ-8336.patch
        12 kB
        Rohit Koushal

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Ingo for report and Rohit for research

        Actually Rohit I decided to fix it another way. I was not satisfied by any of the solutions used so far and your proposition though fixing the visible issue in log would hide information.

        I commited another solution in
        trunk r1763085
        R15.12, 14.12, 13.07 r1763087

        This has not been handled right from start and in several changes
        later. Rather than throwing an exception in UtilProperties.getMessage() it's
        better to check if the bundle contains the key and else to log info. Thus we can improve by possibly adding the missing field description.

        Ironically we will not see much of them in the UI because something like proposed Pierre at OFBIZ-8110 as already been adopted, or was done before the fields descriptions labels solution have been implemented.

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Ingo for report and Rohit for research Actually Rohit I decided to fix it another way. I was not satisfied by any of the solutions used so far and your proposition though fixing the visible issue in log would hide information. I commited another solution in trunk r1763085 R15.12, 14.12, 13.07 r1763087 This has not been handled right from start and in several changes later. Rather than throwing an exception in UtilProperties.getMessage() it's better to check if the bundle contains the key and else to log info. Thus we can improve by possibly adding the missing field description. Ironically we will not see much of them in the UI because something like proposed Pierre at OFBIZ-8110 as already been adopted, or was done before the fields descriptions labels solution have been implemented.
        Hide
        rohit.koushal Rohit Koushal added a comment -

        Hi Jacques Le Roux,

        This patch will fix the problem. Please let me know if are finding any problem in the provided patch.

        Show
        rohit.koushal Rohit Koushal added a comment - Hi Jacques Le Roux , This patch will fix the problem. Please let me know if are finding any problem in the provided patch.
        Hide
        rohit.koushal Rohit Koushal added a comment - - edited

        Hi Jacques Le Roux,

        I did some research on this problem and found that under ticket OFBIZ-8036 someone uncomments debug logs during clean up of commented out code from Java source.

        Here is the part of patch of OFBIZ-8036 which causing the stack trace.

        Index: framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java
        ===================================================================
        --- framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java	(revision 1761176)
        +++ framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java	(working copy)
        @@ -592,7 +592,7 @@
                 try {
                     value = bundle.getString(name);
                 } catch (Exception e) {
        -            //Debug.logInfo(e, module);
        +            Debug.logInfo(e, module);
                 }
                 return value == null ? name : value.trim();
             }
        
        Show
        rohit.koushal Rohit Koushal added a comment - - edited Hi Jacques Le Roux , I did some research on this problem and found that under ticket OFBIZ-8036 someone uncomments debug logs during clean up of commented out code from Java source. Here is the part of patch of OFBIZ-8036 which causing the stack trace. Index: framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java =================================================================== --- framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java (revision 1761176) +++ framework/base/src/main/java/org/apache/ofbiz/base/util/UtilProperties.java (working copy) @@ -592,7 +592,7 @@ try { value = bundle.getString(name); } catch (Exception e) { - //Debug.logInfo(e, module); + Debug.logInfo(e, module); } return value == null ? name : value.trim(); }

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            iwolf Ingo Wolfmayr
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development