IBM Support

Error: "filtError 500: Filter [SolrRequestFilter]: filter is unavailable" when clicking on the SCHEMA hyperlink

Troubleshooting


Problem

You click the SCHEMA hyperlink in Solr's admin page and receive the following error: filtError 500: Filter [SolrRequestFilter]: filter is unavailable

Cause

The error occurs when the schema.xml contains a non-English character. The schema.xml file is not opened in UTF-8 format

Diagnosing The Problem

The following exception is logged in WAS log:


[Servlet Error]-[/admin/get-file.jsp]: sun.io.MalformedInputException
at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java:171)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:316)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:347)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:252)
at java.io.InputStreamReader.read(InputStreamReader.java:212)
at java.io.Reader.read(Reader.java:143)
at com.ibm._jsp._get_2D_file._jspService(_get_2D_file.java:100)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1152)

Resolving The Problem

To work around this issue, modify the Solr JSP file:

1. Open the file: C:\Program Files\IBM\RationalSDLC\common\CM\profiles\cqsearchprofile\installedApps\dfltCell\apache-solr-1.2.0.ear\apache-solr-1.2.0.war\admin\get-file.jsp

2. On line 44 of the get-file.jsp file, replace the text:
Reader input = new InputStreamReader(is);
with this text:
Reader input = new InputStreamReader(is,"UTF-8");

3. Restart the WAS profile.

NOTE:

  • This error does not affect the ClearQuest Full-Text Search function
  • This error might or might not occur when when schema.xml contains non-English word.

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Full-Text Search","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.1;7.1.0.1;7.1.0.2;7.1.1;7.1.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21421924