MethodServer Exits Prematurely With the Error *com.ptc.windchill.upgrade.history

Description
-----------------
Methodserver exits prematurely with the following exception when attempting to start.

ManagerServiceFactory: All managers shut down.
*ERROR*: ManagerServiceFactory: Unable to start all managers.
*ERROR*: MethodServerMain abort: wt.services.ManagerException: Unable to start all managers. Nested exception is:
*ERROR*: (wt.services.servicesResource/21) wt.services.ManagerException: Unable to start manager: "com.ptc.windchill.upgrade.history.service.DatabaseVersioningService" with implementation class: "com.ptc.windchill.upgrade.history.service.StandardDatabaseVersioningService"; nested exception is:
*ERROR*: wt.services.ManagerException; nested exception is:
*ERROR*: com.ptc.windchill.upgrade.history.IUHException: Cannot activate installation that is not the latest one
*ERROR*: at com.ptc.windchill.upgrade.history.InstallAndUpgradeHistory.activateWorkingInstallation(InstallAndUpgradeHistory.java:164)
*ERROR*: at com.ptc.windchill.upgrade.history.service.StandardDatabaseVersioningService.performStartupProcess(StandardDatabaseVersioningService.java:176)
*ERROR*: at wt.services.StandardManager.startup(StandardManager.java:626)
*ERROR*: at wt.services.ManagerImplementation.startup(ManagerImplementation.java:446)
*ERROR*: at wt.services.DefaultStartupHandler.startup(DefaultStartupHandler.java:205)
*ERROR*: at wt.services.StandardManagerService.performStartupProcess(StandardManagerService.java:215)
*ERROR*: at wt.services.StandardManager.startup(StandardManager.java:626)
*ERROR*: at wt.services.StandardServicesHandler.start(StandardServicesHandler.java:43)
*ERROR*: at wt.method.MethodServerMain.run(MethodServerMain.java:278)
*ERROR*: at wt.method.MethodServerMain.main(MethodServerMain.java:183)
Stopping services...
ManagerServiceFactory: All managers shut down.
MethodServer stopped.

Alternate Technique
-----------------
See Resolution below.

Resolution
-----------------
During method server startup the StandardDatabaseVersioningService looks into the database to see what versions of each product are registered. This error can occur

1) If the versions in the database are older than what is reported by 'windchill version'

or

2) The current installation directory is missing some of the components when the database was last initialized

The most typical cause of the problem is to have two different installations pointing at the same database and not having the same products installed.

To see what the difference between the database and the codebase is, run the following from <WT_HOME>\bin directory to see the database versions:

upgrademanager -exportdbhistory <some-name>.xml

Eg: upgrademanager -exportdbhistory dbHistory.xml

Then run the following to get the codebase versions:

windchill version

To resolve the issue, compare the dbHistory.xml and the output of 'windchill version'. Then modify the XML file to contain correct information and run the following command to update the version history in the database

upgrademanager -importdbhistory path/to/xmlfile

Eg: upgrademanager -importdbhistory dbHistory.xml

你可能感兴趣的:(java,xml)