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

java.lang.SecurityException: Access denied

Robert-Altman
10-Marble

java.lang.SecurityException: Access denied

Hello,

Having some issues with Windchill Log files being generated repeatedly every minute.

I have a call into PTC but they have not responded with anything that resolved the issue?

 

Would you have any suggestions?

 

===========================================================================================

 

2017-04-03 09:40:49,625 INFO  [main] wt.server.manager.startup - Creating wt.manager.jmx.Startup

 

2017-04-03 09:40:49,625 INFO  [BackgroundMethodServerMonitor] wt.server.manager.startup - Starting 1 BackgroundMethodServer instance

 

2017-04-03 09:40:49,625 INFO  [MethodServerMonitor] wt.server.manager.startup - Starting 3 MethodServer instances

 

2017-04-03 09:40:49,640 ERROR [RMI TCP Connection(3)-10.3.50.172] wt.cache.server.wt.cache.MasterCacheMonitor - caught cache server call exception

java.rmi.RemoteException: Unable to register slave cache; nested exception is:

 

java.lang.SecurityException: Access denied

 

at wt.cache.RemoteCacheServer.registerSlaveInternal(RemoteCacheServer.java:251)

 

at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:183)

 

at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:178)

 

at wt.cache.RemoteCacheServer.callTimeAndLogRemoteCallableLow(RemoteCacheServer.java:714)

 

at wt.cache.RemoteCacheServer.callTimeAndLogRemoteCallable(RemoteCacheServer.java:687)

 

at wt.cache.RemoteCacheServer.registerSlave(RemoteCacheServer.java:176)

 

at wt.cache.CacheManager.<init>(CacheManager.java:599)

 

at wt.cache.MasterCacheMonitor.<init>(MasterCacheMonitor.java:97)

 

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

 

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

 

2017-04-03 09:40:51,200 INFO  [wt.jmx.core.SharedScheduledExecutor.worker] wt.summary.general - JVMName=7148@AME-CRE-PRD01, HeapMemoryUsage=396462624, NonHeapMemoryUsage=26971560, Uptime=5380, ProcessCpuTime=4258827300, JITCTime=1428, GarbageCollectors=[PS MarkSweep,PS Scavenge], GCTime=[0,0], GCCount=[0,0], Classes=3901, Threads=31, TotalStartedThreadCount=33, PermGenPercentCollUsage=0.0, PermGenPercentUsage=29.844153799661775, CodeCachePercentUsage=2.6195526123046875, SystemLoadAverage=-1.0

 

2017-04-03 09:40:52,930 ERROR [RMI Unreferenced-1] wt.cache.server.com.ptc.core.lwc.server.cache.ConstraintRuleCache - caught cache server call exception

java.rmi.RemoteException: Unable to register slave cache; nested exception is:

 

java.lang.SecurityException: Access denied

 

at wt.cache.RemoteCacheServer.registerSlaveInternal(RemoteCacheServer.java:251)

 

at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:183)

 

at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:178)

 

at wt.cache.RemoteCacheServer.callTimeAndLogRemoteCallableLow(RemoteCacheServer.java:714)

 

at wt.cache.RemoteCacheServer.callTimeAndLogRemoteCallable(RemoteCacheServer.java:687)

 

at wt.cache.RemoteCacheServer.registerSlave(RemoteCacheServer.java:176)

 

at wt.cache.CacheManager.reset(CacheManager.java:864)

 

at wt.cache.CacheManager.ok(CacheManager.java:482)

 

at wt.cache.CacheManager.unreferenced(CacheManager.java:1402)

 

at sun.rmi.transport.Target$1.run(Target.java:329)

 

at java.lang.Thread.run(Thread.java:745)

 

Caused by: java.lang.SecurityException: Access denied

 

at wt.cache.CacheManager.checkAccess(CacheManager.java:1335)

 

at wt.cache.CacheManager.registerSlave(CacheManager.java:1147)

 

at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)

 

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

 

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

 

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

 

at sun.rmi.transport.Transport$1.run(Transport.java:177)

 

at sun.rmi.transport.Transport$1.run(Transport.java:174)

 

at java.security.AccessController.doPrivileged(Native Method)

 

at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

 

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)

 

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)

 

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)

 

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

 

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

 

at java.lang.Thread.run(Thread.java:745)

 

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)

 

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)

 

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)

 

at wt.cache.CacheManager_Stub.registerSlave(Unknown Source)

 

at wt.cache.RemoteCacheServer.registerSlaveInternal(RemoteCacheServer.java:205)

 

... 10 more

 

 

Thanks in advance,

ACCEPTED SOLUTION

Accepted Solutions

Yes, 

 

We found the below error in the ServerManager logs:

 

java.rmi.RemoteException: Unable to register slave cache; nested exception is:

     java.rmi.RemoteException: Unable to locate cache server; nested exception is:

     java.rmi.RemoteException: Unable to register slave cache; nested exception is:

     java.lang.SecurityException: Access denied

     at wt.cache.RemoteCacheServer.registerSlaveInternal(RemoteCacheServer.java:251)

     at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:183)

     at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:178)

     at wt.cache.RemoteCacheServer.callTimeAndLogRemoteCallableLow(RemoteCacheServer.java:714)

 

This issue occurs when there is a remaining entry in RMISTUBS with the host name from the original system. Take back of RMISTUBS table and delete the entries from the table. For more details refer to article CS150162.

Stop Windchill clear Tomcat and Infoengine cache and restart the Windchill.

View solution in original post

4 REPLIES 4

@Robert-Altman, did you ever get a resolution for this?

It looks like an issue with registration of slave cache, typically when the hostname which the JVM identifies is not the one trusted by Server manager. If its a cluster, slaveHosts property is where I will start. If it is monolithic, rmi.hostname properties

I'll look at that.  My case comes in when I am trying to upgrade to 11.0 from 10.2 and I am switching servers.  Windchill starts fine after install, but when I use the Upgrade procedure guide this happens after importing the database and importing the source LDAP.  I am connected to our corporate LDAP and must be missing a step.

Yes, 

 

We found the below error in the ServerManager logs:

 

java.rmi.RemoteException: Unable to register slave cache; nested exception is:

     java.rmi.RemoteException: Unable to locate cache server; nested exception is:

     java.rmi.RemoteException: Unable to register slave cache; nested exception is:

     java.lang.SecurityException: Access denied

     at wt.cache.RemoteCacheServer.registerSlaveInternal(RemoteCacheServer.java:251)

     at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:183)

     at wt.cache.RemoteCacheServer$1.call(RemoteCacheServer.java:178)

     at wt.cache.RemoteCacheServer.callTimeAndLogRemoteCallableLow(RemoteCacheServer.java:714)

 

This issue occurs when there is a remaining entry in RMISTUBS with the host name from the original system. Take back of RMISTUBS table and delete the entries from the table. For more details refer to article CS150162.

Stop Windchill clear Tomcat and Infoengine cache and restart the Windchill.

Announcements


Top Tags