J2SE Aadpter Engine's File AdapterConfig. to J2EE Adapter Config

Hi All,
Could anybody throw light on Converting the J2SE Receiver File Adapter Configuration to J2EE Receiver File Adapter Configuration which uses Dispatcher Classes too...
TO be more precise.....
Where do the follwoing Properties fit in the New J2EE receiver File Adapter...
file.counterMode=immediately
file.counterSeparator=_
file.counterFormat=00000
file.counterStep=1
Whether it should be Given in the Additional parameters while we configre our Receiver Comm. Channell ? If yes How? I could not find any Docu. for specifying Additional parameters.....
Thanks,
Romit.

Hi Romit,
Under Processing Parameters set File Construction Mode = "Add Counter". Now a Counter Definition section appears where you can define the rest.
- Thorsten

Similar Messages

  • Editing application-j2ee-engine.xml file in Web Dynpro DC

    I'd like to set one of my web dynpro apps to automatically start whenever the J2EE engine is started.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/94/0a5b422f786255e10000000a155106/frameset.htm">This SAP Library document</a> states that you can do that in the application-j2ee-engine.xml file. However, I cannot find the application-j2ee-engine.xml file anywhere in my Web Dynpro DC. I've opened the DC in Web Dynpro Explorer view, Package Explorer view, Navigator view, J2EE DC Explorer view and J2EE Explorer view.
    Even after expanding all the folders in each view I still can't find the application-j2ee-engine.xml file.However if I search my '.dtc' folder on my hard drive I find the application-j2ee-engine.xml file in the following path:
    C:\...\.dtc\1\t\13AA2EFA530FEB42915442D10D7C71A6\gen_wdp
    How can I EDIT that file for a web dynpro component/app?
    Thanks!
    David
    Message was edited by: David Z. Pantich to include the link to the SAP Library document

    Hi Maksim. I understood that. It's just that I would prefer some method that doesn't require the developers to do something like extracting a file from the EAR file, changing the file and then putting it back in. As you probably know, some developers could handle it and some will most certainly make mistakes.
    When they do they come to my group and say "my app doesn't work" and then we have to spend time figuring out why.
    Plus, once the developers get used to doing things the automated way they're going to have a hard time remembering to do a manual step each time they do a build.
    I have heard that there may be some way to do something similar to this on Visual Administrator. I'm going to investigate that too.
    Thanks!
    David.

  • Guide for J2EE Adapter Engine on WAS 6.40 with XI 3.0

    Hi all,
    we are currently struggling with our AE. We are going to migrate from Xi 2.0 to  XI 3.0, we run into problems while configuring our old J2SE AE (for which I have found a good PDF document on the SAP Service Marketplace).
    Now we would like to test/configure the J2EE AE on XI 3.0.
    But I cant find any guide for this on the SAP Service Marketplace. Does anyone know where to find this?
    Thanks
    Nesimi Buelbuel

    Hi Nesimi,
    There is a webinar replay of "Troubleshooting the J2EE Adapter Engine" at
    https://www.sdn.sap.com/sdn/webinar.sdn?res=/irj/servlet/prt/portal/prtroot/com.sap.sdn.wcm.compound.docs//library/uuid/47a9a361-0301-0010-d39a-dd40d34b2e9d
    Also make sure you check these links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/configuring a local adapter engine.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/configuration guide - sap xi 3.0.pdf
    Regards,
    Sridhar

  • J2ee Adapter engine installation error

    Hi All,
    I am installing XI with NW07. I had an ERP2005 server here with ABAP only. I installed Java Add In to it with usage type PI.
    Now I tried to install J2ee adapter engine. It showed if i want to run a new installation or continue the old one.
    I tried to install installation of J2ee adapter engine from a new directory.
    It is stuck in between. I choose it as a MCOD to existing DB.
    I can see a new instance for this in MMC and it is up and running.
    But the old java instance is not running. None of the Proceses of Old Java instance (dispatcher, server0 and SDM) are not running. Did I do something wrong?
    My JVM_BOOTSTRAP.OUT says this:-
    Exception occurred:
    com.sap.engine.frame.core.configuration.NameNotFoundException: A configuration with the path "cluster_data/dispatcher/ID4065200" does not exist.
    at com.sap.engine.core.configuration.impl.ConfigurationDataCacheAllImpl.getSubConfiguration(ConfigurationDataCacheAllImpl.java:107)
    at com.sap.engine.core.configuration.impl.ReadAccessConfiguration.getSubConfiguration(ReadAccessConfiguration.java:715)
    at com.sap.engine.bootstrap.Synchronizer.getConfiguration(Synchronizer.java:426)
    at com.sap.engine.bootstrap.Synchronizer.getElementType(Synchronizer.java:72)
    at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:420)
    at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:144)
    at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:814)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Exception occurred:
    com.sap.engine.bootstrap.SynchronizationException: Database initialization failed! Check database properties!
    at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:422)
    at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:144)
    at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:814)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    == Caused by: ==----
    com.sap.engine.bootstrap.SynchronizationException: No such Dialog Instance (ID4065200) in the database! Check database consistency or local Bootstrap properties!
    at com.sap.engine.bootstrap.Synchronizer.getElementType(Synchronizer.java:75)
    at com.sap.engine.bootstrap.Bootstrap.initDatabaseConnection(Bootstrap.java:420)
    at com.sap.engine.bootstrap.Bootstrap.<init>(Bootstrap.java:144)
    at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:814)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Bootstrap module> Problem occurred while performing synchronization.
    My dev_jcontrol.b00 shows:-
    JControlStartJLaunch: program = C:\usr\sap\IDE\DVEBMGS00\exe\jlaunch.exe
    -> arg00 = C:\usr\sap\IDE\DVEBMGS00\exe\jlaunch.exe
    -> arg01 = pf=C:\usr\sap\IDE\SYS\profile\IDE_DVEBMGS00_sapides
    -> arg02 = -DSAPINFO=IDE_00_bootstrap
    -> arg03 = -nodeId=-1
    -> arg04 = -file=C:\usr\sap\IDE\DVEBMGS00\j2ee\cluster\instance.properties
    -> arg05 = -syncSem=JSTARTUP_WAIT_ON_5284
    -> arg06 = -nodeName=bootstrap
    -> arg07 = -jvmOutFile=C:\usr\sap\IDE\DVEBMGS00\work\jvm_bootstrap.out
    -> arg08 = -stdOutFile=C:\usr\sap\IDE\DVEBMGS00\work\std_bootstrap.out
    -> arg09 = -locOutFile=C:\usr\sap\IDE\DVEBMGS00\work\dev_bootstrap
    -> arg10 = -mode=BOOTSTRAP
    -> arg11 = pf=C:\usr\sap\IDE\SYS\profile\IDE_DVEBMGS00_sapides
    -> arg12 = -DSAPSTART=1
    -> arg13 = -DCONNECT_PORT=4740
    -> arg14 = -DSAPSYSTEM=00
    -> arg15 = -DSAPSYSTEMNAME=IDE
    -> arg16 = -DSAPMYNAME=sapides_IDE_00
    -> arg17 = -DSAPPROFILE=C:\usr\sap\IDE\SYS\profile\IDE_DVEBMGS00_sapides
    -> arg18 = -DFRFC_FALLBACK=ON
    -> arg19 = -DFRFC_FALLBACK_HOST=localhost
    -> lib path = PATH=C:\j2sdk1.4.2_09\jre\bin\server;C:\j2sdk1.4.2_09\jre\bin;F:\oracle\IDE\102\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_06\bin;C:\j2sdk1.4.2_06\lib;C:\usr\sap\IDE\SYS\exe\uc\NTI386
    -> exe path = PATH=C:\j2sdk1.4.2_09\bin;C:\usr\sap\IDE\DVEBMGS00\j2ee\os_libs;F:\oracle\IDE\102\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_06\bin;C:\j2sdk1.4.2_06\lib;C:\usr\sap\IDE\SYS\exe\uc\NTI386
    Thr 4232 Tue Sep 16 17:48:04 2008
    Thr 4232 *** ERROR => invalid return code of process bootstrap (exitcode = 66) http://jstartxx.c 1642
    Thr 4232 JControlExecuteBootstrap: error executing bootstrap node bootstrap (rc = 66)
    Thr 4232 JControlCloseProgram: started (exitcode = 66)
    Thr 4232 JControlCloseProgram: good bye... (exitcode = 66)
    My DEV_BOOTSTRAP.B00 shows:-
    Thr 5984 Tue Sep 16 17:48:02 2008
    Thr 5984 JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.PerfTimes
    Thr 5608 Tue Sep 16 17:48:04 2008
    Thr 5608 JLaunchIExitJava: exit hook is called (rc = 66)
    Thr 5608 **********************************************************************
    u2022     
    o     
         ERROR => The Java VM terminated with a non-zero exit code.
         Please see SAP Note 943602 , section 'J2EE Engine exit codes'
         for additional information and trouble shooting.
    Thr 5608 JLaunchCloseProgram: good bye (exitcode = 66)
    I ran the prerequisite checks before starting the installation.
    It shows everything ok except it told me to have a environmental variable as CPIC_MAX_CONV with the value 200 at least. And I did that.
    All the other checks were ok.
    All are on SAME OS and same machine.
    I have J2EE Adapter Engine installation guide, but there is nothing for this in that
    In Instance properties file for the old instance it is showing the instance ID which it is not able to find.
    In the configtool of both the instances, the instance ID is same under cluster_data and this is of the newer instance
    How did the instance ID and data got replaced in the configtool of old instance. I mean the new instance has its new directory or folder.
    What Could be the problem?
    Did I do anything wrong here?
    Kindly help

    Hi,
    Check out the SNote 997510, " Note 997510 - Troubleshooting
    J2EE Engine 6.40/7.0 Bootstrap Issues ".
    I hope it will help you to drill more in to the problem
    Rgds
    Radhakrishna D S

  • Installation of J2EE Adapter Engine with DB on different host

    Hello all,
    I don't know if this is the right thread, but hopefully it is.
    I have got following assignment:
    I have to install NW70 PI/XI J2EE Adapter Engine. The trouble is, that due to a CI and DB hosts politics it's necessary to have database on different host than the central instance is.
    But unfortunatelly the "SAPINST" program and its choice of J2EE Adapter Engine installation doesn't offer the possibility to install the product (J2EE AE) as a distributed system. SAPINST simply installs J2EE AE on one host including database. I've not succeeded the find a work-around.
    I got two ideas, but I would like to confirm them:
    1) Instal full SAP Java AS as a distributed system. After proper installation and patching I would use a SDM tool and deploy all necessary components to get a J2EE Adapter Engine "like" system. The  only problem is that I don't know exact difference between normal SAP Java AS and SAP J2EE Adapter Engine and I'm not sure where could I get all necessary .SAR files.
    2) Make a installation of SAP J2EE Adapter Engine as SAPINST allows. After installation and pathing, shutdown the system and move database to desired host, change all settings and start SAP J2EE AE as a distributed system. Only thing I'm not sure about is, if the J2EE AE would run in such a landscape.
    Could anyone help me to get out of this deadend ?
    Thank you for your comments in advance. Rewards points granted.
    Tomas

    Hi Jitendra,
    thank you for your effort.
    Maybe the question is more to Oracle forum part, because I don't think, that I would be able to do the installation as I described in point 1) (distributed JAVA AS and manuall deploying of AE components).
    Probably the SAPINST is built up in this way, because in most cases it's needed to install J2EE AE on side of the other integrated system and there is one special machine dedicated to it.
    If this is true and J2EE AE is really "normal JAVA AS" with some more functionality, I think the installation can be done as I described in point 2) - to install the J2EE AE locally, then shut it down and move the database to different host as required.
    Anybody with different idea ?
    Thank you
    Regards
    Tomas

  • OC4J: Class not found for class in jar file placed in \j2ee\home\applib\

    I have an ADF application which uses external libraries (jars), which works fine when running the application from within JDeveloper (TP4).
    However if I deploy the application to the embedded OC4J server it won't find any classes imported in those external libraries at runtime (deploy does work). E.g. one library class imports oracle.jbo.server.DBTransaction. If a method of this class is called I get the following exception:
    Unexpected exception caught: java.lang.NoClassDefFoundError, msg=oracle/classloader/util/AnnotatedNoClassDefFoundError
    oracle/classloader/util/AnnotatedNoClassDefFoundErrorThe same exception, when using a german locale, explicitely states that it cannot find oracle.jbo.server.DBTransaction.
    The jar files are placed in the \j2ee\home\applib\ directory and a <library> element to this path is present in application.xml.
    Any further hints what could be wrong?

    Hi Edwin,
    tried your suggestions but without success.
    when I add this library to server.xml then following error occures when starting OC4J
    17.09.2008 17:10:33 oracle.oc4j.util.SystemLog log
    SCHWERWIEGEND: Server start failed processing configuration
    java.lang.InstantiationException: Illegal tag, 'library': The library tag has moved from config/server.xml to config/application.xml, please update your configuration manually or reinstall.
            at com.evermind.server.XMLApplicationServerConfig.parseDeploymentMainNode(XMLApplicationServerConfig.java:1227)
            at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:342)
            at com.evermind.xml.XMLConfig.init(XMLConfig.java:222)
            at com.evermind.xml.XMLConfig.init(XMLConfig.java:154)
            at com.evermind.server.XMLApplicationServerConfig.<init>(XMLApplicationServerConfig.java:237)
            at com.evermind.server.ApplicationServer.createConfig(ApplicationServer.java:661)
            at oracle.oc4j.server.ServerFactory$Worker.prepareConfig(ApplicationServerFactory.java:225)
            at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:244)
            at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
            at java.lang.Thread.run(Thread.java:619)
    17.09.2008 17:10:33 oracle.oc4j.util.SystemLog logNoStack
    SCHWERWIEGEND: Server exiting: ApplicationServer entered state EXITING--> I added this to application.xml
    Than I enabled more logging of classloader "-Duser.country=US -Dclass.load.log.level=finest"
    Here a snippet of the output at starttime of OC4J:
    ================================
    08/09/18 10:17:07 Initial class loaders created. Uptime: 3156ms.
    08/09/18 10:17:07 Loading main class com.evermind.server.OC4JServer...
    08/09/18 10:17:07 com.evermind.server.OC4JServerMain class loaded. Uptime: 3344ms.
    08/09/18 10:17:07 Transferring to com.evermind.server.OC4JServer.main()...
    08/09/18 10:17:15 Ignoring non-existent code source: D:\oracle\jdevstudio1111_preview4_standalone\j2ee\home\config\..\..\..\BC4J\lib\jmxdc.jar(from <code-source> (ignore manifest Class-Path) in /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/config/server.xml)
    08/09/18 10:17:15 Ignoring <code-source> (ignore manifest Class-Path) in /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/config/server.xml entry: code-source /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/lib/api-ext/adflogginghandler.jar (from system property api.ext.dirs) is already visible in the search path of adf.oracle.domain:11.1.4949.
    08/09/18 10:17:15 Ignoring non-existent code source: D:\oracle\jdevstudio1111_preview4_standalone\j2ee\home\config\..\..\..\BC4J\lib\jmxdc.jar(from <code-source> (ignore manifest Class-Path) in /D:/oracle/jdevstudio1111_preview4_standalone/j2ee/home/config/server.xml)
    08/09/18 10:17:15 Import was not resolved for adf.oracle.domain:11.1.4949: shared library "oracle.fabric.runtime" could not be found.
    08/09/18 10:17:15 Import was not resolved for adf.generic.domain:11.1.4949: shared library "oracle.fabric.runtime" could not be found.Seems that oracle.fabric.runtime couldn't be found but the jar's are located in D:\oracle\jdevstudio1111_preview4_standalone\lib\java\shared\oracle.fabric.runtime\11.1.1.0.0
    It's the same as with my jdeveloper installation where I don't have this problems.
    regards
    Peter

  • Empty file to process in customer J2EE adapter module

    Hi All,
    if i give an empty text file to a sender communication channel, then no message is generated by XI.
    i want to generate a dummy XML if empty file is given.
    so is it possible to make a customer-specific J2EE adapter module - then deploy it - then if in sender comm channel this adapter module is written before SAPAdapter module, then should XI generate a dummy XML for this empty file.
    i am asking this because i developed a J2EE adapter module, then deployed it, then tried to invoke it  from sender comm channel but this J2EE adapter module is not getting invoked - this i can tell because i have written the following lines only in Java class process method:
    <i>Message msg_audit = (Message)inputModuleData.getPrincipalData();
    AuditMessageKey amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
    Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"FileCheck: Module called");
                                                 return inputModuleData;</i>
    but still in the audit log only 3 messages of entire file content converted to XML format, empty doc so no sending of message and deleting of empty file are coming.
    <b>Can anybody suggest whether is it possible to process an empty text file to generate a dummy XML in sender communication channel in XI.</b>
    Thanks,
    Rajeev Gupta

    Hi All,
    When i write this code:
    try
                                                                obj = inputModuleData.getPrincipalData();                                                  
                                                                msg_audit = (Message)obj;
                                                                amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
                                                                Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"FileCheck: Module called");
                                       <i>File f = new File("/components/XITEMP/sample/PWC/check.txt");                                                            
                                                                          if (f.canWrite())
                                                                                         PrintStream ps;
                                                                                         FileOutputStream fos =new FileOutputStream(f);
                                                                                         File f1 = new File("/components/XITEMP/sample/PWC/check1.txt");
                                                                                         ps = new PrintStream(fos);
                                                                                         if (f1.exists()==false)
                                                                                              f1.createNewFile();                                                                    
                                                                                         ps.println("Testing");
                                                                                         ps.close();
                                                                                         fos.close();                                                            
                                                                               else
                                                                                    File f2 = new File("/components/XITEMP/sample/PWC/check2.txt");          
                                                                                    if (f2.exists()==false)
                                                                                              f2.createNewFile();                                                                    
                                                                               }               </i>                                        
    it works fine......it creates the file check1.txt
    but when i place the italiced code in this format:
         try
                                                                obj = inputModuleData.getPrincipalData();                                                  
                                                                msg_audit = (Message)obj;
                                                                amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
                                                                Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"FileCheck: Module called");
                                                           catch (Exception e)
                                                                     try
                                                                          File f = new File("/components/XITEMP/sample/PWC/check.txt");                                                            
                                                                          if (f.canWrite())
                                                                                         PrintStream ps;
                                                                                         FileOutputStream fos =new FileOutputStream(f);
                                                                                         File f1 = new File("/components/XITEMP/sample/PWC/check1.txt");
                                                                                         ps = new PrintStream(fos);
                                                                                         if (f1.exists()==false)
                                                                                              f1.createNewFile();                                                                    
                                                                                         ps.println("Testing");
                                                                                         ps.close();
                                                                                         fos.close();                                                            
                                                                               else
                                                                                    File f2 = new File("/components/XITEMP/sample/PWC/check2.txt");          
                                                                                    if (f2.exists()==false)
                                                                                              f2.createNewFile();                                                                    
                                                                     catch(Exception ex)
    it doesnot create the file check1.txt......
    Can anybody suggest why in the exception block this italiced code is not working........means it is working in try block of try{}catch{} block.......but it is not working in catch block of try{}catch{try{}catch{}}
    Thanks,
    Rajeev Gupta

  • Bad adapter engine configuration - File Sender scenery doesn't work

    In file sender scenery, the adapter doesnu2019t pass any message to the Integration Engine.
    When I take a look to the communication channel monitoring it shows the channel with status OK (Green). But when I look into the audit log of the incoming message I see the following error:
    Received XI System Error. ErrorCode: INBOUND_BINDING_ERROR ErrorText:   ErrorStack: Error in sender agreement for party , service VLTEST, interface namespace urn:damm.es:vialactea:logistica, interface oa_SimpleLine No sender agreement found for , , , , ,
    The sender agreement exists in the Directory and the status of the cache is OK.
    But in the Message Data I see this End Point URL: http://asrmd:8082/sap/xi/engine/?type=entry
    This is adapter is attached to a development system instance number 80 and the port of the above URL is a reference to the TEST system instance number 82. I investigate this issue but I canu2019t find where the miss-configuration is causing this bad End Point.
    Have anybody an idea about this problem. Itu2019s the first time I found this kind of miss-configuration.
    All other adapters are working fine. The file receiver adapter is working fine too.
    Thanks in advanced.

    Hi Sergi,
    Now is clear. Sorry but I didn´t see your posts properly. I didn't move the cross bar until the final.
    So now I change my point of view.
    Go to Runtime Workbech --> Component Monitoring --> Integration Engine --> Test Message. Which URL is displayed here? is it right?
    If don't, effectively you have wrong configured your URL of the Integration Engine.
    Go to SLD --> Business Systems --> Select your XI business System. At the Integration Configuration tag check the URL, if it is wrong, change it and save the changes. Remember that the rol must be Integration Server.
    Refresh the caches.
    Hope it is usefull.
    Carlos

  • Dummy XML not getting generated from empty file by J2EE adapter module

    Hi All,
    i know when XI gets an empty input text file, it does not generate a send message for it in sender communication channel.
    in my scenario, if i get a file with data, i have to generate an XML message for it using file content conversion - this i have done...........
    but if i get an empty text file, then i have to generate a dummy XML send message for it for my BPM.......
    So i made a J2EE adapter module to generate dummy xml for empty file.....<b>when i give a file with data in it, then my adapter module is called..... but when i give an empty file, then my adapter module is not called</b>.........
    <b><i>Can anybody suggest why the module processor is not invoking my customer-adapter module when an empty file is given.............but the module processor is invoking my customer-adapter module when a file with data is given</i>.</b>
    Thanks,
    Rajeev Gupta

    Hi Amit,
    Below is the code of process method which i used:
    <i>public ModuleData process(ModuleContext moduleContext,
      ModuleData inputModuleData)
        throws ModuleException
    Object obj;
    Message msg_audit;
    AuditMessageKey amk;
    try
    File f = new File("/components/XITEMP/sample/PWC/check.txt");
    PrintStream ps;
    if (f.canWrite())
    FileOutputStream fos =new FileOutputStream(f);
    ps = new PrintStream(fos);  
    ps.println("Testing");
    ps.close();
    fos.close(); 
    else
      f = new File("/components/XITEMP/sample/PWC/check4.txt");
      if (f.exists() ==false)
      f.createNewFile();
    obj = inputModuleData.getPrincipalData();
    if (obj!=null)
    msg_audit = (Message)obj;
    amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
    Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"FileCheck: Module called");
    else
      String str = new String();
    String str1 = new String();     
                  str1="<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
                 str1+="<ns:MT_PWC_RECORD xmlns:ns=\"urn://PWC_SR3_01/PWC/Customer\">";
             str1+="<RECORD_SET>";     
                 str1+="<RECORD>";
             str1+="<RECORD_DATA>BLANK_FILE</RECORD_DATA>";
             str1+="</RECORD>";
             str1+="</RECORD_SET>";
             str1+="</ns:MT_PWC_RECORD>";     
    str=str1; 
    inputModuleData.setPrincipalData(str);
    catch(Exception e)
    try
    File f = new File("/components/XITEMP/sample/PWC/check.txt");
    PrintStream ps;
    if (f.canWrite())
      FileOutputStream fos =new FileOutputStream(f);
      ps = new PrintStream(fos);  
      ps.println(e.toString());
      ps.close();
      fos.close(); 
    catch(Exception ex)
    return inputModuleData;
       }</i>
    in the above methood, i  used file operations at start just to see whether the module is getting invoked or not...so when i give a data file, then the file operations are performed and messages are written in audit log.........but when i give an empty file, then the file operations are not performed - meaning the module is not getting invoked........
    Thanks,
    Rajeev Gupta

  • SOAP adapter in XI3.0 using J2EE adapter engine

    Folks,
    I have a scenario SOAP client -> XI 3.0
    I am using XI 3.0 and the J2EE adapter framework to configure a sender SOAP adapter. I do not have a Party, just the service and the channel.
    I tried using the following url format:
    http://<server>:50000/XISOAPAdapter/MessageServlet?channel
    =:<service name>:<channel name>
    When I use this in my SOAP client , I get an 401 forbidden error in the browser. However when I type this url directly in the browser and I get:
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_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 is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0
    ModuleProcessorRemote not instantiated
    A couple of questions:
    1. Inspite of configuring the sender SOAP adapter, the sender service and the interface, I still cannot see the green light for the SOAP adapter in rumtime workbench->adapter monitoring.
    Although the communication channel (in intergration builder- design)shows the status of the adapter as "active"
    Does this mean that my SOAP adapter is correctly configured and active?
    2. The above mentioned url takes the ABAP engine login/password while the J2EE engine (AFW)takes a different login/password. Which authentication should the SOAP client use?
    Thanks for your help!
    Shailesh

    Post your message to following URL:
    http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
    port is the J2EE port 50000 in your example.
    Check the newest manual for further details.
    Regards
    Stefan

  • Error in Local J2EE Adapter Engine

    Hi All,
    We configured the J2ee Adapter engine and did the design and Configuration part also.but while testing the scenario it's giving error in SXMB_MONI as
    *<?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.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=BS_LAE;TS=BS_LAE;AN=MI_PPS_IB;ANS=urn:pps.com;</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can anyone suggest me?
    Thanks,
    Kalyan.

    Hi kalyan,
    If the error still says that, "Failed to determine a receiver agreement for the given message" - could you please compare the Sender/Receiver party/service determined in the XI message header and that in the Receiver Agreement in ID? Also please check the same for the Receiver Interface and Namespace. receiver agreement not found means any of these values doesn't match. If these look fine.............can you provide us with few more extra information...........like at which pipeline step in MONI you getting the error - the message hasn't yet reach Adapter Engine. So I don't think it's a problem in AE.
    Regards,
    Suddha

  • Decentral J2EE Adapter Engine

    I am trying to install a Decentral J2EE Adapter Engine.
    Please could someone tell me whether, when defining ABAP UME, should I define the same users as were defined on my Central PI instance for Admin & Guest, or should I use the suffix of the users as I receive in the default values on the screen ?

    Hi Mark,
    have you tried this presentation?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/03fd85cc-0201-0010-8ca4-a32a119a582d
    Regards,
    Michal

  • Installation of J2ee Adapter engine

    Hi All,
    As per my understanding in order to install J2ee Adapter engine, First we need to install Java System and later we install J2ee Adapter Engine.
    Please correct me if am wrong.
    Thanks,
    Kalyan.

    Hi Prateek,
    Thanks for ur reply,
    We ahve a J2ee engine in EP server. If i want to configure a Local J2ee engine in that.Do i need to install a separate J2ee adapter engine on already existed J2EE (EP)server. Or can i do directly Configuration in Visual Admin of the existed J2EE server to connect my PI system.
    My doubt is J2ee adapter engine already exists in J2ee engine of the WAS or is that a separate installation i need to do even i have tha J2EE engine.
    Please clarify my doubt.
    Thanks,
    Kalyan.

  • Moving the database of SAP J2EE Adapter Engine on another host

    Hello all,
    I'd like to ask SAP/Oracle experts if there is any obstacle, why would not be able to move Oracle database of SAP J2EE Adapter Engine on other/different host after the installation.
    As I describe int he thread [Installation of J2EE Adapter Engine with DB on different host|Installation of J2EE Adapter Engine with DB on different host;, the SAPINST program doesn't offer the possibility to install J2EE Adapter Engine with DB on other host than the central instance.
    Only thing I'm not sure about is if this is done by any purpose for some database requirement, or it's simply not there.
    SAP J2EE AE is normal JAVA AS with some more functionalities and is also installed within SAP PI/XI installation, which can run in "distributed model" system.
    What do you think ?
    Thank you for your opinion in advance.
    Regards
    Tomas

    No opinion anyone ?
    Tom

  • Using JNDI to access config file located outsite j2ee app

    Hi I'm wanting to store a config file for my J2ee app, somewhere on a tomcat server possibly inside the
    conf/ directory so that I can update this config file without having to redeploy the j2ee app every time a change is made.
    I've been told I can use JNDI to access this file, but I can't seem to find any examples or documentation on how I can do this.
    I'm new to JNDI and would appreciate any help, or suggestions.
    Thanks,
    Tim
    EDIT:
    So far I can access the file with this code:
    Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
              try {
                   Context ctx = new InitialContext(prop);
                   // look up context for name
                   //env.put(Context.PROVIDER_URL, "file:C:\\confluence\\confluence-2.5.1-std\\conf");
                   File f = (File)ctx.lookup("/confluence/confluence-2.5.1-std/conf/test.txt");My new problems are:
    1. The commented line env.put(Context.PROVIDER_URL, "file:C:\\confluence\\confluence-2.5.1-std\\conf"); it says in examples that this should set the dir to look in to the conf dir but if i change the lookup value to just test.txt it cannot find it.
    2. Can I somehow set the context to look into the conf directory of Tomcat without hard coding the path, as the path could change or be different on different machines??
    Edited by: Timothyja on Jan 15, 2008 7:00 PM

    Hi Kiran,
    Looking at the code you sent and the error, it looks like you should be casting the ds object to a javax.sql.DataSource object not a weblogic.jdbc.common.internal.RmiDataSource object.
    You may find some useful info at the following URL:
    http://edocs.bea.com/wls/docs81/jdbc/rmidriver.html#1026007

Maybe you are looking for

  • Can not update BIOS R830-14U

    Notebok Satellite R830-14U (part ? PT32LE) with BIOS 2.70 & EC 1.10 after upgrade Intel Management Engine Interface v.7.1.52.1176 i can not update BIOS - error "This computer is not supported" http://ru.computers.toshiba-europe.com/innovation/dodrive

  • HT201365 Is there a way to track phone while they are driving

    track another phone on find myiphone

  • Dynamic Side menu question!

    Hi All Can someone help me with a menu issue I have, basically the problem seems very simple. All I want to do is specify that when a specific 'Entry Point' item is selected the dynamic menu is closed when the page is viewed. The reason for this is t

  • Purchase Org Missing error

    Hi All, we have the Purchase group & Purchase Org maintained in the Purchase org structure (ppoma_bbp) but when creating shopping cart i'm getting the following errors 1- purchasing org for follow-on doc missing 2- purchasing group O xxxxx(org unit I

  • Help installing Photoshop CS4 on aWin 8.1

    I have just received my new HP laptop with Windows 8.1 I have installed Photoshop CS4, which does work BUT it causes the store and other apps to not work. Is thee some work around I can use?  Will CS4 actually work with Win8.1 ?? Thanks.