HTMLEditorKit keeps outputing empty file ????

This code below does not work, I was able to ave to hmtl file with standard html config but one problem, it's all EMPTY????!?!? why, am I missing something here??????
HTMLEditorKit kit;
HTMLDocument doc;
public myConstructor(){
        kit = new HTMLEditorKit();
        jTextPane1.setEditorKit(kit);
        doc = (HTMLDocument)kit.createDefaultDocument();
        jTextPane1.setDocument(doc);
@Action
    public void saveFile(){
        fc = new JFileChooser();
        fc.setFileFilter(new filterHTML());       
        int returnVal = fc.showSaveDialog(SPackageInjector.this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            try{
                File file = fc.getSelectedFile();
                FileOutputStream writer = new FileOutputStream(file + ".html");
                kit.write(writer, doc, 0, doc.getLength());  //<------************does NOTHING here******************
                writer.close();
            } catch (Exception e){}
    class filterHTML extends javax.swing.filechooser.FileFilter {
        public boolean accept(File f) {
            return f.isDirectory() || f.getName().toLowerCase().endsWith(".html");
        public String getDescription() {
            return "HTML";
    }You see I have no problems with RTF, I was able to dump everything out of jTextPane fine. For example, similar to above:
    public void saveFile(){
        fc = new JFileChooser();
        fc.setFileFilter(new filterRTF());       
        int returnVal = fc.showSaveDialog(SPackageInjector.this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            try{
                File file = fc.getSelectedFile();
                FileOutputStream writer = new FileOutputStream(file + ".rtf");
                writer.write(jTextPane1.getText().getBytes("UTF8"));
                writer.close();
            } catch (Exception e){}
    class filterRTF extends javax.swing.filechooser.FileFilter {
        public boolean accept(File f) {
            return f.isDirectory() || f.getName().toLowerCase().endsWith(".rtf");
        public String getDescription() {
            return "Rich Text Format Files";
    }So the question is why doesn't it works for HTMLkit?????? Am I missing something here? Pleas help

yeah, I've tried that too:
writer.write(jTextPane1.getText().getBytes("UTF8"));
instead of:
kit.write(writer, doc, 0, doc.getLength());
but it outputs the same old empty file, somehow the actual data never got filled in but the frontend of jTextPane1 did showed a bunch of colorful data.
that empty file looks like this:
<html>
<head>
</head>
<body>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><b><p>
</b></font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><b><p>
</b></font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><b><p>
</b></font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
</body>
</html>
man, it should fills in the data automatically so it looks like this:
<html>
<head>
</head>
<body>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">MY COLOR RED<b><p>
</b></font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">MY COLOR GREEN<b><p>
</b></font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">MY COLOR BLUE<b><p>
</b></font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">MY COLOR BLACK<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">MY COLOR DSFSDFDSF<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">afdsfadsf<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">asdfdsf<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">asdfasdfasdf sdfsdfdsf<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">asdfasdfsdf<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">asdfasdfsdf<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff">345345345435<p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
<p style="margin-top: 0">
<font size="3" face="Arial" color="#0000ff"><p>
</font> </p>
</body>
</html>

Similar Messages

  • I have just installed itune again. now i sync problem of existing music will be replace with new itune which is empty. how can i keep my pervious files and sync new....

    i have just installed itune again. now when i sync it, it show me warning that all existing music will be replace with new itune which is empty. h
    ow can i keep my pervious files of music photos and other files and sync with new installed itune

    Use your backup copy of your computer to put everything back on the computer.

  • Sql Developer 3.1 - Exporting a result set in xls generates and empty file

    Ever since upgrading to the Production version SQL Developer 3.1 (3.1.07) it appears that there is an issue when attempting to export a result set as a .xls format.
    If I attempt to export in .xls format, the exported file is an empty file (i,e no output). When I change the export type to txt, csv or xlsx the results are exported as expected.
    This appears to be a bug introduced in the Production version as I was successfully able to perform these tasks on the various 3.1 EA releases.
    Am I alone in this, have I misconfigured something or is this a bug?

    I keep having problems exporting to XLSX - mostly in cases where the data is voluminous and the format would be preferable over plain XLS as it does not have the 65krows limit ;-{ The data is read to the data grid (sometimes fast, sometimes much slower and "in chunks"), then the "task progress" won't move anymore, and the export file remains empty; If I cancel the task, trying to export again results in a message stating that sqldeveloper still has the output file locked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to remove the extra space in the output pdf file?

    Hi All
    In our RTF layout template we have both static content and dynamic content.
    In RTF template we have used many if-else,choose,For each loops.
    On the account of that,In the output pdf file, we are getting lot of empty space in the place of that coding(if-else,choose,For each loops).
    Is there anyway to reduce the space in the output pdf file?
    Please suggest some ideas.
    Thanks in Advance.

    White space is NOT your friend!
    Make sure you don't have any unwanted whitespace between commands and especially tagged on the end of lines. Chain your commands together with no whitespace and let them wrap, do not enter carriage returns.
    Cheers,
    Dave

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

  • Empty file receiver - file adapter

    Hello,
    Scenario: File->XI->File.
    In my scenerio, I am using Java mapping to name the target filename and creating text file that is later sent to FTP, in that way I don't have to use content conversation, to save performance...
    I am on PI7.1 version so I have checked the options (Processing Parameters) for empty file handling in Sender/Receiver file communication channels.
    Issue:- Though the target file is created but it always contain 1 byte(NULL character). Any ideas??
    Thanks
    Anshul

    > In my scenerio, I am using Java mapping to name the target filename and creating text file that is later sent to FTP, in that way I don't have to use content conversation, to save performance...
    >
    The java mapping is genarating output as text file,right??have you tested your java mapping in NWDS or eclipse,because when you test in Operation mapping you will get error for text file,because it is not well formed.
    if your java mapping genarating text files perfectly then file content conversion not required at all,just give file name in Communication channel.
    > I am on PI7.1 version so I have checked the options (Processing Parameters) for empty file handling in Sender/Receiver file communication channels.
    >
    Why you have selected  empty file handling??it is not required.
    > Issue:- Though the target file is created but it always contain 1 byte(NULL character). Any ideas??
    >
    >
    unselct empty file handling test your interface with real data.
    let me know your issue.
    Regards,
    Raj

  • Empty file in sender comm channel

    i have issue with the empty files coming from the sender which are getting processed and getting saved in given file location.
    Now the problem is,these files donot contain data and rather just gets outputted with header and trailer with some dummy data usually spaces,some zeros,-- like this...,this makes the file size of some 444 bytes or 834 bytes but as it is not having any data,we need to goto SXMB_MONI everyday,check for files,if its empty,needs to  cancel them manually because it appears in red flag.
    To avoid this,i was thinking of setting the empty file option in processing of communication channel to SKIp messages or delete messages.
    Am i right in this approach?
    From other thread:
    "Currently when a process fails in PI due to an empty file the process needs to be manually set to u201Ccancelledu201D,where to locate in PI,what could be the problem and how it is to be solved.i have asked a similar question and hope that this error will help."
    please reply and show me right way of resolving this.
    thanks!
    cheers!
    Edited by: Prateek Raj Srivastava on Aug 19, 2010 10:54 AM

    Hi,
    As per ur req, its nt possible in this way.
    The empty file handling means the whole file is empty, the size is 0k.
    So in ur req, empty file means Header and Trailer present, but no data Records.
    we can achive this in following ways also,
    1.write an adapter module, to check if at all there is atleast there is 1 Data record, if not throw exception there itself.
    2.In the mapping check if at all there is any Data Record. If no Data Records raise exception and also the Alerts.
    Babu

  • Keep getting 'The file iTunes cannot be read because it was created by a newer version of iTunes' how do I fix this so iTunes will open on my computer

    I Keep getting 'The file iTunes cannot be read because it was created by a newer version of iTunes' how do I fix this so iTunes will open on my computer.  I am running Windows 7 and I think the last time I synced or tried to open iTunes I was running windows XP, but I am not sure. 

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • Empty file handling

    Hi All,
    I have a scenario, in which there is a possiblity of getting source file to be empty (0 bytes), In this case I need to trigger an email to the user reg the same. Please provide inputs.
    Regards,
    Nithiyanandam

    Hi,
        Maybe you can try out these scenario..
    In the sender file channel, keep option as process Empty files and in the sender ASMA properties, select options file name and source file size.
    Then in your message map, from a UDF, if the file size in ASMA is zero, you can trigger an email to the intended recipient. Search in SDN, you will get the code for triggering email from a UDF.
    Another option would be to go for a conditional receiver determination. There the condition would be the file size of the source file.
    In the receiver determination, select condition --> Context Object --> SourceFileSize under file namespace.. If this is 0, select a mail recipient as the receiver and send mail using mail adapter.
    If file size is not 0, select your original receiver.
    Regards

  • File content conversion scenario-empty file

    Hi all,
    I am doing file content conversion for my sender flat file. And I want to generate XML file in my receiver location.When I check with test tab in my message map in IR , no structure gets generated in RESULT.Overalls cenario is working fine and message is processed successfully but empty file is getting generated in target directory.When I check the payload in message content in RWB communication channel monitoring,it's picking data correctly from the file.I am not getting what might have gone wrong with my message mapping in IR. It's not showing any syntax error.Even it's not generating target message structure in Results window of test Messsage mapping.Could you suggest what mistake might be there in message mapping.

    Hi all,
       I am getting this message in message monitor(SXMB_MONI).
    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    thrown during application mapping
    com/sap/xi/tf/_MM_Flat_content_conv_:
    RuntimeException in Message-Mapping transformatio~
    I am able to see the output structure in test window of message mapping in IR and communication channel monitoring is also showing successful message.
    fcc parameters used are:
    Header.fieldNames KEY,EMPID,NAME,COMPANY,PHONE
    Header.fieldFixedLengths 1,4,20,15,12
    Header.processConfiguration FromConfiguratiion
    Header.keyFieldValue H
    Detail.fieldNames KEY,COMPANY,LOCATION
    Detail.fieldFixedLengths 1,15,10
    Detail.processConfiguration FromConfiguratiion
    Detail.keyFieldValue D
    Please suggest the mistake in mapping
    Edited by: Jaya on Mar 3, 2010 12:45 PM
    Edited by: Jaya on Mar 3, 2010 12:47 PM

  • Processing Empty files

    Hi Friends,
    We got a scenario of processing empty XML files with output as empty files.
    Two possible soultions are with the help of custom modules in Sender adapters and by using XSLT mapping by adding the XML tags if the payload is empty.
    Is there is any other easy way around?
    Can anyone provide the java coding for this...
    system details XI 3.0 ,SP-18.
    Thanks &Regards,
    Sunil.

    Hi Ramesh,
    The only option left open to me is using custom module adapters to convert the empty payload to ...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_OB xmlns:ns0="http:
    MyNameSapce">
    </ns0:MT_Source_OB>
    ....before the CallSapAdapter.
    Any Help to build the EJB modules?
    Regards,
    Sunil.

  • Output XML file problem (in FILE to RFC scenario)

    hi,
       my problem is that in the export parameter i have 3 variables but my output xml file shows only 2 parameters . I have checked my mapping all 3 parameters are mapped properly in output mapping .
    Initially when i started the scenario there were only 2 parameters in my export list .
    i completed this suuccesfully and then as per new requirement one more parameter was needed to be added i added a new parameter and reimported my rfc .
    the response tab of the reimported RFC shows me the newly added parameter but my final xml file only shows me the previous 2 it doesnt show me the newly added one is there any seeting which i need to change like in idoc where we have to readd the idoc in IDX2
    With regards
    Bhawarlal Choudhary

    Hi,
    2 Introduction
    Configuring IDoc adapter in Exchange Infrastructure 3.0 requires some configuration on the SAP
    systems, for both XI and the backend system where the IDoc message is to be sent. These steps, although
    simple, are many times missed or mis-configured, causing the delivery of messages to fail.
    Since IDoc adapter uses the ABAP stack, instead of J2EE, the configuration requirements are mainly in
    ABAP.
    Setting up IDoc adapters requires the XI integration server to be able to communicate with the backend
    SAP system, and also to make sure that the Logical System Name used when posting IDoc exists on the
    backend SAP system.
    3 The Step By Step Solution
    The basic steps for the IDoc configuration are outline below:
    1. Configure SM59 on XI to communicate to SAP backend system.
    2. Configure port on XI for IDoc communication.
    3. Create or verify the Logical System Name on the SAP backend system.
    4. Create or verify business system in XI’s System Landscape Directory.
    5. Verify the Logical System Name of the business system.
    6. Verify or add the Logical System Name for the sender business system.
    7. Create/configure the Communication Channel for the IDoc receiver adapter
    3.1 Configure SM59 on XI to communicate to SAP backend system.
    1. Using transaction SM59, create an RFC destination with Connection Type = “3”.
    In this example, the RFC destination name is “NDVCLNT510”.
    2. Enter the logon information:
    3. Test the connection by clicking on “Testing connection” and “Remote logon”.
    Both must be successful.
    3.2 Configure port on XI for IDoc communication.
    4. Go to transaction IDX1 on XI, and create a port. In this example, the Port name is “SAPNDV”.
    •     &#61472;The Port name must be in the form of “SAPxxx”, where xxx is the system ID of the backend SAP
    system.
    •     The Client must be the client number of the backend SAP system.
    •     Select the RFC Destination which was created in the previous step.
    3.3 Create or verify the Logical System Name on the SAP backend system.
    5. Enter transaction SALE on the SAP backend system.
    6. Create or verify the Logical System Name. In our example, NDVCLNT510 is verified.
    3.4 Create or verify business system in XI’s System Landscape Directory.
    The business system name for the SAP backend system must contain a valid Logical System Name. This Logical System Name is the one verified or created in the previous step.
    7. In the System Landscape Directory,  select the SAP backend business system. If one does not exist, then create the business system. Verify the Logical  System Name.
    3.5 Verify the Logical System Name of the business system.
    8. In the Integration Directory, doubleclick on the business system (in our example, it is NDVCLNT510).
    Navigate the menu:
    Service • Adapter Specific Identifiers.
    If information is empty or incorrect, then it will have to be synchronized with the content of the System Landscape Directory. Follow the steps below for synchronization.
    9. (Optional) Synchronization of the business system in Integration Directory to the business system in System
    Landscape Directory.
    •     &#61472;Double-click on the business system in the Integration Directory.
    •     &#61472;Switch to Edit mode.
    •     &#61472;Select menu: Service • Adapter-Specific Identifiers 
    10. (Optional) Within the dialog box, click on the button as indicated below to resynchronize.
    11. (Optional) If the expected data from the System Landscape Directory is not updated, then the SLD cache may need to be cleared first.
    3.7 Create/configure the Communication Channel for the IDoc receiver adapter.
    15. In the Integration Directory, create an IDoc receiver communication channel.
    •     &#61472;The RFC Destination is from step 3.1.
    •     &#61472;The Port is from step 3.2.
    NOTE:
    There is no need to create an IDoc sender Communication Channel for XI. Instead, the backend SAP system must be configure to send the IDoc to XI.
    4 Appendix
    Transaction: IDX2
    There are a couple of situation where IDX2 can be useful on the XI system.
    1. When we want to test connection between the XI and SAP backend system.
    2. When an IDoc has changed, and the meta data stored in XI needs to be update. When an IDoc is sent from the SAP backend system to XI, XI will first check to see if the meta data for the IDoc is already in its persistent cache. If not, then XI will use the configuration in IDX1 to retrieve the IDoc meta data from the backend system. If the
    meta is already in cache, then it will NOT do so. Therefore, when an IDoc has changed, it is necessary to manually update the new meta data on XI, or delete it from the cache, so that the latest version can be retrieved. IDX2 is used for this purpose.
    Go to transaction IDX2 and click on “Create”.
    Enter the IDoc Type and the Source Port as defined in step #2. Click “Continue”.If successful, the following will show up. If error occurs, then the IDX1 configurations will need to be re-checked.
    Regards
    Hemant
    If find helpful plz award points

  • FtpAdapter doesn't transfer empty files

    Hi there,
    I am trying put an empty file (= 0 bytes) to another server via the FtpAdapter, using a SFTP-Connection.
    The log doesn't display any error but only the successful transmission, but on the
    destination server there is no file written. I've tried to switch from ascii to binary without success. Here's the log:
    <File Adapter::Outbound> Successful in setting up the SFTP connection
    <File Adapter::Outbound> Managed Connection Created
    <File Adapter::Outbound> Adding Event Listener
    <File Adapter::Outbound> Creating Connection
    <File Adapter::Outbound> Connection Created
    <File Adapter::Outbound> Connection manager allocated connection :oracle.tip.adapter.ftp.FTPConnection@ae401b
    <File Adapter::Outbound> Creating FTPInteraction
    <File Adapter::Outbound> Creating an SFTPSender
    <File Adapter::Outbound> SFTP Sender created
    <File Adapter::Outbound> FTPInteraction Created
    <AdapterFramework::Outbound> Instantiating outbound JCA interactionSpec oracle.tip.adapter.ftp.outbound.FTPInteractionSpec
    <AdapterFramework::Outbound> Populating outbound JCA interactionSpec oracle.tip.adapter.ftp.outbound.FTPInteractionSpec with properties: {FileNamingConvention=dummy, OpaqueSchema=true, NumberMessages=1, PhysicalDirectory=/, FileType=binary}
    <AdapterFramework::Outbound> file:/u01/app/oracle10g/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_CpOutput_1.0_0053ad28af82f0120114b2f22390139c.tmp/FtpSendDiva.wsdl [ Put_ptt::Put(opaque) ] - Starting JCA LocalTransaction
    <AdapterFramework::Outbound> file:/u01/app/oracle10g/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_CpOutput_1.0_0053ad28af82f0120114b2f22390139c.tmp/FtpSendDiva.wsdl [ Put_ptt::Put(opaque) ] - Invoking JCA outbound Interaction
    <File Adapter::Outbound> FTP outbound adapter interaction invoked : oracle.tip.adapter.ftp.outbound.FTPInteractionSpec@18bdbcf
    <File Adapter::Outbound> FTP outbound adapter write file interaction invoked.
    <File Adapter::Outbound> File Adapter received an input Record
    <File Adapter::Outbound> Waiting outside sync object.....
    <File Adapter::Outbound> Considering header for filename, output filename from header: testfile.csv
    <File Adapter::Outbound> Not Considering header for directory as it is blank
    <File Adapter::Outbound> Inside getUniqueDirectory::InteractionSpec getProcessName for [bpel://localhost/default/CpOutput~1.0/] returned [CpOutput~1.0]
    <File Adapter::Outbound> GenUtil::getUniqueDirectory::InteractioSpec [localhost_default_CpOutput~1.0_/FtpSendD//] ==> [CpOutput~1.0/CKlx14IRspFHDdTf6wtdDA==]
    <File Adapter::Outbound> MD5 BaseDir is [cut]
    <File Adapter::Outbound> Batcher created using staging : true with number of messages : 1
    <File Adapter::Outbound> ServerType: unix
    <File Adapter::Outbound> Specified ServerType: unix, using unix LineSeparator
    <File Adapter::Outbound> Input Record: javax.xml.transform.dom.DOMSource@10c1cdc
    <File Adapter::Outbound> Translating....
    <File Adapter::Outbound> Outbound Translation done.
    <File Adapter::Outbound> Refreshed (staging/num Messages) file count : 1
    <File Adapter::Outbound> Wrote to Control File
    <File Adapter::Outbound> Batching staging File: staging0
    <File Adapter::Outbound> Batcher sending to sender for output file writing
    <File Adapter::Outbound> Sending File to output Dir
    <File Adapter::Outbound> Obtaining SFTP Agent
    <File Adapter::Outbound> Putting file: testfile.csv to: / Append: false
    <File Adapter::Outbound> Put file:
    <File Adapter::Outbound> Done Writing to output file testfile.csv in dir / !!
    <File Adapter::Outbound> End clearing Control File
    <File Adapter::Outbound> Deleting staging File: staging0
    <File Adapter::Outbound> End clearing Control File
    <File Adapter::Outbound> Interaction gets a ok response
    <File Adapter::Outbound> Done with Input Record
    <AdapterFramework::Outbound> file:/u01/app/oracle10g/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_CpOutput_1.0_0053ad28af82f0120114b2f22390139c.tmp/FtpSendDiva.wsdl [ Put_ptt::Put(opaque) ] - Committing JCA LocalTransaction
    It works when the file is not empty.
    It also works, when i transfer the file manually via 'sftp', so the problem is not the sftp-Server.
    Any hints how I can transfer empty files?
    We're using 10.1.3.1.
    TIA, Roman

    Do you have the right boxes checked to sync them to your iPod:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    Did you look in the More section of the Music app?
    Have you tried using the Spotlight search> Maybe you just can't find them

  • Process 0kb empty file and deliver to target directory

    Hello Experts,
    We had a requirements to process an empty file handling and send it to the receiver/target directory. We had configured to "Process Empty File" Handling and “Write Empty File. The 0KB file polling successfully and archived to the directory with empty payload, but the message output was never created/sent to the target directory. In smxi_moni error message displayed:
    <?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>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">CANNOT_READ_PAYLOAD</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to read payload from the message object</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Since this is an empty file, there are no mappings involved.  Is there a way to that we could check for 0kb file? If it is empty file, we want to pass/place the empty file to the target directory and if it is not empty, we want the message to process in the standard way.

    Hi David,
    "Since this is an empty file, there are no mappings involved. "
    do you mean you didnt do the mapping at all cos it is empty file ?
    though it is empty file still you need to do the mapping as usually,but when you check the option process the empty file both in sender and receiver adapter ,then it will process even an empty file comes.if you dont check these options and you get an empty file during the process then the mapping will fail.
    in real time you don't know which one is empty file right,but her you know cos you are placing empty file.
    I think you got to do all the steps you do in eneral for a scenario and top on that you have to check process empty file in both sender and receiver adapters,but you may not see the payload in SXMB_MONI.
    but search in SDn you get lot stuff.

  • Process empty file : file (fcc) to rfc

    Hi Experts,
    I have a scenario where. I have to process files and send it to rfc..
    file to rfc scenario...
    now basically.. when the file is empty the content conversion does not produce any payload and throws error..
    can u pls help me in this?

    Hello,
    The problem is that XI will pick up th file with empty payload.. but as there is no content in the file...
    the content conversion cannot be done
    The content conversion will still be done except that it will not output anything. To do this, set your recordset occurrence to * instead of 1
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6713ec3f914ddee10000000a1553f7/content.htm
    and mapping throws error...
    Since there is no output, the mapping will really throw an error. What you can do is to place a dummy structure, you can use a two-step mapping to do this, in your operation mapping use Java Mapping as your first mapping and in the second mapping, your actual mapping graphical mapping e.g
    1.) Read the inputstream and then check if there is a structure. If there is a structure, the Java mapping just passes it to the outputstream. If it is not, then Java mapping will write the dummy structure into outputstream. (Java Mapping)
    2.) Output from 1 is passed to Message Mapping
    Can you tell us the reason why empty files are needed to be processed? Because this adds overhead in the AE.
    Hope this helps,
    Mark

Maybe you are looking for

  • No playback to external monitor Premiere CC

    Hello all ~ Mid-job (and of course now that I need to color correct), PP CC has stopped exporting video to my external monitor.  I have tried trashing prefs (holding Shift+Opt at start-up) and it doesn't do the trick.  In looking around, I've noticed

  • How to align the item text in the combobox vertically centred after increasing the height of the combobox in mfc?

    I want to make the item text of the combobox to  be aligned vertically(Centred) . Actually I increased the height  of the combobox and after the increasing the combobox height, the text is not centred vertically.The code snippet for increasing the he

  • Python3 gmail and conky [solved by using python2]

    I have become quite dependent on conky displaying the contents of my gmail mailboxes and something seems to have broken since python3 came about. Can anyone with python knowledge point me to how to get it working again? Old code ## needs The urllib a

  • - Mail error pop ups -

    I keep getting Mail pop ups saying my POP server incoming rejected password. Please re-enter password or cancel. I have several Mail accounts, and these messages will pop up on any one of them from time to time. Been happening quite frequently of lat

  • Can Bonjour be used with Firefox?

    Can I use Bonjour with Firefox on a PC using Windows XP rather than Internet Explorer?