Skip to main content
Jan 18, 2024 12:01 PM UTC
Question

findContainerTeamGroups return exception

Hi

 

Anybody using ContainerTeamHelper.service.findContainerTeamGroups() method to get groups from a container? I'm using this and getting the exception java.io.NotSerializableException.

Anybody else facing the same with Windchill 12?

I require a common method to get groups from PDMLinkProduct, Library and Project.

4 replies

Jan 18, 2024 12:02 PM UTC

Where are you running it from? Is this from a command line program outside of Windchill JVM?

Jan 18, 2024 12:06 PM UTC

I call the class(that contains ContainerTeamHelper.service.findContainerTeamGroups()) from Windchill Shell.

Jan 18, 2024 12:11 PM UTC

There are some classes that cannot be executed of RMI which is the case since this is different JVMs. 

What is the NotSerializableException in Java?
NotSerializableException in Java with Examples - GeeksforGeeks
In Java, a NotSerializableException exception is thrown when an instance of a class must implement the Serializable interface

There are work arounds if you need to execute it from command line but this helper only works from within Windchill JVM.