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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值