ConnectException

Hi, I'm writing a chat program in Java and have an essential program in my connection sequence. Have the same lines in another program and they work hope you can help me.
This is the probematic code:
import hsa.Console;
import java.net.*;
import java.io.*;
public class ChatProgram
static Console c;
private static final int PORT = 7;
public static void main (String[] args) throws Exception
c = new Console ();
Socket sock = null;
ChatHistory.cleanHistory ();
c.println ("Do you want to: a) contact a client");
c.println (" b) be contacted");
if (c.readLine ().equals ("a"))
c.clear ();
c.println ("Please enter the clients IP");
String ipAddress = c.readLine ();
sock = new Socket (ipAddress, 7);
String client = sock.getInetAddress ().getHostName ();
c.clear ();
ChatHistory.wHistory ("Connection established to " + ipAddress +
" (" + client + ")\n");
if (c.readLine ().equals ("b"))
c.clear ();
ServerSocket servSock = new ServerSocket (PORT);
String message = "";
sock = servSock.accept ();
String client = sock.getInetAddress ().getHostName ();
ChatHistory.wHistory ("Connection established with client " + client + "\n");
new ReceiveThread (sock).start ();
new SendThread (sock).start ();
And this is the error message:
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at ChatProgram.main(ChatProgram.java:22)
If you need the classes just write.
thx
m0rbid

If you pass a literal IP address to InetAddress.getByName then it specified to validate that the address format is correct. That might be useful to you. However, given that the Socket ctor is throwing a ConnectException it means that it's already validating the address format and the ConnectException is because the connect failed. As I mentioned in an earilier reply, it might be good to get find out the IP address that this is failing on and check that you can in fact connect to that address.

Similar Messages

  • Failed to read WSDL - connectException and unknownHostException

    Hi Guys,
    I am starting out with a new installation of SOA Suite 10g on my local windows machine.
    I've tested out a simple BPEL process deployment and all works fine.
    My next step is to test an Invoke of an external webservice: http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
    Initially I had to setup proxy of my Jdev installation to get JDev to look at this WSDL (could not validate the WSDL without this):
    Proxy: 10.176.227.40
    Port: 8080
    Exceptions: |D701341|d701341|localhost
    But when I tried to deploy the BPEL process from jDev, I got an UnknownHostException:
    BUILD FAILED
    C:\jdev10g\jdev\mywork\NetworkRailSHLApplication\Pilot2\build.xml:78: A problem occured while connecting to server "localhost" using port "8888": bpel_Pilot2_1.0.jar failed to deploy. Exception message is: ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Pilot2" (revision "1.0"): Failed to read wsdl.
    Error happened when reading wsdl at "C:\soa10gdemo\bpel\domains\default\tmp\.bpel_Pilot2_1.0_e0b22fe325615e2ac6bf1710ef089616.tmp\ExternalWS.wsdl", because "Error reading import of file:/C:/soa10gdemo/bpel/domains/default/tmp/.bpel_Pilot2_1.0_e0b22fe325615e2ac6bf1710ef089616.tmp/ExternalWS.wsdl: Failed to read wsdl file at: "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL", caused by: java.net.UnknownHostException. : www.w3schools.com: www.w3schools.com".
    Make sure wsdl exists at that URL and is valid.
    After searching a bit on the forums, found out that I might have to fiddle with my HOSTS file: C:\WINNT\system32\drivers\etc\hosts
    I added the following line to my hosts file:
    127.0.0.1 localhost
    216.128.29.26     www.w3schools.com
    This time when I tried to deploy the same process, got a ConnectException:
    BUILD FAILED
    C:\jdev10g\jdev\mywork\NetworkRailSHLApplication\Pilot2\build.xml:78: A problem occured while connecting to server "localhost" using port "8888": bpel_Pilot2_1.0.jar failed to deploy. Exception message is: ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "Pilot2" (revision "1.0"): Failed to read wsdl.
    Error happened when reading wsdl at "C:\soa10gdemo\bpel\domains\default\tmp\.bpel_Pilot2_1.0_e0b22fe325615e2ac6bf1710ef089616.tmp\ExternalWS.wsdl", because "Error reading import of file:/C:/soa10gdemo/bpel/domains/default/tmp/.bpel_Pilot2_1.0_e0b22fe325615e2ac6bf1710ef089616.tmp/ExternalWS.wsdl: Failed to read wsdl file at: "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL", caused by: java.net.ConnectException. : Connection timed out: connect".
    Make sure wsdl exists at that URL and is valid.
    I can visit view WSDL from my Internet Explorer with the same proxy config as mentioned above.
    I am not sure how do I get my local SOA Suite to talk to the external web service.
    Could someone point me in the right direction please?
    Thanks,
    Ravi

    I am also facing the similar kind of issue. Please suggest a solution

  • Java.rmi.ConnectException using webstart Swing client with WL 8.1 SP2 in a

    Hi all,
    I'm receiving the following exception when invoking a remote method on
    a cached remote stub. This only happens if there are at least two
    nodes running in a cluster. It happens more often the more nodes are
    running.
    It seems that the exception occurs if for a call to a remote method a
    cached stub is used, and if that call is referred to a different node
    in the cluster by the load balancer than the one that the stub
    originally came from. But I'm not completely sure about that...
    Client side config:
    Webstart
    JDK 1.4.2_05
    weblogic.jar (we're experiencing other problems already discussed in
    this group when using wlclient.jar)
    Server side config:
    Weblogic 8.1 SP2
    cluster on Sun Solaris machines (two nodes, one manager)
    Here is the exception stacktrace:
    java.rmi.ConnectException: Could not establish a connection with
    2198062098923170717S:shebea219:[7001,7001,-1,-1,7001,-1,-1,0,0]:SHEBEA219,SHEBEA334:DaGama:DaGamaNode1,
    java.security.AccessControlException: access denied
    (java.net.SocketPermission shebea219 resolve)
    at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:316)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:488)
    at weblogic.rjvm.RJVMImpl.getOutboundRequest(RJVMImpl.java:584)
    at
    weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:91)
    at
    weblogic.rmi.internal.activation.ActivatableRemoteRef.invoke(ActivatableRemoteRef.java:69)
    at
    de.conet.dagama.interesengine.nativesession.SBNativeSession_8da95c_EOImpl_812_WLStub.isConnected(Unknown
    Source)
    at
    de.conet.dagama.agent.flight.nativ.FlightNativeListener.doExitNativeSession(FlightNativeListener.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
    de.objektpark.framework.command.CommandInvoker.invoke(CommandInvoker.java:132)
    at
    de.objektpark.framework.command.CommandProcessor.doService(CommandProcessor.java:169)
    at
    de.objektpark.framework.command.CommandProcessor.service(CommandProcessor.java:131)
    at
    de.objektpark.framework.command.CommandProcessor.execute(CommandProcessor.java:71)
    at
    de.conet.webactiv.swing.command.GUICommandProcessor.execute(GUICommandProcessor.java:87)
    at
    de.conet.webactiv.swing.controller.GUICommandController.execute(GUICommandController.java:98)
    at
    de.conet.webactiv.swing.controller.GUICommandController.execute(GUICommandController.java:124)
    at
    de.conet.dagama.agent.flight.nativ.FlightFreeNativeView.this_windowClosing(FlightFreeNativeView.java:84)
    at
    de.conet.dagama.agent.flight.nativ.FlightFreeNativeView$1.windowClosing(FlightFreeNativeView.java:73)
    at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
    at java.awt.Window.processWindowEvent(Unknown Source)
    at javax.swing.JFrame.processWindowEvent(Unknown Source)
    at java.awt.Window.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    Has anyone ever come across the same problem and possibly found a
    solution?
    Any help would be greatly appreciated.
    Thanks in advance
    Rolf

    Hi all,
    I'm receiving the following exception when invoking a remote method on
    a cached remote stub. This only happens if there are at least two
    nodes running in a cluster. It happens more often the more nodes are
    running.
    It seems that the exception occurs if for a call to a remote method a
    cached stub is used, and if that call is referred to a different node
    in the cluster by the load balancer than the one that the stub
    originally came from. But I'm not completely sure about that...
    Client side config:
    Webstart
    JDK 1.4.2_05
    weblogic.jar (we're experiencing other problems already discussed in
    this group when using wlclient.jar)
    Server side config:
    Weblogic 8.1 SP2
    cluster on Sun Solaris machines (two nodes, one manager)
    Here is the exception stacktrace:
    java.rmi.ConnectException: Could not establish a connection with
    2198062098923170717S:shebea219:[7001,7001,-1,-1,7001,-1,-1,0,0]:SHEBEA219,SHEBEA334:DaGama:DaGamaNode1,
    java.security.AccessControlException: access denied
    (java.net.SocketPermission shebea219 resolve)
    at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:316)
    at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:488)
    at weblogic.rjvm.RJVMImpl.getOutboundRequest(RJVMImpl.java:584)
    at
    weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:91)
    at
    weblogic.rmi.internal.activation.ActivatableRemoteRef.invoke(ActivatableRemoteRef.java:69)
    at
    de.conet.dagama.interesengine.nativesession.SBNativeSession_8da95c_EOImpl_812_WLStub.isConnected(Unknown
    Source)
    at
    de.conet.dagama.agent.flight.nativ.FlightNativeListener.doExitNativeSession(FlightNativeListener.java:244)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
    de.objektpark.framework.command.CommandInvoker.invoke(CommandInvoker.java:132)
    at
    de.objektpark.framework.command.CommandProcessor.doService(CommandProcessor.java:169)
    at
    de.objektpark.framework.command.CommandProcessor.service(CommandProcessor.java:131)
    at
    de.objektpark.framework.command.CommandProcessor.execute(CommandProcessor.java:71)
    at
    de.conet.webactiv.swing.command.GUICommandProcessor.execute(GUICommandProcessor.java:87)
    at
    de.conet.webactiv.swing.controller.GUICommandController.execute(GUICommandController.java:98)
    at
    de.conet.webactiv.swing.controller.GUICommandController.execute(GUICommandController.java:124)
    at
    de.conet.dagama.agent.flight.nativ.FlightFreeNativeView.this_windowClosing(FlightFreeNativeView.java:84)
    at
    de.conet.dagama.agent.flight.nativ.FlightFreeNativeView$1.windowClosing(FlightFreeNativeView.java:73)
    at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
    at java.awt.Window.processWindowEvent(Unknown Source)
    at javax.swing.JFrame.processWindowEvent(Unknown Source)
    at java.awt.Window.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    Has anyone ever come across the same problem and possibly found a
    solution?
    Any help would be greatly appreciated.
    Thanks in advance
    Rolf

  • BAMAdapter Issue : java.rmi.ConnectException: Destination unreachable;

    Hi,
    I have installed SOA server and BAM server on same localhost but while calling BAM adapter from the BPEL process it's throwing below error.
    *<Jun 24, 2011 6:56:51 PM BST> <Error> <oracle.soa.bpel.engine.ws> <BEA-000000>*
    *<got FabricInvocationException java.rmi.ConnectException: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused; No available router to destination*
    Here are my JNDI configuration :: eis/bam/rmi
    HostName     java.lang.String     localhost
    InstanceName     java.lang.String     ADCServer1
    Password     java.lang.String     *******
    PortNumber     java.lang.String     9001
    UserName     java.lang.String     weblogic
    I have also tried with the eis/bam/soap but it is giving me
    javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused
    Do i need to modify any configuration file in server?
    Please suggest.
    Thanks,
    Sagar

    Hi,
    I have installed SOA server and BAM server on same localhost but while calling BAM adapter from the BPEL process it's throwing below error.
    *<Jun 24, 2011 6:56:51 PM BST> <Error> <oracle.soa.bpel.engine.ws> <BEA-000000>*
    *<got FabricInvocationException java.rmi.ConnectException: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused; No available router to destination*
    Here are my JNDI configuration :: eis/bam/rmi
    HostName     java.lang.String     localhost
    InstanceName     java.lang.String     ADCServer1
    Password     java.lang.String     *******
    PortNumber     java.lang.String     9001
    UserName     java.lang.String     weblogic
    I have also tried with the eis/bam/soap but it is giving me
    javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused
    Do i need to modify any configuration file in server?
    Please suggest.
    Thanks,
    Sagar

  • Help !!!!!  java.rmi.ConnectException

              I have realized a Cluster on WLS 6.1 sp4 but failover doesn't works fine. After
              the fail of the first node , the application goes on the secondary and works fine
              .. when the second node fails the http session goes on the third node but my
              application crash with this stack trace : <7-mar-03 19.30.03 CET> <Info> <Cluster>
              <Removing 5110730417871414485S:192.168.120.35:[7009,7009,7010,7010,7009,7010,-1]:192.1
              68.12 0.35,192.168.120.39,192.168.120.222,192.168.120.223:mydomain:nodo1 to the
              cluster> <7-mar-03 19.30.14 CET> <Info> <HTTP> <[WebAppServletContext(4776087,portale,/portale)]
              Localita: init> [PrimarySecondaryReplicaHandler] : weblogic.rmi.internal.LeasedRemoteRef@159
              - jvmid: '5110730417871414485S:192.168.120.35:[7009,700 9,7010,7010,7009,7010,-1]:192.168.120.35,192.168.120.39,192.168.120.222,192.
              168.120.223:mydomain:nodo1', oid: '345' java.rmi.ConnectException: Could not establish
              a connection with 5110730417871414485S:192.168.120.35:[7009,7009,7010,7010,7009,7010,
              -1]:192.168.120.35,192.168.120.39,192.168.120.222,192.168.120.223:mydomain:n odo1,
              java.rmi.ConnectException: Destination unreachable ; nested exception is: java.net.ConnectException:
              Connection refused; No available router to destination at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:275)
              at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:408) at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:
              97) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
              :255) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
              :230) at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at $Proxy165.getFunzioneCorrente(Unknown
              Source) at dbr.servlet.FunzioneServlet.doGetOrPost(FunzioneServlet.java:126) at
              dbr.servlet.FunzioneServlet.doPost(FunzioneServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :262) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :198) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:2637) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2359) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              <7-mar-03 19.30.15 CET> <Debug> <DBR-TIM> <Could not establish a connection with
              5110730417871414485S:192.168.120.35:[7009,7009,7010 ,7010,7009,7010,-1]:192.168.120.35,192.168.120.39,192.168.120.222,192.168.12
              0.223:mydomain:nodo1, java.rmi.ConnectException: Destina tion unreachable; nested
              exception is: java.net.ConnectException: Connection refused; No available router
              to destination>
              it looks like the secondary don't trasform himself in a primary , looking for
              ejb stub on the node died. Thanks for any help.
              

              Nobody has used Stateful ejb on a 3/4 node cluster?
              "Emanuele Alfieri" <[email protected]> wrote:
              >
              >I have realized a Cluster on WLS 6.1 sp4 but failover doesn't works fine.
              >After
              >the fail of the first node , the application goes on the secondary and
              >works fine
              >... when the second node fails the http session goes on the third node
              >but my
              >application crash with this stack trace : <7-mar-03 19.30.03 CET> <Info>
              ><Cluster>
              ><Removing 5110730417871414485S:192.168.120.35:[7009,7009,7010,7010,7009,7010,-1]:192.1
              >68.12 0.35,192.168.120.39,192.168.120.222,192.168.120.223:mydomain:nodo1
              >to the
              >cluster> <7-mar-03 19.30.14 CET> <Info> <HTTP> <[WebAppServletContext(4776087,portale,/portale)]
              >Localita: init> [PrimarySecondaryReplicaHandler] : weblogic.rmi.internal.LeasedRemoteRef@159
              >- jvmid: '5110730417871414485S:192.168.120.35:[7009,700 9,7010,7010,7009,7010,-1]:192.168.120.35,192.168.120.39,192.168.120.222,192.
              >168.120.223:mydomain:nodo1', oid: '345' java.rmi.ConnectException: Could
              >not establish
              >a connection with 5110730417871414485S:192.168.120.35:[7009,7009,7010,7010,7009,7010,
              >-1]:192.168.120.35,192.168.120.39,192.168.120.222,192.168.120.223:mydomain:n
              >odo1,
              >java.rmi.ConnectException: Destination unreachable ; nested exception
              >is: java.net.ConnectException:
              >Connection refused; No available router to destination at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:275)
              >at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:408) at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:
              >97) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
              >:255) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
              >:230) at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at
              >$Proxy165.getFunzioneCorrente(Unknown
              >Source) at dbr.servlet.FunzioneServlet.doGetOrPost(FunzioneServlet.java:126)
              >at
              >dbr.servlet.FunzioneServlet.doPost(FunzioneServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              >at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:262) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:198) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              >ntext.java:2637) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              >:2359) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              >at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              ><7-mar-03 19.30.15 CET> <Debug> <DBR-TIM> <Could not establish a connection
              >with
              >5110730417871414485S:192.168.120.35:[7009,7009,7010 ,7010,7009,7010,-1]:192.168.120.35,192.168.120.39,192.168.120.222,192.168.12
              >0.223:mydomain:nodo1, java.rmi.ConnectException: Destina tion unreachable;
              >nested
              >exception is: java.net.ConnectException: Connection refused; No available
              >router
              >to destination>
              >
              >it looks like the secondary don't trasform himself in a primary , looking
              >for
              >ejb stub on the node died. Thanks for any help.
              >
              

  • Java.rmi.ConnectException on calling callback method

    I have an interface exposed as a remote service with a simple method to register the callback object on wich the server calls a method to notify an event.
    public void registerForNotification (ExitCodeCallback callback) throws RemoteException;
    public interface ExitCodeCallback extends Remote
       * @param event
       * @throws RemoteException
      public void notifyExitCode (ExitCodeEvent event) throws RemoteException;
    public class ExitCodeEvent implements Serializable
       * Comment for <code>serialVersionUID</code>
      private static final long serialVersionUID = -8542839971016423057L;
      private Integer code;
      private String sourceName;
       * @param source
       * @param exitCode
      public ExitCodeEvent (String source, Integer exitCode)
        exitCode = code;
        sourceName = source;
       * @return Object
      public Object asString ()
        return sourceName + " exited with code " + code;
    }When the server try to call this method causes an exception to be thrown
    java.rmi.ConnectException: Connection refused to host: 26.2.242.76; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
         at $Proxy2.notifyExitCode(Unknown Source)
         at it.sogei.jscheduler.rmi.server.SchedulerServicesServerSide$InnerServerExitCodeCallback.notifyExitCode(SchedulerServicesServerSide.java:156)
         at it.sogei.jscheduler.rmi.server.ApplicationTask.notifyExitCode(ApplicationTask.java:129)
         at it.sogei.jscheduler.rmi.server.WaiterThread.run(WaiterThread.java:47)
         at java.lang.Thread.run(Thread.java:595)
    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:516)
         at java.net.Socket.connect(Socket.java:466)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:179)
         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:569)
         ... 10 morebut, surprisingly, the client receives the event even if the ExitCodeEvent.asString() called on that object print the following line
    null exited with code null.
    I wonder how this could be happened?

    - It happens every single time the callback method is invoked, I see the event been deserialized client-side with the fields initialized with null values and server-side there is the java.rmi.ConnectException.
    - The client can't unexport the callback object, that's because I didn't think to do it.
    this is the method where I start to notify to all the registered client the event
    for (ExitCodeCallback callbackElement : callback)
            try
              callbackElement.notifyExitCode(event);
            catch (RemoteException ex)
              logger.debug("Unable to notify.", ex);
          }where
    List<ExitCodeCallback> callback;and implementation of the callback interface is
    public class ClientExitCodeCallback implements ExitCodeCallback
      transient Logger logger = Logger.getLogger(ClientExitCodeCallback.class);
       * @see it.sogei.jscheduler.ExitCodeCallback#notifyExitCode()
      public void notifyExitCode (ExitCodeEvent event) throws RemoteException
        logger.warn(event.asString());
    }

  • Java.rmi.ConnectException

    hi I am trying to connect to a remote server from my client as follows
    $ java TestRcf -Djava.security.policy=policy
    and my policy file is as follows....
    grant {
    permission java.net.SocketPermission "*:1024-65535", "connect";
    I get the following error when i try to connect it...
    Do i have to include anything else in the policy file or what is that i am missing?
    the error is as follows......
    lookup host: //10.1.129.3/RCFSearch10.1.129.3
    java.rmi.ConnectException: Connection refused to host: 10.1.129.3; nested exception is:
    java.net.ConnectException: Connection timed out
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:84)
    at com.lt.rcf.RemoteRCF.<init>(RemoteRCF.java:48)
    at com.lt.rcf.RCFMediator.init(RCFMediator.java:405)
    at com.lt.rcf.RCFMediator.<init>(RCFMediator.java:60)
    at com.lt.rcf.RCFClient.<init>(RCFClient.java:59)
    at com.lt.rcf.RCFAppBuilder.create(RCFAppBuilder.java:50)
    at TestRcf.test0(TestRcf.java:55)
    at TestRcf.main(TestRcf.java:88)
    Caused by: java.net.ConnectException: Connection timed out
    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:364)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at java.net.Socket.<init>(Socket.java:365)
    at java.net.Socket.<init>(Socket.java:178)
    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:569)
    ... 12 more
    com.lt.rcf.RCFException: RCF Server connection not available: Connection refused to host: 10.1.129.3; nested exception is:
    java.net.ConnectException: Connection timed out

    first of all, which OS are you working on? This
    question might sound wierd, but I have noticed a
    lotta people working on Linux boxes havecomplained
    about this. There is another mail thread about it:
    >
    http://forum.java.sun.com/thread.jspa?threadID=570065&
    tstart=0
    is your client able to look up the reference tothe
    server ? If so, can you print that reference andfind
    out which port the remote server is listening on ?
    here did u mean Naming.LookUp("rmi://10.1.129.3") in the client.thats where i get connection refused while doing naming.lookup.
    Then use the netstat command to see if the serveris
    indeed listenign on that port when the connectionis
    refused !
    netstat -anp - p | grep <port_of_server>
    let me know how it goes.
    when i did netstat -anp - p | grep <port_of_server> on my client this is what i get ...
    Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    tcp 0 0 0.0.0.0:1099 0.0.0.0:* LISTEN
    6435/rmiregistry
    tcp 0 0 10.1.129.3:51983 10.1.129.3:1099 ESTABLISHED
    6492/java
    tcp 0 0 10.1.129.3:1099 10.1.129.3:51983 ESTABLISHED
    6435/rmiregistry

  • Java.rmi.ConnectException: Connection refuse

    Hi all,
    I have built a simple RMI client server application.I can run client & server fine locally.
    However if I test this appplication over the internet, I get this exception on the client:
    java.rmi.ConnectException: Connection refused to host: 169.254.157.53; nested exception is:
    java.net.ConnectException: Connection timed out: connectConnection refused to host:169.254.157.53
    The RMI server is running on my PC and the client on a friend's remote PC.Both PCs are connected to Internet.
    I don't have any firewall running on my PC (including windows XP firewall). The server RMI lookup on the client happens correctly,
    the exception is raised when the client tries to call the remote method on the server.
    Here is an extract of my RMI server code (it works locally):
    public static void main(String[] args) throws Exception {
              try {
              // args[0] contains the database server name given as command line argument, arg[1] contains binary path that contains weather jpeg files     
              CPrimaryWeatherServer test = new CPrimaryWeatherServer(args[0], args[1]);
              Naming.rebind("rmi://localhost:1099/WeatherPrimaryService", test);
              System.out.println("Serveur m�t�o principal d�marr�");
              } catch (Exception e){ System.out.println(e.getMessage());}
    Here is an extract of my RMI client code (it works locally):
    try{
                        rec=1;
                        leftClik=1;
                        System.out.println("Before RMI lookup");
                        IPrimaryWeatherServerService serveur =(IPrimaryWeatherServerService)Naming.lookup("rmi://"+primWS+":1099/WeatherPrimaryService");
                        System.out.println("After RMI lookup");
                        System.out.println("Before server method call");
                        z=serveur.getFullWeatherData(); --> exception is raised here
                        System.out.println("After RMI server method call");
    I am directly connected to Internet using an ethernet card connected to an ADSL modem.169.254.157.53 is the automatic IP of my network card different from the IP given by my ISP. By the way, the client tries to contact me using my DNS name that resolves correctly to my ISP IP adress.
    Thanks a lot for help,

    because I am guessing that a local IP address is being embedded into the stub so the clien't can't find the remote server. I am guessing because you didn't provide the exception or its text. Anyway the suggestion will cause the correct public IP address/hostname to be embedded into the stub.

  • ConnectException when running in another machine

    Hi,
    I am getting ConnectException when i am running the server in another machine which is linux server,and when i am calling it from my local system it throws ConnectException.
    But i didn't get it when i am running both in my local system.Please tell what modifications have i to made with my programs.
    regards,
    j.mouli

    The problem is with the command being used to start the RMI server. If you are starting it with the flag
    -D:java.rmi.server.hostname=localhost
    chang the flag to
    -D:java.rmi.server.hostname=johnb

  • ConnectException when using Tomcat 4.1

    Hi,
    I'm trying to run my web application with Tomcat 4.1 (until now I worked with Tomcat 3.2, and didn't have problems).
    In my application I have an applet that reads from a file (the file is located on the web server.)
    When I try to do it (using Url.openStream()) I get:
    java.net.ConnectException: Connection refused.
    I guess I have to configure some kind of permissions in the tomcat configuration files or something like that, but I didn't find anything.
    (In my Java policy tool I made sure to give java.security.AllPermission, but I'm not sure that it's connected).
    Can you please help me?...
    Thanks,
    Efrat

    The code the I use is:
    // With a URL now available, try to esatablish a read
    // mechanism and read in the file as a series of String lines
    try
    InputStream is = sourceUrl.openStream();
    InputStreamReader isr = new InputStreamReader (is);
    BufferedReader d = new BufferedReader (isr);
    return (readLines(d));
    catch (java.io.FileNotFoundException iof)
    Debug.err ("FileNotFoundException: " + iof);
    JOptionPane.showMessageDialog(applet, "Problems with web server were discovered. Device image will not be shown.\nPlease check server and device status and correct, then try to login again.");
    return null;
    catch (IOException e)
    Debug.err ("exception in fetchLines: " + e);
    e.printStackTrace();
    return null;
    The exception that I get is:
    exception in fetchLines: java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:426)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:137)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(HttpClient.java:93)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
         at sun.plugin.net.protocol.http.HttpClient.<init>(HttpClient.java:39)
         at sun.plugin.net.protocol.http.HttpClient.New(HttpClient.java:66)
         at sun.plugin.net.protocol.http.HttpURLConnection.privBlock(HttpURLConnection.java:116)
         at sun.plugin.net.protocol.http.HttpURLConnection$PrivilegedBlockAction.run(HttpURLConnection.java:460)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:167)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:375)
         at java.net.URL.openStream(URL.java:960)
         at pic1.AtricaFetchConfig.fetchLines(AtricaFetchConfig.java:30)
         at pic1.AtricaDeviceObj.buildConfig(AtricaDeviceObj.java:105)
         at pic1.AtricaDeviceObj.buildDevice(AtricaDeviceObj.java:39)
         at pic1.nicApplet.fetchDevice(nicApplet.java:110)
         at pic1.nicApplet.init(nicApplet.java:49)
         at sun.applet.AppletPanel.run(AppletPanel.java:347)
         at java.lang.Thread.run(Thread.java:536)
    I get the exception when doing: InputStream is = sourceUrl.openStream();
    Thanks a lot,
    Efrat

  • Exception occured: java.rmi.ConnectException:

    hi
    i got an exception while running rmi client jar file....
    i want to invoke a method in the server..i have created two jar files one for server and another for client..
    i have added the policy file also..i tried by using server and client in the same system
    when i run the client jar i got an exception like given below..and i'm using netbeans 6...
    Exception occured: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused: connect
    can any one help me to solve this problem?
    thanx in advance...

    hi thanx for the reply..
    i'm using windows XP, netbeans6, jdk6, sql server2000.
    when i started the rmiregistry this exception is over, but another exception comes
    Exception occured: java.rmi.NotBoundException: myebillRMIImpl
    my code is given below..please help me....a similar code worked properly without using netbeans..
    import java.sql.*;
    public interface ebillRMIInterface extends java.rmi.Remote
    public void insert(String str) throws java.rmi.RemoteException;
         public ResultSet select(String str1) throws java.rmi.RemoteException;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    import java.sql.*;
    public class ebillRMIImpl extends UnicastRemoteObject implements ebillRMIInterface
    public ebillRMIImpl(String name) throws RemoteException
    super();
    try
    Naming.rebind(name, this);
    catch(Exception e)
    System.out.println("Exception occurred: " + e);
                        Statement stmt=null;
                        Connection con=null;
                        ResultSet res=null;
    public void insert(String str)
    try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con = DriverManager.getConnection("jdbc:odbc:rmidsn", "sa", "");
                   stmt = con.createStatement();
                   stmt.executeUpdate(str);
                   con.close();
              catch (Exception e)
                   System.out.println(e);
              public ResultSet select(String str)
                   try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con = DriverManager.getConnection("jdbc:odbc:rmidsn", "sa", "");
                   stmt = con.createStatement();
                   res=stmt.executeQuery(str);
                   con.close();
              catch (Exception e)
                   System.out.println(e);
              return res;
    import java.rmi.*;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.server.UnicastRemoteObject;
    public class ebillRMIServer
    public static void main(String[] argv)
    System.setSecurityManager(new RMISecurityManager());
    try
    //Registry registry =LocateRegistry.getRegistry();
    ebillRMIImpl implementation = new ebillRMIImpl("myebillRMIImpl");
    catch (Exception e)
    System.out.println("Exception occurred: " + e);
    Client function is
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {     
    System.setSecurityManager(new RMISecurityManager());
    int itemid;
    String serverName ="";
    serverName = "localhost";
                        ResultSet res=null;
    String itid=jTextField1.getText();
    itemid=Integer.parseInt(itid);
    try
    //bind server object to object in client//rmi://host:<port>/correlator
    ebillRMIInterface ebillserver = (ebillRMIInterface) Naming.lookup("rmi://"+serverName+"/myebillRMIImpl");
    //invoke method on server object
    System.out.println("Date on server is " + d);*/
                                  String str="select * from Stock where itemid="+itemid;
                                  res=ebillserver.select(str);
    while(res.next())
    jTextField2.setText(res.getString(2));
    Float price=res.getFloat(4);
    String pr=String.valueOf(price);
    jTextField3.setText(pr);
    catch(Exception e)
    System.out.println("Exception occured: " + e);
    System.exit(0);
    System.out.println("RMI connection successful");
    }

  • Jms provider with SSL transport : connectException

    I have a jmsprovider that is connecting to a remote server(another domain) over SSl transport. I have trust and identity keystore created and configured. Looks like I have passed the SSL handshale stage and client side accepted trust certificate successfully.
    After that it is doing JNDI look up on connection factory and failing there
    The invocation resulted in an error: [JMSPool:169803]JNDI lookup of the JMS connection factory synergyConnectionFactory1 failed: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3s://10.100.104.153:7002: Destination unreachable; nested exception is:
    *java.net.ConnectException: Connection refused: connect; No available router to destination].*
    i have SSL listener port is 7002. Do I need to do any other setup on the remote server side to make the JNDI lookup success in this port? I am able to access the queue with no-ssl on 7001 port.
    I am not using any service account here. Will that be required to make this work? If I do not provide any, then will be the default account (guest) used? And according to the default security policy on the jms resource side , this account will have access to the resource and JNDI lookup too.
    Please suggest
    Edited by: 818591 on Mar 1, 2011 12:36 PM

    From the error it looks like a network connectivity issue .. r u able to telnet to port 7002 from the source box? some firewalls may allow only messages of certain protocol e.g. https to 7002 may work, but not t3s to 7002 .. make sure you are not dealing with a network/firewall issue..
    I am not using any service account here. Will that be required to make this work?Service account will not be required unless the queue on the remote destination has been secured. By default, weblogic jms resources are unsecured meaning will allow anonymous access.

  • Jndi ConnectException Connection refused

    Please can someone help me to understand why I am getting a ConnectException with the following code.
    String PROVIDER_URL = "ormi://localhost:23791";
    String INITIAL_CONTEXT_FACTORY = "com.evermind.server.rmi.RMIInitialContextFactory";
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
    prop.put(Context.PROVIDER_URL, PROVIDER_URL);
    InitialContext context = new InitialContext(prop);
    return (MimirLoginSessionEJBLocalHome) context.lookup(
    "java:comp/env/ejb/local/MimirLoginSessionEJB");
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)

    yes it is!!! sorry i need to sleep.
    do you know why now i am trying to exec the client and get this error?
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection; nested exception is: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at test.model.SessionEJB_qxt9um_SessionEJBRemoteImpl_1032_WLStub.getDescripcionextraFindAll(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         at $Proxy0.getDescripcionextraFindAll(Unknown Source)
         at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:36)
    Caused by: java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    the Model Project has got the MySQL jar library
    Thank you!

  • UtilityException and ConnectException

    Hi
    I have a J2EE Struts application that has a Swing Admin client in it. I run the command "ant client" and then I try to log in to the client and get the following exception:
    orcl.mywork.util.UtilityException: Exception thrown from getService() method of ServiceLocator Class: Lookup error:java.net.ConnectException: Connection Refused:connect;Nested Exception is:java.net.ConnectException:Connection Refused:connect
    What might be the problem. Could this be a classpath problem or something else?
    Your help and time is very much appreciated.
    thanks

    The Connection is being refused. Most likely cause: no 'server' is listening on the port your trying to connect to the admin client using.

  • What does java.rmi.ConnectException: Connection refused to host mean? ¶

    Several users have run into a java.rmi.ConnectException message during deployment, and need some information on how to troubleshoot this. We'll be adding this to our documentation, but thought it might be useful now.
    In NoSQL DB R2.0, the show plan -id <id> command displays plan status and any errors that may have occurred. If you see this exception listed in the error section, it means that the Admin service was unable to reach one of the NoSQL DB components while the system was trying to execute an administrative command.
    The first step is check on the overall status of the store. One way to do that is to use the show topology command, followed by the verify command. The show topology command will display the layout of the store, while verify will check the status of each component. A component that can't be reached will display a status of UNREACHABLE.
    In general, NoSQL DB attempts to make any troubleshooting information you need available through the Admin CLI, through commands like show plan, show events, show faults. A ConnectException message means that a communication channel either was not established, or failed, and in those cases, troubleshooting information may not have been conveyed to the Admin service. This is particularly true if there was a communication failure during initial deployment of a component.
    The next step would be to look in the NoSQL log files for more detailed error information. Look first in the aggregated storewide log, which can be found in the node that is hosting the master admin service, under the KVROOT/<storename>/logs/<storename>*.log. You can locate the master Admin through the "verify" command. This log file contains information from all the different components in the store.
    Suppose Replication Node rg1-rn3, on Storage Node sn3, is not responsive. Look through the <storename>.log for entries made by those components. Each log entry is prefixed with the name of the component that issued the log message. Sometimes the aggregated storewide log has too much information, or sometimes information from a component was not transmitted to the Admin, and therefore isn't included in the aggregated log. In that case, it can be more helpful to look at the Replication Node or Storage Node logs directly, which can be found on their host, in the <KVROOT>/<storename>/logs directory.
    If the problem occurs during an initial deployment, it can be particularly helpful to review the Storage Node logs to make sure that the Storage Node Agent on that node was created correctly, and that the process came up as expected, according to the installation directions, and the Replication Node logs. Some of the common reasons why a Replication Node might not come up are that here is inadequate heap and memory on the node, or that a initial configuration parameter is misspelled or has an invalid value, or that the time skew between components is greater than NoSQL's acceptable limit.

    Several users have run into a java.rmi.ConnectException message during deployment, and need some information on how to troubleshoot this. We'll be adding this to our documentation, but thought it might be useful now.
    In NoSQL DB R2.0, the show plan -id <id> command displays plan status and any errors that may have occurred. If you see this exception listed in the error section, it means that the Admin service was unable to reach one of the NoSQL DB components while the system was trying to execute an administrative command.
    The first step is check on the overall status of the store. One way to do that is to use the show topology command, followed by the verify command. The show topology command will display the layout of the store, while verify will check the status of each component. A component that can't be reached will display a status of UNREACHABLE.
    In general, NoSQL DB attempts to make any troubleshooting information you need available through the Admin CLI, through commands like show plan, show events, show faults. A ConnectException message means that a communication channel either was not established, or failed, and in those cases, troubleshooting information may not have been conveyed to the Admin service. This is particularly true if there was a communication failure during initial deployment of a component.
    The next step would be to look in the NoSQL log files for more detailed error information. Look first in the aggregated storewide log, which can be found in the node that is hosting the master admin service, under the KVROOT/<storename>/logs/<storename>*.log. You can locate the master Admin through the "verify" command. This log file contains information from all the different components in the store.
    Suppose Replication Node rg1-rn3, on Storage Node sn3, is not responsive. Look through the <storename>.log for entries made by those components. Each log entry is prefixed with the name of the component that issued the log message. Sometimes the aggregated storewide log has too much information, or sometimes information from a component was not transmitted to the Admin, and therefore isn't included in the aggregated log. In that case, it can be more helpful to look at the Replication Node or Storage Node logs directly, which can be found on their host, in the <KVROOT>/<storename>/logs directory.
    If the problem occurs during an initial deployment, it can be particularly helpful to review the Storage Node logs to make sure that the Storage Node Agent on that node was created correctly, and that the process came up as expected, according to the installation directions, and the Replication Node logs. Some of the common reasons why a Replication Node might not come up are that here is inadequate heap and memory on the node, or that a initial configuration parameter is misspelled or has an invalid value, or that the time skew between components is greater than NoSQL's acceptable limit.

Maybe you are looking for

  • How do I get reinstalled itunes to reload my music in the itunes folder on drive D?

    I previously moved my itunes folder to D. I had to reinstall itunes and now I don't know how to get it to see my music and my old playlists. Thank you in advance for any help.    

  • Problems with TV Out signal after upgrading to iOS 5.1

    Has anyone experienced problems with TV Out signals on their iPad 2 using the Apple HDMI Adapter after upgrading to iOS 5.1?  I am trying to connect to my HDTV after upgrading and cintunally receive an "Unsupported Video Signal" message with a blank/

  • No items found when using Reports

    I have a question: When i use Reports (\Monitoring\Overview\Reporting\Reports) in SCCM 2012 directly on the server i see all the reports and i can create reports. Also the web version is working alright. When i use Reports on my own workstation there

  • Word 2008 probs

    I am trying to save a word doc that I have to submit as a TAFE assignment and I am having problems freezing everything in its place. For instance pictures and themes when re opened on a different computer to the one it was created on seem to shift, m

  • How to compare record count of two tables?

    Hi, i am in need of simple sql script where i can compare two table record count. i have something like below: (select count(*) from table1) minus (select count(*) from table2) now the problem is if the table1 count greater then table2 count the outp