Unable to read output from server on a socket

Hello everyone,
I am trying to re-develop and application that traditionally is developed in VB.
Traditional program does following: communicates with host using telnet; login, send some text, read the output from server, validates output and terminated telnet connection.
I am trying to build same kind of application in Java using sockets, but I do not get any response from the server.
Any Suggestions ?
Thanks,
Code below:
String hostName="ip address here";
int portNum=23; //Verified that server's telnet runs on port 23
try
socket=new Socket(hostName,portNum);
out=new PrintWriter(socket.getOutputStream(),true);
in=new BufferedReader(new InputStreamReader(socket.getInputStream()));
}catch(UnknownHostException e){
System.err.println ("Host not found: " + hostName);
System.exit(1);
}catch(IOException e){
System.err.println("Could not get I/O for host: " + hostName + "on port: " + portNum);
System.exit(1);
BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
String userInput;
try{
while ((userInput=stdin.readLine()) != null)
out.println(userInput);
while (in.readLine() != null){
System.out.println("echo: "+in.readLine()); // I Expect server's output here but nothing happens.
}catch(IOException e){
System.err.println("User Input not read.");

while (in.readLine() != null){
System.out.println("echo: "+in.readLine()); // I Expect server's output here but nothing happens.I see two problems here:
1) in.readLine() only returns null if the socket is closed. You will be forever in that loop.
2) you are losing every second line of your input. If your telnet server sends only one line at the beginning, the readline() call in the while statement will swollow that.
If you want to do this in a single thread, you will have to use a method which won't block until input is available, such as the read(char[], int, int) method of BufferedReader.
You could also use two threads, of which one is printing the output and the other is taking user input. This has the advantage, that you are able to handle any connection errors immediatley instead of only when the user entered a command.
Does telnet send information about the end of an input sequence (like the end of the welcome message and the end of the answer to any issued command? If not, I'd say that you should use two threads, as you would have to do polling all the time otherwise.
Hope it helps.

Similar Messages

  • GUI locks up when trying to read output from server

    I have a client built in MVC fashion and have two GUI views. One view is for output from the server and input from the keyboard. The other view is for changing connection settings and starting the conection. The problem is when I make the call to connect from the connection GUI it is able to connect and set up the streams but both GUIs lock up once I start trying to output the text received from the server. The strange thing is that when I call these methods just from the Model and not via the GUI and its actionListener the whole thing works. I think it may have something to do with the loop locking up the GUI but don't how to resolve this.
    public void monitorServer()
    try
    char inputChar = (char)fromServer.read();
    while (socket.isConnected()==true && inputChar >-1 )
    inputChar = (char)fromServer.read();
    if ( ( (inputChar >= '0') && (inputChar <= 'z') )
    ||(inputChar == '\n')||(inputChar == '\r')
    ||(inputChar == ' ') )
    String tempString = (""+inputChar);
    mv.addText(tempString);
    catch(IOException ioException)
    JOptionPane.showMessageDialog(null,
    "Error: Failed to read message. Corrupt data sent by server",
    "Connection Error", JOptionPane.ERROR_MESSAGE);
    mv.addText("\nMessage not read.\n");
    The code above is the bot that screws it all up. mv is the other view that it is outputting the text to.
    Please help! I'm gonna fail my degree. :)

    you need to run your server connection part in another thread.

  • Named Error - unable to read locator from NCP

    OES 11 SP2 with DSFW
    when rcnovell-named loads, the named.run returns :
    dns/db : critical : unable to read locator from NCP server
    dns/db : critical : Failed to lod RRs of rootserver zone with error -10
    ldapsearch -x -b "" objectClass=dNIPlocator returns 0 object
    The DNSDHCP locator object is in the tree adn I have checked all it;s
    attributes and references
    I have tried out most if the TIDS on this
    Any help would be appreciated
    Steve

    Here they are :
    SASL/EXTERNAL authentication started
    SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn =auth
    SASL SSF: 0
    dn: cn=DNS_dsfw-2,ou=OESSystemObjects,o=WILLDAV
    dNIPServerDN: cn=dsfw-2,ou=OESSystemObjects,o=WILLDAV
    SASL/EXTERNAL authentication started
    SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn =auth
    SASL SSF: 0
    dn: cn=dsfw-2,ou=OESSystemObjects,o=WILLDAV
    dNIPLocatorPtr: cn=DNS-DHCP,o=WILLDAV
    dNIPDNSServerReference: cn=DNS_dsfw-2,ou=OESSystemObjects,o=WILLDAV
    Steve wrote:
    > Had to export LDAPCONF first ...
    >
    > But, my stntax must be wrong as no objexts are found
    >
    >
    > Steve wrote:
    >
    > > Sorry - BAD syntax in my LDAP statement :
    > > Should have been "ldapsearch -x -b "o=willdav"
    > > objectClass=dNIPlocator This does return the object :
    > >
    > > dn: cn=DNS-DHCP,o=willdav
    > > objectClass : Rop
    > > objectClass: dNIPLocator
    > > cn: DNS-DHCP
    > > name: DNS-DHCP
    > >
    > >
    > >
    > > I'm getting this response for wach query:
    > > ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
    > > additional info: SASL(-4): no mechanism available:
    > >
    > > My statemnet syntax is :
    > > ldapsearch -Y EXTERNAL -s base -b
    > > "cn=DNS_dsfw2,ou=OESSystemObjects,o=willdav" dNIPServerDN -LLL dn:
    > > cn=DNS_dsfw-2,ou=OESSystemObjects,o=willdav dNIPServerDN:
    > > cn=dsfw-2,ou=OESSystemObjects,o=willdav
    > >
    > >
    > >
    > > rkamalesh wrote:
    > >
    > > >
    > > > thhg;2303944 Wrote:
    > > > > OES 11 SP2 with DSFW
    > > > >
    > > > > when rcnovell-named loads, the named.run returns :
    > > > >
    > > > > dns/db : critical : unable to read locator from NCP server
    > > > > dns/db : critical : Failed to lod RRs of rootserver zone with
    > > > > error -10
    > > > >
    > > > >
    > > > >
    > > > > ldapsearch -x -b "" objectClass=dNIPlocator returns 0 object
    > > > >
    > > > > The DNSDHCP locator object is in the tree adn I have checked all
    > > > > it;s attributes and references
    > > > >
    > > > >
    > > > > I have tried out most if the TIDS on this
    > > > >
    > > > > Any help would be appreciated
    > > > >
    > > > > Steve
    > > >
    > > >
    > > > Hi Steve,
    > > >
    > > > Welcome back!! Could you please attempt the below searches and
    > > > copy the output here
    > > >
    > > > 1. Search for dNIPServerDN for NCP server object on DNS Server
    > > > object. frd:~/Desktop/x86_64 # ldapsearch -Y EXTERNAL -s base -b
    > > > "cn=DNS_frd,ou=OESSystemObjects,o=novell" dNIPServerDN -LLL
    > > > dn: cn=DNS_frd,ou=OESSystemObjects,o=novell
    > > > dNIPServerDN: cn=frd,ou=OESSystemObjects,o=novell
    > > >
    > > > 2. Search for dNIPLocatorPtr attribute on NCP server object that
    > > > points to DNS Locator object and ensure all are good.
    > > > frd:~/Desktop/x86_64 # ldapsearch -Y EXTERNAL -s base -b
    > > > cn=frd,ou=OESSystemObjects,o=novell dNIPDNSServerReference
    > > > dNIPLocatorPtr -LLL
    > > > dn: cn=frd,ou=OESSystemObjects,o=novell
    > > > dNIPLocatorPtr: cn=DNS-DHCP,ou=OESSystemObjects,o=novell
    > > > dNIPDNSServerReference: cn=DNS_frd,ou=OESSystemObjects,o=novell
    > > >
    > > > Based on this search result we will explore further.
    > > >
    > > > -Kamalesh

  • 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.

  • Unable to read configuration from NDS

    Dear All,
    I just finished setting up this Border 3.9 server few months ago, everything works fine; but from time to time I will get the following message during ACLCHECK as follow: For example this is a log from system console after I made some changes on the proxy access rule.
    2-19-2008 2:47:13 pm: BRDSRV-3.70-11
    Severity = 1
    Timestamp synchronization of BRDSRV.NLM is completed.
    2-19-2008 2:47:13 pm: BRDSRV-3.70-11
    Severity = 1
    Timestamp synchronization of ACLCHECK.NLM is completed.
    2-19-2008 2:47:47 pm: ACLCHECK-4.80-9
    Severity = 1
    ACLCHECK.NLM is reading rules from NDS...
    2-19-2008 2:47:47 pm: ACLCHECK-4.80-1
    Severity = 1
    ACLCHECK.NLM read 15 rules from NDS.
    2-19-2008 3:00:09 pm: BRDSRV-3.70-3
    Severity = 1
    Unable to read configuration from NDS (error - -669).
    Again, this BDM server running just fine without any issue, all access rules is working, VPN and filtering is working fine as well. Just can't think of why it throwing me this error from time to time. Any suggestion?
    Thank you,
    James

    In article <[email protected]>, Jkent wrote:
    > 2-19-2008 3:00:09 pm: BRDSRV-3.70-3
    > Severity = 1
    > Unable to read configuration from NDS (error - -669).
    >
    This is an invalid password error, and I'm unsure why you are getting it.
    Do you have a replica on the server?
    > Again, this BDM server running just fine without any issue, all access
    > rules is working, VPN and filtering is working fine as well. Just can't
    > think of why it throwing me this error from time to time. Any
    > suggestion?
    3.9 sp1 is supposed to come out on Feb 29 - keep an eye out for it.
    Craig Johnson
    Novell Support Connection SysOp
    *** For a current patch list, tips, handy files and books on
    BorderManager, go to http://www.craigjconsulting.com ***

  • Unable to read WSDL from URL

    This is my first web service. I thought I read that the
    service registers itself when first run, but it's just not jumping
    for me. I'd try registering it, but I'm not sure how to fill in all
    the blanks in the CF Administrator's Register Web Service form.
    I believe I'm doing this pretty plain and simple. Any ideas
    why this won't work? Tried both methods, both give the same error
    -- "Unable to read WSDL from URL"
    Calling URL:
    http://prod.trollsoftware.com/echotest.cfm
    Is looking at:
    http://prod.trollsoftware.com/trollws.cfc?wsdl
    which looks fine to me, but what do I know? This is my
    first....
    RLS

    I found this wonderful forum post
    {HERE}">http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=881689[/S
    and have been tyring to get it to run without removing the "/"
    mapping in case that would "break" something on my production
    server. I've tried hard to get Approach #2 to work as listed in
    that item, but to no avail. I can almost always see the XML code,
    but CF never wants to find it as an object reference.
    To answer your questions -- and thank you for your help on
    this! --
    1. Yes. I can see the XML code just fine.
    2. No. I get unknown host, connection failure, status not
    available.
    3. Doesn't work with IP, but that was expected as there are
    many domains on this server, not just this one.
    So, to continue, I thought I'd back up and try it on my CF7
    server. The program runs from here [
    http://www.saphea.com/echotest.cfm
    against the WSDL/CFC file here [
    http://components.findaportal.com/wsdl/trollws.cfc?wsdl
    I can see the XML file just fine, but the echotest does not work
    (code attached).
    I created a mapping of "/wsdl" to
    "d:\clients\components\wsdl" in trying to emulate Approach #2, and
    created a web subdomain of
    http://components.findaportal.com
    to "d:\clients\components", but no dice. Approach #2 may have to be
    abandoned.
    Why would it work for you and not me? That's the weird part.
    RLS

  • RD Gateway Manager - Unable to read RD Gateway Server Settings

    I'm trying to install a Remote Desktop Gateway into my domain, but I am running into a serious road-block... when I load RD Gateway Manager to configure the service, there is nothing to configure because it won't load my server into the console. When I try
    to connect to it manually, it returns the following error:
    "Unable to read RD Gateway Server Settings"
    There are no errors or warnings in Event Viewer. I can verify that C:\Windows\System32\tsgateway\rap.xml exists and is readable. I can verify that Network Policy does have a TS_CAP_01 policy and it is enabled. A valid certificate was applied during setup
    (and I've also tried choosing ask me later).
    I have already tried uninstalling and reinstalling the role service (including manually verifying that the policies are removed). I also have this working on another domain server, so I'm at a loss for what to look for... How can I resolve this so that I
    can finish configuring the service?

    Hello,
    Thanks for your post.
    From your description, I understand that you’re trying to install the RD Gateway role on a Windows Server 2008 R2-based domain computer. However, after the role
    is install, the RD Gateway Manager cannot be loaded into the RD Gateway Manager. The error prompts “Unable to read RD Gateway Server Settings”.
    Based on my experience, the issue may be caused by problematic installation or startup of the RD Gateway role. Before we troubleshoot the issue further, I recommend
    you to enable the Audit level logging in the Event Viewer and double-check the related clues in the event viewer. To do that, please use the following steps:
    1.    
    On the RD Gateway server open RD Gateway Manager. To open RD Gateway Manager, click
    Start, point to Administrative Tools, point to
    Remote Desktop Services, and then click RD Gateway Manager.
    2.    
    In the console tree, right-click the node that represents your RD Gateway server, which is named for the computer on which the RD Gateway server is running, and then
    click Properties.
    3.    
    On the
    Auditing tab, select or clear the appropriate check boxes to specify the events that you want to monitor for RD Gateway, and then click
    OK.
    When these events occur, you can monitor the corresponding events by using Windows Event Viewer. RD Gateway Manager server events are stored in Event Viewer under
    Application and Services Logs\Microsoft\Windows\Terminal Services-Gateway\.
    Let us know the result if possible. We’d like to help further based on your information replied. Thanks.
    Lionel Chen
    TechNet
    Subscriber Support in forum
    If you have any feedback on our support, please contact
    [email protected]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • RD Gateway Manager fails with "Unable to read RD Gateway Server Settings"

    The question is: Why can't I connect RD Gateway Manager on the local RD Gateway server?
    A month ago, I successfully configured a RD Gateway and to work with a RD Session Host.  I set up the RDG CAP and RAP policies.  I successfully tested connectivity through the gateway.
    Today, I tried to access the RD Gateway Manager and now I'm getting the following pop-up message:
    "Unable to read RD Gateway Server Settings"
    Everything still works and I am able to confirm that NPS is running the CAP policy that I configured in RD Gateway Manager.
    The certificate is from a trusted source.  The Event Log does not show any errors.

    Hi,
    Thank you for posting in Windows Server Forum.
    Please let us know some more information.
    Did you make any change after setting up the server correctly?
    Have you make any changes in IIS?
    Please recheck your connection setting again with following link and provide us the result.
    1. How To Work with RD Gateway in Windows Server 2012
    2. Deploying Remote Desktop Gateway RDS 2012
    Also go through this thread once.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • 1456 the remote management agent is unable to read information from edirectory

    I have novell 6.5 sp6 and Zfd 7sp1.
    From consoleOne I can done the action "remote control" when the
    workstation is already turn on.
    I can do the "remote wakeup" but after I can't do the login. I can't see
    the window novell login.
    When the machine is up I have tried to do the action "remote control" but
    I have this error:
    1456 the remote management agent is unable to read information from
    eDirectory.verify the workstation object is valid and the middle tier
    server is up and running.
    Into the event log I have seen this (under application):
    Remote operator: cn=moni.ou=mio.o=mytree.t=tree
    console address: CN=P30g-0510_1_1_1.ou=workstation.o=mytree.t=tree
    invalid NDS authentication informatiom.
    Please, Can sonmeone help me?
    thanks for all and excuse me for my poor english I'm italian.
    Regards
    Monica

    I have found my problem:
    On my server there isn't SLP configured.
    Now my problem became how to configure SLP !!!
    thanks for all
    Regards
    Monica

  • Unable to read rdbms_server_dn from init.ora

    I encounter a error message from trace file Oracle version is v8.1.7.0, windows NT server.
    But the database is working fine.., just the trace file often been amend with this message.
    *** SESSION ID:(14.482) 2006-09-27 08:40:36.453
    Unable to read rdbms_server_dn from init.ora
    Can some one help to solve it?
    Thanks

    hi
    refresh ur cache memory as
    Open IR :  Environment -
    > Clear SLD Data Cache.
    now try to import the same.
    evenif u wont get use Tcode: SXI_CACHE  and from menu bar use as
    XI RunTime Cahche------>Start Delta Refresh Cache (F6).
    regards
    sreeni

  • How to read file from server

    Hi,
    When i try to read file from server,the following message is displayed .
    ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException: the Permission (java.io.FilePermission /tmp read) has not been granted to EWMTRACKTEST. The PL/SQL to grant this is dbms_java.grant_permission( 'EWMTRACKTEST', 'SYS:java.io.FilePermission', ' /tmp', 'read' )
    ORA-06512: at "EWMTRACKTEST.GET_DIRLIST_EWM", line 1
    ORA-06512: at line 1
    thanks and regards
    P Prakash

    it seems obvious, user EWMTRACKTEST doesn`t have access to directory /tmp and the file under that.
    try to give read permission and try again.
    you could use command line like 'chmod' to grant permissions.

  • Unable to read payload from the message object in XI

    Hello Guys,
    Please help me about my problem in XI version 7.0.im quite new here.
    im trying to test my config but error message occured. "Unable to read payload from the message object"
    when i checked the comm channel this is the error message :
    Error during database connection to the database URL 'jdbc:sqlserver://172.16.40.20:1433;databasename=TRAVEL:SelectMethod=cursor' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://172.16.40.20:1433;databasename=TRAVEL:SelectMethod=cursor': com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "TRAVEL:SelectMethod=cursor" requested by the login. The login failed.'
    when i tried my login in sql it works...but in this message the login is failed..what shall i  do..
    Please advice.
    Thanks in advance
    aVaDuDz

    Hi
    Check with the connection string & Authorization of user you have used.
    MSSQL string is
    jdbc:microsoft:sqlserver://dbhost:1433;databaseName=example;SelectMethod=Cursor
    While doing JDBC its good to refer Note 831162 lot of problems can be resolved.
    Thanks
    Gaurav

  • Unable to read payload from the message object

    Hi
    I have a scenario where i am send request to http receiver and getting the response. When I am testing through WFETCH it is working fine. But when i am testing through XI I am getting the follwoing error
    Unable to read payload from the message object
    I have tested the XI payload in mapping. I have done all kinds of testing but it is still giving the same error.
    One more strange thing is
    I have done one BPM scenario where Data is coming from Source to BPM( which is asyn) and then from it will go from BPM to Target (which is sync) But when I am checking the SXMB_MONI... it showing the messages like this
    Source to BPM
    Target to BPM
    Target to BPM.
    But i think it should show message like
    Source to BPM
    BPM to Target
    Target to BPM
    why i am getting the flo

    Hi
    Check with the connection string & Authorization of user you have used.
    MSSQL string is
    jdbc:microsoft:sqlserver://dbhost:1433;databaseName=example;SelectMethod=Cursor
    While doing JDBC its good to refer Note 831162 lot of problems can be resolved.
    Thanks
    Gaurav

  • Unable to read data from the SAP marketplace

    Hi All,
        These days, certain packages in my download basketball cannot be downloaded, while others can be downloaded normally.
         After serveral redirecting, the SAP download manager keeps informing me that "Unable to read data from the SAP marketplace, check your settings and try again".
         Anyone knows how to solve it?
    Thanks,
    Yining

    Hi Yining,
    You user on SAP MarketPlace is locked.
    You have to unlock it but I do not know the way.
    Check in user data maintenance on SAP MarketPlace who is your responsible and perhaps he wwill be able to solve to unlock our user.
    Regards,
    Ronan

  • Unable to read data from the SAP Service Marketplace issue

    Good morning, experts.
    I´ve just installed the SAP Download Manager, but I can´t get connected to Marketplace.
    First I tried downloading a file I could see in my Basket Download. Then I deleted it from the basket so I could test only the connection. In both situations I got the same error message: "Unable to read data from the SAP Service Marketplace (...)".
    It is probably due to wrong settings, but I can´t figure it out. My settings are:
    Address: https://websmp205.sap-ag.de/
    User name: S0005951541
    Password: (my password)
    Proxy (my proxy settings)
    Any ideas?

    Thanks for your answer.
    I can see my download basket online. I realize I didn´t delete the items so I could test purely the connection. I am going to do it again.
    I found out I dind´t have permission to download those items, and with the right permission I could download them directly online.
    As long as I have more information I am going to repost this issue on a new forum.
    Thanks.

Maybe you are looking for

  • Error in file receiver adapter (Directory does not exist / cannot be create

    I have a NFS reiceiver file NFS adapter with target directory: 10.128.68.38\arbo2000\UploadPinfos\arbodev if I run this line in windows, windows access to this folder. Full Error log: Receiver Adapter v2123 for Party '', Service 'BS_0000_ARBO_DEV': C

  • How can I change default settings for font and size?

    How can I change my default font and size in pages?

  • XML Forms and URL links in RenderListItem Form

    Hello everyone, I'm new at XML Forms and trying to do my first forms. I have this scenario: - user fills several entry fields in "Edit" Form, 2 of them include URL Links. - Every new entry in "RenderListItem" Form lists fields "Title" and URL1 URL2.

  • How to increase width of LOV popup

    I would like to increase width of LOV popup in my ui. I found one suggestion to use skin to change the LOV display property and would like to know if there is any other default framework support to increase LOV size declaritively. Appreciate your res

  • How to get last value

    Hi i have a senerion in which i want to get the last value :- CREATE TABLE T1 (NAME VARCHAR2(10), NO NUMBER, NO2 NUMBER); INSERT INTO T1 VALUES('A',10,20); INSERT INTO T1 VALUES('C',100,2); INSERT INTO T1 VALUES('B,124,5); INSERT INTO T1 VALUES('A',1