Details
-
Bug
-
Resolution: Fixed
-
Critical
-
15.10.2
-
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
- Create an older instance of XWiki (e.g. 14.4.8)
- Close the instance
- 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)
- Start XWiki upgrade
- 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
- causes
-
XWIKI-22147 Global Search Suggest not working - no request to the backend
- Closed
-
XWIKI-22155 Search suggest not working in private wikis
- Closed
- relates to
-
XWIKI-21744 Errors related to ObjectEvaluator after upgrading to 15.10.2
- Closed