Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8173324

java/rmi/registry/readTest/CodebaseTest.java failed "java.lang.ClassNotFoundException: testPkg.Hello"

    Details

      Description

      java/rmi/registry/readTest/CodebaseTest.java

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.lang.ClassNotFoundException: testPkg.Hello
      at java.rmi/sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:455)
      at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:800)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:682)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:844)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
      at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
      at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379)
      at java.rmi/sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
      at RegistryLookup.main(RegistryLookup.java:43)
      Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.lang.ClassNotFoundException: testPkg.Hello
      at java.rmi/sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
      at java.rmi/sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:445)
      at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
      at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:800)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:682)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.ClassNotFoundException: testPkg.Hello
      at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:464)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:540)
      at java.rmi/sun.rmi.server.LoaderHandler$Loader.loadClass(LoaderHandler.java:1207)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:473)
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:375)
      at java.rmi/sun.rmi.server.LoaderHandler.loadClassForName(LoaderHandler.java:1221)
      at java.rmi/sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:731)
      at java.rmi/sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:674)
      at java.rmi/sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:611)
      at java.rmi/java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:646)
      at java.rmi/java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:311)
      at java.rmi/sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:266)
      at java.base/java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1780)
      at java.base/java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1732)
      at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2008)
      at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1557)
      at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
      ... 15 more
      received call to exit
      java.lang.RuntimeException: Test Fails
      at CodebaseTest.main(CodebaseTest.java:79)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:543)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mli Hamlin Li
                Reporter:
                mli Hamlin Li
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: