您好我试图运行一个Java应用程序绑定到命名服务器的类,但我不断得到一个ClassNotFoundException 首先我开始registry: rmiregistry的 然后从日食我尝试执行服务器,但得到这个错误 java.rmi.ServerException:在服务器线程中发生RemoteException; 嵌套exception是:java.rmi.UnmarshalException:错误解组参数; 嵌套的exception是:在sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)在sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)处的java.lang.ClassNotFoundException:progInternet2008.commons.NominabileFactory sun.rmi.transport.Transport $ 1.run(Transport.java:159)at sun.rmi.transport.Transport.serviceCall(Transport.java:155)at sun.rmi java.security.AccessController.doPrivileged(Native Method) .transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run0(TCPTransport.java:790)at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run (TCPTransport.java:649)at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)at java.lang。在sun.rmi.transport.StreamR上的sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)上的Thread.run(Thread.java:619) emoteCall.executeCall(StreamRemoteCall.java:233)at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)at progInternet2008.Pozzobon.tesi.Slave。 main(Slave.java:54)引发:java.rmi.UnmarshalException:错误解组参数; 嵌套的exception是:sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)sun.rmi上的sun.rmi.registry.RegistryImpl_Skel.dispatch(未知源):java.lang.ClassNotFoundException:progInternet2008.commons.NominabileFactory 。sun.rmi.transport.server上的.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)在sun.rmi.transport处的java.security.AccessController.doPrivileged(Native Method)处运行$ 1.run(Transport.java:159)。 Transport.serviceCall(Transport.java:155)at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)at sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run0(TCPTransport.java:790)在sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run(TCPTransport.java:649)在java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)在java.util.concurrent.ThreadPoolExecutor $工作.run(ThreadPoolExecutor.java:908)at java.lang.Thread.run(Thread.java:619)引起:java.lang.ClassNotFoundException:progInternet2 java.net.URLClassLoader上的008.commons.NominabileFactory在java.net.URLClassLoader.findClass上的java.security.AccessController.doPrivileged(Native方法)上的$ 1.run(URLClassLoader.java:200)(java中的URLClassLoader.java:188) .lang.ClassLoader.loadClass(ClassLoader.java:307)at java.lang.ClassLoader.loadClass(ClassLoader.java:252)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)at […]