java.rmi.ConnectException: Connection refused to host: 127.0.0.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

java.rmi.ConnectException: Connection refused to host: 127.0.0.1

nikunjsurati
I am getting an error while starting ofbiz.

java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:322)
        at org.ofbiz.base.start.Start.start(Start.java:326)
        at org.ofbiz.base.start.Start.main(Start.java:412)
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 11 more
org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI on //host[127.0.0.1]:port[2099]/name[RMIDispatcher] - with remote=RemoteDispatcherImpl[UnicastServerRef2 [liveRef: [endpoint:[192.168.0.18:1211,org.ofbiz.service.rmi.socket.zip.CompressionServerSocketFactory@164b11c,org.ofbiz.service.rmi.socket.zip.CompressionClientSocketFactory@1a7e280](local),objID:[1ed74a01:12704d7b0d9:-7fff, 5706702632816071805]]]] (Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect)Nikunj: SQLProcessor.executeQuery(): _sql: SELECT JOB_NAME, RUN_TIME, POOL_ID, STATUS_ID, PARENT_JOB_ID, PREVIOUS_JOB_ID, SERVICE_NAME, LOADER_NAME, MAX_RETRY, AUTH_USER_LOGIN_ID, RUN_AS_USER, RUNTIME_DATA_ID, RECURRENCE_INFO_ID, TEMP_EXPR_ID, CURRENT_RECURRENCE_COUNT, MAX_RECURRENCE_COUNT, RUN_BY_INSTANCE_ID, START_DATE_TIME, FINISH_DATE_TIME, CANCEL_DATE_TIME, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX

        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:143)Nikunj: SQLProcessor.executeQuery(): _sql: SELECT JOB_NAME, RUN_TIME, POOL_ID, STATUS_ID, PARENT_JOB_ID, PREVIOUS_JOB_ID, SERVICE_NAME, LOADER_NAME, MAX_RETRY, AUTH_USER_LOGIN_ID, RUN_AS_USER, RUNTIME_DATA_ID, RECURRENCE_INFO_ID, TEMP_EXPR_ID, CURRENT_RECURRENCE_COUNT, MAX_RECURRENCE_COUNT, RUN_BY_INSTANCE_ID, START_DATE_TIME, FINISH_DATE_TIME, CANCEL_DATE_TIME, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP,

        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:322)
        at org.ofbiz.base.start.Start.start(Start.java:326)
        at org.ofbiz.base.start.Start.main(Start.java:412)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140)
        ... 5 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 11 more
org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.service.rmi.RmiServiceContainer (Unable to bind RMIDispatcher to RMI on //host[127.0.0.1]:port[2099]/name[RMIDispatcher] - with remote=RemoteDispatcherImpl[UnicastServerRef2 [liveRef: [endpoint:[192.168.0.18:1211,org.ofbiz.service.rmi.socket.zip.CompressionServerSocketFactory@164b11c,org.ofbiz.service.rmi.socket.zip.CompressionClientSocketFactory@1a7e280](local),objID:[1ed74a01:12704d7b0d9:-7fff, 5706702632816071805]]]] (Connect
        java.net.ConnectException: Connection refused: connect))
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:322)
        at org.ofbiz.base.start.Start.start(Start.java:326)
        at org.ofbiz.base.start.Start.main(Start.java:412)
org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI on //host[127.0.0.1]:port[2099]/name[RMIDispatcher] - with remote=RemoteDispatcherImpl[UnicastServerRef2 [liveRef: [endpoint:[192.168.0.18:1211,org.ofbiz.service.rmi.socket.zip.CompressionServerSocketFactory@164b11c,org.ofbiz.service.rmi.socket.zip.CompressionClientSocketFactory@1a7e280](local),objID:[1ed74a01:12704d7b0d9:-7fff, 5706702632816071805]]]] (Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect)
        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:143)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:322)
        at org.ofbiz.base.start.Start.start(Start.java:326)
        at org.ofbiz.base.start.Start.main(Start.java:412)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140)
        ... 5 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 11 more
org.ofbiz.base.container.ContainerException: Unable to bind RMIDispatcher to RMI on //host[127.0.0.1]:port[2099]/name[RMIDispatcher] - with remote=RemoteDispatcherImpl[UnicastServerRef2 [liveRef: [endpoint:[192.168.0.18:1211,org.ofbiz.service.rmi.socket.zip.CompressionServerSocketFactory@164b11c,org.ofbiz.service.rmi.socket.zip.CompressionClientSocketFactory@1a7e280](local),objID:[1ed74a01:12704d7b0d9:-7fff, 5706702632816071805]]]] (Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect)
        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:143)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:322)
        at org.ofbiz.base.start.Start.start(Start.java:326)
        at org.ofbiz.base.start.Start.main(Start.java:412)
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:140)
        ... 5 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 11 more
2010-02-25 16:46:55,837 (OFBiz_Shutdown_Hook) [    ContainerLoader.java:115:INFO ] Shutting down containers
2010-02-25 16:46:55,837 (OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:189:INFO ] De-Registering dispatcher: RMIDispatcher
2010-02-25 16:46:56,118 (default-invoker-Thread-12) [PersistedServiceJob.java:136:WARN ] Persisted Job [8801] references a RecurrenceInfo, recommend using TemporalExpression instead