RFC Error: A remote host refused an attempted connect operation

Hi I received strange kind of error..
Have anyone of you seen something like this before?
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (**) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=logon*.*.com GROUP=SPACE R3NAME=2 MSSERV=sapms2 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '.*..*:sapms*8' not reached TIME Sat Feb 11 20:37:58 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 3147 DETAIL NiPConnect2: *.*..*:*** SYSTEM CALL connect ERRNO 79 ERRNO TEXT A remote host refused an attempted connect operation. COUNTER 8</SAP:AdditionalText>
  <SAP:Stack />

Hi,
MSHOST=logon**.*.com is name server, but it can be recognized as in message is also part "on local host with Unicode ERROR partner '.*..**:" where *.*... is IP address..
That problem occurred after some patches were implemented.
@2.) I can't change it to ABAP proxy
M.

Similar Messages

  • SMD Issue: A remote host refused an attempted connect operation

    Hi all,
    I am installing SMD agent 7.2 on managed system which is ABAP+JAVA 7.0. I Have successfully installed SMD agent 7.2 on Managemd system. Now, i need to configure its Introcope agent for JAVA system in sOlution manager. when i go to RCA->MAnaged system->setup wizard, it successfully configures it in further screens.
    However, wehn i go to RCA->MAnaged system->INtroscope agent and select the respective JAVA SID for which I installed sMD agent, it does not display the server node of jAVA for that system. Also when I check in the logs of sMG agent in the managed system, I get the below error;
    location:/usr/sap/sMD/SMDA97/log/SMDAgentApplication.0.log
    Error: A remote host refused an attempted connect operation
    Can anyone help me solving this issue?
    REgards,
    FAisal

    Hi Guilherme,
    Thanks for your reply.
    I have checked in agent administration screen. The agent is successfully assigned. I only see a problem while solman talking to the managed system on P4 port. I believe I have to open or do some administration of this P4 port. But where I am not sure.
    I mean while installed another SMD Agent on another J2EE server and it worked instantly!
    Can you help?
    Regards,
    Faisal

  • Java Proxy Runtime Error - A remote host refused an attempted connection

    I am able to register my Java server proxy with no errors. However when I message is sent through I get the following error in Xi Adapter:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method someJavaProxyCallIB of proxy bean com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4LocalObjectImpl0_0: A remote host refused an attempted connect operation.: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method someJavaProxyCallIB of proxy bean com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4LocalObjectImpl0_0: A remote host refused an attempted connect operation.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Doea anyone know why this is happening?

    I guess, that you have Java proxy libraries in the EAR file. Remove them before deploying.
    Regards
    Stefan

  • 10G dbconsole:  A remote host refused an attempted connect operation.

    We have 10.2 running on AIX. I previously had dbconole running fine, however, something was changed and now when I log into dbconsole I get the error "IOException in sending Request :: A remote host refused an attempted connect operation.". I can still administer database stuff (user, tablespaces) but any operation that tries to access the host fails. For instance I can't schedule a job nor change the operating system credentials. What's really wierd is that on the home page it shows database down, listener down, and agent failed. Obviously, the database and the listener are not down or I wouldn't even be able to get in.
    Help appreciated.
    Kirk

    emagent.trc
    07-03-26 15:50:43 Thread-1026 ERROR fetchlets.oslinetok: Process stderr = /u01/app/oracle/product/10.2.0/db_1/bin/emctl[333]: /tmp/sh401660.13: 0403-005 Cannot create the specified file.
    2007-03-26 15:50:43 Thread-1026 ERROR engine: [oracle_emd,fcotaix2.mccnet.mccneb.edu:3938,EMDUploadStats] : nmeegd_GetMetricData failed : em_error=failed to get upload statistics:
    /u01/app/oracle/product/10.2.0/db_1/bin/emctl[333]: /tmp/sh401660.13: 0403-005 Cannot create the specified file.
    2007-03-26 15:50:52 Thread-1280 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2007-03-26 15:50:56 Thread-1027 ERROR http: 11: snmehl_read: error on read: The network is not currently available. (error = 69)
    2007-03-26 15:50:56 Thread-1027 ERROR upload: FxferSend: HTTP Error=-1 reading request response from: http://fcotaix2.mccnet.mccneb.edu:1158/em/upload/
    2007-03-26 15:50:56 Thread-1027 ERROR upload: Failed to upload file B0006595.xml, ret = -2
    2007-03-26 15:50:56 Thread-1027 ERROR http: snmehl_connect: Failed to get address for fcotaix2.mccnet.mccneb.edu: Authoritive Answer Host not found (error = 1)
    2007-03-26 15:50:56 Thread-1027 ERROR upload: FxferSend: Cannot connect to: http://fcotaix2.mccnet.mccneb.edu:1158/em/upload/. retStatus=-32
    2007-03-26 15:50:56 Thread-1027 ERROR upload: Failed to upload file B0006595.xml, ret = -2
    2007-03-26 15:50:56 Thread-1027 ERROR http: snmehl_connect: Failed to get address for fcotaix2.mccnet.mccneb.edu: Authoritive Answer Host not found (error = 1)
    2007-03-26 15:50:56 Thread-1027 ERROR upload: FxferSend: Cannot connect to: http://fcotaix2.mccnet.mccneb.edu:1158/em/upload/. retStatus=-32
    2007-03-26 15:50:56 Thread-1027 ERROR upload: Failed to upload file B0006595.xml, ret = -2
    2007-03-26 15:50:56 Thread-1027 ERROR upload: 3 Failures in a row for B0006595.xml, we give up
    2007-03-26 15:50:56 Thread-1027 ERROR upload: Error in uploadXMLFiles. Trying again in 86.00 seconds.

  • A remote host refused an attempted connect operation

    I have been tasked with putting together a demo of Adobe Interactive Forms on our development system, and I'm following the steps listed in the SAP How-To guide, "How To... Create Online and Offline Forms in Web Dynpro for Java."
    The demo form (as described in the How-To) has been created and deployed from a NetWeaver 2004s to our Application Server 6.40 (with all the latest patches).  When run, however, I get a 500 Internal Error:
          <b>java.net.ConnectException: A remote host refused an attempted connect operation.</b>
    Our BASIS team has confirmed that ADS is configured correctly on the server, per SAP Note 944221.
    Any suggestions on the cause and possible fixes would be greatly appreciated.
    <b>Addendum:</b>
    Here is the exception chain:
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  UPDATEDATAINPDF
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:174)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:98)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:121)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:336)
         ... 29 more
    Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
         java.net.ConnectException: A remote host refused an attempted connect operation.
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:408)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.render(PDFObject.java:3958)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:148)
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
         ... 32 more
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
         java.net.ConnectException: A remote host refused an attempted connect operation.
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)
         ... 35 more
    Caused by: java.net.ConnectException: A remote host refused an attempted connect operation.
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
         at java.net.Socket.connect(Socket.java:482)
         at java.net.Socket.connect(Socket.java:432)
         at java.net.Socket.<init>(Socket.java:339)
         at java.net.Socket.<init>(Socket.java:150)
         at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:648)
         at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:470)
         at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:427)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getRequestStream(HTTPTransport.java:355)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:548)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1425)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
         ... 37 more
    -- Nick

    Hi Nick,
    Can you verify the ADS connection using the web service test tool? Go to http://myhost:50000/, choose web services, choose the 1st one (Adobe Document Services?), choose test, don't enter any values (leave the default values) and choose test (or something very similar, I don't have access to a server right now to verify it). You should get a login screen where you need to login with "ADSUser". Finally you should see the request and response where the response status code must be "200 OK" (and the response content-type should not be text/html; that's when a logon screen html page is returned, e.g. if the password is expired).
    If it fails somewhere, try it again using the FQHN, e.g. http://myhost.mydomain.com:50000/ (I think we had a similar issue once).
    If the web service test doesn't work, there's definitely a problem with the ADS configuration. If the web service does work, check the connection settings in Visual Administrator <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/f3fcf604777062e10000000a1553f6/frameset.htm">Setting Up Basic Authentication in a Java Environment</a> (or the ABAP and/or SSL version of the same document).
    Kind regards,
    Sigiswald

  • SMTP error from remote mail server after initial connection:

    Hello folks. I having some serious issues sending email to clients with .mac accounts. I keep on getting the following error. Can someone help? I have replaced email address names with "Blank@...) for obvious reasons.
    This message was created automatically by mail delivery software.
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    [email protected]
    SMTP error from remote mail server after initial connection:
    host smtp-mx1.mac.com [17.148.20.64]: 452 try later:
    retry timeout exceeded
    ------ This is a copy of the message, including all the headers. ------
    Return-path: <[email protected]>
    Received: from ip72-207-229-240.br.br.cox.net ([72.207.229.240] helo=[192.168.0.102])
    by srv3.purenrg.com with esmtp (Exim 4.68)
    (envelope-from <[email protected]>)
    id 1JFeOb-0001FZ-5F
    for [email protected]; Thu, 17 Jan 2008 18:43:41 -0500
    Message-Id: <[email protected]>
    From: "[email protected]" <[email protected]>
    To: Cindy Barnes <[email protected]>
    Content-Type: multipart/alternative; boundary=Apple-Mail-3--1032078955
    Mime-Version: 1.0 (Apple Message framework v915)
    Subject: invoice 520 is overdue
    Date: Thu, 17 Jan 2008 17:43:40 -0600
    X-Mailer: Apple Mail (2.915)
    X-PopBeforeSMTPSenders: [email protected]{
    --Apple-Mail-3--1032078955
    Content-Type: text/plain;
    charset=US-ASCII;
    format=flowed
    Content-Transfer-Encoding: 7bit

    I'm sure someone will give more detail, but it looks like the server blocked your address because it thinks it's a spam source.  If you're not spamming, then it might be someone on the same network spamming, or malware on your computer doing it.  Or it could just be a mistake.  try calling whoever runs your mail server and see if they can give you more information.

  • RFC error code 91 : Host name  or service of thge message server unknown

    RFC Test connection is getting failed with following error
    ERROR                service 'sapms<sid>' unknown
    LOCATION             SAProuter 37.12 on prosaprt01
    DETAIL               NiPGetServByName: service 'sapms<sid>' not found
    CALL                 getservbyname
    COMPONENT            NI (network interface)
    COUNTER              5088
    MODULE               niuxi.c
    LINE                 524
    RETURN CODE          -91
    SUBRC                    0
    RELEASE              640

    Hi Cool,
                  Make sure on your server(if it's windows)
    C:\WINDOWS\system32\drivers\etc\services is having this bellow line
    sapms<SID>     36<nn>/tcp     # SAP System Messaging Service Port
    I guess you can realize that 36<nn> is the messaging server port, so you can in put your system no. in place of <nn>.
    If you are trying too connect to another system and make sure it's port is also added in the service file and it's open (accessible from this system).
    Regards,
    Hari.

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

  • IChat keeps showing me error message stating that host refused server

    Everytime I attempt to log in(from any account on my computer or any screen name) I receive a pop-up error message saying "Host refused server. Try again later." This has been happening for two weeks now and I called apple support and AOL support and both said they could not help me. The finny thing is, I can sign on to my screen name on AIM from another location and connect to iChat as long as my AOL is signed on even though it's a different screen name .. I'm so confused!!!! PLEASE HELP!!!

    Hi Thomas,
    I am reading that iChat will not log into the AIM servers with one account name from a mac computer in one location But that it will if you use the AIM application on another computer that is somewhere else - even if the AIM application is using another log in name.
    Do you mean that the AIM application using one login name can Chat to your Mac ?
    OR do you mean you have the AOL package and have enabled the IM function and can log in with that name ?
    I feel that these options do not fully explain what you are trying to say.
    This may be that you have not enabled iChat for Multiple logins of the same login account name.
    Open iChat.
    Go to Preferences (in the iChat menu)
    Go to Accounts
    Select the account in question in the left hand column.
    Select the Account Info tab if it is not the current one
    Add a tick to the Multiple Login box
    If this does not work then try deleting com.apple.ichat.AIM.plist This is found in /Users/(your account)/Library/Preferences
    Restart iChat afterwards. In some circumstances this will send you through the Start up Screens again.
    Ralph

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

  • Inbound Queues stuck with RFC errors

    Hi Experts,
    Greetings for the Day !
    We have BDOC related issue and we need your expert help ASAP in resolving the same.
    We ahev a few BDOCS lying in intermediate state in transaction SMW01, which we found using BDOC monitoring on daily basis. When we check the same in SMQR - inbound queue, we found that the queues are stuck with an RFC error message.
    We are re-activate these queues to actually resolve the intermediate bdocs. But, my query is
    1> The raeson for getting these BDOCS in intermediate state & stuck queues
    2> A permanent resolution for the same.
    Please help and  let us know if you need more details.
    Regards,
    Kanika

    Hi Kanika,
    RFC error can be due to a bad connection as well. If the server is down, there might be a problem in communication with the connected system and the queues will not be processed further. You need to reactivate or unlock to get the queues processed.
    But if there are any specific errors for which the queues are stuck do state the same, so that we can look into an actual resolution.
    Regards,
    Venkat

  • Provider-hosted Apps debug error: The remote server returned an error: (401) unauthorised

    Hi,
    Any help appreciated!!
    I'm getting this error: "The remote server returned an error: (401) unauthorised when I debug a provider-hosted app.  I get the error on this line:  
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    See code below
    I created a high trust development environment following the instructions provided here:
    http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx and
    http://msdn.microsoft.com/library/office/fp179923
    I created a provider-hosted app with the intent to:
    create a SharePoint list in the appweb
    Use self-signed certificate, tokenhepler.cs and sharepointcontext.cs to retrieve current user context and access on SharePoint.  (No changes were made to tokenhelper.cs and sharepointcontext.cs)
    retrieve list items from the SharePoint list in a button click event handler on a default.aspx of the remote web
    What happens:
    The app is deployed successfully to the Dev site
    The SharePoint feature is deployed and activated
    The default.aspx page of the remote web loads
    The error (see image) is returned on clicking of the button
    My environment is an on-premise SharePoint 2013 with AD and my dev box is standalone windows 8.1 running Visual Studio Professional 2013 Update 3.
    The code block below is a copy of the default.aspx code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Microsoft.SharePoint.Client;
    using Microsoft.IdentityModel.S2S.Tokens;
    using System.Net;
    using System.IO;
    using System.Xml;
    using System.Data;
    using System.Xml.Linq;
    using System.Xml.XPath;
    namespace Idea.GeneratorWeb
    public partial class Default : System.Web.UI.Page
    SharePointContextToken contextToken;
    string accessToken;
    Uri sharepointUrl;
    protected void Page_PreInit(object sender, EventArgs e)
    Uri redirectUrl;
    switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
    case RedirectionStatus.Ok:
    return;
    case RedirectionStatus.ShouldRedirect:
    Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
    break;
    case RedirectionStatus.CanNotRedirect:
    Response.Write("An error occurred while processing your request.");
    Response.End();
    break;
    protected void Page_Load(object sender, EventArgs e)
    //// The following code gets the client context and Title property by using TokenHelper.
    //// To access other properties, the app may need to request permissions on the host web.
    var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
    //var spContext = new ClientContext("MySPDevInstance");
    //spContext.Credentials = new NetworkCredential("username", "password");
    //using (var clientContext = spContext.CreateUserClientContextForSPHost())
    // clientContext.Load(clientContext.Web, web => web.Title);
    // clientContext.ExecuteQuery();
    // Response.Write(clientContext.Web.Title);
    string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);
    if (contextTokenString != null)
    // Get context token
    contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, Request.Url.Authority);
    // Get access token
    sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
    accessToken = TokenHelper.GetAccessToken(contextToken, sharepointUrl.Authority).AccessToken;
    // Pass the access token to the button event handler.
    Button1.CommandArgument = accessToken;
    protected void Button1_Click(object sender, EventArgs e)
    // Retrieve the access token that the Page_Load method stored
    // in the button's command argument.
    string accessToken = ((Button)sender).CommandArgument;
    if (IsPostBack)
    sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
    // REST/OData URL section
    string oDataUrl = "/_api/Web/lists/getbytitle('Diagrams In Idea Generator')/items?$select=Title,Diagram,SharingStatus";
    // HTTP Request and Response construction section
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrl);
    request.Method = "GET";
    request.Accept = "application/atom+xml";
    request.ContentType = "application/atom+xml;type=entry";
    request.Headers.Add("Authorization", "Bearer " + accessToken);
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    // Response markup parsing section
    XDocument oDataXML = XDocument.Load(response.GetResponseStream(), LoadOptions.None);
    XNamespace atom = "http://www.w3.org/2005/Atom";
    XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
    XNamespace m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
    List<XElement> entries = oDataXML.Descendants(atom + "entry")
    .Elements(atom + "content")
    .Elements(m + "properties")
    .ToList();
    var entryFieldValues = from entry in entries
    select new
    Character = entry.Element(d + "Title").Value,
    Actor = entry.Element(d + "Diagram").Value,
    CastingStatus = entry.Element(d + "SharingStatus").Value
    GridView1.DataSource = entryFieldValues;
    GridView1.DataBind();
    Any ideas what I might be doing wrong

    Hi ,
    Use the below code
    Public string GetAccessToken(){
    string sharePointSiteUrlHost =  Page.Request["SPHostUrl"].Tostring();
    string AccessToken = tokenHelper.GetS2SAccessTokenWithWindowsIdentity(sharePointSiteUrlHost, Request.LogonUserIdentity);
    return accessToken;
    Than initialize the ClientCOntext with the below Method
     private static ClientContext GetClientContextWithAccessTokenString(string targetUrl, object accessToken)
                ClientContext clientContext = new ClientContext(targetUrl);
                clientContext.AuthenticationMode = ClientAuthenticationMode.Anonymous;
                clientContext.FormDigestHandlingEnabled = false;
                clientContext.ExecutingWebRequest +=
                    delegate(object oSender, WebRequestEventArgs webRequestEventArgs)
                        webRequestEventArgs.WebRequestExecutor.WebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
                        webRequestEventArgs.WebRequestExecutor.RequestHeaders["Authorization"] =
                            "Bearer " + accessToken;
                return clientContext;
    use this clientCOntext and it will work.
    Do not use
    SharePointContextProvider
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • RFC error while adding an remote monitoring entry to CEN

    Hi,
    I am trying to add an remote system to CEN by RZ21 i.e.
    in RZ21 -> Technical Infrastructure -> Configure Central system -> Create Remote Monitoring Entry
    But while testing RFC connections before saving, it giving following erros :
    SC4_RZ20_COLLECT_195119Error when opening an RFC connection
    Error during remote call of SAL_MS_GET_LOCAL_MS_INFO function: Error when opening an RFC connection
    Error during remote call of SALC function: Error when opening an RFC connection
    Error during remote call of RFC1 function: Error when opening an RFC connection
    Are these errors of any concern?
    or shall i go ahead and save the entries?
    Please suggest.

    Hi,
    ssue has been fixed after following
    SAP Note 1453112 - CCMS agent and kernel: patches 2010
    1:) Here we first performed kernel upgrade then re register agents as per note.
    2:) While for mentioned error during remote monitoring entry we checked in path
    Tcode-> sm59-> TCP/IP connectiones -> then in RFC destination SAPCCM4X.<SID>.<instance no> and found destination information was not correct so we corrected as
    SAPCCM4X.<monitoring system id>.<instance no> then
    then perform remote monitoring entrory steps via RZ21 and issue got resoulved

  • SFTP receiver error: putFile: Could not connect to remote host; Reason: Unable to open Sftp client. SshReasonCode: CHANNEL_FAILURE

    Hi,
    When we try to send file over seeburger SFTP (receiver) we are getting the error as below.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: >> Description: SFTP transaction error occured.>> Details: putFile: Could not connect to remote host; Reason: Unable to open Sftp client. SshReasonCode: CHANNEL_FAILURE>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: true>>Fatal: true, >> Description: SFTP transaction error occured.>> Details: putFile: Could not connect to remote host; Reason: Unable to open Sftp client. SshReasonCode: CHANNEL_FAILURE>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: true>>Fatal: true
    But we are able to connect through filezilla . we are able to create and delete file using the same username and password which is being used in SFTP adapter.
    we have imported the both dsa and rsa keys in SFTP partner folder in NWA. Even though we are getting same error.
    Thanks,
    Vinayak

    Hi Ram,
    we checked with network team and port 22 is open and they are able to ping to the target system.
    we checked the seeburger logs and we see EOF received from remote site error:
    Caused by: com.maverick.ssh.SshException: EOF received from remote side [Unknown cause]
    #at com.maverick.ssh2.TransportProtocol.b(Unknown Source)
    #at com.maverick.ssh2.TransportProtocol.i(Unknown Source)
    #at com.maverick.ssh2.TransportProtocol.nextMessage(Unknown Source)
    #at com.maverick.ssh.message.SshMessageRouter.d(Unknown Source)
    #at com.maverick.ssh.message.SshMessageRouter.access$000(Unknown Source)
    #at com.maverick.ssh.message.SshMessageRouter$_b.run(Unknown Source) 
    Thanks,
    Vinayak.

  • CC&B 2.3.1 startup showing "Unable to start remote host JVM" error

    When starting up a newly installed CC&B server (Linux Redhat 5.0, x86_64), using weblogic 10.3.5, and java 1.6.0_35, I am incurring this error. Log file snippet:
    specified via property spl.runtime.cobol.remote.jvmMaxLifetimeSecs, defaulting to 0
    - 2012-09-13 17:49:12,837 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (shared.environ.ApplicationProperties) Child JVM maximum COBOL requests is not spe
    cified via property spl.runtime.cobol.remote.jvmMaxRequests, defaulting to 0
    - 2012-09-13 17:49:12,838 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO (cobol.host.CobolHostStartup) Using active JVM count of 2 for remote cobol executi
    on.
    - 2012-09-13 17:49:12,880 [pool-2-thread-1] ERROR (cobol.host.RemoteJVMFactoryImpl) Unable to start remote host JVM.
    java.io.IOException: Cannot run program "/srv/spl/ccb/CCBDEMO/bin/splcobjrun.sh": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at java.lang.Runtime.exec(Runtime.java:431)
    at java.lang.Runtime.exec(Runtime.java:369)
    at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:87)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.addNecessaryConnections(RotatingCommandRunnerProvider.java:403)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.doHousekeeping(RotatingCommandRunnerProvider.java:330)
    at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider$ConnectionMonitor.run(RotatingCommandRunnerProvider.java:323)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
    Does anyone have any ideas?

    hi
    I face a similar issue as u faced . Please let me know the solution .
    Error in Log file : When trying to switch language.
    ZOHAIB - 169696-23-1 2012-01-09 15:23:22,624 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR (web.dataservlet.PageChange) Unexpected error.
    com.splwg.base.support.cobol.host.InputClosedException:
    The following stacked messages were reported as the LoggedException was rethrown:
    com.splwg.base.api.service.ServiceDispatcher$5.execute(ServiceDispatcher.java:248): Caught exception from SessionExecutable.execute()
    com.splwg.base.support.pagemaintenance.AbstractPageMaintenance.changeItem(AbstractPageMaintenance.java:134): Rollback: Change failed
    com.splwg.base.support.cobol.host.CommandRunnerHolder.invoke(CommandRunnerHolder.java:31): An exception occurred calling cobol program CIPZDATA
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.sendRequestGetResponse(OptimizedRemoteExecuterStub.java:83): An exception has occurred calling the remote JVM
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.sendRequestGetResponse(OptimizedRemoteExecuterStub.java:83): An exception occurred invoking remote command.

Maybe you are looking for