Stefan Guilhen wrote:
Yeah, I've enable a logger for the Stub class and it shows your description when TCCL is used. However, I've changed the code locally to ClassLoader loader = Stub.class.getClassLoader(); and the logs always show
ModuleClassLoader for Module "javax.rmi.api:main"
but the random error still persists.
Did you try providing an impl of com.sun.corba.se.impl.javax.rmi.CORBA.StubDelegateImpl, and removing all dynamic loading altogether, it shouldnt be needed?
That code in Stub falls back to RMIClassLoader, which also uses TCCL internally.