Adapter Lock Testing

Dear All
We had an issue in our production environment where a critical interface involving sender JDBC adapter stopped working, the reason was the adapter service $XIDBAD.JDBC2XI was locked. It was then manually unlocked in NWA ->locks.
We raised an OSS note with SAP and they suggested some paremeters and patches for the permanent solution. Now when we have applied these parameters we need to test and verify the solution...
We have two options
1. We start the interface and wait for a time when lock happens ( which could be rare/impossible after applying the changes)
2. we force a lock on the service  $XIDBAD.JDBC2XI ....
Is there anyway where we can utilize the option 2
regards
Sourabh

At times JDBC adapter could be heavyly loaded or PI is high on Java Threads might cause the JDBC adapter lo get locked in NWA. Some times it could be network issues reaching the host as well.
Then this happens the adapter starts to process but never completes.
As of now we know the remedy to this as to unlock it in NWA but nothing else. :-(.
in case you monitoring channel show  something like this:
1/23/08 4:06:26 PM Processing started
1/23/08 4:06:11 PM Processing started
1/23/08 4:05:56 PM Processing started
1/23/08 4:05:41 PM Processing started
1/23/08 4:05:26 PM Processing started
1/23/08 4:05:11 PM Processing started
1/23/08 4:04:56 PM Processing started
1/23/08 4:04:41 PM Processing started
Possible solution:
Either there is no data in the Database that confirms to the Query in sender jdbc adapter or , some network issues as pointed.
The solution for network issues is to select option "Disconnect From Database after each message processing"
If the JDBC adapter is going to be pulling data out from a Database every 10 secs, its gonna be a lot of data that is going through XI.
have a look at SAP Note 1083488 and see if it helps
also Two channel can poll data but should not try to change the data as it would lead to some consistency or locking issues..!! It might cause the adapter locked!!
Edited by: Rodrigo Alejandro Pertierra on Apr 6, 2011 11:38 AM
take a look to:
why JDBC adapter locking
problem with jdbc adapter
JDBC sender adapter is polling but not picking up any data --> particular this
there are many thread realated to this error in SDN, some are those. incase or more datails  search by "JDBC adapter locked"
page 2

Similar Messages

  • PI 7.1/RWB/Component/Monitoring/Adapter Engine/Test Message/403 Forbidden

    Hello guys!
    During performing PI 7.1 Readiness Check I have to perform a test message under Runtime Workbench\Adapter Engine\Test Message.
    After processing i receive following error:
    Error while sending message: 403 Forbidden.
    Does anybody know the cause?
    Many thanks in advance!
    Jochen

    Hi Sreeni!
    Direct hit!
    This was the problem! Missing role!
    Many thanks to you!
    Additional Information for all:
    Readiness Check (PDF)
    A compilaton of simple and advanced checks for Process Integration 7.1 (PI 7.1)
    Page 44
    SAP Note 817920 - XI Readiness Check 3.0/7.0, 7.1
    Regards,
    Jochen

  • Under Adapter engine Test buttion option

    Hi Gurus,
    I Have small doubt we have option like Test message at RWB
    RWB--->COMPONENT MONITORING--->Adapter engine --->Test message ,what is the purpose of this test message option at Adapter engine.
    It is same as sending data from Integration engine if so when ever we are sending data from AE we are getting some issue .Can any body clarify this.
    Thanks
    Madhu

    Hi Madhu,
    Check out the below thread:
    https://scn.sap.com/thread/1402225
    You can also check out this excellent blog for extra information:
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/02/17/howto--send-test-messages-to-the-adapter-engine-to-an-integrated-configuration
    Regards
    Bikash

  • Adapter Locking Problem

    Hello,
    Do you know how to pin point if there is an adapter locking happening for too long? Specially for JDBC. Currently from time to time we encounter a channel just saying processing started for too ling and is causing us delay. We already know this is caused by adapter locking but is there a way to prevent this from happening or notify us if an adapter locking is happening into a certain channel.
    Regards,
    Alfred
    Edited by: alfred_A_sap on Oct 13, 2010 6:02 AM

    Hi Bill,
    I tried to logon to ABAP with XIAFUSER. Everything works fine. I haven't tried any other scenario yet.
    What I just noticed is, that when I view the list of services running on the J2EE engine is see the following list:
    SAP XI Adapter: BC
    SAP XI Adapter: File
    SAP XI Adapter: JDBC
    SAP XI Adapter: JMS
    SAP XI Adapter: Mail
    SAP XI Adapter: Marketplace
    SAP XI Adapter: RFC
    SAP XI Adapter: XI
    There is no SOAP adapter listed. Maybe this is the reason for the problems I experience...
    Christian

  • DB Adapter Locking Database Rows in Distributed Delete Polling Strategy

    I am stuck with an issue. To explain the issue in simple steps
    I am creating a Database Polling Adapter with Distributed Delete Polling Strategy in OSB for running in Clustered Environment.
    We are custom SQL so that the records are not deleted after they are fetched but only a column Status Column is getting Updated.
    The Polling query and Delete SQL is as follows
    <query name="ReqJCAAdapterSelect" xsi:type="read-all-query">
    <criteria operator="equal" xsi:type="relation-expression">
    <left name="Status" xsi:type="query-key-expression">
    <base xsi:type="base-expression"/>
    </left>
    <right xsi:type="constant-expression">
    <value>READY</value>
    </right>
    </criteria>
    <reference-class>ReqJCAAdapter.ItemTbl</reference-class>
    <refresh>true</refresh>
    <remote-refresh>true</remote-refresh>
    <lock-mode>lock-no-wait</lock-mode>
    <container xsi:type="list-container-policy">
    <collection-type>java.util.Vector</collection-type>
    </container>
    </query>
    <delete-query>
    <call xsi:type="sql-call">
    <sql>update ITEM_TBL
    set STATUS = 'IN_PROCESS'
    where ID = #ID</sql>
    </call>
    </delete-query>
    In case of any error in Service Error handler the Status is being updated to ERROR.
    Now the problem which I am facing is in the request Pipeline if we want to do any update on the same record we detect that in ROW is locked and is not allowed to do an update and because of this the process can not proceed.
    Also if any error occurs in Request pipeline then from the Service Error handler we are supposed to Update the status as ERROR, but the same thing is happening and the process can not proceed.
    but In the response Pipeline we can successfully update the status of the same record.
    We have tried to use both XA and NON-XA Datasource but no luck.
    Any help in this is appreciated.
    Regards,
    Dilip

    I am stuck with an issue. To explain the issue in simple steps
    I am creating a Database Polling Adapter with Distributed Delete Polling Strategy in OSB for running in Clustered Environment.
    We are custom SQL so that the records are not deleted after they are fetched but only a column Status Column is getting Updated.
    The Polling query and Delete SQL is as follows
    <query name="ReqJCAAdapterSelect" xsi:type="read-all-query">
    <criteria operator="equal" xsi:type="relation-expression">
    <left name="Status" xsi:type="query-key-expression">
    <base xsi:type="base-expression"/>
    </left>
    <right xsi:type="constant-expression">
    <value>READY</value>
    </right>
    </criteria>
    <reference-class>ReqJCAAdapter.ItemTbl</reference-class>
    <refresh>true</refresh>
    <remote-refresh>true</remote-refresh>
    <lock-mode>lock-no-wait</lock-mode>
    <container xsi:type="list-container-policy">
    <collection-type>java.util.Vector</collection-type>
    </container>
    </query>
    <delete-query>
    <call xsi:type="sql-call">
    <sql>update ITEM_TBL
    set STATUS = 'IN_PROCESS'
    where ID = #ID</sql>
    </call>
    </delete-query>
    In case of any error in Service Error handler the Status is being updated to ERROR.
    Now the problem which I am facing is in the request Pipeline if we want to do any update on the same record we detect that in ROW is locked and is not allowed to do an update and because of this the process can not proceed.
    Also if any error occurs in Request pipeline then from the Service Error handler we are supposed to Update the status as ERROR, but the same thing is happening and the process can not proceed.
    but In the response Pipeline we can successfully update the status of the same record.
    We have tried to use both XA and NON-XA Datasource but no luck.
    Any help in this is appreciated.
    Regards,
    Dilip

  • XI 2.0 WorkBench File Adapter Self-Test Error

    I have installed the file adapter on our XI serve and when I perform the Self-Test I get the following error HTTP request failed. Error code: "401". Error message: "Authorization Required".  I have the user  XIRWBUSER defined to the Adapter Engine.  What else am I missing?

    Hi Dan,
    You are thanking a poster for his answer.
    Please next time also give him points.
    See: /people/mark.finnern/blog/2004/08/10/spread-the-love
    This time I did it for you.
    Remember: When you ask a question you also assume the responsibility to assign points.
    Please check your other questions and if the answers were good.
    Spread the love and give some points.
    Thanks in advance, Mark.

  • RFC Adapter - Locking Issue

    Hi,
    Our SAP production environment was down for two days. While it was down the login used by one of my RFC Receiver Adapters was locked. This meant the adapter could not run. Fair enough.
    When the Production environment was brought back up the login used by the RFC Receiver Adapter was unlocked. However, I continued to get an error in Runtime Workbench claiming that the login was locked.
    Checked with the security team and they confirmed the user wasn't locked.
    Just to try something I went into the RFC adapter in question and simply retyped the login/pwd, saved the adapter and activated it. This seemed to clear the problem and it's now running as expected !!
    Question is why did this work ? The adapter was saying the login was locked. It wasn't. All I did was effectively resubmit an updated version of the adapter and it worked again, even though no part of the adapter had actually changed. Is this some sort of caching issue ? Any thoughts ?
    Cheers,
    PaulC.

    User was unlocked yesterday and was still giving locked error this morning. It's now working. Just surprised that a new call of an adapter would continue to say locked when it wasn't. Can only think it's some for of caching but this is a pretty unsatisfactory answer. Makes me worry that it might happen again.

  • Adapter Engine: Test Enviroment

    Hello,
    I installed a stand-alone Adapter engine in my pc that interconect with the XI server.
    I configure the SMB parameters but when i use the test enviroment options i have this result:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at com.sap.aii.messaging.net.ClientHttpImpl.call(ClientHttpImpl.java:101)
         at com.sap.aii.messaging.adapter.SinglePayloadClient.doPost(SinglePayloadClient.java:218)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.aii.messaging.adapter.Zone.service(ModuleGUIBrowserEngine.java:1072)
         at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:370)
    What could be happening?
    Thanks a lot,
    Enrique.

    Hi Enrique,
    Check the targetURL parameter in the message header you are sending. Are the host name and port number correct?
    A "connection refused" exception occurs when there is no service listening at the host and port you are trying to connect to.
    Regards,
    Thorsten

  • Adapter Locking in sap xi

    Hi Gurus,
    why the adapter should be locked / unlocked ?
    reasons for adapter to lock?
    Regards,
    Kumar
    Edited by: revanthkumarkadali on Nov 30, 2009 6:08 PM

    Hi Kumar,
    Check Gaurav reply in this thread
    Visual Administrator -> locking Adapter!
    Regards
    Ramesh

  • Help on JDE Adapter - JCA test tool

    Hi All,
    Please see the following request and response I get from JDE 8.9 using the JCA test tool for JDE Adapter.
    <jdeRequest type="callmethod" user="JDE" pwd="Gr@66er!" environment="DL9" session="" sessionidle="">
    <callMethod name="F42UI05EditLine" app="" runOnError="" trans="">
    <params>
    <param name="mnOrderNumber">1002528</param>
    <param name="szOrderType">S1</param>
    <param name="szOrderCompany">01200</param>
    <param name="mnLineNumber">1</param>
    <param name="szBranchPlant">1210</param>
    <param name="szLocation">STORE</param>
    <param name="szLot">615075</param>
    <param name="mnEnteredShipQuantity">1</param>
    <param name="szEnteredLineType">S</param>
    <param name="szVersion">DSI591040</param>
    </params>
    </callMethod>
    </jdeRequest>
    <jdeResponse user="JDE" sessionidle="" type="callmethod" session="1712.1172245062.50" environment="DL9" role="">
    <callMethod app="XMLInterop" trans="" name="F42UI05EditLine" runOnError="">
    <returnCode code="0"/>
    <params>
    <cErrorConditions>2</cErrorConditions>
    <cRecordWritten>1</cRecordWritten>
    <mnJobnumberA>26289</mnJobnumberA>
    <szVersion>ZJDE0001</szVersion>
    <cShipAscendingDateFlag>0</cShipAscendingDateFlag>
    </params>
    <errors>
    <error code="4150" name="szEnteredLineType">Error: Invalid Line Type</error>
    <error code="0425" name="szOrderType">Error: Status Flow Not Set Up</error>
    </errors>
    </callMethod>
    </jdeResponse>
    Even if I specify szVersion as DSI591040, it seems JDE takes the default version 'ZJDE0001' (see the jdeResponse).
    I awlays get the same error message and error code.
    Any help on this will be greatly appreicated.
    Thanks,
    Praveen

    Hi Rao,
    Exactly where did you specify the physical value for your logical directory?
    It seems to me that you may have specified the physical value in the directory field in the File Adapter wizard.
    The logical directory name ends up as attribute LogicalDirectory on the jca:operation in the WSDL of the service that you put together using the adapter.
    Section "Specifying Inbound Physical or Logical Directory Paths in Oracle Enterprise Service Bus" of the SOA Suite Adapters guide states the way JDeveloper should now support naming of the physical directory. But JDev in this case does not behave "by the book".
    Maybe someone from ESB product management can assist on this?
    Cheers, Sjoerd

  • OFTP_TCP Receiver Adapter locking issue /stopped working

    Hello,
    OFTP Receiver adapter stopped processing of GOTYPE commands which are used to extract available EDI files from mailbox.All command messages are in 'To Be Delivered' status. As there are no commands reached to mail box all EDI files remians unextracted.We had restart of java stack, after that command msgs processed by OFTP adapter and EDI files get processed into SAP.
    What I understood, OFTP adapter might locked /  oftp processors stopped working.
    In this case are there any other ways to bring back OFTP adapter into normal functionolity instead of 'Restart of Java Stack'.
    Thanks
    Veera

    Hi,
    I hope someone can share your thoughts who worked on OFTP adapter.
    Cheers
    Veera

  • Reg: JDBC Sender Adapter Locking everytime

    HI Experts,
    I am facing one issue regarding Sender JDBC Adapter.
    I already gone through few SDN LInk and followe the SAP Note 1083488 and few other links and blogs but there is no Use.
    I already kept JDBC SENDER>Advance>TASKTIMEOUT = 0 because as per the above note if I am keeping more than 0 then due to some server issues It is difficult to identify the adapter behaviour so I kept 0
    Can you please let me know any other Alternate way to identify this solution.
    Regards:
    Amar Srinivas Eli

    When you start communication channel what is the error are you getting??
    post your error message so that we can help you,
    Regards,
    Raj

  • Adapter Engine test tool doesnt work

    Hello
    I try to send a message from runtimeworkbench
    I chose Component Monitoring -> Integration server -> Adapter Engine
    And I put the paramets of the message ( message interface,namespace..etc.)
    then I put user and password
    and the url is
    http://server_name:52000/MessagingSystem/receive/AFW/XI
    I click on send,I get a message "Messasge sent"
    but the message doesnt appear on sxmb_moni
    any idea how to solve it?
    thx
    Shai

    Hi,
    As you state, check the user you're sending the message has necessary authorizations. You probably got an HTTP error 403: unauthorized. For overview of http errors, you can refer here:
    Try with user PISUPER for example. If you get past the authorization, the message should get to the IE.
    Post any other problems if arised.
    Regards,
    Gökhan

  • RFC Adapter (Destination Test)

    Hello,
    I made an RFC Destination with with the program ID Rfc2XmbService. But when i want to test the connection ja have this result.
    "Program Rfc2XmbService no registered". What does it means?
    Thanks a lot,
    Enrique.

    It means that the program Rfc2XmbService is not registered. You can register the program in J2EE administration. THis is something that that BASIS team can help with.
    - Ravi

  • Visual Administrator - locking Adapter!

    Hi Experts,
       what is the application of the Visual Admin -> cluster-> services -> Locking adapter.
       Some1 said me , that pressing the REFRESH button on the Right hand top will display latest time. I cannot try that without knowing the exact function.
    Experts , comments please !
    Regards,
    Arnab.

    HI Arnab
    The SAP system is equipped with a special lock mechanism that synchronizes access to data on the database. The purpose of the lock mechanism is to prevent two transactions from changing the same data on the database simultaneously.
    As per my understanding of Adapter locking happened due to many cases like High volume , Accessing same data again and again, test mode multiple access etc
    Locking works on SEXO
    S shared lock
    E exclusive
    X Exclusive but not Cumulative
    O Optimistic lock
    Check for SAP Locking. That applies to ABAP as well as Java
    Thanks
    Gaurav

Maybe you are looking for

  • I did not sync my device to itunes before it got ruined.  How do I retrieve unsynced songs I purchased to add to my new iPhone4

    I had over 80 songs I purchased through iTunes using my iTouch.  My iTouch got ruined and now I have an iPhone4.  I did not sync 50 of those songs to my iTouch.  When I visit iTunes, only 32 songs are showing up.  When I try to repurchase the lost so

  • Error while opening Batch in ODC

    Hi, There are a couple of problem I am facing in ODC. For one particular batch which has 'n' pages. IN import logs, it says n pages imported successfully but in ODC application it shows 'n+2' pages. When I try to open it it gives the follwoing error:

  • Address Book: Can't edit contact or add new

    I have two computers and an iPhone that should be synching Address Book and iCal amongst themselves on Mobile Me. Recently, the iBook G4's Address Book has had some features disabled: the "edit" button is grayed out, the "+" button is grayed out, and

  • Only one delivery to be allowed against one Sales order at item level

    Hi,   I have a requirement  for some material in sales order if SO quanity is 25  we want that system should allow to create delivery of all 25 quanity one time  we try to use Max.Part.Deliv. at item level  by amking as 1  but system is juts giving t

  • IBlackList on my contact how can i delet it

    I did buy this BlackList last year from app store didn't work and i deleted  but i still have in my Contact and itune this iBlackList and its erasing my telephone no from contact so how can i erase this iBlackList from my iTunes contact pleas help me