File sender Communication Channel is not working

Hi friends
we  Created File sender Communication Channel and Activated but It is not picking up file
1.  0 messages in Message Monitoring
2. My Communication Channel not appearing in Communication Channel Monitoring also
3. We have refreshed the cache and activated the channel.
we chack with File name, Directory name and  path ....
Friends have any idea
Regards
   Viswanadh Vadde

Perosnally, I would recommend setting a trace and letting the system telling you exactly why.
Traces are used to analyze runtime errors.  By setting a specific trace level for specific locations, you can analyze the behavior of individual code segments at class and method level.  This is done with the help of the log configurator service:
Log onto the Java Admin Console
     Services
     Log Configurator
     Locations
     Choose the location (Java package) and the tracing level (severity)
(for example, com.sap.aii.adapter.file)
     Root Location > com > sap > aii > File
     Set the severity and choose Copy Severity to Subtree

Similar Messages

  • RFC Sender Communication Channel is not Working Properly

    Hi All,
    I had a Small Problem.
    I had configured RFC Sender in Asyn mode as given in Weblog 5398
    The Scenario is working fine for 1 time, after the execution the Communication Channel should be made Active again to make it work for the next time.
    For every time to Execute the Scenario i had to Activate the RFC CC.
    It is some complicated one. So any one please suggest me what can be done to Resolve the issue.
    Thanks in Advance.
    Sriram

    Hi Bhavesh,
    when we test RFC connection it is Failing and giving this error
    Error Details     ERROR: timeout during allocate of registered program
    Error Details     LOCATION: SAP-Gateway on host p162845 / sapgw00
    Error Details     DETAIL: TP Flightdatasender init/busy for more than 60 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 31415
    If I Activate the RFC sender CC.It is working again.
    After 1 Execution.It is throwing this error.
    I even added Name as 'jco.server.max_startup_delay' and Value '1000' in advanced Mode of RFC sender CC.
    Please suggest me.
    Thanks in Advance.
    Sriram

  • File sender communication channel stop working

    Hi Guru,
    I have a file sender communication channel. It usually works good. But sometimes it just stop working. And In RWB, it shows no error. If I stop it and restart it in RWB, it immediately works again. This happens once a while. Any ideas?
    Thanks,
    Meiying

    Hi,
    option 1--
    Do some dummy changes and activate channel and try and perform cache refresh.
    If still not working then  stop and restart SFTP service,if still no luck then restart JAVA stack
    option 2
    try to put timeout value in the channel.
    Regards.
    Mastan

  • File sender communication channel error

    Hi gurus please help me on the below issue ,suddenly my file(sender)communication channle is showing error status stated below error ,it is just simple scenario like file to proxy upto one hour back it is working fine suddenly it is showing below error plz give me the reply im in production suport
    Error: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name localejbs/ModuleProcessorBean, cannot resolve object reference. [Root exception is javax.naming.NamingException: Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: Type: clientAppName Content: sap.com/com.sap.aii.af.app Type: interfaceType Content: local Type: ejb-link Content: ModuleProcessorBean Type: jndi-name Content: ModuleProcessorBean Type: local-home Content: com.sap.aii.af.lib.mp.processor.ModuleProcessorLocalHome Type: local Content: com.sap.aii.af.lib.mp.processor.ModuleProcessorLocal com.sap.engine.services.ejb3.runtime.impl.refmatcher.EJBResolvingException: Cannot start applicationsap.com/com.sap.aii.af.app; nested exception is: java.rmi.RemoteException: [ERROR CODE DPL.DS.6125] Error occurred while starting application locally and wait.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5106] The application [sap.com/com.sap.aii.af.app] will not be started, because of the server state is [STARTING]. at com.sap.engine.services.ejb3.runtime.impl.DefaultContainerRepository.startApp(DefaultContainerRepository.java:315) at com.sap.engine.services.ejb3.runtime.impl.DefaultContainerRepository.getEnterpriseBeanContainer(DefaultContainerRepository.java:106) at com.sap.engine.services.ejb3.runtime.impl.DefaultRemoteObjectFactory.resolveReference(DefaultRemoteObjectFactory.java:55) at com.sap.engine.services.ejb3.runtime.impl.EJBObjectFactory.getObjectInstance(EJBObjectFactory.java:144) at com.sap.engine.services.ejb3.runtime.impl.EJBObjectFactory.getObjectInstance(EJBObjectFactory.java:63) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl._getObjectInstance(ObjectFactoryBuilderImpl.java:77) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl.access$100(ObjectFactoryBuilderImpl.java:33) at com.sap.engine.system.naming.provider.ObjectFactoryBuilderImpl$DispatchObjectFactory.getObjectInstance(ObjectFactoryBuilderImpl.java:228) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:283) at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:394) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:223) at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:242) at javax.naming.InitialContext.lookup(InitialContext.java:351) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance(FastEjbFactory.java:83) at com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance(FastEjbFactory.java:51) at com.sap.aii.adapter.file.File2XI.send(File2XI.java:3451) at com.sap.aii.adapter.file.File2XI.processFileList(File2XI.java:1332) at com.sap.aii.adapter.file.File2XI.invoke(File2XI.java:622) at com.sap.aii.af.lib.scheduler.JobBroker$Worker.run(JobBroker.java:500) 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:182) at com.sap.engine.core.thread.impl3.SingleThread.run

    Hi Thank for your reply Nbendu and sorry for late reply .
    My issue was now resolved but i want to know why this is happend i am getting this issue when ever there is any Basis maintaenance Happens.
    If it is due to  Basis maintnance then with same combination we have 2 more interfaces is there it is not affecting the other .
    Any thoughts.
    Regards
    Madhu

  • None of the file Sender Communication Channels are wotking in Prod-Urgent

    facing a wierd situation, since yesterday all of my File Sender Comm Channels have stopped picking up files.This is in Production and was working fine day before.When I check in Comm channel monitoring the Channels are started and Functioning and also shows me that they are polling for the files.But no file is picked though files exist in the directory.These channels have been working fine since months and nothing had been changed since then.Suddenly all of them stopped picking up files.
    I have about 10 Comm Channels that pick files, Is this related to Adapter Engine....any suggestions on this would be really apprecated.
    Thank You.

    Hi!
    Check access rights on your files. Try to set them to 777 (using chmod). Maybe this will help.
    Problem is, when the XI does not have rights for picking up files, you see no errror message in CC monitoring and everything seems to be ok, but it is not..
    We faced the same problem.. And we figured out, that our partner started to upload files with different access rights.
    Peter

  • FILE SENDER COMMUNICATION CHANNEL DOESN'T GET FILE

    Hi,
    I have create a new sender communication channel with ftp file configuration. Server parameter and source directory are correct.
    I have also checked file and directory permission (chmod 777)
    Poll interval is 600 secs.
    There is no error in communication channel monitor  (returned log: CC is correctly configured and started).
    Process started every poll interval, but no file is picked up.
    Why?
    Carme

    Hi,
    What type of file are you processing. Check whether the file type is binary or text mode.
    Also check whether the file name you have specified in the CC and the exact file in the directory are the same.
    Also check the file processing mode, whether it is read only, delete or in test mode.
    If the file is in read only mode when the file first processed, then once the file was processed it would be in read only mode, so if you place the new file it should process, so try deleting the existing file in the directory and place a new file with exact file name along with the correct extension and try to process it.
    Also I would suggest you check the exact file extension, by unchecking the radio button in the folder option under the menu tools> Folder options> view-->hide extension for file type.
    Regards,
    Nithiyanandam

  • Communication Channel is not working

    I have moved the design and configuration from quality XI server to product XI server. But when I start the Communication Channel in RWB, the LED is green, and I cannot get the log details at log area. The communication Channel is file adapter for FTP. The ftp file cannot be picked up. In fact, communication Channel is not executed. I have check SLD for product, software, business system and Technical system, no error is found. Anyone can tell me the reason about that?

    Li,
    Things to check:
    1. If you have adopted the file based transportation approach then you will loose  configuration channel related data .
    you need to feed the data.
    2. If you have adopted the CMS transportation approach, then case will be different
    a) Try to ping the FTP server from XI Prod Server, it should ping .
    b) If it is showing green it means it is able to locate the FTP server, kindly check the file name once again....
    Let us know the scenario also and also how the scenario is behaving differently
    Note : File Name is case sensitive 1.xml is different from 1.XML
    Regards,

  • Sender Soap Channel is not working - Service Temporarily Unavailable [503]

    dEAR FRIENDS,
    We are facing one critical issue in sender soap adapter. After upgrading our system to PI 7.1 The sender soap channle is not working. From source  system  it is not reaching PI : the log from source system as follows:
    org.springframework.ws.client.WebServiceTransportException: Service Temporarily Unavailable [503]
          at org.springframework.ws.client.core.WebServiceTemplate.handleError(WebServiceTemplate.java:627)
          at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:551)
          at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:502)
          at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:351)
          at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:345)
          at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:337)
          at com.palm.txnengine.wsclient.DailyRevenuePostingWSGateWaySupport.postToSap(DailyRevenuePostingWSGateWaySupport.java:23)
          at com.palm.txnengine.wsclient.DailyRevenuePostingImpl.execute(DailyRevenuePostingImpl.java:93)
          at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:264)
          at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:67)
          at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:352)
          at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:212)
          at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:143)
          at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:239)
          at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:198)
          at org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:348)
          at org.springframework.batch.core.job.flow.FlowJob.access$0(FlowJob.java:1)
          at org.springframework.batch.core.job.flow.FlowJob$JobFlowExecutor.executeStep(FlowJob.java:137)
          at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60)
          at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144)
          at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124)
          at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:105)
          at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:250)
          at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:110)
          at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
          at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:105)
          at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:207)
          at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:254)

    Hi,
    Please check this generic description:
    The error message 503 Service unavailable Application stopped! is displayed.
    Description:The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    Possible Tips: Because of J2EE application com.sap.aii.af.ms.app not active
    u2022 Try to (re)start the application using the Visual Administrator Choose Server --> Services --> Deploy --> View on Application or restart the J2EE engine
    u2022 The problem is that not all J2EE services can be started by the J2EE. i.e Start the Visual Administrator and select Server->Services->Deploy in the tree on the left. On the right-hand side, choose the Runtime tab page. You see a tree in the right window with all applications if you select the APPLICATION radio button. Check if they are running, otherwise choose Start. Usually the J2EE engine starts all services automatically.
    u2022 Refer SAP Note 803145,807000,791655
    May it helps.
    Regards,
    Caio Cagnani

  • File Sender Communication Channel not working

    Hi All,
    We have one file sender channel which sends file after every 3 hours.
    But currently it has stopped the processing of file.
    If we see in RWB it shows that "Correctly configured and started",but if we start and stop the chanel it doesnt show any processing started message.
    File is there in the folder but the channel doesnt poll the folder to pick up the file.
    We have refreshed the cache and activated the channel again.
    But still no luck,does anybody have any idea?

    Hi Shweta,
    Please check the parameters of your File adapter. There can be following  possibility if File adapter is not picking the file :
    1. File adapter is not active
    2. Incorrect File name, Directory name or path,
    3. File does not exist in the source directory.
    4. If you are accessing file from other server (use FTP protocol) check you have READ and WRITE access.
    Thanks
    Farooq.
    <b>*Rewards points if you find it useful*</b>

  • Problem in File Sender Communication channel

    Dear all,
    We have FIle TO RFC scenario, which have been running in Production since long time.
    Problem :  Many of the time we have obsereved that even if the FTP is up and running , but file is not getting picked from ftp server. File name and all other details are maintained correctly. Can you please suugest me to resolve this issue.
    Regards,
    Raghvendra

    First of all: the connect parameter should be set to 'Per Transfer': this ensures that a new connection to the FTP server is established for each file transfer. That means that you don't loose connection to the FTP server in case of a hick-up.
    Second: are there any errors in your communication channel monitoring?

  • File Sender Communication channel with error

    Hi,
      One of the File sender CC is in red but shows "Functioning". But in the Process Detail section it just showing
    5/10/11 2:24:00 AM d28c6542-0d7e-453b-1d96-9e0a18159315 Retry interval started. Length: 60.0 seconds
      5/10/11 2:24:00 AM                                                                     Processing started
    5/10/11 2:23:00 AM d28c6542-0d7e-453b-1d96-9e0a18159315 Retry interval started. Length: 60.0 seconds
      5/10/11 2:23:00 AM                                                                       Processing started
    5/10/11 2:22:00 AM d28c6542-0d7e-453b-1d96-9e0a18159315 Retry interval started. Length: 60.0 seconds
      5/10/11 2:22:00 AM                                                                      Processing started
    Please let me know is there any error with my channel ot wny is it red then?
    There is no Polling step in the Process Details..  Please reply ASAP
    Thanks,
    Shweta.

    The Status of the channel is "Processing Erros in  last 20 seconds". And in the processing deatils it just show the below two steps.
    5/10/11 2:24:00 AM d28c6542-0d7e-453b-1d96-9e0a18159315 Retry interval started. Length: 60.0 seconds
    5/10/11 2:24:00 AM                                                                        Processing started
    5/10/11 2:23:00 AM d28c6542-0d7e-453b-1d96-9e0a18159315 Retry interval started. Length: 60.0 seconds
    5/10/11 2:23:00 AM                                                                         Processing started
    5/10/11 2:22:00 AM d28c6542-0d7e-453b-1d96-9e0a18159315 Retry interval started. Length: 60.0 seconds
    5/10/11 2:22:00 AM                                                                        Processing started
    It is continuasly showing the same message ID "d28c6542-0d7e-453b-1d96-9e0a18159315 " but this ID does not exist in SXMB_moni  not in RTW message monitoring.
    If I double click the message ID shown in the CC process details it shoes me below content.
    Time Stamp Type Description
    2011-05-09 22:03:00 Information Channel FileSenderGeneric: Converted complete file content to XML format.
    2011-05-09 22:04:00 Information Channel FileSenderGeneric: Converted complete file content to XML format.
    2011-05-09 22:05:00 Information Channel FileSenderGeneric: Converted complete file content to XML format.
    2011-05-09 22:06:00 Information Channel FileSenderGeneric: Converted complete file content to XML format.
    Please tell me what is the problem. there are No java Locks ...I have checked that.
    Shweta.

  • Soap sender communication channel is not shown in RWB

    Dear Experts,
    We had a recent installation of Xi and after that i m attemting a Soap to rfc syn scenario and i have created both the soap and rfc communication channel on a abap business system.
    and now im not able to see the Soap communication channel in the RWB .even the soap icon is shown as disable..
    can u tell the reason for this.Or is it bcos i have not sent any soap request to it.
    All ur efforts will be greatly respected.
    Thx
    jeevan

    hai prabhu....
    thxs for the hint,,,,.
    i did that and its throwing the following error...
    pls help
    <?xml version="1.0" ?>
    - <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <faultcode>SOAP:Server</faultcode>
      <faultstring>Server Error</faultstring>
    - <detail>
    - <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
      <context>XIAdapter</context>
      <code>ADAPTER.SOAP_EXCEPTION</code>
    - <text>
    - <![CDATA[
    java.lang.Exception: invalid channel (party:service:channel) = <null>
         at com.sap.aii.af.mp.soap.web.HelperServlet.processFindChannel(HelperServlet.java:363)
         at com.sap.aii.af.mp.soap.web.HelperServlet.doGet(HelperServlet.java:125)
         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:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
      ]]>
      </text>
      </s:SystemError>
      </detail>
      </SOAP:Fault>

  • Why my FIle sender Communication channel is inactive?

    I tried to edit and save it again, but i can see active at ID but inactive at RWB-->Channelmonitorring..
    what to do?

    May be in the channel monitoring the channel is stopped. If you are sure that the channel is active in ID and in Start mode in communication channel, then it is a cache issue. Then, perform full CPACache refresh.
    Regards,
    Prateek

  • File send command in Word not working - can anyone help?

    I've just bought a new macbook air, all is well apart from being able to email docs from word or excel which I do frequently.   When I use the File/Send command, I just get the spinning pinwheel for about 20 secs which then disappears.  I then have to go to macmail and add the doc manually.   has anyone else had this problem?

    I use the apple script I wrote to set up a terminal session using screen.  You need to be sure the baud rate is the same as the cisco console:
    set baudList to {1200, 2400, 4800, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
    set baudRate to (choose from list baudList default items {38400})
    tell application "Terminal"
              set serialDevices to (do shell script "ls /dev/cu*")
              set theDeviceList to (paragraphs of serialDevices) as list
              set theDevice to (choose from list theDeviceList)
              do script "screen  " & theDevice & " " & baudRate
              display dialog "To quit you terminal session type <ctrl-a> then <ctrl-\\>"
    end tell
    the complete command is spomething like:
    screen /dev/tty.usbserial 9600
    change the device to match yours and the baud to match as well

  • Adapter Module not working in Sender Communication Channel working in recie

    Hi
    I have written one adapter module. IF i give that Adapter Module in Sender Communication channel its not working. If i give that in Reciever Communication Channel its working. If i mention in both the channels then its working in sender communication channel also.But in only sender communication channel its not working in only reciever communication channel its working Can any one tell me why its happening
    Thanks & Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B
    Message was edited by:
            RaviShankar B
    Message was edited by:
            RaviShankar B

    hi
    if its problem with my code why its working if i give the adapter module in both the communication channels?If i give in only sender communication channel the module is not invoking. its not showing any auditlogs.Can any one please help me
    OUTBOUND is for sender
    INBOUND is for reciever right.?
    the following code i have written
    public ModuleData process(
              ModuleContext moduleContext,
              ModuleData inputModuleData)
              throws ModuleException {
              String SIGNATURE =
                   "process(ModuleContext moduleContext, ModuleData inputModuleData)";
              Object obj = null;
              Message msg = null;
              String filename = null;
              AuditMessageKey amk = null;
              try {
                   obj = inputModuleData.getPrincipalData();
                   msg = (Message) obj;
                   System.out.println("&&&&&&&&&&&&&&&&&" + msg);
                   if (msg.getMessageDirection().equals(MessageDirection.OUTBOUND)){
                        amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.OUTBOUND);
                        Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,">>>>>>>>>>>>>>> etHostName: Module called"+ i++);
                   }else{
                        File filename1 = new File("
    10.7.1.43
    XI
    source","text.txt");
                        filename1.createNewFile();
                        amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
                        Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,">>>>>>>>>>>>>>> etHostName: Module called"+ i++);
                   System.out.println("**************" + amk + "***********");
              } catch (Exception e) {
                   Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,">>>>>>>>>>>>>>> GetHostName: Error Module called");
                   e.printStackTrace(System.err);
                   ModuleException me = new ModuleException(e);
                   throw me;
              // Read the channel ID, channel and the module configuration
              try {
                   Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("module.parameters");
                   if(mp != null){
                        filename = (String)mp.get("FileName");
                        Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"Host >>>  Element Name is set to {0}"+filename );
                   }else{               
                        Audit.addAuditLogEntry(amk,AuditLogStatus.WARNING,"HostElementName parameter is not set. Default used: HostName.");
                        filename = "FileName";
              } catch (Exception e) {
                   e.printStackTrace(System.err);
                   Audit.addAuditLogEntry(amk,AuditLogStatus.ERROR,"Cannot read the module context and configuration data");
                   ModuleException me = new ModuleException(e);
                   throw me;
              try {
                   XMLPayload xmlpayload = msg.getDocument();
                   DocumentBuilderFactory factory;
                   factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   Document document =
                        builder.parse((InputStream) xmlpayload.getInputStream());
                   Element rootNode = document.getDocumentElement();
                   if (rootNode != null) {
                        Element childElement = document.createElement("filename");
                        childElement.appendChild(document.createTextNode(filename));
                        rootNode.appendChild(childElement);
                   // Transforming the DOM object to Stream object.
                   TransformerFactory tfactory = TransformerFactory.newInstance();
                   Transformer transformer = tfactory.newTransformer();
                   Source src = new DOMSource(document);
                   ByteArrayOutputStream myBytes = new ByteArrayOutputStream();
                   Result dest = new StreamResult(myBytes);
                   transformer.transform(src, dest);
                   byte[] docContent = myBytes.toByteArray();
                   if (docContent != null) {
                        xmlpayload.setContent(docContent);
                        inputModuleData.setPrincipalData(msg);
              } catch (Exception e) {
                   e.printStackTrace(System.err);
                   Audit.addAuditLogEntry(amk,AuditLogStatus.ERROR,"Cannot read the module context and configuration data");
                   ModuleException me = new ModuleException(e);
                   throw me;
              return inputModuleData;
    Best Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B
    Message was edited by:
            RaviShankar B

Maybe you are looking for

  • Is Photoshop CS6 compatible with Windows Vista?

    Is the Adobe Photoshop CS6 Extended Version (Legacy Editions) compatible with Windows Vista?

  • How to connecttwo external 19" LCD panels over DVI to MBP

    Hi, Is it possible to connect two 19" LCD panels over DVI to a MBP and run them as a single extended desktop? I've not been able to find an answer in the many posting and I get the impression its possible, but I'm not sure. I get more doubtful when I

  • How to blacken screensaver Apple TV?

    When streaming music, I like to blacken the TV. Not by synchronizing and standby my IPad, but using menu-options. Is this an option? How? If not, please add this feature.

  • Teaser and movie on 1 dvd - best workflow ?

    I've created a 23 minutes movie. Exported it in 1080p/25 fr mp4 I've created a 1 minute trailer (with save as 'trailerxxx', so new project, and deleted everything I didn't need and add want I want in the teaser). Exported also in 1080p/25 fr mp4 So b

  • Flip video battery status

      I just got a new Ultra HD Flip camera and do not see a battery status indicator on the screen. I used to have an indicator on my Flip mino. Where is the battery status indicator on this device?