-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 9-repo-jigsaw
-
Component/s: core-libs
javax.naming.ConfigurationException [Root exception is java.rmi.StubNotFoundException: Stub class constructor not public: com.sun.jndi.rmi.registry.ReferenceWrapper_Stub; nested exception is:
java.lang.IllegalAccessException: Class sun.rmi.server.Util (module java.rmi) can not access a member of class com.sun.jndi.rmi.registry.ReferenceWrapper_Stub (module jdk.naming.rmi) with modifiers "public", module jdk.naming.rmi does not export com.sun.jndi.rmi.registry to module java.rmi]
at com.sun.jndi.rmi.registry.RegistryContext.rebind(jdk.naming.rmi@9.0/RegistryContext.java:163)
at com.sun.jndi.toolkit.url.GenericURLContext.rebind(java.naming@9.0/GenericURLContext.java:253)
at javax.naming.InitialContext.rebind(java.naming@9.0/InitialContext.java:425)
at RebindReferenceableObject.run(RebindReferenceableObject.java:56)
at TestUtils.runTest(TestUtils.java:61)
at TestUtils.runTest(TestUtils.java:46)
at RebindReferenceableObject.main(RebindReferenceableObject.java:30)
Caused by: java.rmi.StubNotFoundException: Stub class constructor not public: com.sun.jndi.rmi.registry.ReferenceWrapper_Stub; nested exception is:
java.lang.IllegalAccessException: Class sun.rmi.server.Util (module java.rmi) can not access a member of class com.sun.jndi.rmi.registry.ReferenceWrapper_Stub (module jdk.naming.rmi) with modifiers "public", module jdk.naming.rmi does not export com.sun.jndi.rmi.registry to module java.rmi
at sun.rmi.server.Util.createStub(java.rmi@9.0/Util.java:309)
at sun.rmi.server.Util.createProxy(java.rmi@9.0/Util.java:140)
at sun.rmi.server.UnicastServerRef.exportObject(java.rmi@9.0/UnicastServerRef.java:195)
at java.rmi.server.UnicastRemoteObject.exportObject(java.rmi@9.0/UnicastRemoteObject.java:383)
at java.rmi.server.UnicastRemoteObject.exportObject(java.rmi@9.0/UnicastRemoteObject.java:320)
at java.rmi.server.UnicastRemoteObject.<init>(java.rmi@9.0/UnicastRemoteObject.java:198)
at java.rmi.server.UnicastRemoteObject.<init>(java.rmi@9.0/UnicastRemoteObject.java:180)
at com.sun.jndi.rmi.registry.ReferenceWrapper.<init>(jdk.naming.rmi@9.0/ReferenceWrapper.java:52)
at com.sun.jndi.rmi.registry.RegistryContext.encodeObject(jdk.naming.rmi@9.0/RegistryContext.java:444)
at com.sun.jndi.rmi.registry.RegistryContext.rebind(jdk.naming.rmi@9.0/RegistryContext.java:161)
... 6 more
Caused by: java.lang.IllegalAccessException: Class sun.rmi.server.Util (module java.rmi) can not access a member of class com.sun.jndi.rmi.registry.ReferenceWrapper_Stub (module jdk.naming.rmi) with modifiers "public", module jdk.naming.rmi does not export com.sun.jndi.rmi.registry to module java.rmi
at sun.reflect.Reflection.throwIllegalAccessException(java.base@9.0/Reflection.java:453)
at sun.reflect.Reflection.ensureMemberAccess(java.base@9.0/Reflection.java:128)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(java.base@9.0/AccessibleObject.java:370)
at java.lang.reflect.AccessibleObject.checkAccess(java.base@9.0/AccessibleObject.java:362)
at java.lang.reflect.Constructor.newInstance(java.base@9.0/Constructor.java:434)
at sun.rmi.server.Util.createStub(java.rmi@9.0/Util.java:298)
... 15 more
java.lang.IllegalAccessException: Class sun.rmi.server.Util (module java.rmi) can not access a member of class com.sun.jndi.rmi.registry.ReferenceWrapper_Stub (module jdk.naming.rmi) with modifiers "public", module jdk.naming.rmi does not export com.sun.jndi.rmi.registry to module java.rmi]
at com.sun.jndi.rmi.registry.RegistryContext.rebind(jdk.naming.rmi@9.0/RegistryContext.java:163)
at com.sun.jndi.toolkit.url.GenericURLContext.rebind(java.naming@9.0/GenericURLContext.java:253)
at javax.naming.InitialContext.rebind(java.naming@9.0/InitialContext.java:425)
at RebindReferenceableObject.run(RebindReferenceableObject.java:56)
at TestUtils.runTest(TestUtils.java:61)
at TestUtils.runTest(TestUtils.java:46)
at RebindReferenceableObject.main(RebindReferenceableObject.java:30)
Caused by: java.rmi.StubNotFoundException: Stub class constructor not public: com.sun.jndi.rmi.registry.ReferenceWrapper_Stub; nested exception is:
java.lang.IllegalAccessException: Class sun.rmi.server.Util (module java.rmi) can not access a member of class com.sun.jndi.rmi.registry.ReferenceWrapper_Stub (module jdk.naming.rmi) with modifiers "public", module jdk.naming.rmi does not export com.sun.jndi.rmi.registry to module java.rmi
at sun.rmi.server.Util.createStub(java.rmi@9.0/Util.java:309)
at sun.rmi.server.Util.createProxy(java.rmi@9.0/Util.java:140)
at sun.rmi.server.UnicastServerRef.exportObject(java.rmi@9.0/UnicastServerRef.java:195)
at java.rmi.server.UnicastRemoteObject.exportObject(java.rmi@9.0/UnicastRemoteObject.java:383)
at java.rmi.server.UnicastRemoteObject.exportObject(java.rmi@9.0/UnicastRemoteObject.java:320)
at java.rmi.server.UnicastRemoteObject.<init>(java.rmi@9.0/UnicastRemoteObject.java:198)
at java.rmi.server.UnicastRemoteObject.<init>(java.rmi@9.0/UnicastRemoteObject.java:180)
at com.sun.jndi.rmi.registry.ReferenceWrapper.<init>(jdk.naming.rmi@9.0/ReferenceWrapper.java:52)
at com.sun.jndi.rmi.registry.RegistryContext.encodeObject(jdk.naming.rmi@9.0/RegistryContext.java:444)
at com.sun.jndi.rmi.registry.RegistryContext.rebind(jdk.naming.rmi@9.0/RegistryContext.java:161)
... 6 more
Caused by: java.lang.IllegalAccessException: Class sun.rmi.server.Util (module java.rmi) can not access a member of class com.sun.jndi.rmi.registry.ReferenceWrapper_Stub (module jdk.naming.rmi) with modifiers "public", module jdk.naming.rmi does not export com.sun.jndi.rmi.registry to module java.rmi
at sun.reflect.Reflection.throwIllegalAccessException(java.base@9.0/Reflection.java:453)
at sun.reflect.Reflection.ensureMemberAccess(java.base@9.0/Reflection.java:128)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(java.base@9.0/AccessibleObject.java:370)
at java.lang.reflect.AccessibleObject.checkAccess(java.base@9.0/AccessibleObject.java:362)
at java.lang.reflect.Constructor.newInstance(java.base@9.0/Constructor.java:434)
at sun.rmi.server.Util.createStub(java.rmi@9.0/Util.java:298)
... 15 more