KB-1689 UnmarshalException thrown when running the password script

Symptoms

The following error is thrown when running the password.(sh|bat) script:

Exception in thread "main" javax.xml.bind.DataBindingException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 3; Content is not allowed in prolog.]
at javax.xml.bind.JAXB.unmarshal(JAXB.java:245)
at com.appian.komodo.topology.AppianTopologyParser.parseTopologyDefinition(AppianTopologyParser.java:57)
at com.appian.komodo.topology.AppianTopologyParser.parseTopology(AppianTopologyParser.java:33)
at com.appian.komodo.config.ConfigurationModule.lambda$appianTopologyConfigFn$0(ConfigurationModule.java:292)
at com.appian.komodo.config.ConfigurationModule.<init>(ConfigurationModule.java:127)
at com.appian.komodo.config.ConfigurationModule.<init>(ConfigurationModule.java:96)
at com.appian.komodo.config.ConfigurationModule.<init>(ConfigurationModule.java:92)
at com.appian.komodo.KomodoScriptConfig.<init>(KomodoScriptConfig.groovy:53)
at com.appian.komodo.KomodoScriptConfig.<init>(KomodoScriptConfig.groovy:49)
at com.appian.komodo.PasswordScript.main(PasswordScript.groovy:30)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 3; Content is not allowed in prolog.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
at javax.xml.bind.JAXB.unmarshal(JAXB.java:242)
... 9 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 3; Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:994)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:243)
... 12 more

Cause

The Appian topology parser is failing to parse the appian-topology.xml due to a syntax error at the position noted in the stack-trace.

Action

Ensure that the appian-topology.xml is correctly formatted as provided in a base installation.

Affected Versions

This article applies to Appian 17.3 and later.

Last Reviewed: September 2018

Related
Recommended