Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21811

Don't display in logs Errors related to ObjectEvaluator when upgrading XWiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 16.3.0-rc-1
    • 15.10.2
    • Old Core
    • None
    • Windows 11 Pro, Firefox 121, using a local instance of XWiki 15.10.5 on Oracle 19c, Tomcat 9.0.85
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Create an older instance of XWiki (e.g. 14.4.8)
      2. Close the instance
      3. Go to the newer instance (e.g. 15.10.5) and copy/cut the
        [...]webapps\xwiki

        folder and replace it (first delete the old one) in the same location on the older version (replace the WAR)

      4. Start XWiki upgrade
      5. Observe the logs in XWiki console

      Expected results

      There are no errors in console.

      Actual results

      The following stacktrace is displayed:

      2024-01-18 16:35:07,803 [http-nio-1115-exec-7 - http://localhost:1115/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.min.js?cache-version=1705481320000&h=1255116547] ERROR o.a.v.t.g.LogTool              - Error when trying to evaluate XWiki.SearchSuggestSourceClass: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'evaluate' in  class com.xpn.xwiki.api.Object threw exception org.xwiki.evaluation.ObjectEvaluatorException: Could not find an instance of 'ObjectEvaluator' for XObject of class 'XWiki.SearchSuggestSourceClass'. at /resources/uicomponents/search/searchSuggest.min.js[line 16, column 46]
      2024-01-18 16:35:07,815 [http-nio-1115-exec-7 - http://localhost:1115/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.min.js?cache-version=1705481320000&h=1255116547] ERROR o.a.v.t.g.LogTool              - Error when trying to evaluate XWiki.SearchSuggestSourceClass: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'evaluate' in  class com.xpn.xwiki.api.Object threw exception org.xwiki.evaluation.ObjectEvaluatorException: Could not find an instance of 'ObjectEvaluator' for XObject of class 'XWiki.SearchSuggestSourceClass'. at /resources/uicomponents/search/searchSuggest.min.js[line 16, column 46]
      2024-01-18 16:35:07,828 [http-nio-1115-exec-7 - http://localhost:1115/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.min.js?cache-version=1705481320000&h=1255116547] ERROR o.a.v.t.g.LogTool              - Error when trying to evaluate XWiki.SearchSuggestSourceClass: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'evaluate' in  class com.xpn.xwiki.api.Object threw exception org.xwiki.evaluation.ObjectEvaluatorException: Could not find an instance of 'ObjectEvaluator' for XObject of class 'XWiki.SearchSuggestSourceClass'. at /resources/uicomponents/search/searchSuggest.min.js[line 16, column 46]
      2024-01-18 16:35:07,838 [http-nio-1115-exec-7 - http://localhost:1115/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.min.js?cache-version=1705481320000&h=1255116547] ERROR o.a.v.t.g.LogTool              - Error when trying to evaluate XWiki.SearchSuggestSourceClass: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'evaluate' in  class com.xpn.xwiki.api.Object threw exception org.xwiki.evaluation.ObjectEvaluatorException: Could not find an instance of 'ObjectEvaluator' for XObject of class 'XWiki.SearchSuggestSourceClass'. at /resources/uicomponents/search/searchSuggest.min.js[line 16, column 46]
      2024-01-18 16:35:07,849 [http-nio-1115-exec-7 - http://localhost:1115/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.min.js?cache-version=1705481320000&h=1255116547] ERROR o.a.v.t.g.LogTool              - Error when trying to evaluate XWiki.SearchSuggestSourceClass: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'evaluate' in  class com.xpn.xwiki.api.Object threw exception org.xwiki.evaluation.ObjectEvaluatorException: Could not find an instance of 'ObjectEvaluator' for XObject of class 'XWiki.SearchSuggestSourceClass'. at /resources/uicomponents/search/searchSuggest.min.js[line 16, column 46]
      2024-01-18 16:35:07,864 [http-nio-1115-exec-7 - http://localhost:1115/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.min.js?cache-version=1705481320000&h=1255116547] ERROR o.a.v.t.g.LogTool              - Error when trying to evaluate XWiki.SearchSuggestSourceClass: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'evaluate' in  class com.xpn.xwiki.api.Object threw exception org.xwiki.evaluation.ObjectEvaluatorException: Could not find an instance of 'ObjectEvaluator' for XObject of class 'XWiki.SearchSuggestSourceClass'. at /resources/uicomponents/search/searchSuggest.min.js[line 16, column 46]

      The issue couldn't reproduce when upgrading to a version of XWiki pre 15.10.2.

      Attachments

        Issue Links

          Activity

            People

              pjeanjean Pierre Jeanjean
              iandriuta Ilie Andriuta
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: