JBOSS MalformedURLException:未知协议:使用RMI的vfs

时间:2016-11-15 14:49:50

标签: java jboss rmi malformedurlexception

我最近一直在尝试将我的应用程序部署为在JBOSS EAP 6.4环境中将其部署为在Tomcat上完全运行后的战争,但是在JBOSS上,每当我的应用程序尝试从中发送文件时,都会出现畸形错误。在进行RMI调用时(特别是rmiio),客户端到服务器。

我的错误日志包含在

下面
    16:38:31,793 INFO  [stdout] (Thread-89) java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
16:38:31,794 INFO  [stdout] (Thread-89)     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
16:38:31,794 INFO  [stdout] (Thread-89)     java.net.MalformedURLException: unknown protocol: vfs
16:38:31,795 INFO  [stdout] (Thread-89)     at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) ~[?:?]
16:38:31,795 INFO  [stdout] (Thread-89)     at sun.rmi.transport.Transport$1.run(Unknown Source) ~[?:?]
16:38:31,795 INFO  [stdout] (Thread-89)     at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_92]
16:38:31,795 INFO  [stdout] (Thread-89)     at sun.rmi.transport.Transport.serviceCall(Unknown Source) ~[?:?]
16:38:31,796 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) ~[?:?]
16:38:31,796 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) ~[?:?]
16:38:31,796 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) ~[?:?]
16:38:31,796 INFO  [stdout] (Thread-89)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) ~[?:1.8.0_92]
16:38:31,796 INFO  [stdout] (Thread-89)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:1.8.0_92]
16:38:31,797 INFO  [stdout] (Thread-89)     at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_92]
16:38:31,797 INFO  [stdout] (Thread-89)     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276) ~[?:?]
16:38:31,797 INFO  [stdout] (Thread-89)     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253) ~[?:?]
16:38:31,797 INFO  [stdout] (Thread-89)     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) ~[?:?]
16:38:31,798 INFO  [stdout] (Thread-89)     at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227) ~[?:1.8.0_92]
16:38:31,798 INFO  [stdout] (Thread-89)     at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179) ~[?:1.8.0_92]
16:38:31,798 INFO  [stdout] (Thread-89)     at com.sun.proxy.$Proxy107.sendFile(Unknown Source) ~[?:?]
16:38:31,798 INFO  [stdout] (Thread-89)     at rmiclient.RmiTaskStarter.sendFile(RmiTaskStarter.java:98) ~[rmiclient-1.0.0.jar:1.0.0]
16:38:31,798 INFO  [stdout] (Thread-89)     at rmiclient.RmiTaskStarter.compute(RmiTaskStarter.java:56) ~[rmiclient-1.0.0.jar:1.0.0]
16:38:31,799 INFO  [stdout] (Thread-89)     at webapp.FrontEnd.Worker.runTask(Worker.java:68) [classes:?]
16:38:31,799 INFO  [stdout] (Thread-89)     at webapp.FrontEnd.Worker.run(Worker.java:52) [classes:?]
16:38:31,799 INFO  [stdout] (Thread-89)     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
16:38:31,799 INFO  [stdout] (Thread-89) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
16:38:31,799 INFO  [stdout] (Thread-89)     java.net.MalformedURLException: unknown protocol: vfs
16:38:31,800 INFO  [stdout] (Thread-89)     at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) ~[?:?]
16:38:31,800 INFO  [stdout] (Thread-89)     at sun.rmi.transport.Transport$1.run(Unknown Source) ~[?:?]
16:38:31,800 INFO  [stdout] (Thread-89)     at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_92]
16:38:31,800 INFO  [stdout] (Thread-89)     at sun.rmi.transport.Transport.serviceCall(Unknown Source) ~[?:?]
16:38:31,801 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) ~[?:?]
16:38:31,801 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) ~[?:?]
16:38:31,802 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) ~[?:?]
16:38:31,802 INFO  [stdout] (Thread-89)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) ~[?:1.8.0_92]
16:38:31,802 INFO  [stdout] (Thread-89)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:1.8.0_92]
16:38:31,802 INFO  [stdout] (Thread-89)     at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_92]
16:38:31,802 INFO  [stdout] (Thread-89) Caused by: java.net.MalformedURLException: unknown protocol: vfs
16:38:31,803 INFO  [stdout] (Thread-89)     at java.net.URL.<init>(Unknown Source) ~[?:1.8.0_92]
16:38:31,803 INFO  [stdout] (Thread-89)     at java.net.URL.<init>(Unknown Source) ~[?:1.8.0_92]
16:38:31,803 INFO  [stdout] (Thread-89)     at java.net.URL.<init>(Unknown Source) ~[?:1.8.0_92]
16:38:31,803 INFO  [stdout] (Thread-89)     at sun.rmi.server.LoaderHandler.pathToURLs(Unknown Source) ~[?:?]
16:38:31,804 INFO  [stdout] (Thread-89)     at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source) ~[?:?]
16:38:31,804 INFO  [stdout] (Thread-89)     at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source) ~[?:1.8.0_92]
16:38:31,804 INFO  [stdout] (Thread-89)     at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source) ~[?:1.8.0_92]
16:38:31,805 INFO  [stdout] (Thread-89)     at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source) ~[?:?]
16:38:31,805 INFO  [stdout] (Thread-89)     at java.io.ObjectInputStream.readProxyDesc(Unknown Source) ~[?:1.8.0_92]
16:38:31,805 INFO  [stdout] (Thread-89)     at java.io.ObjectInputStream.readClassDesc(Unknown Source) ~[?:1.8.0_92]
16:38:31,805 INFO  [stdout] (Thread-89)     at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) ~[?:1.8.0_92]
16:38:31,805 INFO  [stdout] (Thread-89)     at java.io.ObjectInputStream.readObject0(Unknown Source) ~[?:1.8.0_92]
16:38:31,806 INFO  [stdout] (Thread-89)     at java.io.ObjectInputStream.readObject(Unknown Source) ~[?:1.8.0_92]
16:38:31,806 INFO  [stdout] (Thread-89)     at sun.rmi.server.UnicastRef.unmarshalValue(Unknown Source) ~[?:?]
16:38:31,806 INFO  [stdout] (Thread-89)     at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) ~[?:?]
16:38:31,806 INFO  [stdout] (Thread-89)     at sun.rmi.transport.Transport$1.run(Unknown Source) ~[?:?]
16:38:31,806 INFO  [stdout] (Thread-89)     at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_92]
16:38:31,807 INFO  [stdout] (Thread-89)     at sun.rmi.transport.Transport.serviceCall(Unknown Source) ~[?:?]
16:38:31,807 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) ~[?:?]
16:38:31,807 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) ~[?:?]
16:38:31,807 INFO  [stdout] (Thread-89)     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) ~[?:?]
16:38:31,808 INFO  [stdout] (Thread-89)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) ~[?:1.8.0_92]
16:38:31,808 INFO  [stdout] (Thread-89)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:1.8.0_92]
16:38:31,808 INFO  [stdout] (Thread-89)     at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_92]

通过查看其他示例,我注意到其他的畸形错误要么由no protocolunknown exception c组成,但其中大多数似乎都来自代码库设置问题,我不会这样做。相信我有。此外,我似乎无法找到任何提及甚至与RMI一起使用的vfs。任何建议将不胜感激,谢谢!

1 个答案:

答案 0 :(得分:0)

您在vfs:设置中的某处使用了java.rmi.server.codebase。您只能使用Java识别的协议。代码库URL几乎总是HTTP。