Re: 907 Invalid COD Local connection timed out after ~ 120000

I tried to download facebook, it just said “907 Invalid COD
Local connection timed out after ~ 120000”
I really need it with all of my heart, can anyone pls help me out?????

its a network issue most likely.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter

Similar Messages

  • "Local connection timed out after 120000"

    My Twitter and Facebook both won't refresh and i get a message saying "Local connection timed out after 120000"
    how do I fix this??

    i'm trying to figure this out myself at the moment.. its soo weird .. did u get it sorted by any chance

  • My itunes is up to date on windows vista but my iphone 3gs wont download the new 4.3 sofeware saying that network connection timed out after downloading for 7 minutes. can anyone help?

    my itunes is up to date on windows vista but my iphone 3gs wont download the new 4.3 sofeware saying that network connection timed out after downloading for 7 minutes. can anyone help?

    I have manage to update. You need to disable windows firewall and
    You have any other anti virus (I have kaspersky) you need to disable that as well

  • Update to Muse CC 2014.3 still have problem upload to FTP: Server not responding in time, FTP may not be supported on this server [Connection timed out after 15001 millseconds.] I have no problem with CC 2014. Can you suggest what do I have to do?

    Update to Muse CC 2014.3 still have problem upload to FTP: Server not responding in time, FTP may not be supported on this server [Connection timed out after 15001 millseconds.] I have no problem with CC 2014. Can you suggest what do I have to do?

    Hello.
    Today I got the opportunity to work with a Muse user with the same issue after performing the troubleshooting steps in the post above we decided to contact the host.
    Later i came to know that host took Muse user's IP and they were able to unblock it and muse started connecting to FTP host.
    I another scenario Host suggested Muse user to add :21 to the FTP address and then Muse was able to connect.
    Eg    ftp.domain.com:21
    Please try the 2 suggestion above and let me know if it works.
    Regards
    Vivek

  • SQLException:Connection timed out- after upgrading from oracle9i to 10g

    Hi,
    Recently we upgraded from oracle 9i to 10g.
    We are using Oracle JDBC Driver version - 10.1.0.5.0 .
    In the application, when RMI server starts, the connectionpool (developed using stack) will be filled with 10 instances of fresh connections.
    After keeping the RMI server idle for some time ( >24 hours ) , the first transaction sent to the Database (using the connection instance popped out from stack(connectionpool) ) terminates with following exception and from the second transaction onwards everything works normally.
    Exception------
    java.sql.SQLException: Io exception: Connection timed out
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
    at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:443)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:942)
    at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1183)
    at util.DatabaseManager.fetchData(DatabaseManager.java:255)
    at util.TextRequestImpl.presentText(TextRequestImpl.java:105)
    at util.TextRequestServer.presentText(TextRequestServer.java:146)
    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:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:148)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.sql.SQLException: Io exception: Connection timed out
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
    at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:443)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:942)
    at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1183)
    at util.DatabaseManager.fetchData(DatabaseManager.java:255)
    ... 13 more
    If am connecting to oracle9i(with Oracle JDBC Driver version - 9.0.2.0.0) ,everything works fine.
    Can anyone help me out to solve this issue?

    I attempted several upgrades and we decided it was better to implement the content under 10g fresh rather than attempt an upgrade.
    After 3-5 attempts through patching non of them provided us with re-produceable steps and we had different errors each time - mind you this was a few months back after initial release of upgrade patches.

  • 500 Connection timed out

    Hello,
    I receive a 500 Connection timed out error.
    I know that there are some threads to this error but I can´t find a solution for us.
    This is the error description:
    Error:            -5
    Version:        7000
    Component:  ICM
    Date/Time:    Tue Mar 04 07:02:38 2008
    Module:        icxxthr.c
    Line:             2698
    Server:         crmprod_CRP_01
    Error Tag:     {-}
    Detail:          Connection to partner timed out after 60s
    Now I have found in this forum some information about the parameters icm/keep_alive_timeout, icm/conn_timeout and icm/server_port_*
    Our settings for this parameters are:
    icm/server_port_0 = PROT=HTTP,PORT=8001
    icm/server_port_1 = PROT=SMTP,PORT=25
    icm/keep_alive_timeout (sec.) = 600
    icm/conn_timeout (msec.) = 5000
    Can someone please explain me which parameters occurs this error and which parameters I can change that the connection time is longer than 60 seconds?
    Where can I change the parameters?
    Regards
    Philipp

    Hi,
    Parameter icm/conn_timeout
    icm/conn_timeout is used to set the timeout when setting up the connection. If the timeout is exceeded, an error page is generally displayed with the information "404 Resource not found" "Partner not reached".
    Therefore, exceeding the icm/conn_timeout does not lead to a "500 Connection timed out" error message.
    Processing timeout and keepalive timeout
    The icm/keep_alive_timeout and icm/server_port_< n > parameters define the keepalive timeout and the processing timeout.
    ICM distinguishes between these two types of timeout.
    The processing timeout is the timeout between the HTTP request being issued and the HTTP response being received.
    If the ICM is used as a server for the relevant HTTP request (in other words, when it forwards an incoming request to the SAP Web Application Server), the processing timeout is the time that the ICM will wait until a response is received from the SAP Web Application Server (ABAP or J2EE). This interval may be exceeded with long-running applications in ABAP or the J2EE engine. If the processing timeouts are exceeded, the ICM sends the client an HTTP response with the error code "500 Connection timed out".
    If the ICM serves as a client for the relevant HTTP request (that is, when it forwards outgoing requests from the SAP Web Application Server), the processing timeout is the time that the ICM waits until a response is received from the network. This interval may also be exceeded in the case of long-running applications in the network.
    The keepalive timeout specifies how long the network should remain open after a request has been processed successfully so that the TCP/IP connection does not have to be reestablished if additional requests are received.
    When you set the keepalive timeout, this does not normally lead to timeout errors. You should set the keepalive timeout high enough that the connection does not have to be reestablished for requests that are sent within a short time of each other, but low enough that the number of unused open TCP/IP connections is not unnecessarily high. Exceeding the Keepalive timeout should never cause an error.
    Configuration of the ICM parameters for the processing timeout and the keepalive timeout
    For the ICM, the parameters mentioned here are in the instance profile.
    The processing timeout is set for individual services with the following parameter:
    icm/server_port_ < n > = ...,PROCTIMEOUT=< s >.
    The keepalive timeout can be set globally for all services of the ICM with the parameter icm/keepalive_timeout.
    You can also set it for individual services by using the following parameter:
    icm/server_port_ < n > = ...,TIMEOUT=< s >.
      If you set this parameter, it overwrites parameter icm/keepalive_timeout for the specified service.
    Even if the ICM serves as client for a request, the TIMEOUT and PROCTIMEOUT parameters of icm/server_port_ < n > control the timeouts for the relevant protocol, provided that you have set TIMEOUT or PROCTIMEOUT.
    If you have not set the PROCTIMEOUT parameter, TIMEOUT (or icm/keepalive_timeout) defines both the processing timeout and the keepalive timeout. Also, as of release 6.40, the keepalive timeout is limited to a maximum of 30 seconds.
    In a system where the default timeout settings of 30 seconds for the keepalive timeout and the processing timeout are not sufficient because of long-running applications, we recommend that you set the TIMEOUT and PROCTIMEOUT parameters for the relevant services so that you can configure them independently of each other. In addition, we recommend that you do not set the TIMEOUT value higher than necessary, for example, to the usual default value of 30 seconds.
    We recommend, for example, the following settings:
    icm/server_port_0 = PROT=HTTP,PORT=1080,TIMEOUT=30,PROCTIMEOUT=600
    to allow a maximum processing time of 10 minutes.
    I hope this info will help you to sort out the error you getting.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • '500 Connection timed out' Error in Sender SOAP Scenario

    Hi mates,
    I exposed o/b synch MI as a webservice. This webservice is received by a BPM and it triggers an IDOC generation program on R/3. BPM waits & collects the IDOCs and cosntructs the response from these IDOCs and returns it to the webservice caller.
    I'm making the SOAP call from a client program and I get the correct response in some cases where the data requested is not huge...normally with in 30 sec.
    But in some cases I get the error '500 Connection timed out' after 60 sec. The detailed message is as follows.
    <i>500 Connection timed out
    Connection timed out (-5)
    Error: -5
    Version: 6040
    Component: ICM
    Date/Time: Thu Jun 15 17:06:10 2006 
    Module: icxxthr_mt.c
    Line: 2551
    Server: hcidx1_DX1_03
    Detail: Connection to partner timed out after 60s</i>
    My BPM waits for 10 minutes and I set the parameter XI.Timeout to 600000 (i.e. 10 minutes) in module parameter table for the sender SOAP adapter as per the note 856597. And in SXMB_ADM, I set the parameter CHECK_FOR_ASYNC_RESPONSE_TIMEOUT of category SA_COMM to 600. In my client program, I set the timeout as 1 hour. All these config params are supposed to make sure that all the components involved wait for atleast 10 mins before they timeout.
    But I get timeout after 60 sec. Whats wrong/missing?
    I highly appreciate your inputs.
    thx in adv
    praveen

    Hey Praveen,
    <i>I'm making the SOAP call from a client program and I get the correct response in some cases where the data requested is not huge...normally with in 30 sec.
    But in some cases I get the error '500 Connection timed out' after 60 sec. The detailed message is as follows.</i>
    does this mean you are getting some response in some cases where u r payload is small , and if its large ur getting some timeout like this? Also is ur scenario Sync / Async?
    Assuming i understood correctly , i came a similar situation but that has to do some thing with Paging file / memory issues when the files are too huge and no. of users are high please let me know if this is the case.
    best regards
    Vara
    [PLEASE REWARD FOR POSTING]

  • "connection timed out" when connecting to outside wireless networks

    I have had trouble connecting to some wireless networks. I have no problem at home, at various cafes and such, nor at work. Some hotels or friends' houses that I've tried to connect to give me the message, "connection timed out" after I've entered the correct network and password. The router appears to work fine, since other people can get on the network. What am I missing?
    Any advice would be greatly appreciated.
    J

    Finally figured out what it was. Had to reset settings on the router after a lightning storm, contacted Linksys and they walked me through the appropriate sequence, troubleshooting on their end took about 20 mins but they were extremely helpful and very familiar with OS 10.5, all this time I thought it was the Mac's fault.
    Derek

  • SP01: Add-on connection timed out.

    I have upgraded an existing add-on to SP01. It runs fine in development mode and it installs correctly using and installer and Add-on Administration.
    When it tries to execute in production mode it gives the error: "Add-on connection timed out" after only about 12 seconds.
    I have checked the sapbobscom2005.dll and it is the correct version and special build.
    Any suggestions on how to resolve this are greatly appreciated.
    Mel

    Hi Mel,
    This behavior is not new in SP01 to my best knowledge!
    I remember having found the same behavior back in 2004...
    What you need to do is to first connect to UI API + afterwards eventually do some more initializations!
    HTH,
    Frank

  • Error : 907 invalid COD time out

    Hello, kindly assist me, I like to download series via my browser but lately I cant download when I do it will give me error: 907 invalid COD time out. I use a blackberry curve 7 9320. I cant even use my blackberry world. Please I need help and I have enough Data on my fone to download. Also I use MTN network. Thank you.

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Resend Service Books (pre-BB10 devices only)
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Itunes won't connect to store, network connection timed out

    hey
    its been a while now and its really starting to annoy me. my itunes won't connect to the store anymore and its been so long i can't remember what made it happen, i get an error message coming up saying network connection timed out ... no error codes appear.
    i am on vista using windows firewall any help would be great
    thanks
    ps ran the diagnostics thing and ...
    Microsoft Windows Vista Home Premium Edition Service Pack 1 (Build 6001)
    DIXONSXP F71IX1
    iTunes 8.1.1.10
    QuickTime 7.6
    FairPlay 1.3.6
    iPod Updater Library 8.1d19
    CD Driver 2.1.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 2.4.1.7
    Apple Mobile Device Driver 1.40.0.0
    Bonjour 1.0.6.2 (118.5)
    iTunes Serial Number 2CD15BEB3A65D713
    Current user is not an administrator.
    The current local date and time is 2009-05-11 22:55:05.
    iTunes is not running in safe mode.
    Video Display Information
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    ** External Plug-ins Information **
    No external plug-ins installed.
    ** Network Connectivity Tests **
    Network Adapter Information
    Adapter Name: {07364232-E167-4026-91DE-D8CFCE06A923}
    Description: 802.11g Mini Card Wireless Adapter
    IP Address: 192.168.1.67
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.254
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.254
    Lease Obtained: Mon May 11 21:59:06 2009
    Lease Expires: Tue May 12 21:59:06 2009
    DNS Servers: 192.168.1.254
    192.168.1.254
    Adapter Name: {FE8AEE52-0E28-4AF6-BF42-DA227457820E}
    Description: Realtek RTL8102E Family PCI-E Fast Ethernet NIC (NDIS 6.0)
    IP Address: 0.0.0.0
    Subnet Mask: 0.0.0.0
    Default Gateway: 192.168.1.254
    DHCP Enabled: Yes
    DHCP Server:
    Lease Obtained: Thu Jan 01 00:00:00 1970
    Lease Expires: Thu Jan 01 00:00:00 1970
    DNS Servers:
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was unsuccessful.
    The network connection timed out.
    Connection attempt to iTunes Store was unsuccessful.
    The network connection timed out.
    Secure connection attempt to iTunes Store was unsuccessful.
    The network connection timed out.
    Secure connection attempt to iPhone activation server unsuccessful.
    The network connection timed out.
    Last successful store access was 2009-03-12 22:50:42.
    Message was edited by: hurley_aiden

    Hi,
    What security software is running on the PC? The security software could be causing the issue, try to reconfigure or temporarily disable it.
    You can also try flushing the DNS as shown here: http://support.apple.com/kb/HT1527
    This article: http://support.apple.com/kb/TS1368 provides more troubleshooting tips.
    -Jason

  • 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);
    }

  • Flpclient error (connection timed out)

    Hi
    I am trying to access a webserver to download a file to my local machine. When I run the file, I am getting java.net.ConnectException...connection timed out. But if i use SSH SECURE SHELL client. I can log into the remote webserver and see the files. I wonder why my program is not getting connected. here is the code.
    import java.io.*;
    import sun.net.ftp.FtpClient;
    import java.lang.*;
    public class Download {
    public static void main(String[] args) {
    FtpClient fc;
    String filename = "test1.txt";
    String hostname = "www.mydevelopmentserver.com";
    String username = "ftptest";
    String password = "testing";
    String directory = "/mydata/home/work";
    try {
    fc = new FtpClient(hostname);
    fc.login(username, password);
    fc.binary();
    fc.cd(directory);
    InputStream theFile = fc.get(filename);
    int i = 0;
    FileOutputStream fos = new FileOutputStream(filename);
    System.out.println("getting file");
    while ((i = theFile.read()) != -1) {
    fos.write((byte) i);
    fc.closeServer();
    fos.close();
    catch (IOException e) {
    System.err.println(e);
    I am not providing the port any where. Could that be the problem...How can i provide the port?? with the hostname??
    Thanks

    I have used sockets for connection . I don't understand how do you like connect but you can use socket for a good connection :
    public class client
    Socket server1;
    InputStream inputnet;
    OutputStream outnet;
    String username;
    String host;
    public connect()
    try
    server1 = new Socket(host, 1111);
    catch( IOException e)
    return false;
    Please send me your comments;
    MIguel
    }

  • WebService Consuming Message Error: ConnectException: Connection timed out:

    Hi experts,
    I'm using NWDS to consume an external WebSevice and after create an iView on EP6.
    First I created a Deployable WebService and deployed it on the server, so I created a Java Application to call this WS using the following code:
    <i>public class JQSRedirect extends HttpServlet {
         protected void doGet(
              HttpServletRequest request,
              HttpServletResponse response)
              throws ServletException, IOException {
              PrintWriter pw = response.getWriter();
              try{
                   String applicationID = "XXXX";
                   String passwordID = "XXXXX";
                   String userID = "XXXXXX";
                   String redirectURL = "http://XXXXXXX/preportal.aspx?token={";
                   String token = "";
                   InitialContext in = new InitialContext();
                   NJQSService nJQSService = (NJQSService)in.lookup("wsclients/proxies/sap.com/jqsWebService/ng.com.xxxx.jqsWebServiceProxy");
              NJQSServiceSoap njqsPort = nJQSService.getLogicalPort();
                   GetTokenN getTokenN = new GetTokenN();
    +token = njqsPort.getTokenN(userID, applicationID, passwordID);
                   pw.write("token: " + token);
              catch(Exception e) {
                   pw.write(e.toString());
                   e.printStackTrace();
         protected void doPost(
              HttpServletRequest request,
              HttpServletResponse response)
              throws ServletException, IOException {
              //TODO : Implement
    }</i>
    When I'm testing , the system display the follow message: <b>java.rmi.RemoteException: Service call exception; nested exception is: java.net.ConnectException: Connection timed out: connect</b>
    How to correct this error?
    Regards,
    Armando

    Hi,
    I found a reason for the previous error, I setted up the firewall rules and it works, but now we have another error message:
    java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (405) Method Not Allowed. The requested URL was:"http://193.122.30.8/XXXXXXXX/NJQS/njqsservice.wsdl"
    I made some researchs on the SDN and another sites of Internet that suggests a proxy configuration, but I don't have proxy on my server.
    Any Idea that can help me?
    Regards,
    Armando

  • JDBC Lookup in PI 7.1 - SELECT ? FROM DUAL and Connection timed out

    Hi,
    We have a scenarios (Idoc to JMS) with JDBC lookup. We have used graphical JDBC lookup functionality.
    We are reading country names for a given country code from SAP in an external database table. The query is so simple. That  should not take much time
    Now the actual issues is,
    When we are executing the scenario, its taking quite a long time. Almost 6 minutes to excute a mapping. Which causing high performance issue in the Porduction.
    We started the inviestigation about found some interesting stuff. Here we have used Willy Introscope for the investigation.
    1. First few messages are taking quite a long time. LIke 6 minutes per messages. As i can see in the log i am getting below error in Willy,
    I dont know why PI is executing below queury apart from real secelt query to fetch the country name. I am getting below error: Error Message: Backends|ABCD2 mydatabase01-1526 (Oracle DB)|SQL|Dynamic|Query|SELECT ? FROM DUAL: java.sql.SQLException: Io exception: Connection timed out
    2. After couple of messages, interface works very normal. I mean rest of the messages works pretty fine.
    Please let me know if you have any idea about this error. What could be the problem for the issue.
    Thank you in advnace.
    Best Regards,
    Prasad.

    Did you check how many SQL requests were executed per one message ? Do you have a log of these SQL requests ?
    I assume that the country table is quite small, so that lookup should not be an issue.
    About this:
    >Message: Backends|ABCD2 mydatabase01-1526 (Oracle DB)|SQL|Dynamic|Query|SELECT ? FROM DUAL: >java.sql.SQLException: Io exception: Connection timed out
    1. I only know SELECT * FROM DUAL, not SELECT ? FROM DUAL. Better use the former
    2. the exception means that the database server can not be reached => check your network configuration
    So I assume that there is a network (performance) problem between PI and this Oracle server. Or the Oracle Server is so overloaded that it has (sometimes) problems in processing new requests.
    CSY
    Edited by: Christian Sy on Mar 9, 2010 10:17 AM

Maybe you are looking for

  • Netmask Changes in Solaris 10

    Hi Team, We tried to change the netmask and broadcast address in solaris 10 by below steps ifconfig ipge0 down ifconfig ipge0 <ipaddress> netmask <subnet mask> broadcast <address ifconfig ipge0 up But interface is not up. The command (ifconfig ipge0

  • Extended idoc not populating(urgent)

    hi guys i have extended the basic idoc type delvry03 and created an extension delvrtext for it.however when i trigger the idoc from an output type the extended segments are not populated.is there a way you can put a break point in the code.if that is

  • Named return value optimization

    Hello, can anybody tell me wheather sun's CC does named return value optimization for local variables of classes without copyconstructors? Objects of classes with copy-constructor don't get optimized as you can see in the attached example... (functio

  • Problem inserting special Hungarian characters into db

    Hi, I've posted this question in the database connection forum but put it here too because I don't know where to fit better. I read that it would be the most straightforward way to do everything in UTF-8 because it handles well special characters so

  • The new gestures in Lion do not seem to be working. Mac OS X 10.7.3) Is there some extra step that is needed

    While the rest of the updated Lion has installed flawlessly,  the new gestures just do not seem to work, particularly going from the full screen Safari to the full screeen Mail apps. Is some additional step required?