- root exception is java.rmi.MarshalException:error marshalling arguments:nested exception
今天写一个RMI的应用,气死人了,弄半天,跑到sun官网去一看,告诉我是一个BUG,我流出了鼻血。
- Exception in thread "main" java.lang.ClassNotFoundException: [Ljava.lang.String;
- at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
- at test.main(test.java:7)
ToWork:
-Dsun.lang.ClassLoader.allowArraySyntax=true
点击打开链接