Skip to main content
1-Visitor
February 12, 2013
Question

Upgrade failed, how to fix?

  • February 12, 2013
  • 1 reply
  • 6252 views

I tried to upgrade Windchill with the Upgrade Manager and it looks like something is missing or might run with the wrong version,

could you please help to find and fix the problem?

Failed: Populate the fields Prefix, First, Middle, Last and Suffix in the WTUser table.

UUID: *

IU Description: This migrator uses the current value assigned to the full name and last attributes for a user in the directory server. If the wt.org.populateUserFullNameFields property is set to true, the migrator parses the full name attribute into Prefix, First, Middle, Last and Suffix values, and persists them into the new columns created in the WTUser table. If wt.org.populateUserFullNameFields is set to false, the migrator instead persists the full name and last attributes into the First and Last columns respectively and sets the other name columns as null. For disabled users, full name is calculated from the existing persisted values as "prefix first middle last suffix"; the first column is set to the calculated full name, the last column remains the same, and the rest of the name field columns will be null.

Start Time: 08.02.2013 17:33:58 MEZ

End Time: 08.02.2013 17:33:58 MEZ

Logged Messages:

1. PopulateUserFullNameFields START:***

2. >>> Popluate User Full Name fields is false, populating First column with Full Name and Last Column with last name; prefix, suffix, middle will be null

3. Updating user with id :***

4. Error in java migrator code:

(com.ptc.windchill.upgrade.updates.directives.directivesResource/27) com.ptc.windchill.upgrade.updates.DirectiveExecutionException: Unexpected error executing a JavaMigratorDirective with className=wt.org.PopulateUserFullNameFields.

Verschachtelte Ausnahme ist: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.ptc.windchill.upgrade.updates.directives.JavaMigratorDirective.invokeJavaMigratorApi(JavaMigratorDirective.java:422)

at com.ptc.windchill.upgrade.updates.directives.JavaMigratorDirective.execute(JavaMigratorDirective.java:203)

at com.ptc.windchill.upgrade.updates.IncrementalUpdate.execute(IncrementalUpdate.java:661)

at com.ptc.windchill.upgrade.updates.UpdateRunner.applyUpdate(UpdateRunner.java:281)

at com.ptc.windchill.upgrade.updates.UpdateRunner.executeAllUpdatesIn(UpdateRunner.java:220)

at com.ptc.windchill.upgrade.updates.UpdateRunner.run(UpdateRunner.java:169)

at com.ptc.windchill.upgrade.statemachine.state.MigratorRunnerUpgradeState.execute(MigratorRunnerUpgradeState.java:65)

at com.ptc.windchill.upgrade.statemachine.state.MigratorTableRowCountsUpgradeState.execute(MigratorTableRowCountsUpgradeState.java:46)

at com.ptc.windchill.upgrade.statemachine.state.PhaseEventUpgradeState.execute(PhaseEventUpgradeState.java:50)

at com.ptc.windchill.upgrade.statemachine.state.PersistPhaseUpgradeState.execute(PersistPhaseUpgradeState.java:100)

at com.ptc.windchill.upgrade.statemachine.state.ReportWriterUpgradeState.execute(ReportWriterUpgradeState.java:76)

at com.ptc.windchill.upgrade.statemachine.UpgradeFrameworkStateMachine.run(UpgradeFrameworkStateMachine.java:399)

at com.ptc.windchill.upgrade.statemachine.UpgradeFrameworkStateMachine.main_(UpgradeFrameworkStateMachine.java:786)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.ptc.windchill.upgrade.statemachine.DynamicLauncher.runUpgradeFrameworkStateMachine(DynamicLauncher.java:112)

at com.ptc.windchill.upgrade.statemachine.DynamicLauncher.main(DynamicLauncher.java:30)

Caused by: wt.util.WTException: Error in finding mapping key for "user.cn" in adapter : local.test.destrsrvpdm.jndiAdapter

Verschachtelte Ausnahme ist: (com.infoengine.jndi.JNDIResource/40) com.infoengine.util.IEException: Konfigurationsfehler - Anbieter-URL wurde nicht angegeben; Dienstname: "local.test.destrsrvpdm.jndiAdapter". Pr?fen Sie, ob der Dienstname und Laufzeitdienstname richtig sind.

at wt.org.UserFullNameFieldsHelper.readPrincipal(UserFullNameFieldsHelper.java:352)

at wt.org.UserFullNameFieldsHelper.populateUserFullNameFieldsAndUpdate(UserFullNameFieldsHelper.java:128)

at wt.org.PopulateUserFullNameFields.runMigration(PopulateUserFullNameFields.java:39)

... 23 more

Caused by: (com.infoengine.jndi.JNDIResource/40) com.infoengine.util.IEException: Konfigurationsfehler - Anbieter-URL wurde nicht angegeben; Dienstname: "local.test.destrsrvpdm.jndiAdapter". Pr?fen Sie, ob der Dienstname und Laufzeitdienstname richtig sind.

at com.infoengine.jndi.JNDIAdapterImpl.processRequest(JNDIAdapterImpl.java:136)

at com.infoengine.procunit.adapter.Adapter.send(Adapter.java:391)

at com.infoengine.SAK.ObjectWebject.invoke(ObjectWebject.java:262)

at com.infoengine.compiledTasks.file.C$3a$5cptc$5cWindchill_10$2e1$5cWindchill$5ctasks.wt.federation.queryprincipals$2exml.invoke(queryprincipals$2exml.java:100)

at com.infoengine.SAK.Task.invoke(Task.java:1806)

at com.infoengine.SAK.Task.invoke(Task.java:1714)

at wt.org.UserFullNameFieldsHelper.readPrincipal(UserFullNameFieldsHelper.java:317)

... 25 more

Exception:

com.ptc.windchill.upgrade.updates.UpdateExecutionException: Error executing IncrementalUpdate Populate the fields Prefix, First, Middle, Last and Suffix in the WTUser table. (#919772423-1197561275280-14600371-207-10-253-132)

Verschachtelte Ausnahme ist: (com.ptc.windchill.upgrade.updates.directives.directivesResource/38) com.ptc.windchill.upgrade.updates.DirectiveExecutionException: Unexpected error invoking method server code wt.org.PopulateUserFullNameFields.runMigration See nested exception for details.

Verschachtelte Ausnahme ist: (com.ptc.windchill.upgrade.updates.directives.directivesResource/27) com.ptc.windchill.upgrade.updates.DirectiveExecutionException: Unexpected error executing a JavaMigratorDirective with className=wt.org.PopulateUserFullNameFields.

Verschachtelte Ausnahme ist: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.ptc.windchill.upgrade.updates.directives.JavaMigratorDirective.invokeJavaMigratorApi(JavaMigratorDirective.java:422)

at com.ptc.windchill.upgrade.updates.directives.JavaMigratorDirective.execute(JavaMigratorDirective.java:203)

at com.ptc.windchill.upgrade.updates.IncrementalUpdate.execute(IncrementalUpdate.java:661)

at com.ptc.windchill.upgrade.updates.UpdateRunner.applyUpdate(UpdateRunner.java:281)

at com.ptc.windchill.upgrade.updates.UpdateRunner.executeAllUpdatesIn(UpdateRunner.java:220)

at com.ptc.windchill.upgrade.updates.UpdateRunner.run(UpdateRunner.java:169)

at com.ptc.windchill.upgrade.statemachine.state.MigratorRunnerUpgradeState.execute(MigratorRunnerUpgradeState.java:65)

at com.ptc.windchill.upgrade.statemachine.state.MigratorTableRowCountsUpgradeState.execute(MigratorTableRowCountsUpgradeState.java:46)

at com.ptc.windchill.upgrade.statemachine.state.PhaseEventUpgradeState.execute(PhaseEventUpgradeState.java:50)

at com.ptc.windchill.upgrade.statemachine.state.PersistPhaseUpgradeState.execute(PersistPhaseUpgradeState.java:100)

at com.ptc.windchill.upgrade.statemachine.state.ReportWriterUpgradeState.execute(ReportWriterUpgradeState.java:76)

at com.ptc.windchill.upgrade.statemachine.UpgradeFrameworkStateMachine.run(UpgradeFrameworkStateMachine.java:399)

at com.ptc.windchill.upgrade.statemachine.UpgradeFrameworkStateMachine.main_(UpgradeFrameworkStateMachine.java:786)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.ptc.windchill.upgrade.statemachine.DynamicLauncher.runUpgradeFrameworkStateMachine(DynamicLauncher.java:112)

at com.ptc.windchill.upgrade.statemachine.DynamicLauncher.main(DynamicLauncher.java:30)

Caused by: wt.util.WTException: Error in finding mapping key for "user.cn" in adapter : local.test.destrsrvpdm.jndiAdapter

Verschachtelte Ausnahme ist: (com.infoengine.jndi.JNDIResource/40) com.infoengine.util.IEException: Konfigurationsfehler - Anbieter-URL wurde nicht angegeben; Dienstname: "local.test.destrsrvpdm.jndiAdapter". Pr?fen Sie, ob der Dienstname und Laufzeitdienstname richtig sind.

at wt.org.UserFullNameFieldsHelper.readPrincipal(UserFullNameFieldsHelper.java:352)

at wt.org.UserFullNameFieldsHelper.populateUserFullNameFieldsAndUpdate(UserFullNameFieldsHelper.java:128)

at wt.org.PopulateUserFullNameFields.runMigration(PopulateUserFullNameFields.java:39)

... 23 more

Caused by: (com.infoengine.jndi.JNDIResource/40) com.infoengine.util.IEException: Konfigurationsfehler - Anbieter-URL wurde nicht angegeben; Dienstname: "local.test.destrsrvpdm.jndiAdapter". Pr?fen Sie, ob der Dienstname und Laufzeitdienstname richtig sind.

at com.infoengine.jndi.JNDIAdapterImpl.processRequest(JNDIAdapterImpl.java:136)

at com.infoengine.procunit.adapter.Adapter.send(Adapter.java:391)

at com.infoengine.SAK.ObjectWebject.invoke(ObjectWebject.java:262)

at com.infoengine.compiledTasks.file.C$3a$5cptc$5cWindchill_10$2e1$5cWindchill$5ctasks.wt.federation.queryprincipals$2exml.invoke(queryprincipals$2exml.java:100)

at com.infoengine.SAK.Task.invoke(Task.java:1806)

at com.infoengine.SAK.Task.invoke(Task.java:1714)

at wt.org.UserFullNameFieldsHelper.readPrincipal(UserFullNameFieldsHelper.java:317)

... 25 more

1 reply

1-Visitor
August 17, 2017

Seems like an error in LDAP.

Rehosting process didn't happen correctly.

Check whether the property "wt.federation.org.defaultAdapter" (wt.properties) value is same as the ldap used in Windchill after the rehosting. If the value is not changed modify it using the xconfmanager utility and try the upgrade again. It worked for me.

23-Emerald III
August 17, 2017

I have the same issue.

On the original and rehosted systems, the value set for  "wt.federation.org.defaultAdapter" is the same.

If they should be different, what should they be?

The values is com.usec.LDAP on both.

1-Visitor
August 21, 2017

Did you change the hostname while rehosting?

That error is applicable when the host name is changed.