Details

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

      Description

      Steps to regenerate:
      1) Login to ordermgr.
      2) Click on Quotes and find quotes.
      3) Click on any quote in the search result to go to the overview screen.

      You can see screen is broken with error:
      [java] 2016-06-21 18:46:33,073 |http-nio-8443-exec-4 |ObjectType |W| The specified type [] is not a valid class or a known special type, may see more errors later because of this:
      [java] 2016-06-21 18:46:33,073 |http-nio-8443-exec-4 |AbstractModelCondition |W| Error with comparison in if-compare between field [quote.statusId] with value [QUO_CREATED] and value [QUO_CREATED] with operator [equals] and type []: Type "" specified for compare not supported.
      [java] 2016-06-21 18:46:33,073 |http-nio-8443-exec-4 |ModelScreen |E| Error rendering screen component://common/widget/CommonScreens.xml#GlobalDecorator: java.lang.IllegalArgumentException: Error with comparison in if-compare between field [quote.statusId] with value [QUO_CREATED] and value [QUO_CREATED] with operator [equals] and type []: Type "" specified for compare not supported.. Rolling back transaction.

        Issue Links

          Activity

          Hide
          pritam.kute Pritam Kute added a comment -

          When I looked deeper into the issue, I found that lot of screens are broken like while changing theme we are getting the same error, on FindProduct screen we are getting the same error etc.

          Show
          pritam.kute Pritam Kute added a comment - When I looked deeper into the issue, I found that lot of screens are broken like while changing theme we are getting the same error, on FindProduct screen we are getting the same error etc.
          Hide
          pritam.kute Pritam Kute added a comment -

          I found that this issue is because of the commit at revision 1749488.

          We have XSD http://ofbiz.apache.org/dtds/widget-common.xsd which includes the definition for 'if-compare' which has a default value for type attribute as 'String'. It is not getting parsed properly.
          If we explicitly add 'type' attribute to if-compare, it works.

          <if-compare operator="equals" value="QUO_CREATED" type="String" field="quote.statusId"/>
          
          Show
          pritam.kute Pritam Kute added a comment - I found that this issue is because of the commit at revision 1749488. We have XSD http://ofbiz.apache.org/dtds/widget-common.xsd which includes the definition for 'if-compare' which has a default value for type attribute as 'String'. It is not getting parsed properly. If we explicitly add 'type' attribute to if-compare, it works. < if -compare operator = "equals" value= "QUO_CREATED" type= " String " field= "quote.statusId" />
          Hide
          pritam.kute Pritam Kute added a comment -

          This issue is related to OFBIZ-7061. In a comment on OFBIZ-7061, James Yong suggested changing 'targetNamespace' to 'xsi:schemaLocation'. I have tested by doing so and found all screens working fine.

          Show
          pritam.kute Pritam Kute added a comment - This issue is related to OFBIZ-7061 . In a comment on OFBIZ-7061 , James Yong suggested changing 'targetNamespace' to 'xsi:schemaLocation'. I have tested by doing so and found all screens working fine.
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Well spotted Pritam,

          Fixed at revision: 1749634

          Show
          jacques.le.roux Jacques Le Roux added a comment - Well spotted Pritam, Fixed at revision: 1749634

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              pritam.kute Pritam Kute
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development