TrueSight Server Automation (TSSA) - [Fatal Error] :-1:-1: Premature end of file. Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; Premature end of file.

Version 3
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BladeLogic Server Automation Suite


    COMPONENT:

    BladeLogic Server Automation


    APPLIES TO:

    BSA 8.x, TSSA 8.x+



    PROBLEM:

    The TrueSight Server Automation (TSSA) appserver fails to startup with below errors in the log:

    <appserver.log>
    [20 Mar 2017 09:59:08,160] [main] [INFO] [::] [] Registering remote services...
    [20 Mar 2017 09:59:08,161] [main] [INFO] [::] [] Shutdown processes complete
    [20 Mar 2017 09:59:08,186] [Thread-1] [INFO] [::] [] Undeploying
    [20 Mar 2017 09:59:08,224] [Thread-1] [ERROR] [::] [] java.rmi.NotBoundException: bladelogic.service.AppServerService
    [20 Mar 2017 15:09:49,286] [main] [INFO] [::] [] Starting Agent Service...
    [20 Mar 2017 15:09:49,333] [main] [INFO] [::] [] Agent Service started.
    [20 Mar 2017 15:09:49,646] [main] [INFO] [::] [] String ClientValidation Service...
    [20 Mar 2017 15:09:49,646] [main] [INFO] [::] [] ClientValidation Service started.
    [20 Mar 2017 15:09:49,652] [main] [INFO] [::] [] Starting Configuration Service...
    [20 Mar 2017 15:09:49,734] [main] [INFO] [::] [] Configuration Service started.
    [20 Mar 2017 15:09:49,773] [main] [INFO] [::] [] Starting Content Importer Service...
    [20 Mar 2017 15:09:49,774] [main] [INFO] [::] [] Content Importer Service started.
    [20 Mar 2017 15:09:49,879] [main] [INFO] [::] [] Loading JNI libaries...
    [20 Mar 2017 15:09:49,895] [main] [INFO] [::] [] Loaded JNI library BlAsJni
    [20 Mar 2017 15:09:49,897] [main] [INFO] [::] [] Loaded JNI library XJNIService
    [20 Mar 2017 15:09:49,897] [main] [INFO] [::] [] Loaded JNI library Atrium Core
    [20 Mar 2017 15:09:49,898] [main] [INFO] [::] [] Initializing JNI Configuration...
    [20 Mar 2017 15:09:49,899] [main] [INFO] [::] [] Initialized JNI library BlAsJni
    [20 Mar 2017 15:09:49,916] [main] [INFO] [::] [] Initialized JNI library XJNIService
    [20 Mar 2017 15:09:49,916] [main] [INFO] [::] [] Initialized JNI library Atrium Core
    [20 Mar 2017 15:09:49,916] [main] [INFO] [::] [] JNI Configuration complete.
    [20 Mar 2017 15:09:49,928] [main] [INFO] [::] [] Job Infra Manager Service is starting
    [20 Mar 2017 15:09:49,973] [main] [INFO] [::] [] Starting LDAP Connection Service...
    [20 Mar 2017 15:09:49,973] [main] [INFO] [::] [] LDAP Connection Service started.
    [20 Mar 2017 15:09:50,053] [
    ...

    <console.log>
    [20 Mar 2017 09:59:08,160] [main] [INFO] [::] [] Registering remote services...
    [20 Mar 2017 09:59:08,161] [main] [INFO] [::] [] Shutdown processes complete
    com.bladelogic.om.infra.app.service.bootstrap.DeploymentException: com.bladelogic.om.infra.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.CleanupService
    bladelogic.service.FileManagerService
    bladelogic.service.GrammarService
    bladelogic.service.SupportService

    Actual cause :
    com.bladelogic.om.infra.app.service.bootstrap.DeploymentException: com.bladelogic.om.infra.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.CleanupService
    bladelogic.service.FileManagerService
    bladelogic.service.GrammarService
    bladelogic.service.SupportService

        at com.bladelogic.om.infra.mfw.fw.BlManager.start(BlManager.java:1704)
        at com.bladelogic.om.infra.mfw.fw.BlManager.main(BlManager.java:2281)
    Caused by: com.bladelogic.om.infra.app.service.bootstrap.DeploymentException: Failed to deploy services: bladelogic.service.CleanupService
    bladelogic.service.FileManagerService
    bladelogic.service.GrammarService
    bladelogic.service.SupportService

        at com.bladelogic.om.infra.app.service.bootstrap.ServiceBootstrap.checkStates(ServiceBootstrap.java:332)
        at com.bladelogic.om.infra.app.service.bootstrap.ServiceBootstrap.registerRemoteServices(ServiceBootstrap.java:339)
        at com.bladelogic.om.infra.app.service.bootstrap.ServiceBootstrap.bootstrap(ServiceBootstrap.java:151)
        at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:91)
        at com.bladelogic.om.infra.app.service.bootstrap.ServiceBootstrap.startup(ServiceBootstrap.java:63)
        at com.bladelogic.om.infra.mfw.fw.BlManager.start(BlManager.java:1700)
        ... 1 more
    [20 Mar 2017 09:59:08,186] [Thread-1] [INFO] [::] [] Undeploying
    [20 Mar 2017 09:59:08,224] [Thread-1] [ERROR] [::] [] java.rmi.NotBoundException: bladelogic.service.AppServerService
    [20 Mar 2017 15:09:49,286] [main] [INFO[Fatal Error] :-1:-1: Premature end of file.
    Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; Premature end of file.
    ...
    Caused by: org.xml.sax.SAXParseException; Premature end of file.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at com.bladelogic.om.infra.app.bladmin.XmlStorage.loadXmlFile(XmlStorage.java:68)
        ... 11 more
    [Fatal Error] :-1:-1: Premature end of file.
    Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; Premature end of file.
    ...
    Caused by: org.xml.sax.SAXParseException; Premature end of file.
    ...


    CAUSE:

    Some xml file(s) are corrupt (zero size)


    SOLUTION:

    Check the deplopyment directory for the problem appserver deployment "<tssa_install_dir>/NSH/br/deployments/<deployment>/services" folder, it may show multiple xml files of zero bytes.

    If so, provide a directory listing & copy of the log with the error to BMC Customer Support for review.
     


    Article Number:

    000301810


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles