Error: The element type "option" must be terminated by the matching end-tag "</option>" When Clicking on Administration Option in Service Catalog
search cancel

Error: The element type "option" must be terminated by the matching end-tag "</option>" When Clicking on Administration Option in Service Catalog

book

Article ID: 5253

calendar_today

Updated On:

Products

CA Service Catalog CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

The following error appears in view.log and error.log while navigating through the different options in Service Catalog (example: Clicking on Administration):

DEBUG [WR_97127698] [http-bio-8443-exec-23] [DomProcessor] xsl: E:\APPS\CA\ServiceCatalog\view\webapps\usm\explorer\json.xsl
DEBUG [WR_97127698] [http-bio-8443-exec-23] [DomProcessor] xsl: file:/E:/APPS/CA/ServiceCatalog/view/webapps/usm/explorer/request/catalogrequestsearch.xsl
ERROR [WR_97127698] [http-bio-8443-exec-23] [DomProcessor] Error Generating Document
javax.xml.transform.TransformerException: org.apache.xalan.xsltc.TransletException: org.apache.xml.utils.WrappedRuntimeException: The element type "option" must be terminated by the matching end-tag "</option>".
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:636)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:303)
at com.ca.usm.producer.DomProcessor.transform(DomProcessor.java:434)
at com.ca.usm.producer.DomProcessor.transform(DomProcessor.java:353)
at com.ca.usm.producer.DomProcessor.renderPage(DomProcessor.java:203)
at com.ca.usm.producer.DomProcessor.service(DomProcessor.java:119)
at com.ca.usm.producer.WPFServlet.service(WPFServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.ca.usm.system.ThreadLocalFilter.doFilter(ThreadLocalFilter.java:44)

Environment

Service Catalog 14.1

Cause

There is a xml or xsl file in the Service Catalog folder which has been modified and does not have the </option> to close the <option> tag, causing this issue to occur.

 

Resolution

1) There are many xml and xsl files in Service Catalog installation folder so to narrow down to the file (s) with the problem:

1.1) Search for files that have modified recently by following the instructions on the following link: http://www.howtogeek.com/219157/how-to-easily-view-recently-modified-files-in-windows/

2.2) Narrow down the issue by testing behavior with different languages.  Set the browser to different languages and log into Service Catalog and see if the issue is specific to one language. Based on the results, you can narrow down the issue to specific language folder. Example: If the issue is with Spanish language only, you need to search for the wrong file in the iceses folders like: USM_Folder\filestore\custom\locale\iceses and USM_Folder\view\webapps\usm\locale\iceses

2) In the xml or xsl file, search for <option> tags and search for the </option> closing tag for each one.  Example: In the following screenshot there is a missing </option> tag in the category.xml:

<Please see attached file for image>

src="/servlet/servlet.FileDownload?file=0150c000004AK76AAG" alt="xml tag.png" width="427" height="208">

3) Add the missing </option> tag to close the <option> tag.

4) Save changes, log out from Catalog and log into the application again. This time the issue will be solved.

Attachments

1558707293930000005253_sktwi1f5rjvs16qn2.png get_app