Trex Indexing giving HTTP Status Code 401:Unauthorized error

Dear All,
We have configured TREX search on KM repository of our EP
production server and trying to search using the same our KM repository.
The TREX is installed on the a separate server.
When we try to Index production repository the documents are failing in
the Preparation failed status with return code 6401 and error message
HTTP Status Code 401: Unauthorized.
I also applied SAP-Note 650521 and checked id index_service user and
found that its active and not locked but still issue didnu2019t get
resolved. Moreover i have gone thru most of the previous post regarding this topic but didt help.
I even checked the URL Generator service too which is fine.
On one test system also where SPNego is configured we are getting same
401 error. On this system we disabled SPnego and Indexing started working
fine. When we reverted back the SPNego configuration for confirmation of
our observation we found that it again started to give 401 error.
Any help in this regard will be appreciated.
Regards,
Srinath Pillai
Edited by: Srinath Pillai on Sep 3, 2009 8:59 AM

Dear
Open System Administration--> System Configuration> Knowledge Management--> Content Management> Global Services (Mode : Advanced)> Index Management Service--> Check for Crawling Service User  it has to be index_service
If still you have problem than do let me know where is your Repository located are the documents are stored on Portal Server itself or it is stored on some external server...
What kind of repository you use CM Repository(Mode:DB,DBFS,FSDB) , File System Repository....e.t.c....
Regards
Akshit

Similar Messages

  • TREX preprocessing failed, HTTP Status Code 401

    Hello everybody!
    I'm using SAP NetWeaver 7.0 (2004s), TREX 7.0 on Win2003 Server.
    I'm trying to index files, but it doesn't work for files bigger than 10KB. I know that for these documents > 10KB only the URI is transmitted to TREX. So it seems the problem is based on the communication between TREX and portal.
    Error messages:
    TREX monitor: preprocessing failed, error number: 6401, error message: HTTP Status Code 401: Unauthorized
    Indexmonitor: Trex: Preparation failed: index operation
    - all TREX server status icons are green.
    - I'm not using any SSL communication.
    - indexing doesn't work for any data sources, neither web repositories nor KM content.
    - I've checked the host and alternative host parameter in the URL generator service (both http://<myservername>:50100).
    - I am able to access the URL of the resource directly.
    - I've added the "unescape_url=no" entry in the TREXPreprocessor.ini like SAP Note 650521 says.
    - my system ID is properly set.
    - the password of user index_service does not expire.
    Does anybody have any further ideas?
    Many thanks in advance
    Steffi, working on it for days...

    Hello Robert and Steffi,
    With the help of SAP support, I could solve the problem !
    Certificate for SAPLogonTickets had expired, so authentication was no longer possible. Solution : recreated the certificates with Visual Admin.
    In Visual Admin, go to "Key Storage" service, then choose "TicketKeystore" view.
    Delete SAPLogonTicketKeypair and SAPLogonTicketKeypair-cert certificates (or rename them in a first time).
    Then recreate "SAPLogonTicketKeypair" :
    - fill the Entry Name with "SAPLogonTicketKeypair",
    - fill "Common Name" with the value from the previous ticket
    - check "Store Certificate" (this will automatically create SAPLogonTicketKeypair-cert)
    - choose "DSA" as Algorithm
    and click on "Generate"
    That worked fine for us on two platforms.
    Hope that gonna help...
    Nicolas

  • Http status code 401 : unauthorised

    Hi all,
    We are using EP6 SP9 with KM SP9, TREX 6.1 SP9. We are using file system based repositories with custom properties for upload & search.
    Indexing fails with 'Queue entry' showing the documents as 'Preparation failed' with return message "http status code 401:unauthorised".
    Has anyone come across this error ? Please suggest ways to rectify.
    Thanks & regards,

    I have an alternative URL set in the URL generator and I also have an unlocked index_service user, but I am getting the same 401 (6401 TREX error) problems as others.
    Anybody know how to solve this problem?
    How does TREX authenticate with the portal using the index_service user? How does TREX know what credentials to use? If it is ticket based authentication, how is this ticket set in the TREX system?
    Thanks,
      Tom
    http://tomparle.com/
    http://deadlytech.co.uk/

  • Received HTTP response code 401 : Unauthorized

    Hi Experts!
    I know there are lots of posts regarding Received HTTP response code 401 : Unauthorized, and I read a lot of them.
    Unfortunately I got not the solution to my problem.
    I have following scenario: async; oneway; xml via DataPower (SOAP) to SAP PI to Service Consumer
    When sending a message it is led over the DataPower to the PI, but it is not processed through.
    It enters the MP and it is successfully put into the queue. You can see the details below.
    15.02.2012 15:12:34.611     Information     MP: entering1
    15.02.2012 15:12:34.614     Information     MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    15.02.2012 15:12:34.616     Information     SOAP: request message entering the adapter with user PI**
    15.02.2012 15:12:34.620     Information     SOAP: request message leaving the adapter (send)
    15.02.2012 15:12:34.620     Information     The application tries to send an XI message asynchronously using connection SOAP_http://sap.com/xi/XI/System.
    15.02.2012 15:12:34.624     Information     Trying to put the message into the send queue.
    15.02.2012 15:12:34.676     Information     SOAP: call completed
    15.02.2012 15:12:34.676     Information     SOAP: completed the processing
    15.02.2012 15:12:34.676     Information     Message successfully put into the queue.
    15.02.2012 15:12:34.676     Information     The application sent the message asynchronously using connection SOAP_http://sap.com/xi/XI/System. Returning to application.
    15.02.2012 15:12:34.678     Information     MP: leaving
    15.02.2012 15:12:34.682     Information     The message was successfully retrieved from the send queue.
    15.02.2012 15:12:34.700     Information     The message status was set to DLNG.
    15.02.2012 15:12:34.922     Error     Transmitting the message to endpoint https://<sid>.XXX:port/sap/xi/engine?type=entry using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 401 : Unauthorized.
    15.02.2012 15:12:34.940     Information     The message status was set to WAIT.
    15.02.2012 15:12:34.941     Information     The asynchronous message was successfully scheduled to be delivered at Wed Feb 15 15:17:34 CET 2012.
    I can't say, why I get the 401-response.
    From PI Message Monitoring: Monitor Messages I get following informations:
    Message-ID     MSG-ID
    Richtung     OUTBOUND
    Message-Headers     content-length=14391
    http=POST
    content-type=multipart/related; boundary=SAP_MSG-ID_END; type="text/xml"; start="<soap-MSG-ID[at]sap.com>"
    Message-Typ     Send
    Verbindungsname     SOAP_http://sap.com/xi/XI/System
    Credential     SAPPasswordCredential(PIAFUSER):password=********:sapclient=009:saplang=en:sapsysid=<SID>
    Fehlerkategorie     XI_J2EE_ADAPTER_XI_HANDLER
    Fehlercode     SEND_CONSUMER_ERROR
    Statusdetails     Messaging: allgemeiner Fehler
    Quality-of-Service     EO
    Empfängerkomponente     
    Referenz-ID     
    Senderkomponente     SENDER_COMP
    Sequenz-ID     
    Serialisierungskontext     
    Status     systemError
    Einplanungszeit     2012-02-15 13:49:38.579
    Start Time     Wed Feb 15 13:34:37 CET 2012
    Transport     HTTPS
    Gültig bis     
    Protokoll     XI
    Persistenz bis     2012-02-16 13:34:37.373
    Endzeitpunkt     Wed Feb 15 13:49:39 CET 2012
    Anwendungskomponente     
    Softwarekomponente     
    Service-Definition     
    Wurde bearbeitet     false
    Any clues?
    Many thanks in advance
    Holger

    Hi Ravi,
    it's the Java stack's port.
    Hi Venkata,
    1. Check whether service user maintained in the SM59 destination is with Roles of std. user PIAPPLUSER, PIISUSER
             The Problem is, that the message is not processed in the PI. I don't see them at SXMB_MONI.
             Today I see them on the RWB at the message-monitoring, but only because they are set after the 3rd try to send them to NDLV.
             I can see the messages, after they are triggered, in the comm-channel-monitoring by selecting the appropriate channel.
    2. Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
             Checked the PIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    3.May be wrong password for user PIISUSER.
             There was a pwd-change in january, but the passwords are all correctly replaced.
    Thank you for your help!
    Holger

  • Help needed to resolve Received HTTP response code 401 : Unauthorized

    2011-04-08 11:37:48 Error Transmitting the message to endpoint http:---/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 401 : Unauthorized
    while i was executing file to file scenario. the error occoured.
    Edited by: subbuk76 on Apr 8, 2011 8:12 AM

    As the error indicates, the username/PWD you are using in file adapter to write the file (FTP) at target location is incorrect and hence the error. Please check and let us know.
    3) Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized
    Description: The request requires user authentication
    Possible Tips:
    u2022 Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    u2022 If the error is in Adapter Engine
    u2013then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    u2022 May be wrong password for user XIISUSER
    u2022 May be wrong password for user XIAFUSER
    u2013 for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message
    Also, for HTTP errors in future do refer this blog:
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    It will help you

  • HTTP response contains status code 401 - Unauthorized

    Hi all,
         When executing any scenario , i am getting the following error.Before i executed successfully all the scenarios.
    <?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="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  401 &nbsp Unauthorized</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Access Denied.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  No details available</pre></font></td> </tr> </body> </html></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    please suggest me abt the problem ? 
    Thanks & Regards,
    sekhar.

    Sekhar,
    what user id you are using ? did you generate the roles ? What SP level you are on ? Did you upgrade it recently ?
    I am not Siva....
    regards
    Shravan

  • Returning HTTP status codes (401, 403, etc) to Flash 8

    Hi all,
    I'm using AMFPHP on the server-side and Flash remoting
    classes to communicate with it. Everything's working great, but i'd
    like Flash to be able to recieve HTTP status codes from the server.
    For example, if on the server side (in PHP) I go:
    header("Status: 401 Unauthorized");
    I'd like the remoting service on the flash side to be able to
    get the HTTP error code (401 in the example above).
    I know this is possible with
    [url=http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00002333.html]LoadVars.onHTTPStatus[/url]
    but it doesn't seem to deal with using it with Flash Remoting.
    Thanks all :)
    - Nilesh

    Hi, I am trying to PUT to update contact info and I get following error:
    2015-01-16 11:00:17,970 INFO [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(97) | accessHttpsPut.url=https://secure.eloqua.com/API/REST/2.0//data/contact/7606838, text={"id":"7606838","accountName":"openIdStr001","emailAddress":"[email protected]","type":"Contact"}
    2015-01-16 11:00:18,931 ERROR [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(140) | ClientProtocolException
    org.apache.http.client.HttpResponseException: Request is malformed.
    Is there any idea?
    Thanks so much.
    Sincerely.

  • Invalid Response Code: (401) Unauthorized error in running Interactive form

    Dear All,
    I am trying to deploy and run a interactive form developed in webdynpro. but i get the following error upon running the form :
    com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:282)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:224)
         at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:483)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         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:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         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(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         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:279)
         ... 27 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:836)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1238)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
         ... 29 more
    I am using a NW04 sandbox server. I have checked the configuration steps and even did the Quick test in AdobeDocumentServices and got the expected response.
    I have verified the ADSUser settings and password too. And still i am getting this error.
    Can you please let me know if any other settings are required.
    Thanks in Advance,
    Bharat

    Dear BASIS Guys,
       Now i'm implement LAC 2.0 on SRM 5.0 , when i test the lac by smoke test the error occured following belowing ,
    #1.#00144F50BED1007C000000150000377400043741BCF38D1C#1186655389322#com.sap.srm.la.server.msg.JcoServerController#sap.com/com.sap.srm.la#com.sap.srm.la.server.msg.JcoServerController#SRMSTPUR#165##erpdevsrci_SRD_103409850#SRMSTPUR#6b11d670466311dcc1a400144f50bed1#SAPEngine_Application_Thread[impl:3]_18##0#0#Warning#1#/Applications/SRMLA/SERVER#Plain###Auction cannot be viewed in current status
            at com.sap.srm.la.server.jco.services.AbstractJcoService.convertToServerException(Unknown Source)
            at com.sap.srm.la.server.jco.services.AbstractJcoService.execute(Unknown Source)
            at com.sap.srm.la.server.jco.services.JcoServiceProvider.logon(Unknown Source)
            at com.sap.srm.la.server.msg.JcoServerController.login(Unknown Source)
            at com.sap.srm.la.server.jmx.JMXMonitorServerController.login(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.handleHelloReq(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.processRequestMessages(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.processAppletRequest(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.doPost(Unknown Source)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            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:175)
            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(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
           Please help about how to solve and configre it .
    BR,
    Rang

  • Received HTTP response code 401

    Hi,
    I have scenarion JDBC - XI - RFC. Everything seems to be working till yesterday and suddenly i see an error in the communication channel. In the message monitoring the status is set to waiting and I see nothing in the sxmb_moni. Please see the error below
    Transmitting the message to endpoint http://sapxd1.egd.enbridge.com:8019/sap/xi/engine?type=entry using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 401 : Unauthorized.
    Thanks
    Unni

    Immo,
    Go to SLD:
    http://server:port/sld/ListServlet?bsview=true
    Business systems and check if your XI business system has correct "Pipeline URL" parameter defined:
    http://server:httpport/sap/xi/engine?type=entry
    also check TCODE -> SLDCHECK - if you don't have any errors over there
    Gaurav Jain
    Reward Points if answer is helpful

  • Error Transmitting the message to endpoint -Received HTTP response code 401

    Hello Experts,
      I am having a SOAP to Proxy scenario. We are using HTTPS without client Authentication.
    Everything is running fine and well set on DEV system. After transporting to Test system, i am getting error as :
    Error Transmitting the message to endpoint http://host:port/sap/xi/engine?type=entry using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 401 : Unauthorized.
    I get HTTP 200 Ok response in my soap client but the message is not reaching to Integration Engine. It is failing with above error. On CC monitoring for SOAP adapter it shows call completed successfully. But when I use the mesage ID from CC monitoring in Message monitoring i get the error as  shown above in Audit log.
    I have checked for Roles attached to my user on DEV and Test systems , I have same roles on both systems.
    Any inputs to solve this problem will be very helpful to me. Let me know which service users i need to check for this issue?
    Thanks in Advance,
    XI Queries.

    Hi Pinang,
    Thanks for input.
    1) Check Role -SAP_XI_APPL_SERV_USER is there in XIAPPLUSER or not.
    ->Done. Its Ok.
    2) check tyour port entry is like J2EE port 5<System no> or not.
    ->Done. Its Ok.
    3) If the error in Adapter Engine
    then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    ->This note refers in case it happens with high load. I am just sending a small request and no one else is using / testing this interface. So no high load.
    4) Check password for user XIISUSER
    -> Basis team said they checked for all Xi users and they are not locked.
    5) Check password for user XIAFUSER
    -> Basis team said they checked for all Xi users and they are not locked.
    Any other hints will be helpful.
    Kind Regards,
    Xi Queries.

  • HTTP Status Code from NetConnection

    Hey flexers,
    I have a flex app that requires a user to be logged in to make service calls.  If the user isn't logged in or the session times out and the app makes a call to a backend service via AMF, the server responds with an HTTP status code 401, as expected.  The response header looks like this:
    HTTP/1.1 401 Authorization Required
    Date: Wed, 18 Aug 2010 16:49:01 GMT
    Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g
    X-Powered-By: PHP/5.2.4-2ubuntu5.6
    x-ec2-instance-id: i-e52e8b8f
    Cache-Control: no-store, no-cache, must-revalidate
    Pragma: no-cache
    P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
    Cache-Control: post-check=0, pre-check=0
    Content-Length: 185
    Content-Type: application/x-amf
    Expires: 0
    The response content is AMF so it's binary but here's the hex as reported by the Charles Web Debugging Proxy:
    00000000  00 00 00 00 00 01 00 0b 2f 31 2f 6f 6e 53 74 61           /1/onSta
    00000010  74 75 73 00 00 ff ff ff ff 10 00 1b 66 6c 61 73   tus         flas
    00000020  68 2e 65 76 65 6e 74 73 2e 4e 65 74 53 74 61 74   h.events.NetStat
    00000030  75 73 45 76 65 6e 74 00 04 69 6e 66 6f 10 00 06   usEvent  info 
    00000040  4f 62 6a 65 63 74 00 07 6d 65 73 73 61 67 65 02   Object  message
    00000050  00 61 59 6f 75 72 20 73 65 73 73 69 6f 6e 20 69    aYour session i
    00000060  73 20 6e 6f 20 6c 6f 6e 67 65 72 20 61 63 74 69   s no longer acti
    00000070  76 65 2e 20 20 54 68 69 73 20 69 73 20 6c 69 6b   ve.  This is lik
    00000080  65 6c 79 20 64 75 65 20 74 6f 20 69 6e 61 63 74   ely due to inact
    00000090  69 76 69 74 79 2e 20 50 6c 65 61 73 65 20 72 65   ivity. Please re
    000000a0  2d 6c 6f 67 69 6e 20 74 6f 20 63 6f 6e 74 69 6e   -login to contin
    000000b0  75 65 2e 00 00 09 00 00 09                        ue.     
    I'm looking for the proper way, in the Flex app, to figure out it's a 401 status code.  Previously, we were watching for the NetStatusEvent coming from NetConnection. If there was a info.errorCode property, we'd use that as the status code.  Otherwise, if there was an info.description property, it would normally look like "HTTP: Status 401" in which case we'd pull it out of the string (which makes me cringe just thinking about it).  However, at the moment the NetStatusEvent looks like this:
    error flash.events.NetStatusEvent (@6a7eee1)
    [inherited]
    info Object (@7f3ea79)
    code "NetConnection.Call.Failed"
    description "HTTP: Failed"
    details "http://dev.studioj.com"
    level "error"
    m_info Object (@7f3ea79)
    No status code exists in the event anywhere in the event.  After all kinds of debugging, rolling back code, etc., I can't figure out why the NetStatusEvent now has description "HTTP: Failed" instead of description "HTTP: Status 401".
    Can anyone clarify what's going on?  Thanks.

    After digging into it more, I've found that it's browser-specific behavior.  When simulating an HTTP status code of 401, in Chrome and IE I get a NetStatusEvent that looks like this:
    error flash.events.NetStatusEvent (@6c33791)
    [inherited]
    info Object (@6b14851)
    code "NetConnection.Call.Failed"
    description "HTTP: Status 401"
    details "http://aaronhardy.com/test.php"
    level "error"
    m_info Object (@6b14851)
    Notice the "description" has the status code.  In Firefox I get an event that looks like this:
    error flash.events.NetStatusEvent (@6c33791)
    [inherited]
    info Object (@6b14851)
    code "NetConnection.Call.Failed"
    description "HTTP: Failed"
    details "http://aaronhardy.com/test.php"
    level "error"
    m_info Object (@6b14851)
    Notice the status code isn't mentioned anywhere.  Is this a known issue in Firefox?  Are we really that close to being able to use real HTTP status codes yet so far away?
    Aaron

  • HTTP response contains status code 401 with the description Unauthorized

    Hi,
    I have an IDOC-XML  mapping,when the IDOC is sucessfully passed on to the XI but in XI I encounter an errror
    "HTTP response contains status code 401 with the description Unauthorized".Could somebody let me know what
    could be the reson for this error.
    Regards,
    Arun

    Dear Arun,
    1) This might cause due to wrong permissions.
    2)Try with this Login XIISUSER
    3)Tcode SICF -> Default_host -> sap -> xi
        ( Check right password for the user id )
    Regards
    Agasthuri Doss

  • HTTP response contains status code 401 with the description Unauthorized Er

    Hi All,
      I am getting the below error, i have reset the password and username also but i am not getting where exactly it is failing out.
    <b>
      <?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="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>Enter User Name and Password</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Error when sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    </b>
    Can anyone have the idea how can i check it out...??
    Thanks in advance.

    <b>I have changed every password and username from XIAPPLUSER to XIAPPLTEST, but still in MONI--->oubound binding ..,, i am getting the logon user as the XIAPPLUSER... I check the perticular communication channel it is maintained XIAPPLTEST but still i am getting XIAPPLUSER.....
    Do i have to refresh somewhere.
    Can anyone have the idea is there anywhere else it is maintained..</b>
    ================================================
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:OutboundBinding xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    - <SAP:OutboundBindingEntry version="30">
      <SAP:OutboundBindingObjectId>041B892AC87B38A4AE46D4E443C88E55</SAP:OutboundBindingObjectId>
      <SAP:FromPartyName />
      <SAP:FromServiceName>BS_PSEWC</SAP:FromServiceName>
      <SAP:ToPartyName />
      <SAP:ToServiceName>BS_SAPRP1</SAP:ToServiceName>
      <SAP:ToInterfaceName>sub_MeterReading</SAP:ToInterfaceName>
      <SAP:ToInterfaceNamespace>urn://WCM_SR3_02/SAP/Meterreading</SAP:ToInterfaceNamespace>
    - <SAP:OutboundBindingAttributes>
      <SAP:AdapterTypeData xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      </SAP:OutboundBindingAttributes>
    - <SAP:HeaderMapping>
      <SAP:FieldMapping xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      </SAP:HeaderMapping>
    - <SAP:ChannelEntry version="30">
      <SAP:PartyName xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:ServiceName xmlns:SAP="http://sap.com/xi/XI/Message/30">BS_SAPRP1</SAP:ServiceName>
      <SAP:ChannelName xmlns:SAP="http://sap.com/xi/XI/Message/30">CCO_Proxy_WCM_MeterReading</SAP:ChannelName>
      <SAP:AdapterName xmlns:SAP="http://sap.com/xi/XI/Message/30">XI</SAP:AdapterName>
      <SAP:AdapterNamespace xmlns:SAP="http://sap.com/xi/XI/Message/30">http://sap.com/xi/XI/System</SAP:AdapterNamespace>
      <SAP:AdapterSWCV xmlns:SAP="http://sap.com/xi/XI/Message/30">3B787A8035C111D6BBE0EFE50A1145A5</SAP:AdapterSWCV>
      <SAP:AdapterEngineType xmlns:SAP="http://sap.com/xi/XI/Message/30">IS</SAP:AdapterEngineType>
      <SAP:AdapterEngineName xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:MessageProtocol xmlns:SAP="http://sap.com/xi/XI/Message/30">XI</SAP:MessageProtocol>
      <SAP:MessageProtocolVersion xmlns:SAP="http://sap.com/xi/XI/Message/30">2.0</SAP:MessageProtocolVersion>
      <SAP:TransportProtocol xmlns:SAP="http://sap.com/xi/XI/Message/30">HTTP</SAP:TransportProtocol>
      <SAP:TransportProtocolVersion xmlns:SAP="http://sap.com/xi/XI/Message/30">1.0</SAP:TransportProtocolVersion>
      <SAP:ChannelDirection xmlns:SAP="http://sap.com/xi/XI/Message/30">O</SAP:ChannelDirection>
      <SAP:FromPartyAgency xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:FromPartySchema xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:ToPartySchema xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:ToPartyAgency xmlns:SAP="http://sap.com/xi/XI/Message/30" />
    - <SAP:ChannelAttributes xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <SAP:AdapterTypeData xmlns:SAP="http://sap.com/xi/XI/Message/30">
    - <SAP:Attribute>
      <SAP:Name>addressingMode</SAP:Name>
      <SAP:Value>url</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>authenticationModeBasicAnon</SAP:Name>
      <SAP:Value>basicSAP</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>host</SAP:Name>
      <SAP:Value>drprd-db1</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>httpDestination</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>logonClient</SAP:Name>
      <SAP:Value>300</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>logonLanguage</SAP:Name>
      <SAP:Value>E</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>logonPassword</SAP:Name>
      <SAP:Value isPassword="true" />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>logonUser</SAP:Name>
      <b><SAP:Value>XIAPPLUSER</SAP:Value></b>   </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>path</SAP:Name>
      <SAP:Value>/sap/xi/engine?type=receiver</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>port</SAP:Name>
      <SAP:Value>8001</SAP:Value>
      </SAP:Attribute>
      </SAP:AdapterTypeData>
      </SAP:ChannelAttributes>
      </SAP:ChannelEntry>
      </SAP:OutboundBindingEntry>
      </SAP:OutboundBinding>

  • ABAP Proxy HTTP response contains status code 401

    We have a client ABAP proxy running in a program successfully in our development system. Today I transported this to our Test system. When I tested, there were no messages in the adapter engine pipeline.
    One of my colleagues discovered that when running SXMB_MONI on the Application system (_not_ the XI system), the XML queue there shows the message with an error, the error being:
    HTTP response contains status code 401 with the description Unauthorized
    I have looked at quite a few posts here with this error; the PIAPPLUSER is not locked, Integration engine is configured the same way in both Development and Test, but I cannot figure out why this is happening.
    Any assistance more than welcome!
    BR,
    Tony.

    hi,
    Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    • If the error is in XI Adapter, then your port entry should J2EE port 5<System no>
    • If the error is in Adapter Engine
    –then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    • May be wrong password for user XIISUSER
    • May be wrong password for user XIAFUSER
    – for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message
    Thanks
    Swarup

  • SRM SUS PO response:HTTP response contains status code 401

    Hi,
    While sending the PO response from SUS to mm am getting the error as below in SUS :
    SAP:Stack>HTTP response contains status code 401 with the description Unauthorized
    Authorization error while sending by HTTP (error code: 401, error text: Unauthorized)
    Please advise.
    Thanks,
    Venky

    Hi,
      Is this the error you see when you click on "Send" button from POResponse? Or, does it happen when SUS is trying to send the XML message through PI/XI?
    SG

Maybe you are looking for

  • PLEASE Help!! I'm dying here!

    All, I'm having a problem with AE, and I've spend hours upon hours workng on it. I'm a student who spent YEARS saving up for this program, and yet I'm getting no love from other online forums ro Google searches. This is my best hope, so here goes. I'

  • How can i copy and paste from one spreadsheet to another?

    Trying to shuffle around the rows as part of an everchanging schedule.  When i copy and paste from one spreadsheet to the other, the images overlay each other as if i were litterally cutting them out of paper and then sloppily pasting to another. Is

  • Email screen is frozen how to fix

    EEmail screen is frozen how to fix

  • Copying a project into development component project

    hiii, I have a webdynpro project called DP_OrderEntry developed in NWDS 7.0.9. I need to copy it into development component dc_OrderEntry in NWDS 7.0.14. Can anyone tellme the steps for doing it? Can any error can crop up due to the difference in the

  • LabVIEW 2010 SP1 - When will it be available?

    Any expected date of release? Thank you Dany Dany Allard Solved! Go to Solution.