Command Pattern (Behavioral Pattern) doesn't work in RMI.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, June 30, 2003 08:50 AM

I implemented a chat with the "Command Pattern". ------------------------------------ You can download here the source: www.siteandgraphics.it/mud.zip ------------------------------------ The chat starts and work well but when i digit any command it launch this exception: java.lang.ClassNotFoundException: help at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader   More>>

I implemented a chat with the "Command Pattern".

------------------------------------
You can download here the source: www.siteandgraphics.it/mud.zip
------------------------------------

The chat starts and work well but when i digit any command it launch this exception:

java.lang.ClassNotFoundException: help
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at server.User.command(User.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)


Thankyou very much

   <<Less

Re: Command Pattern (Behavioral Pattern) doesn't work in RMI.

Posted By:   Anonymous  
Posted On:   Monday, June 30, 2003 09:41 AM

OK, I did it.
It was a symple package's problem in the call at Class.forName method....

Re: Command Pattern (Behavioral Pattern) doesn't work in RMI.

Posted By:   Anonymous  
Posted On:   Monday, June 30, 2003 09:41 AM

OK, I did it.
It was a symple package's problem in the call at Class.forName method....
About | Sitemap | Contact