Testing Adapter in PCK

I am trying to test sample adapter in PCK Server (Scenario PCK -Sender to PCK-Receiver, cc - sample Adapter). I configured scenario per help.sap.com. in CC Monitoring, it shows as it is functioning and in green legend. Even though I configured sender agreement and receiver agreement, it is not picking file and not doing anything.
I configured NWA with relevenat config (authorization of user, isconfig url, internal, user, password etc ) as per help.sap.,com.
Did any one come across this issue?  I appreciate your help.
NOTE: you will get double points for right answer, with my subscription
Thanks,
Ravi Appala
919 386 0221

May be some basic check can help:
1) file location and filename(alongwith extension) are maintained properly in the channel
2) if possible use the IP address of the file server from where the file is to be picked up.
3) In case of XI/ PI when such a thing happens, it is blamed on the adapter being locked. If the adapter is locked it will just show message in CC monitoring like processing started (something similar), however in reality the channel is not able to pick the file because the adapter is locked...check if it is the issue for you...not sure if the procedure to check for adapter is the same for PCK and XI/ PI....it is done through Visual Admin in 7.0 and in NWA for 7.1
Regards,
Abhishek.

Similar Messages

  • Is it possible to test XI Adapter on PCK by JNDI lookup?

    Hi, friends
    I can't test the XI Adapter by using the communication channels and sender/receiver agreements on a standalone PCK (without XI server to be connected). Is it possible to test XI Adapter on PCK by JNDI lookup?
    I can locate the XI Adapter by JNDI lookup (JNDI name is configured on SampleRA.xml):
    ConnectionFactory cxf = (ConnectionFactory)initctx.lookup("deployedAdapters/sample_ra/shareable/sample_ra");
    But later it failed to get the ConnectionSpec and create the Connection. Could anyone give me a sample code for testing XI Adapter by JNDI lookup?
    Thanks in advance.
    Best Regards,
    Jason
    Message was edited by: Jason Wang

    Hi,
    I'm not sure if this is what you are looking for but
    check the link "Using Resource Adapter to Obtain Connection" on this site:
    http://help.sap.com/saphelp_nw04/helpdata/de/89/b262427a65423f87706a0e3faea00d/frameset.htm
    Hope it helps,
    Christian

  • Coded UI -Unit Test Adapter threw exception: Unable to load one or more of the requested types

    I am working on silver light bases share point application using visual studio 2012 with C#
    While debugging  coded ui tests with ui maps  i am getting this error.
    I have taken the solution developed by team member containing test methods and trying to debug/run the test methods which contain ui maps I am getting 
    Unit Test Adapter threw exception: Unable to load one or more of the requested types.Retrieve the loader exceptions property for more information.
    When i exclude the tests that depend on ui maps and debug/run remaining test methods I am not getting this error and able to run/debug test methods successfully
    But when I include the test methods related to ui maps and tried to debug i am getting this error.
    Please help me in this.

    Thanks for Fouad's help.
    Hi usha.talasila,
    >>Unit Test Adapter threw exception: Unable to load one or more of the requested types.Retrieve the loader exceptions property for more information.
    Generally this error would be related to the references. Like Fouad's suggestion, you would check whether there are specific references in your test project, and then right click the reference->property, and then set the Copy Local =true.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while testing Adapter through RWB with payload

    Hi all,
    While testing Adapter engine through RWB with payload, i get the below error
    Error while sending message: com.sap.aii.af.ra.ms.api.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=ec6clnt001;TS=com_avaya_java_bs;AN=StartNotification_MI_sync;ANS=http://www.tcs.com/sap/xi/AVAYAPoC;"
    Can any body please suggest the possible reason and solution for the same.
    Regrads,
    Kulwant

    Hi
    verify the receiver agreement and  also check it out whether receiver message interface is configured properly or not?
    or
    open ID and goto tools tab in that click on
    test configuration by providing your Business service and interface details along with the payload it displays the error message.
    regards
    Suryanarayana

  • Bizunit restriction on Unit Test Adapter

    Hello !
      I'm using Bizunit 4.0 ,which, on its core, seems to use Microsoft testing framework. The tests I'm running are data-driven tests , I'm using a data source and the rows from the data source are parsed one by one , launching thus each test case . What
    I want is to restrict the data source , so only some test cases will be launched .
    In my test scripts , the TestMethod looks like this :              
            [TestMethod]
            [DataSource("ADatabase.ATable")]
            public void runMyTests()
      and the AppConfig : 
    <microsoft.visualstudio.testtools>
        <dataSources>
          <add name="ADatabase.ATable" connectionString="AConnectionString" dataTableName="ATable" dataAccessMethod="Sequential"/>
    I want to restrict the data source to only one row from "ATable"  , for example . I found this but still I can't figure it out where to restrict the Unit test Adapter : 
    After Initializing the Database in TestInitialize, Your Changes Do not Appear
    When the data-driven test runs, Unit Test Adapter connects to your data table and builds a list of data rows. Then for each row it executes the methods TestInitialize, TestMethod, and TestCleanup. If you change data rows in TestInitialize, the Unit Test Adapter
    will not see that change. Therefore, if you want to change your data table for a data driven test, do so in the ClassInitialize or AssemblyInitialize method.
    http://msdn.microsoft.com/en-US/library/ms404700(v=vs.80).aspx
    Thanks !

    After Initializing the Database in TestInitialize, Your Changes Do not Appear
    When the data-driven test runs, Unit Test Adapter connects to your data table and builds a list of data rows. Then for each row it executes the methods TestInitialize, TestMethod, and TestCleanup. If you change data rows in TestInitialize, the Unit Test Adapter
    will not see that change. Therefore, if you want to change your data table for a data driven test, do so in the ClassInitialize or AssemblyInitialize method.
    http://msdn.microsoft.com/en-US/library/ms404700(v=vs.80).aspx
    According to the analysis of this error message, you need change your data table in 
    ClassInitialize
    or
    AssemblyInitialize method.

  • How to Test Adapter Module in NWDS

    Hi Friends,
    I have written an adapter module. Before deploying on adapter engine, I want to do test in NWDS. Any idea how to do this. Please provide sample java code, if possible.
    Thanks,
    Sandeep Maurya

    Hi,
    Since runtime and module processor framework is not available on your local machine that's why adapter module test not possible using NWDS on local machine.
    Another possibility is to install PCK on some local machine for testing purpose.
    You must deploy (either on PCK or AE) it and test.
    Regards,
    Gourav

  • How to test Adapter Module

    Hi
    My Scenario is File - to - File
    I have written one adapter module and i have deployed in J2ee Engine as well. In sender communication channel i have given the JNDI name like
    <b>"localejbs/<JNDI Name>"</b>.I have tested the my file to file scenario by placing a file in source directory which i have mentioned in Communication channel Source Directory and File Name.But i didnt find any difference in target file.
    I have used the following blog
    <b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805</b>
    1.How to test the adapter module.
    2.How to configure my communication channel.
    Please help me its very urgent
    Best Regards
    Ravi Shankar B

    Hi,
    check JNDI service in visual admin to see if
    your service has the same name there
    >>>>1.How to test the adapter module.
    by using it in a channel
    >>>>2.How to configure my communication channel.
    add you adapter module to the adapter module tab
    in communication channel
    Regards,
    michal

  • SOAP Adapter in PCK

    Hi,
    I am trying to get the SOAP Adapter in the PCK running, but always get an error while sending a SOAP message to the adapter. I configured the send adapter as described under help.sap.com and when I try to check the availability of the channel by accessing the url
    http://localhost:50000/XISOAPAdapter/MessageServlet?channel=PartyA:SOAPService:soapchannel.
    I always get the following Error:
    Message Servlet is in Status ERROR
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_VAL_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#5 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal not instantiated
    ModuleProcessorRemote not instantiated
    The file adapter is working without any problems.
    Can anyone tell me what I am doing wrong?
    Regards,
    Ulf

    Hello Hans Christian,
    thank you for your reply. The Helper Servlet returns the following:
    <?xml version="1.0" ?>
    - <s:ChannelInfo xmlns:s="http://sap.com/xi/WebService/xi30">
      <channelID>748d6d504759d17c711b6540538844c3</channelID>
      <name>soapchannel</name>
      <type xmlns:st="http://sap.com/xi/XI/System">st:SOAP</type>
      <direction>INBOUND</direction>
      <party>PartyA</party>
      <service>SOAPService</service>
      </s:ChannelInfo>
    I think my problem might have something to do with jndi, because it seems, that the ModuleProcessorBean can not be found (The message servlet returns "ModuleProcessorLocal not instantiated" and when I look in the server log files there is also a NameNotFoundException during the lookup of ModuleProcessorBean.) Could this have something to do with my problem?
    I am now trying to update the WebAS and PCK to the latest support package and hope, that this helps somehow.
    Thanks in advance for any further help.
    Regards,
    Ulf

  • Testing Adapter Module in NWDS

    hi,
    I have got a code for adapter module,I wanted to test it standalone using NWDS.
    class XML2EdifactBean
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
              throws ModuleException { //Some Code... }
    I am getting some error while executing the adapter module ,so I want to call the function using main method.Can you provide me with a sample code for this.
    regards,
    Ujjwal Kumar.

    This would be too complex to do all necessary steps for a stand alone test.
    I recommend to split the generic adapter module stuff and the part, you really want to do something.
    For the adapter modul, which we used on Teched session:
    GetHostName.java code for 3.0/7.0
    I did following: I introduced a helper class and passed the DOM code
    public class HelperClass {
         String hostElementName = "host";
         String hostName = "host";
        public static void main(String[] args) {
            try {
                InputStream in = new FileInputStream(new File("in.xml"));
                OutputStream out = new FileOutputStream(new File("out.xml"));
                new HelperClass().execute(in, out);
            } catch (Exception e) {
                e.printStackTrace();
        public void setHostElementName(String hostElementName){
             this.hostElementName = hostElementName;
        public void setHostName(String hostName){
             this.hostName = hostName;
        public void execute(InputStream in, OutputStream out){
             try  {
                  DocumentBuilderFactory factory;
            factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document document = builder.parse(in);
            Element rootNode = document.getDocumentElement();
            if(rootNode != null)  {
                Element childElement =
                document.createElement(hostElementName);
                childElement.appendChild(document.createTextNode(hostName));
                rootNode.appendChild(childElement);
            // Transforming the DOM object to Stream object.
            TransformerFactory tfactory = TransformerFactory.newInstance();
            Transformer transformer = tfactory.newTransformer();
            Source src = new DOMSource(document);
            Result dest = new StreamResult(out);
            transformer.transform(src,dest);
             } catch(Exception e){}
    in the bean class, I used the helper class:
         XMLPayload xmlpayload = msg.getDocument();
                InputStream in = xmlpayload.getInputStream();
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                HelperClass hc = new HelperClass();
                hc.setHostElementName(hostElementName);
                hc.setHostName(hostName);
                hc.execute(in,out);
                byte[] docContent = out.toByteArray();
                if(docContent != null)  {
                    xmlpayload.setContent(docContent);
                    inputModuleData.setPrincipalData(msg);
    Now I can test the parser in the NWDI
    Regards
    Stefan

  • XI Adapter and PCK

    How XI identify Sender system through XI Adapter?
    Foe example I have 2 PCK. I create 2 system PCK1,  PCK2 and 2 sender channels with XI Adapter. Each sender PCK uses different interfaces. Each PCK is configured with receiver channel with XI Adapter (http://server:8000/sap/xi/engine?type=entry)

    Hi Sergey,
    Hava a look at these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/091640a991c742e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/0a1640a991c742e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/0a1640a991c742e10000000a1550b0/content.htm
    Cheers,
    Chandra

  • SOAP Adapter and PCK ??

    Hi,
    I want to implement following scenario.
    .Net Application -> XI -> R/3
    I think the best way would be using a SOAP adapter
    SOAP->XI->RFC(to R/3).
    Can anyone pls let me know , what are the steps that need to be performed to make this happen ?
    Also do I need Partner Connectivity kit to implent this particular scenario , or when would I want to use PCK ?
    Thanks ,
    Vivek
    PS : Point will be definitely awarded

    Hi Vivek,
    Configure your Soap Sender Adapter as given in the link below :
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    For configuring your receiver RFC this weblog might be useful
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Steps :
    1) <b>Design Part</b>
    1. Create the data type, message type for input( from your .net Application) in XI
    2. Create a Synchronus Message Interface for the input side (SOAP Adapter).
    3. Import the required RFC.
    4. Do the corresponding Message Mapping and Interface Mapping.
    2) <b>Configuration Part</b>.
    1. Add the Business System and the Service (SOAP) needed.
    2. Create the communication channels
      a) SOAP (sender)
      b) RFC (receiver)
    3. Create the sender agreement, receiver determination and receiver agreement.
    4. Now create the wsdl file (using the tools -> Define Web Service of Integration Directory).
    5.Save the wsdl file.
    6. Now create your .Net application and add your wsdl file to that (as Web Reference).
    Hope it will be helpful.
    For any other doubts do revert back.
    Regards
    Suraj

  • Error exception when testing Adapter

    Hi all
    1.I am doing XML to File  and I am getting error when I am testing the scenario with my input.dat xml file...FYI when I do XML2XML in the same scenarion - the Flag is OK and everything looks great ! I also Do Message Mapping Test and I have OK there...So I am 99% mapping should be fine ..
    2. I also wonder how many substracture Fiel Adapter can handle - at Receiver Part
    At receiver I have :
    Recordset
      Header
      Record
         RecordInfo1
           f1
           f2
           f3
         RecordInfo2
           f5
           f6
           f7
         RecordInfo3
           f8
           f9
           f10
      Trailer
    RecordInfos are substructures of Records - Can this be handled by FCC in File Adapter?
    Here is the error :
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MAPPING_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_MAPPING_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Appreciate any clues asap !
    Thanks
    J

    Hi Jon,
    You can test your entire configuration in ID..
    Goto ---> Tools -
    > TestConfiuration
    Put your actual payload data here and test it....
    Hope its helps..
    Kumar.S

  • RWB - Cache Connectivity Test - Adapter Engine shows error

    Hello Friends,
    In our one production system (PI 7.1), while do 'Cache Connectivity Test' from RWB -> Component Monitoring, it shows the following error for Adapter Engine under Integration Directory.
    Error:
    Cache notification from Integration Directory failed Error when accessing the System Landscape Directory.
    No SLD elements of type SAP_XIAdapterFramework found
    But, Integration Server - ABAP, Integration Server - JAVA shows green color. The messages are flowing through the Adapter Engine fine. i.e I am seeing 2 Adapter Engines under Integration Server in Component Monitoring. One Adapter Engine is in grey and another Adapter Engine shows green color.
    When I click the grey color adapter engine, it immediately turns to red color and some different host name url is displayed (http://<wronghost>:53000/AdapterFramework/rtc).
    So, what could be the problem ?
    Kindly clarify, friends.
    Thanking you.
    Kind regards,
    Jegathees P.

    Hello Jegathees
    Apply the solution in note #804124 HTTP communication with XI Adapter Engine fails. Set the parameters:
    SLD.selfregistration.hostName     
    SLD.selfregistration.httpPort     
    SLD.selfregistration.httspPort    
    as described in the note.
    Regards
    Mark

  • Should a XI Adapter be deployed on PCK or XI Server?

    Hi Friends,
    I'm doing a project for developing a XI Adapter which connect the SAP ERP to a cXML server.
    In the SAP side, there is a NetWeaver XI server, and a SAP Adapter service deployed on it to convert iDoc to xml, and vice versa.
    The XI Adapter I developed will map the xml to cXML, and send the cXML to cXML server (by HTTP connection), should I deploy this adapter on the same XI server? Or deploy it on PCK?
    Thanks in advance.
    Best Regards,
    Jason
    Message was edited by: Jason Wang
    Message was edited by: Jason Wang

    For developing and testing use the PCK.
    For runtime use the XI or de-central adapter engine.
    Regards
    Stefan

  • PCK SP14 Sapmple Adapter

    Dear all,
    I have a question regarding the sample adapter which is described in the PCK documentation. Is this one functional or just only a skeleton for further own developments? I have tried to set up a loopback scenario as described in the manual, but it seems the adapter does not run. If I go into monitoring the Adapter is shown, but i was not able to get details; it is not listed if I retrieve "installed and started" adapters.
    Any hints for me? I'm using PCK SP14 deployed on WebAS SP14.
    Thank you very much!
    Prinz

    Hi Kleiner,
       You can test the Sample Adapter, it is not only just skeleton for own development.I have tested it on Decentralized Adapter Engine.The same way you can test it on PCK. You need to upload your metadata in a perticular namespace.And in monitoring if the adapter is not started means u haven't deployed the Adapter. Have a look at this weblog
    /people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter
    regards,
    Gowtham K.

Maybe you are looking for