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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

An illegal reflective access operation has occurred

Mathivanan
4-Participant

An illegal reflective access operation has occurred

HI All,

I was preparing a report to extract some IBA attribute in windchill 12. getting below error. if anyone have solution, please share with me.

ERROR:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by wt.util.RMIServer (file:/opt/ptc/Windchill_12/Windchill/codebase/) to constructor sun.rmi.server.UnicastServerRef2(sun.rmi.transport.LiveRef)
WARNING: Please consider reporting this to the maintainers of wt.util.RMIServer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: The ManagerService is not initialized! This can be caused by:
1) Attempting to invoke a server only method from a remote client
2) Attempting to invoke a method on a service from the constructor or static initializer of another service
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.ptc.core.meta.type.mgmt.server.impl.service.WTTypeManagementDBService.getWTTypeDefinition(WTTypeManagementDBService.java:1391)
at com.ptc.core.meta.type.mgmt.server.impl.service.WTTypeManagementDBService.refreshOriginalTypeDefinition(WTTypeManagementDBService.java:380)
at com.ptc.core.meta.type.mgmt.server.impl.StandardTypeDefinitionCacheManager.getNodeFromService(StandardTypeDefinitionCacheManager.java:63)
at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCacheManager.load(AbstractTypeDefinitionCacheManager.java:897)
at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCacheManager.getNode(AbstractTypeDefinitionCacheManager.java:541)
at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCache.getCurrentTypeIdentifier(AbstractTypeDefinitionCache.java:501)
at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCache.getTypeIdentifierFromPersistedType(AbstractTypeDefinitionCache.java:391)
at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeIdentifierFromPersistedType(TypeIdentifierUtilityImplementation.java:537)
at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeIdentifierFromPersistedType(TypeIdentifierUtilityImplementation.java:473)
at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeIdentifier(TypeIdentifierUtilityImplementation.java:148)
at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeInstanceIdentifier(TypeIdentifierUtilityImplementation.java:252)
at com.ptc.core.meta.server.TypeIdentifierUtility.getTypeInstanceIdentifier(TypeIdentifierUtility.java:222)
at com.ptc.core.meta.type.runtime.server.impl.TypeInstanceIBAHolderUtility.extractIBAValuesAsTypeInstance(TypeInstanceIBAHolderUtility.java:124)
at com.ptc.core.meta.type.runtime.server.impl.TypeInstanceUtilityImplementation.getIBAValues(TypeInstanceUtilityImplementation.java:498)
at com.ptc.core.meta.type.server.TypeInstanceUtility.getIBAValues(TypeInstanceUtility.java:251)
at com.ptc.core.lwc.server.PersistableAdapter.load(PersistableAdapter.java:445)
at com.ptc.core.lwc.server.PersistableAdapter.load(PersistableAdapter.java:362)
at ext.cummins.utils.CumminsUtils.getAttributeValue(CumminsUtils.java:2605)
at ext.cummins.interfaces.common.services.ADLSLegacyDataCSV.extractDataFromPartNumber(ADLSLegacyDataCSV.java:212)
at ext.cummins.interfaces.common.services.ADLSLegacyDataCSV.main(ADLSLegacyDataCSV.java:82)
Caused by: java.lang.NullPointerException
at wt.session.SessionServerHelper.<clinit>(SessionServerHelper.java:40)
... 20 more

 

Thanks,

Mathi

ACCEPTED SOLUTION

Accepted Solutions

Hi @Mathivanan 

Is it possible to share the main code? 

I believe that you do not use correct authentication method 

RemoteMethodServer.getDefault().setUserName("user");
RemoteMethodServer.getDefault().setPassword("pass");

also check following thread

Running a custom class file from windchill shell

 

PetrH

View solution in original post

3 REPLIES 3
avillanueva
22-Sapphire II
(To:Mathivanan)

How are you running this report? It sounds like its from the command line. do you have your Windchill shell correct? 

HI,

yes, I'm running this report in windchill shell. (Windchill version 12.0)

Hi @Mathivanan 

Is it possible to share the main code? 

I believe that you do not use correct authentication method 

RemoteMethodServer.getDefault().setUserName("user");
RemoteMethodServer.getDefault().setPassword("pass");

also check following thread

Running a custom class file from windchill shell

 

PetrH

Announcements


Top Tags