TIBCO Spotfire Server upgrade fails with error, "Unable to rewrite data sources using DataDirect and NTLM authentication" in case of external library storage.
book
Article ID: KB0082054
calendar_today
Updated On:
Products
Versions
Spotfire Server
All Versions
Description
This article exaplains a workaround that can be used to upgrade to TIBCO Spotfire Server in case the old Spotfire environment is configured with external library storage.
The upgrade tool fails with following error logs: ---------------------------------------- Unable to upgrade database com.spotfire.server.tools.upgrade.DatabaseUpgradeException: Unable to rewrite data sources using DataDirect and NTLM authentication at com.spotfire.server.tools.upgrade.DatabaseUpgradeUtil.fixDataDirectNTLMDatasources(DatabaseUpgradeUtil.java:134) at com.spotfire.server.tools.upgrade.UpgradeManager.doDatabaseUpgrade(UpgradeManager.java:374) at com.spotfire.server.tools.upgrade.UpgradeManager.execute(UpgradeManager.java:244) ........ Caused by: org.jdom.input.JDOMParseException: Error on line 1: Premature end of file. at org.jdom.input.SAXBuilder.build(SAXBuilder.java:533) ... 11 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file. 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:441) ... 13 more ------------------------------ Note: The error stack trace should have "Caused by: org.jdom.input.JDOMParseException: Error on line 1: Premature end of file." line like the above.
Cause:
All datasource connection details are stored in files in case of external library storage. The upgrade tool does not check the files on external library storage for the data source information during the upgrade, rather it checks the Spotfire Database which leads to failure of the upgrade process.
Issue/Introduction
TIBCO Spotfire Server upgrade fails with error, "Unable to rewrite data sources using DataDirect and NTLM authentication" in case of external library storage.
Environment
All Supported OS
Resolution
The following workaround can be used to upgrade in case of external library storage.
-------------------------------- 1) Take backup of Spotfire DB. 2) Take backup of Spotfire library stored in shared file system. 3) Run following SQL statements on the Spotfire Database.