Connection Closed forcibly by the remote host

Hi,
I am trying to print a file on the Client machine by getting the file object from the Server. For this, I used an Applet to call the Servlet and in return the Servlet will send the file object as response. It worked well for me, but I got the following error at one time.
[5/2/08 8:55:00:087 CDT] 0000001d SRTServletReq E SRVE0133E: An error occurred while parsing parameters. java.io.IOException: Async IO operation failed, reason:
RC: 10054 An existing connection was forcibly closed by the remote host.
     at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:474)
     at com.ibm.io.async.AsyncSocketChannelHelper.read(AsyncSocketChannelHelper.java:217)
     at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.readAIOSync(AioSocketIOChannel.java:205)
     at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTCPReadRequestContextImpl.java:150)
     at com.ibm.ws.tcp.channel.impl.TCPReadRequestContextImpl.read(TCPReadRequestContextImpl.java:109)
     at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.fillABuffer(HttpServiceContextImpl.java:4124)
     at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readSingleBlock(HttpServiceContextImpl.java:3368)
     at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readBodyBuffer(HttpServiceContextImpl.java:3473)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl.getRequestBodyBuffer(HttpInboundServiceContextImpl.java:1606)
     at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.bufferIsGood(WCCByteBufferInputStream.java:109)
     at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.read(WCCByteBufferInputStream.java:79)
     at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:294)
     at com.ibm.ws.webcontainer.servlet.RequestUtils.parsePostData(RequestUtils.java:297)
     at com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters(SRTServletRequest.java:1476)
     at com.ibm.ws.webcontainer.srt.SRTServletRequest.getParameterMap(SRTServletRequest.java:2006)
     at com.ibm.faces.context.MultipartExternalContextImpl$MultiPartServletRequestWrapper.<init>(MultipartExternalContextImpl.java:454)
     at com.ibm.faces.context.MultipartExternalContextImpl.<init>(MultipartExternalContextImpl.java:98)
     at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFacesContext(MultipartFacesContextFactoryImpl.java:77)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:192)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
     at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65)
     at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)
     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
     at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
I am not able find the exact reason for this exception, because I couldn't reproduce the same scenario. Can any one tell the exact reason for this exception and how to solve this problem.
Thank You.
Edited by: Ramesh_Pappala on May 5, 2008 11:54 AM

Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
Also, you are posting to the wrong forum.
http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf

Similar Messages

  • TcpListener not working on Azure: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

    Hi Everybody,
    i'm playing a little bit with Windows Azure and I'm blocked with a really simple issue (or maybe not).
    I've created a Cloud Service containing one simple Worker Role. I've configured an EndPoint in the WorkerRole configuration, which allows Input connections via tcp on port 10100.
    Here the ServiceDefinition.csdef file content:
    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="EmacCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-01.2.3">
    <WorkerRole name="TcpListenerWorkerRole" vmsize="Small">
    <Imports>
    <Import moduleName="Diagnostics" />
    <Import moduleName="RemoteAccess" />
    <Import moduleName="RemoteForwarder" />
    </Imports>
    <Endpoints>
    <InputEndpoint name="Endpoint1" protocol="tcp" port="10100" />
    </Endpoints>
    </WorkerRole>
    </ServiceDefinition>
    This WorkerRole is just creating a TcpListener object listening to the configured port (using the RoleEnvironment instance) and waits for an incoming connection. It receives a message and returns a hardcoded message (see code snippet below).
    namespace TcpListenerWorkerRole
    using System;
    using System.Net;
    using Microsoft.WindowsAzure.ServiceRuntime;
    using System.Net.Sockets;
    using System.Text;
    using Roche.Emac.Infrastructure;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.WindowsAzure.Diagnostics;
    using System.Linq;
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    LoggingProvider.Logger.Info("TcpListenerWorkerRole entry point called");
    TcpListener listener = null;
    try
    listener = new TcpListener(RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    LoggingProvider.Logger.Info(string.Format("TcpListener started at '{0}:{1}'", RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Address, RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Port));
    catch (SocketException ex)
    LoggingProvider.Logger.Exception("Unexpected exception while creating the TcpListener", ex);
    return;
    while (true)
    Task.Run(async () =>
    TcpClient client = await listener.AcceptTcpClientAsync();
    LoggingProvider.Logger.Info(string.Format("Client connected. Address='{0}'", client.Client.RemoteEndPoint.ToString()));
    NetworkStream networkStream = client.GetStream();
    StreamReader reader = new StreamReader(networkStream);
    StreamWriter writer = new StreamWriter(networkStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    while (true)
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    LoggingProvider.Logger.Info("This is what the host sent to you: " + input+". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    break;
    catch (Exception ex)
    LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    break;
    }).Wait();
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
    RoleEnvironment.Changing += RoleEnvironment_Changing;
    return base.OnStart();
    private void RoleEnvironment_Changing(object sender, RoleEnvironmentChangingEventArgs e)
    // If a configuration setting is changing
    LoggingProvider.Logger.Info("RoleEnvironment is changing....");
    if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
    // Set e.Cancel to true to restart this role instance
    e.Cancel = true;
    As you can see, nothing special is being done. I've used the RoleEnvironment.CurrentRoleInstance.InstanceEndpoints to retrieve the current IPEndpoint.
    Running the Cloud Service in the Windows Azure Compute Emulator everything works fine, but when I deploy it in Azure, then I receive the following Exception:
    2014-08-06 14:55:23,816 [Role Start Thread] INFO EMAC Log - TcpListenerWorkerRole entry point called
    2014-08-06 14:55:24,145 [Role Start Thread] INFO EMAC Log - TcpListener started at '100.74.10.55:10100'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Client connected. Address='196.3.50.254:51934'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Buffer size: 65536
    2014-08-06 15:06:45,491 [9] FATAL EMAC Log - Unexpected exception while Reading the request
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    at TcpListenerWorkerRole.WorkerRole.<>c__DisplayClass0.<<Run>b__2>d__0.MoveNext() in C:\Work\Own projects\EMAC\AzureCloudEmac\TcpListenerWorkerRole\WorkerRole.cs:line 60
    I've already tried to configure an internal port in the ServiceDefinition.csdef file, but I get the same exception there.
    As you can see, the client can connect to the service (the log shows the message: Client connected with the address) but when it tries to read the bytes from the stream, it throws the exception.
    For me it seems like Azure is preventing the retrieval of the message. I've tried to disable the Firewall in the VM in Azure and the same continues happening.
    I'm using Windows Azure SDK 2.3
    Any help will be very very welcome!
    Thanks in advance!
    Javier
    En caso de que la respuesta te sirva, porfavor, márcala como válida
    Muchas gracias y suerte!
    Javier Jiménez Roda
    Blog: http://jimenezroda.wordpress.com

    hi Javier,
    I changed your code like this:
    private AutoResetEvent connectionWaitHandle = new AutoResetEvent(false);
    public override void Run()
    TcpListener listener = null;
    try
    listener = new TcpListener(
    RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    catch (SocketException se)
    return;
    while (true)
    IAsyncResult result = listener.BeginAcceptTcpClient(HandleAsyncConnection, listener);
    connectionWaitHandle.WaitOne();
    The HandleAsync method is your "While (true)" code:
    private void HandleAsyncConnection(IAsyncResult result)
    TcpListener listener = (TcpListener)result.AsyncState;
    TcpClient client = listener.EndAcceptTcpClient(result);
    connectionWaitHandle.Set();
    NetworkStream netStream = client.GetStream();
    StreamReader reader = new StreamReader(netStream);
    StreamWriter writer = new StreamWriter(netStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    // LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    // LoggingProvider.Logger.Info("This is what the host sent to you: " + input + ". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    // LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    catch (Exception ex)
    //LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    Please try it. For this error message, I suggest you could refer to this thread (http://stackoverflow.com/questions/6173763/using-windows-azure-to-use-as-a-tcp-server
    ) and this post (http://stackoverflow.com/a/5420788).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • WCF service connection forcibly closed by the remote host for large data

    Hello ,
                        WCF service is used to generate excel report , When the stored procedure returns large data around 30,000 records. Service fails
    to return the data . Below is the mentioned erorr log :
    System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP
    response to <service url> This could be due to the service
     endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by
    the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException:
    The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException:
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
    ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout).
       --- End of inner exception stack trace ---
    Server stack trace:
       at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at IDataSetService.GetMastersData(Int32 tableID, String userID, String action, Int32 maxRecordLimit, Auditor& audit, DataSet& resultSet, Object[] FieldValues)
       at SPARC.UI.Web.Entities.Reports.Framework.Presenters.MasterPresenter.GetDataSet(Int32 masterID, Object[] procParams, Auditor& audit, Int32 maxRecordLimit).
    WEB CONFIG SETTINGS OF SERVICE
    <httpRuntime maxRequestLength="2147483647" executionTimeout="360"/>
    <binding name="BasicHttpBinding_Common"  closeTimeout="10:00:00"  openTimeout="10:00:00"
           receiveTimeout="10:00:00"  sendTimeout="10:00:00"  allowCookies="false"
           bypassProxyOnLocal="false"  hostNameComparisonMode="StrongWildcard"
           maxBufferSize="2147483647"  maxBufferPoolSize="0"  maxReceivedMessageSize="2147483647"
           messageEncoding="Text"  textEncoding="utf-8"   transferMode="Buffered"
           useDefaultWebProxy="true">
    <readerQuotas     maxDepth="2147483647"
          maxStringContentLength="2147483647"  maxArrayLength="2147483647"
          maxBytesPerRead="2147483647"  maxNameTableCharCount="2147483647" />
         <security mode="None"> 
    WEB CONFIG SETTINGS OF CLIENT
    <httpRuntime maxRequestLength="2147483647" requestValidationMode="2.0"/>
    <binding name="BasicHttpBinding_Common"
           closeTimeout="10:00:00"       openTimeout="10:00:00"
           receiveTimeout="10:00:00"       sendTimeout="10:00:00"
            allowCookies="false"        bypassProxyOnLocal="false"
            hostNameComparisonMode="StrongWildcard"        maxBufferSize="2147483647"
            maxBufferPoolSize="2147483647"        maxReceivedMessageSize="2147483647"
            messageEncoding="Text"        textEncoding="utf-8"
            transferMode="Buffered"        useDefaultWebProxy="true">
     <readerQuotas
           maxDepth="2147483647"
           maxStringContentLength="2147483647"
           maxArrayLength="2147483647"
           maxBytesPerRead="2147483647"
           maxNameTableCharCount="2147483647" />   

    Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
    A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
    http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
    Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
    Also, you are posting to the wrong forum.
    http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf

  • Connection closed by the remote host

    Hello everyone.
    I'm getting this problem in XI:
    When a NON-SAP system is sending messages to XI via HTTP protocol (SOAP adapter), we are getting this error:
    "An existing connection was forcibly closed by the remote host"
    The guy from the non-sap system (Real Estate) got this error when he is sending a big amount of data.
    When the amount data is reduced, this problem is not happening, so all messages passed ok.
    In the other case, he needs to send them in batches.
    We are trying to find out where the problem is.
    Has anybody any idea of this?

    Hi
    Check this out, a similar issue due to data size
    400 Bad HTTP request : when calling proxy from SAP
    Regards
    Vishnu

  • Detecting When a Non-Blocking Socket Is Closed by the Remote Host

    Hi,
    Using NIO non blocked sockets how do I detect when a Non-Blocking Socket Is Closed by the Remote Host?
    What I have read is:
    The only way to detect that the remote host has closed the connection is to attempt to read or write from the connection. If the remote host properly closed the connection, read() will return -1. If the connection was not terminated normally, read() and write() will throw an exception.
    I have written a server test program using NIO and an applet connecting to the server program via sockets.
    When I after a successful connection shuts down the browser following happens: The code below comes in an endless loop though mySelector.select returns 0 every time. (The selector is registered for OP_READ). size = 1.
    while (true) {
    int n = mySelector.select();
    int size = mySelector.keys().size();
    if (n == 0) continue;
    Is this an expected result?
    How do I get to know what client has lost connection?
    My environment:
    W2000
    java 1.4.1 build 1.4.1_01-b01
    Browser used: IE 5.0
    Many thanks for your help on this matter!
    Regards Magnus Wistr�m

    What you're doing looks OK to me.
    I wonder whether your thread is being interrupted by Thread.intterupt() somewhere. Try putting a Thread.interrupted() before the select call.
    Sylvia.

  • I recently installed CS4, and I can not make a connection to my website.  Message an FTP error occurred and cannot make a connection to host. The remote host cannot be found.

    I recently installed CS4, and I can not make a connection to my website.  Message an FTP error occurred and cannot make a connection to host. The remote host cannot be found.

    Open up your site definition (double-click on the site name in the File panel or choose Site > Manage Sites > Edit) and go to the Remote Info category. There, click Use Firewall (if it isn't already selected) - press Test to try the default firewall settings. If that doesn't work, click Firewall Settings. You'll see two relevant settings about 2/3 down - Firewall host and Firewall port. If Firewall port is 21, there probably is something blocking the port.
    On Windows XP, you may have the Windows Firewall installed and blocking. Here's how you get to it:
    To open Windows Firewall
    1.
    Click Start and then click Control Panel.
    2.
    In the control panel, click Windows Security Center.
    3.
    Click Windows Firewall.
    Once you have that open, you'll need to set Dreamweaver as an exception to blocking:
    On the Exceptions tab, click Add                     Program.
    In the list of programs, click the name of the program (Dreamweaver) that you                     want to add, and then click OK. If the name of your program is                     not in the list of programs, click Browse to locate the Dreamweaver.exe in the Program Files folder and then click OK.
    Hope this helps - Joe
    Joseph Lowery
    Author, Dreamweaver CS4 Bible

  • CS4 "The connection to the remote host has been lost"

    Suddenly I get the error message (CS4) when I try connecting to remote hosts: "The connection to the remote host has been lost. Click Refresh to reconnect." It is impossible to connect to ANY remote host.
    This happens for all my sites, on remote servers in different countries, so it must be a DW problem. Please advice.

    Have you tried using Passive mode:
    Site Definition > Advanced > click the Passive FTP box and see if that works.
    Nadia
    Adobe Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • There is no connection to the remote host

    Hi,
    I have installed the NFR 1.01 on OES2. I have an agent on an other OES2 also and an agent on a Netware6.5 sp7 server. In the admin console is see all agents but no volumes. When i click on the Netware agent i receive a message "There is no connection to the remote host".
    On the main screen in the "scan collection" when i ask for "rebuild storage list" nothing happens. (except "rebuild is in progress" the whole day long).
    Whats wrong or what have I missed?
    Thanks
    Herman

    Herman,
    In your agentncp config please clear the Alternate Hostname, and restart
    the agent. Does the agent heartbeat in to the engine?
    thanks,
    NSM Development
    On 10/21/2010 4:36 AM, Herman wrote:
    >
    > [image:
    > file:///C:/DOCUME%7E1/VEHERMAN/LOCALS%7E1/Temp/msohtmlclip1/01/clip_image002.jpg]Hi,
    >
    > I cannot insert a picture, so i will type over the settings:
    > (settings on the same server OES2)
    >
    > -----------------------------
    > Directory Service Interface Config
    > -----------------------------
    > Host adress: 10.0.0.67
    > Service Ports: HTTPS: 3009
    > Management Mode: Automatic
    > Data Path: /var/opt/novell/filereporter/dsi-edir/data
    > Default Server: 10.0.0.67
    >
    > Proxy Account: CN=NFRProxy.O=psi
    > Admins Groups: CN=NFRAdmins.O=psi
    > Users Group: CN=NFRUsers.O=psi
    > log Path: /var/opt/novell/filereporter/dsi-edir/log
    > log File Size: 10240 Kb Log file Count: 10
    > Level Log: 5
    >
    >
    >
    > -----------------
    > Engine Service Config
    > -----------------------------
    > Host adress: 10.0.0.67
    > Service Ports:
    >
    > client HTTPS: 3033 HTTP: 0
    > Agent HTTPS: 3035 HTTP: 0
    >
    >
    > Data Path: /var/opt/novell/filereporter/engine
    > Debug Logging: Disabled
    > Heartbeat: 60 seconds
    > DSI Address: 10.0.0.67:3009
    > Use SSL: Yes
    > Scans per volume: 2
    >
    >
    > -----------------
    > AgentNCP Service Config
    > -----------------------------
    > Host adress: 10.0.0.67
    > Service Ports: HTTPS: 3037 HTTP: 0
    >
    >
    > Data Path: /var/opt/novell/filereporter/agentncp
    > Debug Logging: Disabled
    > Heartbeat: 60 seconds
    > DSI Address: 10.0.0.67:3035
    > Use SSL: Yes
    > Alternate Hostname: 10.0.0.67
    >
    >
    >
    > I hope this is the info you want.
    >
    > Herman
    >
    >

  • Unable to delete file on the remote host

    Hi,
    I tried to delete a file on the remote host using File.delete method as well as using Runtime.getRuntime.exec("del filename")
    But both of them failed to work. First one returned false, but the second one is throwing IOException always.
    I am trying this through a java application in Windows NT environment. I am using jdk1.3. How can i solve this problem?.
    IOException occured at DataLoadFromTxtToOra exeBatchForTWS: CreateProcess: del \\ERSWEB\DTemp\ERS\HEB_428\DATAFILES\ERSWEB\DLCOMMA.txt error=2
    Regards,
    Babu

    you should be able to do that if you have rights on the file, try the following code and substitute the computer/share names:
                   File aFile = new File("\\\\COMPUTER\\share\\filename.ext");
                   System.out.println("Read: " + aFile.canRead());
                   System.out.println("Write: " + aFile.canWrite());
                   System.out.println("Exists: " + aFile.exists());
                   System.out.println("File: " + aFile.isFile());
                   aFile.delete();Mind the slashes: a single backslash is causing a escape character: \n for example is a (unix) return. A double \\ defeats it and results in a single \ in the filename
    If everything returns true I think the file will be deleted. If isFile() returns false you've got the path/filename wrong.

  • Connecting my iPhone using the remote app.

    I am trying to connect my iPhone using the remote app, nothing seems to work. I have been told to go to Preferences > Devices and allow iTunes to search for iPhone ect but there isn't this option when I go there?

    You do not have to dock your iPhone to use an iOS remote app to control your Mac.
    There are both Wifi and Bluetooth style iOS remote apps for both iPhone/iPod and iPad.
    Apple makes the one you are using. I believe that Apple's app can use both WiFi and Bluetooth.
    I use a very exceptional Wifi remote app on iOS that is called Rowmote Pro.
    This app has a really good feature set, plus you can control other aspects of your Mac with it.

  • There is a problem with this connection's security certificate The remote computer cannot be authenticated due to problems with its security certificate. Security certificate problems might indicate an attempt to fool you or intercept any data you send

    Hi,
    I have this Windows 2008 R2 on which I installed remoteapp some years ago.
    Now the certificate expired and I get the message
    "There is a problem with this connection's security certificate
    The remote computer cannot be authenticated due to problems with its security certificate.
    Security certificate problems might indicate an attempt to fool you or intercept any data you send to the remote computer."
    How should I renew the certificate? I already went to certification store and tried to renew certificate with same key but then it says "the request contains nor certificate template information".
    Please advise.
    J.
    J.
    Jan Hoedt

    Does the computer account have Enroll permission to the certificate template?
    From the Server running your CA, run mmc, click File then Add/Remove Snap-in...
    Add Certificate Templates and click OK.
    Find the certificate template, then right click and select properties.  On my CA its call ed RemoteDesktopComputers but might be called something different depending on what what template your certificate is based on.
    On the security tab, click Oblect types, check Computers then OK. Enter the Computername and click OK.  Then give your computer account Enroll permisssion.
    HTH,
    JB

  • CCMS Error - There are system problems on the remote host (system failure)

    Hi,
    I have installed the SAPCCMSR agent in the AccAD(Accelerated Application Delivery) server. However, when I execute OS07 and try to view the CPU usage, I encountered this error:
    There are system problems on the remote host (system failure)
    Message no. S1308
    Any idea what does the error mean?
    Thanks.
    KY

    Hi,
    Thanks for replying. The problem has been resolved after upgrading the sapccmsr.
    Thanks.
    Regards,
    KY

  • HT1491 I've tried downloading 3 seprate songs thur iTunes on my iPhone 4S and every time it says download incomplete and ask to retry but continues the say message. I've restarted my phone, checked internet connection, closed out of the app, etc.

    I've tried downloading 3 seprate songs thur iTunes on my iPhone 4S and every time it says download incomplete and ask to retry but continues the same message. I've restarted my phone, checked internet connection, closed out of the app, etc.

    Hello Bdev15,
    I would be concerned too if the songs I purchased from iTunes were not downloading to my iPhone. You have taken some great troubleshooting steps already, and thank you for providing the details of the steps you too.  I have a few additional suggestions to get it downloaded to your iPhone.
    First, I recommend checking to see if the download was interrupted:
    If your download was interrupted using your iPhone, iPad, or iPod touch
    From the Home screen, tap the iTunes app.
    For iPhone or iPod touch, tap More > Downloads. For iPad, tap Downloads.
    Enter your account name and password if prompted.
    Tap the blue download arrow to resume.
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    If the songs still do not download, next I recommend downloading the songs when connected to another network.  For example, if you are using the cellular network, you could switch to Wi-Fi, or you could try an alternate Wi-Fi network.  Follow the steps in the section titled "iPhone, iPad, or iPod touch > Music" in the article below to download the songs:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to download the songs, you can report an issue with these purchases using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best,
    Sheila M.

  • [MFC] Error Importing logs using SCP - "Error while downloading file. The remote host has terminated the connection"

    Background: 
    In order to transfer logs to MFC, we had to use an intermediate logging server in our OOB network.  When this logging server crashed we had to rebuild the server with new hardware and SCP no longer worked.
    Issue: 
    The host key changed on the new server and had to be manually updated.  We suspected it was related to the hosts key but had difficulty finding where the known hosts info was stored.
    Solution: 
    Go to your install location of MFC and remove the known_hosts file.  In our case the file was located at:  "D:\Program Files\IronPort Systems\Mail Flow Central\mailFC\tmp\known_hosts".  Instead of removing the file, we renamed it to known_hosts.old and restarted the MFC service.  Afterwards we could see all the old logs importing.
    The issue itself was not difficult to resolve, it just took more time than expected for something that would seem straightforward.  To complicate things, we even raised a query to customercare who came back saying that they do not support the server on which MFC is running.  But clearly the source of the issue was related to the application rather than the server itself.

    Thanks for your comment qetzacoatl, however I don't this this will work for me, I am on a team, and we need to be able to check-in/out files and make sure we don't override eachothers work. I also don't want to have to use 2 programs to accomplish the task one should be able to do. Its now 3 weeks going and I can't get any work done, it seems like its getting worse. Nobody from Adobe seems to want to comment on my thread at all....So maybe I should just find a completely new solution and get rid of DW all together, Aptana is looking VERY nice right about now.

  • HT1555 I've lost my Apple Remote. How can I connect my ipad with the remote app, as I can't obviously unpair the lost remote!?

    I lost my remote so downloaded the remote app onto my ipad, but unfortunately doesn't connect automatically. It says I have to disconnect the remote by accessing the Apple TV by the remote which I have lost.  HELP.

    to pair a remote app require a working remote
    or a device with a bound remote app
    if you don't have that you can borrow or buy a new remote

Maybe you are looking for

  • HT1473 How do you get your music from your ipod to your computer?

    Trying to figure out how to get my itunes from ipod to computer, my computer crashed and lost everything i mannually  uploaded. Store tunes are still there

  • Maximum recommended file size for public distribution?

    I'm producing a project with multiple PDFs that will be circulated to a goup of seniors aged 70 and older. I anticipate that some may be using older computers. Most of my PDFs are small, but one at 7.4 MB is at the smallest size I can output the docu

  • Can't see my podcast in US iTunes store

    When I search for my podcast in the US iTunes store, I get no results. Also, it is not listed in the category (Higher Education) when I browse through by name. I submitted the podcast through the UK iTunes site, but I thought the podcast would be sub

  • Computer not powering down

    Something interesting cropped up today - my iBook will not shut down using the normal method. I tried Apple>Shut Down>Shut Down, I tried Apple>Shut Down and then letting the count down expire, and lastly, when I hit the power button, I clicked on the

  • Accessing file sharing on different platforms

    Hello Recently I purchased a Mac mini server edition, for multiple reasons, the primary being file sharing.  For multiple reason I need terabytes of storage space to share over the Internet.  Completely unaware of how to run a server, I went ahead an