cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Upgrade Manager Failed at Membershiplink entries deletion for License Group

SK_10990210
3-Visitor

Upgrade Manager Failed at Membershiplink entries deletion for License Group

Error in method server code:
java.lang.Exception: Exception of type 'java.lang.reflect.InvocationTargetException' was generated on the server with message 'null'
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at com.ptc.windchill.upgrade.updates.directives.MigratorMethod.invoke(MigratorMethod.java:131)
at com.ptc.windchill.upgrade.updates.directives.LightWeightServiceDirective$Server.invokeLightWeightServiceApi(LightWeightServiceDirective.java:635)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:165)
at wt.method.MethodResult.writeExternal(MethodResult.java:226)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1447)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1421)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1169)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:345)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:369)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:829)
Exception:
com.ptc.windchill.upgrade.updates.UpdateExecutionException: Error executing IncrementalUpdate Membershiplink entries deletion for License Group (#156660745-1580882389801-788625466-1-0-0-127)
Nested exception is: (com.ptc.windchill.upgrade.updates.directives.directivesResource/39) com.ptc.windchill.upgrade.updates.DirectiveExecutionException: Method server code wt.org.UpdateMembershiplinkForLicenseGroups.deleteMembershipLink failed. See nested exception for details
Nested exception is: wt.util.WTException: java.lang.reflect.InvocationTargetException
8 REPLIES 8
avillanueva
22-Sapphire II
(To:SK_10990210)

https://www.ptc.com/en/support/article/CS409940?source=search

You didn't say what version but here is a few more articles from older versions:

https://www.ptc.com/en/support/article/CS327186?source=search

https://www.ptc.com/en/support/article/CS374938?source=search

Let me know which one seems like the cause.

I am trying to upgrade to 12.1.2. The error I am getting is different than these articles, I have verified these fixes.

I also have a similiar issue. did you manage to find a solution . Upgrading from 11.2 to 12.1

 ERROR [UpgradeEventFirer] com.ptc.windchill.upgrade.logging.UpgradeFrameworkLogger - Message: Error in method server code:
java.lang.Exception: Exception of type 'java.lang.reflect.InvocationTargetException' was generated on the server with message 'null'
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at com.ptc.windchill.upgrade.updates.directives.MigratorMethod.invoke(MigratorMethod.java:131)
at com.ptc.windchill.upgrade.updates.directives.LightWeightServiceDirective$Server.invokeLightWeightServiceApi(LightWeightServiceDirective.java:635)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:566)
at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:165)
at wt.method.MethodResult.writeExternal(MethodResult.java:226)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1447)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1421)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1169)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:345)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:369)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:829)
 
2024-09-02T20:04:49,253 FATAL [main] com.ptc.windchill.upgrade.updates.UpdateRunner - com.ptc.windchill.upgrade.updates.UpdateExecutionException: Error executing IncrementalUpdate Membershiplink entries deletion for License Group (#156660745-1580882389801-788625466-1-0-0-127)
Nested exception is: (com.ptc.windchill.upgrade.updates.directives.directivesResource/39) com.ptc.windchill.upgrade.updates.DirectiveExecutionException: Method server code wt.org.UpdateMembershiplinkForLicenseGroups.deleteMembershipLink failed.  See nested exception for details
Nested exception is: wt.util.WTException: java.lang.reflect.InvocationTargetException
Nested exception is: java.lang.reflect.InvocationTargetException

Hi @Lufunofuno 

The error seams that the manager is trying to remove some license group. 

So before the upgrade remove all users from licenses groups and try it again.

PetrH

Hi Petr,

 

 

Added all users to the particpant admin and manully removed them from each license group. I also did this for other groups.

 

However,  ther issue is still there.  I am wondering if i need to manullyfind and delete the memebershiplink from SQL side. 

Lufunofuno_0-1725346030971.png

 

Update in the issue,

 

Having a closer look at that the error, I picked up that the upgrade manager was trying to remove membership for the Base, Advanced and Premium License. It seems there was something wrong in the database, specifically the membership link table that cause it to fail. The first sign to look out for in  this kind error is when the Thingworx  view and contribute groups are disconnected.

 

I opted for a double upgrade: 11.2 >12.0 >12.1.  This was successfully run during the test upgrades 

 

 I found that I had to fix the disconnected groups  in the source  before exporting the data before each upgrade pass. I think this is quite Bizzare and PTC are not able to point to what the isse is exactly and why I cant fix it once and for all. 

 

The final  workaround  upgrade process from 11.2 to 12.1 that I used:

**This will be in a system with both 12.0 and 12.1 installed . they can run concurrently and each has its own services except the Ldap and Database

1. Run WinDU

2. Run WinRU and fix flagged issues

3. Run WinDU again ( seems to register  entries in the database that the issues were resolved- I could be wrong)

4. Export Database base and ldap (if targe has its own ldap)

5. Add customisation to target and run make jar  rebuilds for 12.0

6. import data to database and ldap

7 Run Upgrade manager first pass to 12.0

8 Run post uograde tasks to validate data

9. back up current database and ldap( create a checkpoint half

10 Run steps 1- 3 for the new source(12,0)

11. Run step 5 on  the new targer 12.1

12. Run Upgrade Manager  for 12.1

 

 

Pay careful attention to what you start or stop since you have two windchill installations on the same server. I advise that you use CMD to  run windchill shell from each installation.

 

If anyone managed an easier process, please do let me know. 

 

will look

Hi @SK_10990210,


I wanted to follow up with you on your post to see if you received a solution for this topic.
If so, please mark the appropriate reply as the Accepted Solution or if you managed to resolve this by yourselves, please document the solution in this topic for the benefit of other members who may have the same question. 

Of course, if you have more to share on your issue, please let the Community know so that we can continue to support.
 

Thanks,
Community Moderation Team.

 

 

Announcements


Top Tags