Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.1.X EE
-
None
Description
Description
Liferay Mobile Device Detection throws NoSuchMethodError when used in Liferay 6.1.
Liferay Mobile Device Detection supports both Liferay 6.1 EE GA2+ and Liferay 6.2 EE GA1+
Reference: https://web.liferay.com/marketplace/-/mp/application/35419014
Steps to Reproduce
- Setup an instance of Liferay 6.1 GA2
- Deploy the latest version of Liferay Mobile Device Detection
- Current version used at the time: 3.0.1
- Restart Liferay portal
- Navigate to Control Panel > liferay.com > Mobile Device Rules
- Add Rule Group
- Name: testRuleGroup
- Manage rules for created Rule Group: testRuleGroup
- Add Rule
- Name: testRule
- Type: Simple Rule
- Navigate to Control Panel > liferay.com > Site Pages
- Navigate to tab: Mobile Rule Groups
- Click: Select Rule Group
- Choose: testRuleGroup
- Navigate to home:
Expected:
Site loads.
Actual:
HTTP 500 error is displayed in the browser and the following error is thrown in the logs:
Jun 21, 2017 7:21:00 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet Main Servlet threw exception java.lang.NoSuchMethodError: com.liferay.portal.kernel.util.StringUtil.equalsIgnoreCase(Ljava/lang/String;Ljava/lang/String;)Z