Nexus 7010 fabric extender timing out

Hello -
We have a Nexus 7010 and we are testing out using the fabric extenders for a need.  We have a demo 2224 unit and have it connected to our M132XP-12 10G blade in the 7K but the FEX won't come online.  I would have figured a possible software incompatability but looking at the supported list for that as well as hardware everything seems to be in order.  This is what the status shows after it spends about 15 mins in the image download state.
FEX: 111 Description: FEX0111   state: Offline
  FEX version: 4.2(1)N2(1a) [Switch version: 5.1(2)]
  FEX Interim version: 4.2(1)N2(1a)
  Switch Interim version: 5.1(2)
  Module Sw Gen: 21  [Switch Sw Gen: 21]
pinning-mode: static    Max-links: 1
  Fabric port for control traffic: Eth2/20
  Fabric interface state:
    Po11 - Interface Up. State: Active
    Eth2/20 - Interface Up. State: Active
  Fex Port        State  Fabric Port  Primary Fabric
This is looped in the log details until it times out:
04/25/2011 15:31:41.986978: Module register received
04/25/2011 15:31:41.987713: Registration response sent
04/25/2011 15:31:41.987889: Requesting satellite to download image
04/25/2011 15:32:00.105031: Module register received
04/25/2011 15:32:00.105779: Registration response sent
04/25/2011 15:32:00.105956: Requesting satellite to download image
04/25/2011 15:32:20.191181: Module register received
04/25/2011 15:32:20.191957: Registration response sent
04/25/2011 15:32:20.192144: Requesting satellite to download image
We ran a debug during this and these entries are displayed when looking for errors.
2011 Apr 25 15:30:31.443745 fex: Reg resp: Failed to get card info for swcardid 132
2011 Apr 25 15:30:35.472721 fex: Cardinfo: Unknown card id to get (132)
2011 Apr 25 15:30:35.472753 fex: Reg resp: Failed to get card info for swcardid 132
2011 Apr 25 15:30:41.495302 fex: Cardinfo: Unknown card id to get (132)
I'm still doing some more searching which so far hasn't turned up much, wanted to see if anyone has some other insight??
Thanks!

Hi Jack -
Thanks for the response.  Unfortunately, yes that is already complete.  I was hoping that would be an easy fix.  When we upgraded to 5.1(2) we did the 5.1 EPLD.  I ran the install all impact command noted below for the 5.1 EPLD just to make sure it didn't report anything else as needing upgrade.
sho install all impact epld bootflash:n7000-s1-epld.5.1.1.img
Compatibility check:
Module  Type  Upgradable        Impact   Reason
     1    LC         Yes    disruptive   Module Upgradable
     2    LC         Yes    disruptive   Module Upgradable
     5   SUP         Yes    disruptive   Module Upgradable
     1  Xbar         Yes    disruptive   Module Upgradable
     2  Xbar         Yes    disruptive   Module Upgradable
     3  Xbar         Yes    disruptive   Module Upgradable
     1   FAN         Yes    disruptive   Module Upgradable
     2   FAN         Yes    disruptive   Module Upgradable
     3   FAN         Yes    disruptive   Module Upgradable
     4   FAN         Yes    disruptive   Module Upgradable
Copy complete, now saving to disk (please wait)...
Retrieving EPLD versions... Please wait.
Images will be upgraded according to following table:
Module  Type           EPLD      Running-Version   New-Version  Upg-Required
     1    LC  Power Manager              4.008       4.008           No
     1    LC  IO                         1.006       1.006           No
     1    LC  Forwarding Engine          1.006       1.006           No
     1    LC  SFP                        1.004       1.004           No
     2    LC  Power Manager              4.008       4.008           No
     2    LC  IO                         1.016       1.016           No
     2    LC  Forwarding Engine          1.006       1.006           No
     2    LC  FE Bridge(1)              186.006      186.006           No
     2    LC  FE Bridge(2)              186.006      186.006           No
     2    LC  Linksec Engine(1)          2.006       2.006           No
     2    LC  Linksec Engine(2)          2.006       2.006           No
     2    LC  Linksec Engine(3)          2.006       2.006           No
     2    LC  Linksec Engine(4)          2.006       2.006           No
     2    LC  Linksec Engine(5)          2.006       2.006           No
     2    LC  Linksec Engine(6)          2.006       2.006           No
     2    LC  Linksec Engine(7)          2.006       2.006           No
     2    LC  Linksec Engine(8)          2.006       2.006           No
     5   SUP  Power Manager              3.009       3.009           No
     5   SUP  IO                         3.028       3.028           No
     5   SUP  Inband                     1.008       1.008           No
     5   SUP  Local Bus CPLD             3.000       3.000           No
     5   SUP  CMP CPLD                   6.000       6.000           No
     1  Xbar  Power Manager              2.010       2.010           No
     2  Xbar  Power Manager              2.010       2.010           No
     3  Xbar  Power Manager              2.010       2.010           No
     1   FAN  Fan Controller (1)         0.007       0.007           No
     1   FAN  Fan Controller (2)         0.007       0.007           No
     2   FAN  Fan Controller (1)         0.007       0.007           No
     2   FAN  Fan Controller (2)         0.007       0.007           No
     3   FAN  Fan Controller (1)         0.007       0.007           No
     3   FAN  Fan Controller (2)        0.007       0.007           No
     4   FAN  Fan Controller (1)         0.007       0.007           No
     4   FAN  Fan Controller (2)         0.007       0.007           No

Similar Messages

  • Installation of Nexus 1000v 4.2.1.SV2.1.1 - Operation timed out.

    Hi,
    We are trying to install the latest version of Nexus 1000v to ESXi5.1 and the installer application is much better than the previos one, but we are having problems with implemetation, because deploying of OVA file times out.
    First attempt: Nexus-1 was successfully deployed on ESXi-1, but Nexus-2 which should be deployed on ESXi-2 returned an error: "Deploy OVF template":"Operation timed out."
    Second attempt: Deploying of Nexus-1 returned the same error
    Third attempt: The same as the first attempt.
    It looks like that there is a time limit which is used for deploying OVA file and since file needs to be uploaded to ESXi it takes too long, so the installation fails. Is it possible to extend this time?
    BR,  M.

    Hi Mtrcek,
    The fact that it  gets to the 'Deploy OVF Template' step and then fails still points to one of two possible things:
    1. DNS
    2. Storage
    1. DNS - When you say you put entries in hosts files it tells me you are looking at the DNS on the VC or ESX hosts. What you need to check is the DNS on the vShield Manager. DNS servers need to be configured on the vShield Manager, also a good way to test is to log in to the CLI of the vShield Manager and from there ping by hostname the VC and the ESX servers.
    2. Storage - make sure there is enough space on the datastore where you are deploying the vShield Zones firewall and make sure there are no latency/slowness when writing to the disk. A quick test is to install the vShield Zones firewall on local disk, just to rule out the shared storage being the issue. Of course, this is not the recommended installation location and I would strongly suggest to uninstall and then re-install on shared storage once the issue is fixed (Assuming there are issues with shared storage).
    ne more thing I noticed from the screenshot is that you have not applied the license keys for vShield App and vShield Edge. I mention this because you say your test plan requires Edge and most likely vShield App (not the free version: Zones). You will need to apply the license keys in order to be able to deploy Edge.
    Please check DNS/Storage.
    orrrrrrrrrrrrrr
    vShield Data Security Installation Fails
    Problem
    During vShield Data Security installation, I get an error while installing the service virtual machine and an
    error message on vSphere client.
    NAME=deploy OVF template Target=VMWARE-Data Security-xxxx
    Status=operation timed out
    Cause
    The DNS setup for vShield Manager may not be consistent with the DNS setup for the host in vCenter Server.
    Solution
    Change the vShield Manager DNS setup so that it matches the host setup.
    Regards
    please rate if it helps.

  • Port-channel L2 problem with Fabric Interconnect and Nexus 7010

    Hi,
    i using port-channel from both fabric interconnect to N7k with 3 cables per Fabric Interconnect.
    but, my problem is when i creating port-channel, Fabric Interconnect don't support mode ON dan rate-mode share in Interface 10G Nexus 7010.
    I was trying :
    1. I using non dedicated port in Nexus 7010.
          - rate-mode share
          - channel-group 1 mode active
          - switchport mode trunk
    when i using this option, the port-channel in Nexus 7010 was suspended
    2. I using non dedicated port in Nexus 7010
         - rate-mode share
         - channel group 1 mode on
         - switchport mode trunk
    when i using this option, the port-channel in Nexus 7010 was came up, but in Fabric interconnect was failed.
    3. I using dedicated port in Nexus 7010
         - rate-mode share
         - channel group 1 mode active
         - switchport mode trunk
    when i using this option, the port-channel in Nexus 7010 was suspended
    4. I using dedicated port in Nexus 7010
         - rate-mode dedicated
         - channel group 1 mode active
         - switchport mode trunk
    when i using this option, the port-channel in Nexus 7010 was came up and running well.
    but, the problem is my costumer do not want using a dedicated rate-mode. if i using dedicated mode the only available port is 8 interfaces instead of 32 ports. i want to using rate-mode share in nexus 7010.
    is there any way to configuring port-channel using mode on in fabric interconnect ? i was trying using CLI to create port-channel in Fabric interconect but i cannot configure the channel group protocol.
    i attach the topology of N7K with Fabric interconnect.
    regards,
    Berwin H

    Hi Manish,
    the issue was solved, i was fix it last week.
    the solution is:
    i enable the license grace-priode (since my license is Enterprise so cannot create VDC) then i create a VDC (ex: VDC 2)  so i allocate the interface on all module
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin-top:0cm;
    mso-para-margin-right:0cm;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0cm;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    N7K-M132XP-12 to VDC 2. after that i delete VDC 2 then all interface back to VDC 1 (default vdc). then i enable the rate-mode share in dedicated port and bundle into port-channel and its working.
    i dont know why it must move to VDC first then it will working, maybe cisco can explain the reasons.
    So here the result of my port-channel :
    SVRN7KFARM-HO-01# show port-channel summary
    Flags:  D - Down        P - Up in port-channel (members)
            I - Individual  H - Hot-standby (LACP only)
            s - Suspended   r - Module-removed
            S - Switched    R - Routed
            U - Up (port-channel)
    Group Port-       Type     Protocol  Member Ports
          Channel
    1     Po1(SU)     Eth      LACP      Eth1/1(P)    Eth1/2(P)    Eth1/3(P)
                                         Eth1/4(P)    Eth1/25(P)  
    2     Po2(SU)     Eth      LACP      Eth1/9(P)    Eth1/10(P)   Eth1/11(P)
                                         Eth1/12(P)   Eth1/26(P)  
    3     Po3(SU)     Eth      LACP      Eth1/17(P)   Eth1/18(P)  
    4     Po4(SU)     Eth      NONE      Eth10/32(P)  Eth10/34(P)  Eth10/35(P)
                                         Eth10/36(P)
    Thanks.
    Berwin H

  • Nexus 7K SVI interaction with if-mgr timed out

    try to create a new SVI in 7K , but got this information
    int vlan 120
    ERROR: Vlan 120 interaction with if-mgr timed out
    any one have the same issue?
    by the way , there are 200 other SVI in this 7K

    Hi,
    Do these 2 problematic 2960 switches running the same IOS as all the other switches?
    Is there anything in the logs?
    HTH

  • Statement in resumable session 'SYS.SYS_IMPORT_FULL_01.1' was timed out

    I am working on Oracle 10.2.0.2 database on Solaris 10.
    I am trying to import a schema into the database but the datapump job was hanging due to resumable timeout. Temp tablespace ran out of space.
    Alert log
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
    Wed Sep 22 07:38:24 2010
    statement in resumable session 'SYS.SYS_IMPORT_FULL_01.1' was timed out
    Wed Sep 22 08:00:52 2010
    alter database tempfile '/u01/oradata/DATA/temp01.dbf' autoextend on next 400M maxsize 16G
    Wed Sep 22 08:00:53 2010
    Completed: alter database tempfile '/u01/oradata/DATA/temp01.dbf' autoextend on next 400M maxsize 16G
    Import log
    Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    The status of the job is executing.
    Worker 1 Status:
    State: EXECUTING
    Object Schema: TAINT
    Object Name: AALTAINT_IDX0
    Object Type: SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Completed Objects: 160
    Worker Parallelism: 1
    Now I have increased the size of the temp file and want the datapump job to continue. Will I be able to force it or should I wait for the datapump job to retry after the timeout period?
    Edited by: user11971085 on 22-Sep-2010 00:18

    Hi,
    1) After resumable timeout , it will be resumed
    2) You can use one more option
    impdp>help
    impdp> start_job jobname
    It will resume the paused job
    Hope this answers your question
    Kind Regards,
    Rakesh jayappa

  • Connection refused to host: connection timed out

    I have been struggling with this problem a couple of days now so I really hope someone can help me. I am trying to get rmi to work in a NAT environment. We use a firewall, so I have opened port 1099 and 2020 which I use as a fixed port for communication (just to be sure it is not a firewall thing); I use the following code:
    //server
    public class ComputeEngine extends UnicastRemoteObject
    implements Compute
    public ComputeEngine() throws RemoteException {
    super();
    public String getMessage() {
    return "you have successfully connected to the server";
    public static void main(String[] args) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String port = args[0];
    try {
    RMISocketFactory.setSocketFactory(new FixedPortRMISocketFactory(Integer.parseInt(port)));
    } catch (IOException e) {
    e.printStackTrace();
    LocateRegistry.createRegistry( 1099 );
    catch (RemoteException e1) {
    e1.printStackTrace();
    String name = "rmi://localhost/Compute";
    try {
    Compute engine = new ComputeEngine();
    Naming.rebind(name, engine);
    System.out.println("ComputeEngine bound");
    while(true); //stay alive
    } catch (Exception e) {
    System.err.println("ComputeEngine exception: " + e.getMessage());
    e.printStackTrace();
    public Socket createSocket(String host, int port)
    throws IOException {
    System.out.println("creating socket to host : " + host + " on port " + port);
    return new Socket(host, port);
    * Create a server socket on the specified port (port 0 indicates
    * an anonymous port) and writes out some debugging info
    * @param port the port number
    * @return the server socket on the specified port
    * @exception IOException if an I/O error occurs during server socket
    * creation
    * @since JDK1.1
    public ServerSocket createServerSocket(int port)
    throws IOException {
    port = (port == 0 ? portnumber : port);
    System.out.println("creating ServerSocket on port " + port);
    return new ServerSocket(port);
    //client
    public class ComputePi {
    public static void main(String args[]) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String name = "rmi://" + args[0] + "/Compute";
    Compute comp = (Compute) Naming.lookup(name);
    System.out.println("connected to server");
    System.out.println(comp.getMessage());
    } catch (Exception e) {
    System.err.println("ComputePi exception: " + e.getMessage());
    e.printStackTrace();
    I start the client with:
    java -Djava.security.policy=policy.all -jar client.jar 194.2.4.6:1099
    I start the server with:
    java -Djava.rmi.server.codebase="file:/C:\RMI\\server.jar" -Djava.rmi.server.hostname="194.2.4.6" -Djava.security.policy=policy.all -jar server.jar 2020
    As you can see I set the "-Djava.rmi.server.hostname" property which should be a solution to the NAT problem. However I keep getting the following exception!!??!!:
    ComputePi exception: Connection refused to host: 194.2.4.6; nested exception is:
         java.net.ConnectException: Connection timed out: connect
    java.rmi.ConnectException: Connection refused to host: 194.2.4.6; nested exception is:
         java.net.ConnectException: Connection timed out: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
         at sun.rmi.server.UnicastRef.newCall(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Unknown Source)
         at client.ComputePi.main(ComputePi.java:14)
    Caused by: 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 sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
         ... 7 more
    Can anyone help me with this, please??????
    kind regards,
    Christiaan

    Yes, i can ping it from the client.
    I have also noticed that when i run my server with the option -Djava.rmi.server.hostname=IP the applications stops automatically after a few minuts...
    I'm not using nothing about codebase. I have the stub and skel classes in server and client machines..
    I add the complete exception:
    Client exception: java.rmi.ConnectException: Connection refused to host: external_IP; nested exception is:
    java.net.ConnectException: Connection timed out: connect
    java.rmi.ConnectException: Connection refused to host: external_IP; nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
    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:101)
    at example.hello.Server_Stub.sayHello(Unknown Source)
    at example.hello.Client.main(Client.java:55)
    Caused by: java.net.ConnectException: Connection timed out: 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 java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
    SocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
    SocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
    ... 5 more

  • Connection timed out when making RMI call

    Hello,
    I am using a combination of Spring Remoting and Scheduling with Quartz Timer. Both are using RMI as a communication stack. The RMI server is located in sydney while the client is located in the US. This incurs large network lag which causes my RMI method calls to timeout. I am able to do a lookup on the RMI object and receive a stub reference to it with no problem but as soon as I try to invoke a remote method on that stub it eventually times out.
    Thinking it was truly a timeout issue I implemented a Custom socket factory for RMI using RMISocketFactory.setSocketFactory(new TimeoutSocketFactory(120000));Here is the custom TimeoutSocketFactory:
    public class TimeoutSocketFactory extends RMISocketFactory {
            private int timeout;
            private static final Logger log = Logger.getLogger(TimeoutSocketFactory.class);
            public TimeoutSocketFactory(int timeout) {
                this.timeout = timeout;
            public Socket createSocket(String host, int port) throws IOException {
                log.debug("Creating timeout socket with value - " + timeout);
                Socket ret = getDefaultSocketFactory().createSocket(host, port);
                ret.setSoTimeout(timeout);
                return ret;
            public ServerSocket createServerSocket(int port) throws IOException {
                ServerSocket ss = getDefaultSocketFactory().createServerSocket(port);
                ss.setSoTimeout(timeout);
                return ss;
    }I implemented the custom socket factory both on the RMI server and on the RMI client. This had no effect on the time outs that occured when trying to make an RMI call to the server even though the sockets were being built by this custom class (have logging in place).
    Is there something else I need to do to increase the timeout period? And how do I know if it's a server or a client issue?
    Thanks,
    Anthony Bargnesi
    [Exception StackTrace]
    java.rmi.ConnectException: Connection refused to host: 172.16.10.97; nested exception is:
         java.net.ConnectException: Connection timed out: 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 org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.invoke(Unknown Source)
         at com.aquent.rmi.test.RMIClient.connectService(RMIClient.java:46)
         at com.aquent.rmi.test.RMIClient.main(RMIClient.java:81)
    Caused by: java.net.ConnectException: Connection timed out: 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: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 com.aquent.rmi.test.TimeoutFactory.createSocket(TimeoutFactory.java:21)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)

    Well this is a connect timeout, not a read timeout, so it has nothing to do with your socket factory, and your socket factory won't help. It's a connectivity issue. Can you ping that host from the client? Can you telnet to port 7?
    In fact no socket factory will help because there is no way of increasing the connect timeout beyond the default: you can only reduce it.

  • Chat System: ConnectException: Connection timed out: connect

    Hi There,
    I am developing a chat system as part of a University project.
    To explain what I have implemented:
    I have three java classes;
    1. Chat Server class which is constantly listening for incoming socket connection on a particular socket:
    while (true)
    Socket client = server.accept ();
    System.out.println ("Accepted from " + client.getInetAddress ());
    ChatHandler c = new ChatHandler (client);
    c.start ();
    2. Chat Handler class uses a thread for each client to handle multiple clients:
    public ChatHandler (Socket s) throws IOException
    this.s = s;
    i = new DataInputStream (new BufferedInputStream (s.getInputStream ()));
    o = new DataOutputStream (new BufferedOutputStream (s.getOutputStream ()));
    public void run ()
    try
    handlers.addElement (this);
    while (true)
    String msg = i.readUTF ();
    broadcast (msg);
    catch (IOException ex)
    ex.printStackTrace ();
    finally
    handlers.removeElement (this);
    try
    s.close ();
    catch (IOException ex)
    ex.printStackTrace();
    protected static void broadcast (String message)
    synchronized (handlers)
    Enumeration e = handlers.elements ();
    while (e.hasMoreElements ())
    ChatHandler c = (ChatHandler) e.nextElement ();
    try
    synchronized (c.o)
    c.o.writeUTF (message);
    c.o.flush ();
    catch (IOException ex)
    c.stop ();
    3. Chat Client class which has a simple GUI and sends messages to the server to be broadcasted to all other clients on the same socket port:
    public ChatClient (String title, InputStream i, OutputStream o)
    super (title);
    this.i = new DataInputStream (new BufferedInputStream (i));
    this.o = new DataOutputStream (new BufferedOutputStream (o));
    setLayout (new BorderLayout ());
    add ("Center", output = new TextArea ());
    output.setEditable (false);
    add ("South", input = new TextField ());
    pack ();
    show ();
    input.requestFocus ();
    listener = new Thread (this);
    listener.start ();
    public void run ()
    try
    while (true)
    String line = i.readUTF ();
    output.appendText (line + "\n");
    catch (IOException ex)
    ex.printStackTrace ();
    finally
    listener = null;
    input.hide ();
    validate ();
    try
    o.close ();
    catch (IOException ex)
    ex.printStackTrace ();
    public boolean handleEvent (Event e)
    if ((e.target == input) && (e.id == Event.ACTION_EVENT)) {
    try {
    o.writeUTF ((String) e.arg);
    o.flush ();
    } catch (IOException ex) {
    ex.printStackTrace();
    listener.stop ();
    input.setText ("");
    return true;
    } else if ((e.target == this) && (e.id == Event.WINDOW_DESTROY)) {
    if (listener != null)
    listener.stop ();
    hide ();
    return true;
    return super.handleEvent (e);
    public static void main (String args[]) throws IOException
    Socket s = new Socket ("192.168.2.3",4449);
    new ChatClient ("Chat test", s.getInputStream (), s.getOutputStream ());
    On testing this simple app on my local host I have launched several instances of ChatClient and they interact perfectly between each other.
    Although when i test this app by launching ChatClient on another machine (using a wi-fi network connection at home), on the other machine that tries to connect to the hosting server (my machine) i get a "connection timed out" on the chatClient machine.
    I have added the port and ip addresses in concern to the exceptions to by-pass the firewall but i am still getting the timeout.
    Any suggestions?
    Thanks!

    Format your code with [ code ] tag pair.
    If you are a young university student I don't understand why current your code uses so many of
    too-too-too old APIs including deprecated ones.
    For example, DataInput/OutputStream should never be used for text I/Os because they aren't
    always reliable.
    Use Writers and Readers in modern Java programming
    Here's a simple and standard chat program example:
    (A few of obsolete APIs from your code remain here, but they are no problem.
    Tested both on localhost and a LAN.)
    /* ChatServer.java */
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class ChatServer{
      ServerSocket server;
      public ChatServer(){
        try{
          server = new ServerSocket(4449);
          while (true){
            Socket client = server.accept();
            System.out.println("Accepted from " + client.getInetAddress());
            ChatHandler c = new ChatHandler(client);
            c.start ();
        catch (IOException e){
          e.printStackTrace();
      public static void main(String[] args){
        new ChatServer();
    class ChatHandler extends Thread{
      static Vector<ChatHandler> handlers = new Vector<ChatHandler>();
      Socket s;
      BufferedReader i;
      PrintWriter o;
      public ChatHandler(Socket s) throws IOException{
        this.s = s;
        i = new BufferedReader(new InputStreamReader(s.getInputStream()));
        o = new PrintWriter
         (new BufferedWriter(new OutputStreamWriter(s.getOutputStream())));
      public void run(){
        try{
          handlers.addElement(this);
          while (true){
            String msg = i.readLine();
            broadcast(msg);
        catch (IOException ex){
          ex.printStackTrace();
        finally{
          handlers.removeElement(this);
          try{
            s.close();
          catch (IOException e){
            e.printStackTrace();
      protected static void broadcast(String message){
        synchronized (handlers){
          Enumeration e = handlers.elements();
          while (e.hasMoreElements()){
            ChatHandler c = (ChatHandler)(e.nextElement());
            synchronized (c.o){
              c.o.println(message);
              c.o.flush();
    /* ChatClient.java */
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    public class ChatClient extends JFrame implements Runnable{
      Socket socket;
      JTextArea output;
      JTextField input;
      BufferedReader i;
      PrintWriter o;
      Thread listener;
      JButton endButton;
      public ChatClient (String title, Socket s){
        super(title);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        socket = s;
        try{
          i = new BufferedReader(new InputStreamReader(s.getInputStream()));
          o = new PrintWriter
           (new BufferedWriter(new OutputStreamWriter(s.getOutputStream())));
        catch (IOException ie){
          ie.printStackTrace();
        Container con = getContentPane();
        con.add (output = new JTextArea(), BorderLayout.CENTER);
        output.setEditable(false);
        con.add(input = new JTextField(), BorderLayout.SOUTH);
        con.add(endButton = new JButton("END"), BorderLayout.NORTH);
        input.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            o.println(input.getText());
            o.flush();
            input.setText("");
        endButton.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ev){
            try{
              socket.close();
            catch (IOException ie){
              ie.printStackTrace();
            System.exit(0);
        setBounds(50, 50, 500, 500);
        setVisible(true);
        input.requestFocusInWindow();
        listener = new Thread(this);
        listener.start();
      public void run(){
        try{
          while (true){
            String line = i.readLine();
            output.append(line + "\n");
        catch (IOException ex){
          ex.printStackTrace();
        finally{
          o.close();
      public static void main (String args[]) throws IOException{
        Socket sock = null;
        String addr = "127.0.0.1";
        if (args.length > 0){
          addr = args[0];
        sock = new Socket(addr, 4449);
        new ChatClient("Chat Client", sock);
    }

  • High number of "The connection has timed out" errors. Where do I set the time out period (variable and file name) - windows 7

    I usually use a wireless network at home and have very few time out problems with Firefox.
    I am travelling and using Optus Wireless broadband where the average ping to a site is 700+ms .
    I suspect that this is the cause of the high number of timeouts I am experiencing.
    Optus say there are no problems so I think I will have to set the timeout to a longer period.
    Please advise what variable name/s (and in which file) the timeout is set for LOADING PAGES.
    Thanks in anticipation.
    Greg Atkinson.
    By the way the same is happening in IE8
    and on many sites other than the Yahoo one below.
    ================Full Error Page ==============
    URL is http://au.mg4.mail.yahoo.com/dc/launch?.gx=1&.rand=81jkv757qfdqt
    =========================================
    The connection has timed out
    The server at au.mg4.mail.yahoo.com is taking too long to respond.
    * The site could be temporarily unavailable or too busy. Try again in a few moments.
    * If you are unable to load any pages, check your computer's network connection.
    * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Having the same problem 4 out of 5 times I try to navigate to a new site I get the error "connection has timed out".
    My I phone works fine on the same wireless connection so it must be something to do with the computer. The problem occurs on IE, firefox, and google chrome.
    I too would like to know how to how to either fix this problem or failing that to extend the length of time before the connection times out (which is currently only about 5 seconds).
    Please help!
    Thanks in advance

  • HELP!! "timed out" submiting video podcast through iweb to itunes

    I am trying to submit a vid podcast through iweb to itunes and am getting a timed out message. Please help. I have read other posts similar to my problem, and have checked to see that all of my fields are filled in. Don't know what the deal is. thanks for the help.

    This is what I received from iTunes help:
    Dear Eric,
    The iTunes team reviews each podcast submission. Depending on demand,
    it may take a week or two before the podcast is published.
    I'm sorry to hear you received an error when you tried to publish a
    podcast to the iTunes Store. If you are re-submitting a podcast for
    review, the iTunes Store may detect the submission as a duplicate and
    generate an error message stating that the feed has already been submitted.
    You can follow these steps to resubmit the podcast:
    1) Change the title and link fields of the RSS feed to something other
    than what they are now.
    2) Resubmit the podcast feed via iTunes.
    3) Once you have successfully submitted the podcast, you can change the
    title and link fields back to what they were.
    There are several less-common reasons iTunes might have displayed this
    error:
    * The podcast's RSS feed was not available.
    * The podcast's RSS feed timed out.
    * The podcast's RSS feed could not be validated.
    If you are the podcaster, make sure your podcast is available on the
    Internet. Your podcast's RSS feed also should conform to the iTunes
    extended podcast RSS specification.
    http://www.apple.com/itunes/store/podcaststechspecs.html
    If you're still having trouble, consider consulting the Apple
    Discussions forums, which have a wealth of information about specific issues.
    Click Producing Podcasts in the Pro Digital Production area of this page:
    http://discussions.apple.com
    If you are not the podcaster, please contact the podcaster and direct
    them to our specification.
    Thank you for your interest in the iTunes Store. Have a great day.
    Sincerely,
    Nicole
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww

  • Operation timed out (FSP network services manager)

    Received this error from five different RMAN jobs, all submitted at approx 6am, all failing within a couple of minutes. Resubmit of all five jobs worked fine. Many other jobs submitted at approx the same time worked fine. Time out does not appear to be related to waiting on tape drive resources.
    Any ideas as to cause? If this is a network thing, any way to extend the timeout or cause it to retry?
    Regards,
    Rich McClain
    ORA-19506: failed to create sequential file, name="SBT_TAPE/RMAN_SCMP.707724115.arch.1.7372.1", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    sbt__rpc_cat_query: Query for piece SBT_TAPE/RMAN_SCMP.707724115.arch.1.7372.1 failed.
    (Oracle Secure Backup error: 'operation timed out (FSP network services manager)').
    Snippet from obroxyd.log
    2010/01/08.06:02:57 [2543] failed to connect to admin scheduler - operation timed out (FSP network services manager)
    2010/01/08.06:03:02 [2543] client disconnect from IPC connection 4 (closing)
    2010/01/08.06:03:03 [2543] obproxyd is terminating now
    2010/01/08.06:03:11 [9770] failed to connect to admin scheduler - operation timed out (FSP network services manager)
    2010/01/08.06:03:16 [9770] client disconnect from IPC connection 4 (closing)
    2010/01/08.06:03:16 [9770] obproxyd is terminating now

    Either reconfigure CONNECT_TIMEOUT to be 0, which means wait indefinitely, or reconfigure CONNECT_TIMEOUT to be some higher value. Or, if the timeout is unacceptably long, turn on tracing for further information.
    If you have oracle metalink, then read the following note;
    Note:119706.1 - Troubleshooting Guide TNS-12535 & ORA-12535 Errors

  • Experiencing "timed out" error when uploading podcast

    I am experiencing a "timed out" error when uploading a podcast to iTunes. Using PC. I've updated iTunes...

    - You really need to ask the Basis team to extend the maximum run time for background processes (30 mins is too short).
    - You can also try to reduce the run time by setting up BOM Buffering in configuration so if the same BOM is used again and again (in your case of delete and recreate planned order, yes), it will read from memory.
    - You should set the planning horizon and use NETPL (net change in planning horizon) in daily run.  So that the run will only find the relevant changes in order proposal up to certain days, thus reduce run time.
    - You should discuss with your BASIS team about the list of background job in the batch windows.  Specify time in such a way that the performance-critical job (i.e., MRP, reschedule sales order, certain customized report, etc.) doesn't run at the same time.
    - You can increase the number of parallel processes to issue several jobs to run MRP at the same time.
    Rgrds,

  • Configure icm timed out

    Hi expert
    i need change the parameter of ICM.
    this error is in the portal. when i call a service with rfc.
    Error: -5
    Version 7010
    Component: ICM
    Connection to partner  timed out after 60s
    http://www.mialbumdefotos.com/fotos/32190/vista/icm.jpg.jpg
    I need to increase this value to 120
    in the imagen the error is in 60s
    where can i find  this file?
    /usr/sap/id/id in/ ?

    << Do not post the same question across a number of forums >>

  • BundleException: Timed Out

    I use OSGi and I create bundle called Server, which contains three classes and one of them is the bundle activator. I will publich the code of the three classes and then will write my problem. So the first class is calles "ServerThread" :
    public class ServerThread extends Thread implements Constants {
    private Socket socket;
    private DataInputStream serverDataIn;
    private DataOutputStream serverDataOut;
    private int intCommand;
    private HashMap statusHash;
    public ServerThread(Socket socket) {
    this.socket = socket;
    public void run() {
    try {
    serverDataOut = new DataOutputStream(socket.getOutputStream());
    serverDataIn = new DataInputStream(socket.getInputStream());
    } catch (Exception ioe) {
    ioe.printStackTrace();
    try {
    intCommand = serverDataIn.readInt();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    if (intCommand == LOGIN) {
    String name = "";
    String pass = "";
    try {
    name = serverDataIn.readUTF();
    pass = serverDataIn.readUTF();
    } catch (IOException e) {
    e.printStackTrace();
    if (!name.equals("") & !pass.equals("")) {
    statusHash.put(name, ONLINE);
    System.out.println("The user" + name + "is added in the statusHash");
    try {
    serverDataOut.writeInt(LOGIN);
    serverDataOut.writeBoolean(true);
    } catch (IOException e) {
    e.printStackTrace();
    if (intCommand == SEND_MESSAGE) {
    String receiver = "";
    String message = "";
    try {
    receiver = serverDataIn.readUTF();
    message = serverDataIn.readUTF();
    } catch (IOException e) {
    e.printStackTrace();
    if (!receiver.equals("") & !message.equals("")
    & Integer.parseInt(statusHash.get(receiver).toString()) == ONLINE) {
    System.out.println("Send message successful");
    try {
    serverDataOut.writeInt(SEND_MESSAGE);
    serverDataOut.writeBoolean(true);
    } catch (IOException e) {
    e.printStackTrace();
    ===========================================================
    The second class is :
    public class OpenSocket extends Thread {
    private static final int port = 8081;
    private ServerSocket serverSocket;
    private Socket socketServ;
    private ServerThread serverThread = new ServerThread(socketServ);
    public void run() {
    try {
    serverSocket = new ServerSocket(port);
    System.out.println("Server port : " + port);
    System.out.println("serverSocket : " + serverSocket);
    } catch (IOException ioe) {
    ioe.printStackTrace();
    while (true) {
    try {
    socketServ = serverSocket.accept();
    } catch (IOException e) {
    e.printStackTrace();
    serverThread.start();
    ===========================================================
    And the Activator class is :
    public class ServerActivator implements BundleActivator {
    OpenSocket openSocket = new OpenSocket();
    public void start(BundleContext arg0) throws Exception {
    // TODO Auto-generated method stub
    System.out.println("ServerActivator.start()");
    openSocket.start();
    public void stop(BundleContext arg0) throws Exception {
    // TODO Auto-generated method stub
    openSocket.stop();
    ===========================================================
    So my problem is that when I install the bundle and start it, is thrown BundleException: Timed Out. Can someone tell me why this happens ?

    I know. What I can't understand is how that code threw a BundleException when it doesn't even compile.

  • Read of HTTP Request POST parameters failed:Read timed out

    Hi !
    Any one seen this exception . any ideas of the cause?
    java.lang.RuntimeException: Read of HTTP Request POST parameters failed: Read timed out
    at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.j ava:665)
    at org.apache.catalina.connector.HttpRequestBase.getParameterValues(HttpRequestBase.java :737)
    at org.apache.catalina.connector.RequestFacade.getParameterValues(RequestFacade.java:170 )
    Thanks,

    Assuming there is nothing wrong with
    org.apache.catalina.connector.HttpRequestBase.parseParameters
    I can only think of 2 things:
    1. The timeout is set for an extremely short time in the Apache settings (server.xml&#51032;)
    2. The client application is sending the POST verry slow or incorrect. For example the
    client says that the POST is 500 long than sends 200 and leaves the connection open.
    You can try and post the following:
    request.txt:
    POST /somePath/somefile.js HTTP/1.1
    Host: localhost:44
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 45
    depreciatedButWontPostWithoutAName=some+valueThe client sending the request:
    import java.io.*;
    import java.net.*;
    import java.io.DataOutputStream;
    import java.applet.Applet;
    public class appTest extends Applet implements Runnable {
         public static final int HTTP_PORT = 80;
         public static final String hostName = "localhost";
         public void run() {
              try{
                   InetAddress addr = InetAddress.getByName(hostName);
                   Socket s = new Socket(addr,HTTP_PORT);
                   BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), "UTF8"));
                   s.setSoTimeout(2000);
                   File fileToSend = new File("request.txt");
                   FileInputStream fleHTML = new FileInputStream(fileToSend);
                   StringBuffer sbHTMFile = new StringBuffer();
                   int b = fleHTML.read();
                   while(b!=-1){
                        sbHTMFile.append((char) b);
                        b = fleHTML.read();
                   wr.write(sbHTMFile.toString());
                   wr.flush();
                   BufferedReader rd = new BufferedReader(new InputStreamReader(s.getInputStream()));
                   String line;
                   while ((line = rd.readLine()) != null) {
                        System.out.println(line);
                   wr.close();
                   rd.close();
                   } catch (Exception e) {
                        e.printStackTrace();
         public void init(){
              new Thread(this).start();
         public appTest(){
              new Thread(this).start();
         // main program
         public static void main(String argv[]) throws Exception {
              new appTest();
    }In appTest.java change HTTP_PORT to the port you need and hostName to the
    hostname you need.
    In request.txt change the /somePath/somefile.js to the location you desire.
    And change Host: localhost:44 to the hostname and post you desire.

Maybe you are looking for

  • Ios 6, my wifi doesnt work, even after switching wifi on and off, aswell as removing saved wifi spots and switching from manual to auto

    ios 6, my wifi doesnt work even after switching wifi on and off as well as removing saved wifi spots and tried switching from manual to auto it works intermittently after these changes are made, but still shuts off. i have ios 6 on both the iPhone 4

  • Microsoft Bluetooth Notebook Mouse 5000 continually drops and wont reconnec

    I have a Microsoft Bluetooth Notebook Mouse 5000 thats a few years old, but with my new OSX 10.6 MacBook Air, it keeps dropping the connection to the mouse. I can't tell if its when i close the lid all the time, sometimes it wont pick it up even when

  • Logitech MX Air with Mac Mini

    Just bought a Mac Mini today, displayed through my 42in Plasma TV. I wanted to find out if anyone knew about a 'freespace' or optical air mouse, like the Logitech MX Air Mouse, that could work with my Mac Mini. Or would the MX Air work with it? I'm j

  • Cost Estimate Run

    Hi Gurus, Please tell me why we run cost estimate and what is the use of it. What are impacts of running cost estimate? Please revert asap. Thank You

  • 2 Accounts

    I have 2 accounts. I have videos on the second account and want to add them to my iphone. When I plug into that and try to load those videos is says I can only sync to one account and says that it can only sync to one account and will erase what i ha