IOException in sending Request :: Connection refused: connect

I am using Oracle 10g release 2 windows XP Professional.
I am trying to shutdwon/startup my database thru Enterprise Management Console. However I get the error message:
IOException in sending Request :: Connection refused: connect
The following error message is in the emdctl.trc
(error = 10061)
2007-10-30 21:43:45 Thread-2500 WARN http: snmehl_connect: connect failed to (peaches.austin.rr.com:1158): No connection could be made because the target machine actively refused it.
(error = 10061)
2007-10-30 21:44:20 Thread-3392 WARN http: snmehl_connect: connect failed to (peaches.austin.rr.com:3938): No connection could be made because the target machine actively refused it.
(error = 10061)
2007-10-30 21:45:17 Thread-572 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-300,and testTZoffset for America/Chicago:-360 do not match
2007-10-30 21:45:18 Thread-572 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-300,and testTZoffset for America/Chicago:-360 do not match
Can you help me with this problem. Thanks!

REM Set environment variables ORACLE_HOME and ORACLE_SID in Windows System properties.
REM Open a Command Prompt window. Enter:
emctl stop agent
REM Identify an entry from supportedtzs.lst with an offset that matches the one in emdctl.trc
REM Edit emd.properties file replacing the agentTZRegion value with the one found in supportedtzs.lst.
REM For me this meant replacing agentTZRegion=American/Chicago with agentTZRegion=EST5EDT for a -300 offset
REM From Windows Services control panel, restart OracleDBConsoleorcl.
emctl start agent

Similar Messages

  • Java.lang.Exception: IOException in sending Request :: Connection refused:

    Hi all,
    I am a new to Oracle 10g.I am using Enterprise manager for DBA jobs.After ogging in to enterprise manager, when i click the refresh button, i get the folllowing error
    " java.lang.Exception: IOException in sending Request :: Connection refused: connect"
    Please do help to slove this problem.
    Thanks

    I'm having the same error in my console header. Here is the content of the emagent.trc file.
    Running 10gR2 on Win 2K3 server. (bold added for readability)
    emctl status dbconsole responds with 'EM Daemon is not running'
    2007-03-29 14:02:23 Thread-1776 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    2007-03-29 14:02:23 Thread-1776 WARN main: clear collection state due to OMS_version difference
    2007-03-29 14:02:23 Thread-1776 WARN command: Job Subsystem Timeout set at 600 seconds
    2007-03-29 14:02:24 Thread-1776 WARN upload: Upload manager has no Failure script: disabled
    2007-03-29 14:02:24 Thread-1776 WARN upload: Recovering left over xml files in upload directory
    2007-03-29 14:02:24 Thread-2920 ERROR command: nmejcn: received no status header from repository at http://dB_Domain:5500/em/upload/
    2007-03-29 14:02:24 Thread-1776 WARN upload: Recovered 0 left over xml files in upload directory
    2007-03-29 14:02:25 Thread-1776 WARN metadata: Metric collectSnapshot does not have any data columns
    2007-03-29 14:02:27 Thread-1776 WARN metadata: Metric Disk_Path does not have any data columns
    2007-03-29 14:02:27 Thread-1776 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2007-03-29 14:02:53 Thread-1776 WARN TargetManager: Regenerating all Metadata
    2007-03-29 14:05:17 Thread-1776 ERROR util.files: ERROR: nmeufis_new: failed in lfiopn on file: E:\oracle\product\10.2.0\db_3\dB_Domain_SIGD\sysman\emd\agntstmp.txt. error = 2 (No such file or directory)
    2007-03-29 14:05:28 Thread-1776 ERROR collector: nmecs_validateStateFile(): state file invalid : E:\oracle\product\10.2.0\db_3\dB_Domain_SIGD\sysman\emd\state\snapshot
    2007-03-29 14:05:28 Thread-1776 ERROR collector: Collector state files cleaned, severity will be resent
    2007-03-29 14:05:35 Thread-3660 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.
    2007-03-29 14:05:48 Thread-676 ERROR upload: Failed to delete/move xml file C:\WINDOWS\TEMP\X11.uod, ret = -2 ; agent exiting
    2007-03-29 14:05:48 Thread-676 ERROR : Signalled to Exit with status 3
    2007-03-29 14:05:48 Thread-1776 ERROR main: EMAgent abnormal terminating
    2007-03-29 14:06:29 Thread-2996 WARN command: Job Subsystem Timeout set at 600 seconds
    2007-03-29 14:06:29 Thread-2996 WARN upload: Upload manager has no Failure script: disabled
    2007-03-29 14:06:29 Thread-2996 WARN upload: Recovering left over xml files in upload directory
    2007-03-29 14:06:29 Thread-2996 WARN upload: Recovered 5 left over xml files in upload directory
    2007-03-29 14:06:29 Thread-2996 WARN upload: Merging leftover data file named errors.dat
    2007-03-29 14:06:29 Thread-2996 WARN upload: Merging leftover data file named severity.dat
    2007-03-29 14:06:30 Thread-2996 WARN upload: Merging leftover data file named rawdata.dat
    2007-03-29 14:06:30 Thread-2996 WARN metadata: Metric collectSnapshot does not have any data columns
    2007-03-29 14:06:31 Thread-2996 WARN metadata: Metric Disk_Path does not have any data columns
    2007-03-29 14:06:31 Thread-2996 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2007-03-29 14:07:29 Thread-2328 ERROR util.files: nmeufile_getLength: Error in lfilen. Error = 2 (No such file or directory)
    2007-03-29 14:15:19 Thread-1960 WARN http: 268,-1: nmehl_httpListener: signaled to exit from emctl
    Thank you for your help!
    Message was edited by:
    david.d

  • Java.lang.Exception: IOException is sending Request :: Connection refused

    Hi, everybody.
    Oracle Database Control 10g displays on the home page the following message
    -- java.lang.Exception: IOException is sending Request :: Connection refused
    after killing some database lock that is impeding the users to successfully carry out their daily activities.
    What could be the reason ?

    agent come with db was not working on that time

  • OEM IOException in sending Request :: Connection refused

    Hi,
    When I want to connect to OEM, I recieve an "java.lang.Exception: IOException in sending Request :: Connection refused".
    In emdb.nohup there is "----- Fri Apr 25 12:11:57 2008::The agentTZRegion value in /oracle/10.2.0/SUNAPART_ARTED08/sysman/config/emd.properties is not in agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.
    If you modified the timezone setting in the environment, please stop the agent and exectute 'emctl resetTZ agent' and also execute the script 'mgmt_target.set_agent_tzrgn' to get the value propagated to repository -----"
    But when I want to stop or start or resetTZ anget It xon't work.
    emctl stop agent -->
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    Killed
    Agent is not running.
    Ok agent is not running, but when I do
    emctl resetTZ agent -->
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved
    Killed
    Agent is running. Stop the agent and rerun the command.
    ???? why ????
    I wonder what the Killed is ?
    It appears allready when I do emctl start dbconsole -->
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://SUNAPART:1158/em/console/aboutApplication
    Killed
    Starting Oracle Enterprise Manager 10g Database Control ....Killed
    started.
    Logs are generated in directory /oracle/10.2.0/SUNAPART_ARTED08/sysman/log
    and emctl stop dbconsole -->
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://SUNAPART:1158/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    ... Killed
    Failed.
    but the dbconsole isn't longer availlable so it has work.
    Wan you help me solve my problem tks.

    The dbconsole is stopped, (I'va killed it, because stop doesn't work)
    When I do ps -ef | grep dbconsole I have nothing. (the same with agent) but I still have the message "Agent is running" when i want to resetTZ agent.
    In emoms.log, I've
    2008-04-25 13:59:50,178 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
    2008-04-25 13:59:50,583 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
    2008-04-25 13:59:50,720 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
    2008-04-25 13:59:50,871 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
    2008-04-25 13:59:50,875 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2008-04-25 13:59:50,877 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2008-04-25 13:59:50,880 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2008-04-25 13:59:50,887 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.reports.em.RepIntg
    2008-04-25 13:59:50,890 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2008-04-25 13:59:50,893 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2008-04-25 13:59:50,896 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2008-04-25 13:59:50,898 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2008-04-25 13:59:50,901 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2008-04-25 13:59:50,904 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.271 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration

  • Agent Error? IOException in sending Request :: Connection refused: connect

    For the past couple of days, I have been running into the "IOException in sending Request :: Connection refused: connect" error. I am running 10.2.01 on Windows 2003R2.
    Along with this error, the DB Control shows agent unreachable.
    Is there anything that anyone knows that may have caused this issue?
    Thank You in advance,
    Jeff

    Jhep,
    Have you changed the timezone settings on the database server? Check emdctl.trc and see what it says. In the meanwhile, (a) stop dbconsole service, (b) execute emctl resetTZ agent and (c) restart dbconsole service.
    Kindly should refer to the following Metalink Notes for a possible workaround:
    bq. Metalink Note ID: 362888.1 "Startup Agent: EM Agent will not start due to Timezone mismatch (Daylight \\ Savings changes for Australia)" \\ Metalink Note ID: 409121.1 "Startup Agent: Agent Fails to Start due to Incorrect Timezone File Used as \\ Pointed by ORA_TZFILE" \\ Metalink Note ID: 388280.1 "Startup Agent: ORA-20233: Invalid agent name when running \\ mgmt_target.set_agent_tzrgn procedure in repository"
    Lastly, see if any of the following post(s) are of any assistance to you:
    bq. Oracle 10g EM DB console Host Preferred Credentials for Windows \\ Oracle 10g EM DB console Host Preferred Credentials for Windows \\ New Error -- Since DST 2007 \\ New Error -- Since DST 2007 \\ DST Patching for Grid Control Release 2 \\ Re: DST Patching for Grid Control Release 2
    Hope this resolves the issue.
    Regards,
    Naveed.

  • SQL2000 - Network error IOException: Connection refused: connect

    I am having trouble connecting to SQL Server through SQL Developer 1.2.1 Build 32.13.
    I am on XP Profesional SP2, had downloaded and install jtds-1.2.2 and when i try to connect i am getting the error, 'Status Failure - Network Error IOException: Connection Refused: connect'
    my default port is 1433
    i have enabled the TCP/IP at the Sqlserver and also disabled the firewall
    i don't have this problem in sql2005, but sql2000 send me this error..
    Can anyone help me??

    It probably isn't a sqldeveloper problem. Try to pin down the differences between your 2205 installation and your 2000 installation.

  • Error    java.lang.Exception: IOException in sending Request :: No rou

    hi
    Error
    java.lang.Exception: IOException in sending Request :: No route to host: connect
    this error occur when i open the EM every time,
    all my dba_users accounts are unlocked
    & when i tried to get the monitoring configuration the no item found dislplays
    what i have to so now any point
    thanks

    user8664817 wrote:
    10.2.0.3.0 on win2008(VMWARE) also i have number of invalid objects under different schemas on first installation
    wndows firewall is off.Chances are the "invalid objects" are a diversion ... utlrp.sql and move along.
    No route to host seems to point to network. Ping? TNSPing? DHCP? Route?

  • Connection Refused: Connect

    Hello again,
    we installed our Portal with:
    Windows 2003 + SQL Server
    SAP J2EE PL23
    EP6.0 and Patch 2 (us told in docs)
    our problem is that when we tried to logon to our portal with sap* user nothing appears !!!!
    The inicialization of our system seems to be ok....In the log appears: Portal initialization done.
    After that msg appers many with the folow errors:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at iaik.security.ssl.SSLSocket.<init>(Unknown Source)
         at org.w3c.www.protocol.http.f.a(Unknown Source)
         at org.w3c.www.protocol.http.f.markUsed(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.getConnection(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:323)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:336)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.send(YahooHbThread.java:209)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.run(YahooHbThread.java:95)
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at iaik.security.ssl.SSLSocket.<init>(Unknown Source)
         at org.w3c.www.protocol.http.f.a(Unknown Source)
         at org.w3c.www.protocol.http.f.markUsed(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.getConnection(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:323)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:336)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.send(YahooHbThread.java:209)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.run(YahooHbThread.java:95)
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at iaik.security.ssl.SSLSocket.<init>(Unknown Source)
         at org.w3c.www.protocol.http.f.a(Unknown Source)
         at org.w3c.www.protocol.http.f.markUsed(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.getConnection(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:323)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:336)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.send(YahooHbThread.java:209)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.run(YahooHbThread.java:95)
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at iaik.security.ssl.SSLSocket.<init>(Unknown Source)
         at org.w3c.www.protocol.http.f.a(Unknown Source)
         at org.w3c.www.protocol.http.f.markUsed(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.getConnection(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:323)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:336)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.send(YahooHbThread.java:209)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.run(YahooHbThread.java:95)
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
         at java.net.Socket.<init>(Socket.java:268)
         at java.net.Socket.<init>(Socket.java:122)
         at iaik.security.ssl.SSLSocket.<init>(Unknown Source)
         at org.w3c.www.protocol.http.f.a(Unknown Source)
         at org.w3c.www.protocol.http.f.markUsed(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.getConnection(Unknown Source)
         at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
         at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:323)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:336)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.send(YahooHbThread.java:209)
         at com.sapportals.portal.yahoo.runtime.YahooHbThread.run(YahooHbThread.java:95)
    What is this problem ?
    Can someone help us ?
    Thanks in advanced.

    but i am not send to the client when i accept the client connection immediately ,It doesn't matter when you send to the client. The answer is still the same. You send to a client via the socket you accepted from that client. That's what it's for.
    for example :
    first client_A connect to Server (port 2222) , than Client_B connect to Server (port 2222) , finally Client_C connect to Server (port 2222)You don't need to keep telling me the port number. If the ServerSocket is listening at port 2222 they will all connect via port 2222. They don't have any choice about that.
    and all not close the connection, but if I want to send some msg to Client_B from Server, how can i send the msg to client_B ?Via the socket you accepted from client B. I've already answered that.
    it's just like you said "you don't have to do anything about that. " ?Is that a question?
    You don't seem to have much idea about client-server socket programming. Have you read the Custom Networking tutorial?

  • Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)

    Hello All,
      There are some changes in out portal sever, but not related to SAP EP.
    So it is needed to restart the server. After restarting the server,
    we are not avail to start the server. There is nothing in the SAPMMC.
    "There is no item to display" is showing in the SAPMMC.
    So we tried couple of time to get the SAPMMC icons by restarting the server.
    But it is not getting any display in SAPMMC.
    I am sending some part of the latest log file of that server below:
    Our server name is INMAA02AS03.
    1.5#00145E3D3B630046000000000000175000041A3F6EB5EB39#1154759649523#com.sap.engine.core.cluster.impl6.ms.MSEventListener##com.sap.engine.core.cluster.impl6.ms.MSEventListener.putLogonInfo(protocol, port, serverCount)#######OrderedChannel for http service##0#0#Error##Plain###java.net.SocketException: Socket closed#
    #1.5#00145E3D3B630046000000010000175000041A3F6EB5EC0B#1154759649523#com.sap.engine.core.cluster.impl6.ms.MSEventListener##com.sap.engine.core.cluster.impl6.ms.MSEventListener.putLogonInfo(protocol, port, serverCount)#######OrderedChannel for http service##0#0#Error##Plain###java.net.SocketException: Socket closed
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
         at com.sap.engine.core.cluster.impl6.ms.MSMessageHeader.write(MSMessageHeader.java:401)
         at com.sap.engine.core.cluster.impl6.ms.MSRawConnection.sendRawMessage(MSRawConnection.java:1017)
         at com.sap.engine.core.cluster.impl6.ms.MSRawConnection.sendRawMessage(MSRawConnection.java:971)
         at com.sap.engine.core.cluster.impl6.ms.MSEventListener.putLogonInfo(MSEventListener.java:1374)
         at com.sap.engine.core.cluster.impl6.ms.MSConnectionImpl.putLogonInfo(MSConnectionImpl.java:605)
         at com.sap.engine.core.cluster.impl6.ClusterManagerImpl.putLogonInfo(ClusterManagerImpl.java:3144)
         at com.sap.engine.core.service630.context.cluster.session.CommunicationSessionContextImpl.putLogonInfo(CommunicationSessionContextImpl.java:143)
         at com.sap.engine.services.httpserver.dispatcher.HttpDispatcherFrame.putLogonInfo(HttpDispatcherFrame.java:854)
         at com.sap.engine.services.httpserver.dispatcher.HttpDispatcherFrame.closeSocket(HttpDispatcherFrame.java:800)
         at com.sap.engine.services.httpserver.dispatcher.HttpDispatcherFrame.stop(HttpDispatcherFrame.java:404)
         at com.sap.engine.core.service630.container.ServiceStopper.run(ServiceStopper.java:31)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl6.SingleThread.execute(SingleThread.java:78)
         at com.sap.engine.core.thread.impl6.SingleThread.run(SingleThread.java:148)
    #1.5#00145E3D3B630046000000020000175000041A3F6EB5F178#1154759649523#com.sap.engine.services.httpserver.dispatcher##com.sap.engine.services.httpserver.dispatcher#######OrderedChannel for http service##0#0#Error##Plain###Cannot update HTTP load balancing information in the Message service
    com.sap.engine.frame.cluster.ClusterException: Socket closed
         at com.sap.engine.core.cluster.impl6.ms.MSEventListener.putLogonInfo(MSEventListener.java:1377)
         at com.sap.engine.core.cluster.impl6.ms.MSConnectionImpl.putLogonInfo(MSConnectionImpl.java:605)
         at com.sap.engine.core.cluster.impl6.ClusterManagerImpl.putLogonInfo(ClusterManagerImpl.java:3144)
         at com.sap.engine.core.service630.context.cluster.session.CommunicationSessionContextImpl.putLogonInfo(CommunicationSessionContextImpl.java:143)
         at com.sap.engine.services.httpserver.dispatcher.HttpDispatcherFrame.putLogonInfo(HttpDispatcherFrame.java:854)
         at com.sap.engine.services.httpserver.dispatcher.HttpDispatcherFrame.closeSocket(HttpDispatcherFrame.java:800)
         at com.sap.engine.services.httpserver.dispatcher.HttpDispatcherFrame.stop(HttpDispatcherFrame.java:404)
         at com.sap.engine.core.service630.container.ServiceStopper.run(ServiceStopper.java:31)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl6.SingleThread.execute(SingleThread.java:78)
         at com.sap.engine.core.thread.impl6.SingleThread.run(SingleThread.java:148)
    Caused by: java.net.SocketException: Socket closed
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
         at com.sap.engine.core.cluster.impl6.ms.MSMessageHeader.write(MSMessageHeader.java:401)
         at com.sap.engine.core.cluster.impl6.ms.MSRawConnection.sendRawMessage(MSRawConnection.java:1017)
         at com.sap.engine.core.cluster.impl6.ms.MSRawConnection.sendRawMessage(MSRawConnection.java:971)
         at com.sap.engine.core.cluster.impl6.ms.MSEventListener.putLogonInfo(MSEventListener.java:1374)
         ... 10 more
    #1.5#00145E3D3B6300400000000B0000175000041A3F6EC43762#1154759650461#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000000D0000175000041A3F6EF146BF#1154759653414#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000000F0000175000041A3F6F1E56B0#1154759656367#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000110000175000041A3F6F4B6526#1154759659320#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000130000175000041A3F6F787519#1154759662273#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000150000175000041A3F6FA584C7#1154759665226#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000170000175000041A3F6FD29438#1154759668179#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000190000175000041A3F70014F86#1154759671242#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000001B0000175000041A3F70300A99#1154759674304#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000001D0000175000041A3F705D1A24#1154759677257#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000001F0000175000041A3F705D1B81#1154759677257#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###ReadThread: failed to connect to server 11 times#
    #1.5#00145E3D3B630040000000210000175000041A3F708A296B#1154759680210#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000230000175000041A3F70B738CB#1154759683163#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000250000175000041A3F70E4487A#1154759686116#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000270000175000041A3F7111581F#1154759689069#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000290000175000041A3F713E67B3#1154759692022#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000002B0000175000041A3F716B77A1#1154759694976#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000002D0000175000041A3F719886C2#1154759697929#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000002F0000175000041A3F71C596D5#1154759700882#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000310000175000041A3F71F45176#1154759703944#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000330000175000041A3F72230C96#1154759707007#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000350000175000041A3F72230DF3#1154759707007#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###ReadThread: failed to connect to server 21 times#
    #1.5#00145E3D3B630040000000370000175000041A3F72501BF9#1154759709960#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000390000175000041A3F727D2BC1#1154759712913#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000003B0000175000041A3F72AA3BCA#1154759715866#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000003D0000175000041A3F72D74B1A#1154759718819#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000003F0000175000041A3F73045A4C#1154759721772#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000410000175000041A3F73316A0D#1154759724725#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000430000175000041A3F735E799A#1154759727678#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000450000175000041A3F738D34D0#1154759730740#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000470000175000041A3F73BBEF81#1154759733803#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000490000175000041A3F73E8FF05#1154759736756#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000004B0000175000041A3F73E90064#1154759736756#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###ReadThread: failed to connect to server 31 times#
    #1.5#00145E3D3B6300400000004D0000175000041A3F74160E68#1154759739709#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000004F0000175000041A3F74431E16#1154759742662#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000510000175000041A3F74702DEA#1154759745615#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000530000175000041A3F749D421D#1154759748568#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000550000175000041A3F74CA4CD6#1154759751521#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000570000175000041A3F74F75CC8#1154759754474#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000590000175000041A3F75246C5C#1154759757427#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000005B0000175000041A3F75517C0B#1154759760381#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000005D0000175000041A3F7580368E#1154759763443#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B6300400000005F0000175000041A3F75AEF19A#1154759766505#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to INMAA02AS03/3201(Connection refused: connect)#
    #1.5#00145E3D3B630040000000610000175000041A3F75AEF2F2#1154759766505#com.sap.engine.core.locking.impl3.LockingManagerImpl##com.sap.engine.core.locking.impl3.LockingManagerImpl.jenqulib#######SAPEngine_System_Thread[impl:6]_5##0#0#Error#1#/System/Server#Plain###ReadThread: failed to connect to server 41 times#
    Any idea what to do?
    Please help me out.
    **Points will be rewarded for a suitable answer.
    Regards,
    Uttam.

    Hi Uttam,
    Were you able to solve the problem? I am also getting a similar error message. If you had solved your problem, please share, how?
    Thanks & Regards,
    Santhosh.C

  • Sockets:  Connection refused: connect

    Hello,
    I try to create to apps one is server the other client
    I inserted the code below.
    This is the server code:
    ServerSocket serverSocket = new ServerSocket(87);
    Socket s;
    s = serverSocket.accept();
    boolean b = true;
    while (b)
      s = serverSocket.accept();
      System.out.println("Connection from " + s.getInetAddress().getHostName());
      BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));
      BufferedWriter br = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
      BufferedReader consoleReader = new BufferedReader(new InputStreamReader(System.in));
      ObjectOutputStream oo = new ObjectOutputStream(s.getOutputStream());
      String str = bf.readLine();
      if (str != null)               
         System.out.println("Incomming message: " + str);               
         String consoleInput = consoleReader.readLine();
         if (consoleInput != null)
            oo.writeObject(consoleInput);
            oo.flush();
         else
            if (consoleInput.equals("stop"))
              oo.writeObject("Server will stop");
              oo.flush();
              b = false;
    }This is the client:
    Socket client = new Socket("localhost",87);
    BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));
    boolean b = true;
    while (b)
       String str = br.readLine();
       if (str != null)
           System.out.println("receive message: " + str);
           if ( str.equals("Server will stop"))
              b =false;
    }The server starts up. But the client gives an java.net.ConnectException: Connection refused: connect
    Client is only listening to what the server is sending.
    The server send what's entered on the console.
    Can somebody tell me what I'm doin wrong?
    Thanks a lot
    Dries

    Here are the exact files that I used and are running on my machine:
    // Client.java
    import java.io.*;
    import java.net.*;
    public class Client
         public static void main(String args[]) throws Exception
              Socket client = new Socket("localhost",6655);
              BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));
              boolean b = true;
              while (b)
                 String str = br.readLine();
              if (str != null)
                     System.out.println("receive message: " + str);
              if ( str.equals("Server will stop"))
                        b =false;
    //Server.java
    import java.io.*;
    import java.net.*;
    public class Server
         public static void main(String args[]) throws Exception
              ServerSocket serverSocket = new ServerSocket(6655);
         System.out.println("Bind done");
              Socket s;
              s = serverSocket.accept();
              boolean b = true;
              while (b)
                System.out.println("Connection from " + s.getInetAddress().getHostName());
                BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));
                BufferedWriter br = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
                BufferedReader consoleReader = new BufferedReader(new InputStreamReader(System.in));
                ObjectOutputStream oo = new ObjectOutputStream(s.getOutputStream());
                String str = bf.readLine();
              if (str != null)
                    System.out.println("Incomming message: " + str);
                    String consoleInput = consoleReader.readLine();
              if (consoleInput != null)
                   oo.writeObject(consoleInput);
                   oo.flush();
              else
              if (consoleInput.equals("stop"))
                     oo.writeObject("Server will stop");
                     oo.flush();
                     b = false;
    }Then, in one window, start "Server" and another start "Client". It works for me on Windows 2K system.

  • GetOutputStream()  -- Connection refused: connect

    Hi, i'm doing this (inside a function)
    URL receiver = new URL(url);
    HttpURLConnection receiverConnection  = (HttpURLConnection)(receiver.openConnection());
                receiverConnection.setDoInput(true);
                receiverConnection.setDoOutput(true);
                receiverConnection.setRequestProperty( "Authorization", "Basic " + encodedPassword);
                receiverConnection.setRequestProperty( "Content-type", "application/x-sap.rfc");
                System.setProperty("javax.xml.transform.TransformerFactory", "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
                TransformerFactory tFactory = TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
                Reader rd = new StringReader(strXml);
                StreamSource streamSource = new StreamSource(rd);
                PrintWriter pw = new PrintWriter(receiverConnection.getOutputStream(), false);
                StreamResult streamResult = new StreamResult(pw);
                transformer.transform(streamSource, streamResult);
                pw.flush();
                pw.close();and when i do the receiverConnection.getOutputStream() it throws
    "Connection refused: connect"... i'm using JDK 1.5 with tomcat 5.0...
    thanks in advanced!!!

    Comment out your call to setDoInput(true). See if that helps. If not, then it is probably a configuration issue on the server you are attempting to send to.
    - Saish

  • Servlet connection refused: connect

    here my problem can any one help
    javax.servlet.ServletException: XML Parsing error: IOException: Connection refused: connect
         at net.athenet.cable.LocationSubmitAction.run(LocationSubmitAction.java:57)
         at net.athenet.cable.ControllerServlet.doPost(ControllerServlet.java:118)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    I am using Jdeveloper 10.1.3.0.4

  • Javax.mail.MessagingException: Connection refused: connect on localhost

    Hello,
    I am using Tomcat5.0.28 for a javamail servlet program. I am giving the hostname as localhost. After entering the input details in my html file, i get the error- "javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect " .
    can anybody help me regarding in solving error.
    Thanks.

    First, you're using a very old version of JavaMail.  Please upgrade.  Some of the properties you're setting aren't supported in that old version.
    Second, you don't need the socket factory properties, get rid of them.
    Finally, it looks like you're trying to connect on port 143 using SSL.  Port 143 is the non-SSL port.  That's probably not going to work.  Still, it looks like something is refusing to let you connect at all.  If you really can telnet from the same machine your program is running on to the same server machine on port 143, then you probably have some sort of firewall that's preventing your program from connecting.  Please post the entire debug output if it still fails after correcting the problems above.  (Move the setDebug call to before the getStore call.)

  • Please help , "Connection refused: connect "

    hello,
    i have got this exception while connecting to server ?
    what does it mean ? and what can i do to solve this problem ?
    this is so important for me ! i have to solve this in a short time.
    thanks for helps.
    Musa YILMAZ
    // == ERROR
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.net.ConnectException: Connection refused: connect
    STACKTRACE:
    java.net.SocketException: java.net.ConnectException: Connection refused: connect
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
    at com.mysql.jdbc.Connection.<init>(Connection.java:430)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at pi.a(pi.java)
    at pi.b(pi.java)
    at Main.<init>(Main.java)
    at tk.run(tk.java)
    at java.lang.Thread.run(Unknown Source)
    ** END NESTED EXCEPTION **

    You are trying to connect to wrong host or port number
    or
    MySQL server that you are trying to connect is not running

  • SQL Server 2000/CFMX 7 - connection refused: connect

    Hi all,
    I have been trying to troubleshoot this for a few weeks now,
    I have looked high and low and tried multiple solutions that worked
    for other people, none have worked for me.
    I have SQL Server 2000 Version 8 and Coldfusion 7.0.2.
    I can't seem to make a database connect in Administrator. I
    have tried changing the port that SQL Server listens on, I made a
    new security role in SQL Server specifically for the database I'm
    creating, I tried making an ODBC connection (which can see the SQL
    Server) in windows then connecting to that, nothing is working.
    I thought it might be the windows firewall, it isn't since it
    is off, my TCP/IP protocol is enabled, I am running out of ideas.
    If anyone can suggest anything, please do this is what I see
    everytime.
    Connection verification failed for data source: IFDA
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket.
    Connection refused: connect
    I'm dying over here.
    Thanks.

    This might be a dumb question, but have you searched Google
    groups? Its one of the first places I go when I get error messages
    I don't understand.
    Googling this:
    "java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect"
    ..gave me 84 results (ok, a lot of them point back to these
    forums but I still find searching thru Google easier than using the
    built in search) - here's a
    Link
    hth - cheers.

Maybe you are looking for

  • Data mart status has beed reset by del the in between req in source ODS

    Hi SDN, We have a situation where in which there is a daily delta laod going from ODS to Cube and we have reset data mart status accidentally by deleting the request which is in between multiple number of requests in the source ODS, now when we delet

  • Merging a set and hashmap

    Hi Guys, I have a set in which I store some unique userdefined objects,say a "Color" object. So my collection set will look as follows: set<Color> objects. For example:- (color1) (color2) (color3) (color4) (color5) (color6) (color7) (color8) (color9)

  • Premiere Pro CC refuses to render sequences

    I have a project in Premiere Pro where I have a lot of footage that needs to be rendered for editing. Lots of red here! However, any time I try to render by hitting Enter or even selecting a few bits to render in pieces, the rendering window comes up

  • Change code to Release folder

    hi all, Im new to TFS management. in my TFS i checked in my program in Development mode, now i want to move only the changes to QA mode, from there i have to move into Live mode. Im using VS 2013, Can you please let me know the steps.? Thanks In Adva

  • AR invoice does not have "no of packages" in the form setting

    In the AR invoice, I have 3 item with the same stock code. If summary type is "no summary", i can have the form setting's field, "no of packages" to show. But if I change summary type by item, there is no field "no of packages" to select. Any workaro