"The element type hr must be terminated by the matching end-tag" error when uploading ISO to the Update Manager
search cancel

"The element type hr must be terminated by the matching end-tag" error when uploading ISO to the Update Manager

book

Article ID: 328499

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Uploading an ISO image in Update Manager fails with a red exclamation mark and no error messages.
  • In the /var/log/vmware/vsphere_client/logs/vsphere_client_virgo.log file, you see entries similar to:
[2019-07-16T19:01:56.307Z] [ERROR] http-bio-9090-exec-39         System.err                                                        [Fatal Error] :102:3: The element type "hr" must be terminated by the matching end-tag "</hr>".
[2019-07-16T19:01:56.308Z] [ERROR] http-bio-9090-exec-39         com.vmware.vum.fileupload.impl.VumServerFileUploadClient          VumFileUpload: Exception parsing vum server http response -  org.xml.sax.SAXParseException: The element type "hr" must be terminated by the matching end-tag "</hr>".
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
        at com.vmware.vum.fileupload.impl.VumServerFileUploadClient.parseHttpResponse(VumServerFileUploadClient.java:215)
        at com.vmware.vum.fileupload.impl.VumServerFileUploadClient.executeRequest(VumServerFileUploadClient.java:114)
        at com.vmware.vum.fileupload.impl.VumServerFileUploadClient.login(VumServerFileUploadClient.java:69)
        at com.vmware.vum.fileupload.VumFileUploadServlet.doPost(VumFileUploadServlet.java:100)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.vmware.vise.security.SessionManagementFilter.doFilterInternal(SessionManagementFilter.java:82)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)
        at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)


[2019-07-16T19:02:04.891Z] [INFO ] http-bio-9090-exec-44         org.springframework.flex.servlet.MessageBrokerHandlerAdapter      Channel endpoint amf received request.
 
Uploading an ISO image in Update Manager fails with a red exclamation mark and no error messages


Cause

This issue occurs due to missing class files in the /tmp directory where Update Manager classes are temporarily extracted, system automatically cleans the files inside /tmp after few days of inactivity

Resolution

This issue is resolved in vCenter Server Appliance 6.5.0b, available at VMware Dowbloads.

Workaround:
To workaround this issue, use one of these options:
  • Restart Update Manager Service
    • service-control --stop vmware-updatemgr
    • service-control --start vmware-updatemgr
OR
  • Reboot the vCenter Server Appliance