MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar
------------------------------------------------------------------------ Key: OFBIZ-4704 URL: https://issues.apache.org/jira/browse/OFBIZ-4704 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Release 10.04, SVN trunk Environment: WXP sp3 JDK 1.6;0_26 Reporter: Francis ANDRE Hi On WXP, The full path of the tools.jar added to the rmi classpath is not protected from containing space. Thus the URL computed by the Start.readConfig is wrong, leading to this MalformedURLException. no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar should be file:/C:/Progra~1/Java/jdk1.6.0_26/lib/tools.jar instead of file:/C:/Program Files/Java/jdk1.6.0_26/lib/tools.jar Alternative solution is to put the full path between double quotes for Window based system. Rgds [java] 22700 (main) [ ContainerLoader.java:83 :INFO ] [Startup] Starting containers... [java] 22731 (main) [ ServiceDispatcher.java:170:INFO ] Registered dispatcher: RMIDispatcher [java] 22731 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher [java] org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to b ind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar)) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) [java] at org.ofbiz.base.start.Start.start(Start.java:327) [java] at org.ofbiz.base.start.Start.main(Start.java:413) [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i n server thread; nested exception is: [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) [java] at org.ofbiz.base.start.Start.start(Start.java:327) [java] at org.ofbiz.base.start.Start.main(Start.java:413) [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) [java] at java.rmi.Naming.rebind(Naming.java:160) [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) [java] at org.ofbiz.base.start.Start.start(Start.java:327) [java] at org.ofbiz.base.start.Start.main(Start.java:413) [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at java.net.URL.<init>(URL.java:567) [java] at java.net.URL.<init>(URL.java:464) [java] at java.net.URL.<init>(URL.java:413) [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [java] ... 12 more [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i n server thread; nested exception is: [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) [java] at org.ofbiz.base.start.Start.start(Start.java:327) [java] at org.ofbiz.base.start.Start.main(Start.java:413) [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) [java] at java.rmi.Naming.rebind(Naming.java:160) [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) [java] at org.ofbiz.base.start.Start.start(Start.java:327) [java] at org.ofbiz.base.start.Start.main(Start.java:413) [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at java.net.URL.<init>(URL.java:567) [java] at java.net.URL.<init>(URL.java:464) [java] at java.net.URL.<init>(URL.java:413) [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [java] ... 12 more [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) [java] at java.rmi.Naming.rebind(Naming.java:160) [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) [java] at org.ofbiz.base.start.Start.start(Start.java:327) [java] at org.ofbiz.base.start.Start.main(Start.java:413) [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] at java.lang.Thread.run(Thread.java:662) [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar [java] at java.net.URL.<init>(URL.java:567) [java] at java.net.URL.<init>(URL.java:464) [java] at java.net.URL.<init>(URL.java:413) [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [java] 23013 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] Shutting down containers [java] ... 12 more [java] 23028 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Exception: org.apache.catalina.LifecycleException [java] Message: Embedded service has not yet been started [java] ---- stack trace --------------------------------------------------------------- [java] LifecycleException: Embedded service has not yet been started [java] org.apache.catalina.startup.Embedded.stop(Embedded.java:849) [java] org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) [java] org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) [java] org.ofbiz.base.start.Start.shutdownServer(Start.java:309) [java] org.ofbiz.base.start.Start.access$000(Start.java:52) [java] org.ofbiz.base.start.Start$1.run(Start.java:286) [java] -------------------------------------------------------------------------------- [java] 23028 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] De-Registering dispatcher: RMIDispatcher [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] Shutting down the service engine... [java] 23028 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] Destroying thread pool... [java] 23028 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] JobManager: Stopped Scheduler Thread. [java] Java Result: 99 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211064#comment-13211064 ] Jacques Le Roux commented on OFBIZ-4704: ---------------------------------------- Hi Francis, Why and where did you add tools.jar to rmi classpath? If you resolved the issue, could you provide a patch? > MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > ------------------------------------------------------------------------ > > Key: OFBIZ-4704 > URL: https://issues.apache.org/jira/browse/OFBIZ-4704 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release 10.04, SVN trunk > Environment: WXP sp3 JDK 1.6;0_26 > Reporter: Francis ANDRE > > Hi > On WXP, The full path of the tools.jar added to the rmi classpath is not protected from containing space. Thus the URL computed by the Start.readConfig is wrong, leading to this MalformedURLException. > no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar should be > file:/C:/Progra~1/Java/jdk1.6.0_26/lib/tools.jar instead of file:/C:/Program Files/Java/jdk1.6.0_26/lib/tools.jar > Alternative solution is to put the full path between double quotes for Window based system. > Rgds > [java] 22700 (main) [ ContainerLoader.java:83 :INFO ] [Startup] Starting containers... > [java] 22731 (main) [ ServiceDispatcher.java:170:INFO ] Registered dispatcher: RMIDispatcher > [java] 22731 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher > [java] org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to b > ind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar)) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] 23013 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] Shutting down containers > [java] ... 12 more > [java] 23028 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Exception: org.apache.catalina.LifecycleException > [java] Message: Embedded service has not yet been started > [java] ---- stack trace --------------------------------------------------------------- > [java] LifecycleException: Embedded service has not yet been started > [java] org.apache.catalina.startup.Embedded.stop(Embedded.java:849) > [java] org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) > [java] org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) > [java] org.ofbiz.base.start.Start.shutdownServer(Start.java:309) > [java] org.ofbiz.base.start.Start.access$000(Start.java:52) > [java] org.ofbiz.base.start.Start$1.run(Start.java:286) > [java] -------------------------------------------------------------------------------- > [java] 23028 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] De-Registering dispatcher: RMIDispatcher > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] Shutting down the service engine... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] Destroying thread pool... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] JobManager: Stopped Scheduler Thread. > [java] Java Result: 99 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211289#comment-13211289 ] Francis ANDRE commented on OFBIZ-4704: -------------------------------------- Hi Jacques I did not add anything. Just have a look at the following lines extracted from org.ofbiz.base.start.Start.java. // tools jar String reqTJ = System.getProperty("java.tools.jar.required"); if (reqTJ == null) { reqTJ = props.getProperty("java.tools.jar.required", "false"); } requireToolsJar = "true".equalsIgnoreCase(reqTJ); toolsJar = this.findSystemJar(props, javaVendor, javaVersion, "tools.jar", requireToolsJar); It seems tha toolsJar is computed even if not required A quick incomplete fix is to add the following lines: if (toolsJar != null && toolsJar.length() > 0) { toolsJar = "\"" + toolsJar + '"'; } but it should be protected when running on windows only and I do not know enough ofbiz to get the proper code. Anyway, the final generic fix should use a native call to the W32 API GetShortPathName using this extra library, see http://johannburkard.de/software/nativecall/ . but this implies to use/distribute/install a win32 dll. Is this acceptable for ofbiz?? > MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > ------------------------------------------------------------------------ > > Key: OFBIZ-4704 > URL: https://issues.apache.org/jira/browse/OFBIZ-4704 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release 10.04, SVN trunk > Environment: WXP sp3 JDK 1.6;0_26 > Reporter: Francis ANDRE > > Hi > On WXP, The full path of the tools.jar added to the rmi classpath is not protected from containing space. Thus the URL computed by the Start.readConfig is wrong, leading to this MalformedURLException. > no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar should be > file:/C:/Progra~1/Java/jdk1.6.0_26/lib/tools.jar instead of file:/C:/Program Files/Java/jdk1.6.0_26/lib/tools.jar > Alternative solution is to put the full path between double quotes for Window based system. > Rgds > [java] 22700 (main) [ ContainerLoader.java:83 :INFO ] [Startup] Starting containers... > [java] 22731 (main) [ ServiceDispatcher.java:170:INFO ] Registered dispatcher: RMIDispatcher > [java] 22731 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher > [java] org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to b > ind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar)) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] 23013 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] Shutting down containers > [java] ... 12 more > [java] 23028 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Exception: org.apache.catalina.LifecycleException > [java] Message: Embedded service has not yet been started > [java] ---- stack trace --------------------------------------------------------------- > [java] LifecycleException: Embedded service has not yet been started > [java] org.apache.catalina.startup.Embedded.stop(Embedded.java:849) > [java] org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) > [java] org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) > [java] org.ofbiz.base.start.Start.shutdownServer(Start.java:309) > [java] org.ofbiz.base.start.Start.access$000(Start.java:52) > [java] org.ofbiz.base.start.Start$1.run(Start.java:286) > [java] -------------------------------------------------------------------------------- > [java] 23028 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] De-Registering dispatcher: RMIDispatcher > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] Shutting down the service engine... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] Destroying thread pool... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] JobManager: Stopped Scheduler Thread. > [java] Java Result: 99 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211465#comment-13211465 ] Jacques Le Roux commented on OFBIZ-4704: ---------------------------------------- Hi Francis, Before I digg into code, I also use XP and never got this error, did you do something special? > MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > ------------------------------------------------------------------------ > > Key: OFBIZ-4704 > URL: https://issues.apache.org/jira/browse/OFBIZ-4704 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release 10.04, SVN trunk > Environment: WXP sp3 JDK 1.6;0_26 > Reporter: Francis ANDRE > > Hi > On WXP, The full path of the tools.jar added to the rmi classpath is not protected from containing space. Thus the URL computed by the Start.readConfig is wrong, leading to this MalformedURLException. > no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar should be > file:/C:/Progra~1/Java/jdk1.6.0_26/lib/tools.jar instead of file:/C:/Program Files/Java/jdk1.6.0_26/lib/tools.jar > Alternative solution is to put the full path between double quotes for Window based system. > Rgds > [java] 22700 (main) [ ContainerLoader.java:83 :INFO ] [Startup] Starting containers... > [java] 22731 (main) [ ServiceDispatcher.java:170:INFO ] Registered dispatcher: RMIDispatcher > [java] 22731 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher > [java] org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to b > ind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar)) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] 23013 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] Shutting down containers > [java] ... 12 more > [java] 23028 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Exception: org.apache.catalina.LifecycleException > [java] Message: Embedded service has not yet been started > [java] ---- stack trace --------------------------------------------------------------- > [java] LifecycleException: Embedded service has not yet been started > [java] org.apache.catalina.startup.Embedded.stop(Embedded.java:849) > [java] org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) > [java] org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) > [java] org.ofbiz.base.start.Start.shutdownServer(Start.java:309) > [java] org.ofbiz.base.start.Start.access$000(Start.java:52) > [java] org.ofbiz.base.start.Start$1.run(Start.java:286) > [java] -------------------------------------------------------------------------------- > [java] 23028 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] De-Registering dispatcher: RMIDispatcher > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] Shutting down the service engine... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] Destroying thread pool... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] JobManager: Stopped Scheduler Thread. > [java] Java Result: 99 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211473#comment-13211473 ] Francis ANDRE commented on OFBIZ-4704: -------------------------------------- For another project, I had to add the tools.jar to the installed JRE under Eclipse ... that all I can think as special... but why it would be linked to ofbiz.Start... no idea > MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > ------------------------------------------------------------------------ > > Key: OFBIZ-4704 > URL: https://issues.apache.org/jira/browse/OFBIZ-4704 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Release 10.04, SVN trunk > Environment: WXP sp3 JDK 1.6;0_26 > Reporter: Francis ANDRE > > Hi > On WXP, The full path of the tools.jar added to the rmi classpath is not protected from containing space. Thus the URL computed by the Start.readConfig is wrong, leading to this MalformedURLException. > no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar should be > file:/C:/Progra~1/Java/jdk1.6.0_26/lib/tools.jar instead of file:/C:/Program Files/Java/jdk1.6.0_26/lib/tools.jar > Alternative solution is to put the full path between double quotes for Window based system. > Rgds > [java] 22700 (main) [ ContainerLoader.java:83 :INFO ] [Startup] Starting containers... > [java] 22731 (main) [ ServiceDispatcher.java:170:INFO ] Registered dispatcher: RMIDispatcher > [java] 22731 (main) [ GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher > [java] org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to b > ind RMIDispatcher to RMI (RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar)) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:91) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI (RemoteException occurred i > n server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:142) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] ... 12 more > [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: > [java] java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) > [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) > [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:323) > [java] at org.ofbiz.base.start.Start.start(Start.java:327) > [java] at org.ofbiz.base.start.Start.main(Start.java:413) > [java] Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: > [java] java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) > [java] at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386) > [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250) > [java] at sun.rmi.transport.Transport$1.run(Transport.java:159) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > [java] at java.lang.Thread.run(Thread.java:662) > [java] Caused by: java.net.MalformedURLException: no protocol: Files/Java/jdk1.6.0_26/lib/tools.jar > [java] at java.net.URL.<init>(URL.java:567) > [java] at java.net.URL.<init>(URL.java:464) > [java] at java.net.URL.<init>(URL.java:413) > [java] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751) > [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147) > [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) > [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) > [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > [java] 23013 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:102:INFO ] Shutting down containers > [java] ... 12 more > [java] 23028 (OFBiz_Shutdown_Hook) [ CatalinaContainer.java:601:ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Exception: org.apache.catalina.LifecycleException > [java] Message: Embedded service has not yet been started > [java] ---- stack trace --------------------------------------------------------------- > [java] LifecycleException: Embedded service has not yet been started > [java] org.apache.catalina.startup.Embedded.stop(Embedded.java:849) > [java] org.ofbiz.catalina.container.CatalinaContainer.stop(CatalinaContainer.java:598) > [java] org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:108) > [java] org.ofbiz.base.start.Start.shutdownServer(Start.java:309) > [java] org.ofbiz.base.start.Start.access$000(Start.java:52) > [java] org.ofbiz.base.start.Start$1.run(Start.java:286) > [java] -------------------------------------------------------------------------------- > [java] 23028 (OFBiz_Shutdown_Hook) [ JavaMailContainer.java:153:INFO ] stop JavaMail poller > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:179:INFO ] De-Registering dispatcher: RMIDispatcher > [java] 23028 (OFBiz_Shutdown_Hook) [ ServiceDispatcher.java:693:INFO ] Shutting down the service engine... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobPoller.java:149:INFO ] Destroying thread pool... > [java] 23028 (OFBiz_Shutdown_Hook) [ JobManager.java:453:INFO ] JobManager: Stopped Scheduler Thread. > [java] Java Result: 99 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |