Schemagen creates empty files in tutorial II

Hi,
Thanks for answering my previous Qs. Im on section 3.3 of the tutorial.
Im using java 1.4.2, winxp. schemagen -file schema.xml creates an empty
file.
I ran these commands before schemagen:
set javax.jdo.option.ConnectionDriverName=org.hsqldb.jdbcDriver
set javax.jdo.option.ConnectionURL=jdbc:hsqldb:reversetutorial_database
set javax.jdo.option.ConnectionUserName=sa
set javax.jdo.option.ConnectionPassword=
my classpath=
D:\kodo-jdo-3.1.0\lib\kodo-jdo.jar;D:\kodo-jdo-3.1.0\lib\kodo-jdo-runt
ime.jar;D:\kodo-jdo-3.1.0\lib\jdo-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jfreechart-0.9.13.jar;D:\kodo-jdo-3.1.0\lib\jakarta-commons-collections-2.1.jar;D:\kodo-jdo-3.1.0\lib\jakarta-commons-lang-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jakarta-commons-pool-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jakarta-regexp-1.1.jar;D:\kodo-jdo-3.1.0\lib\jca1.0.jar;D:\kodo-jdo-3.1.0\lib\jdo-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jndi.jar;D:\kodo-jdo-3.1.0\lib\jta-spec1_0_1.jar;D:\kodo-jdo-3.1.0\lib\mx4j-admb.jar;D:\kodo-jdo-3.1.0\lib\mx4j-jmx.jar;D:\kodo-jdo-3.1.0\lib\mx4j-tools.jar;D:\kodo-jdo-3.1.0\;D:\kodo-jdo-3.1.0\lib\jdbc-hsql-1_7_0.jar
thanks,
PS how does one reply to a message using the solarmetric website to access
this newsgroup.

Hi,
Thanks for answering my previous Qs. Im on section 3.3 of the tutorial.
Im using java 1.4.2, winxp. schemagen -file schema.xml creates an empty
file.
I ran these commands before schemagen:
set javax.jdo.option.ConnectionDriverName=org.hsqldb.jdbcDriver
set javax.jdo.option.ConnectionURL=jdbc:hsqldb:reversetutorial_database
set javax.jdo.option.ConnectionUserName=sa
set javax.jdo.option.ConnectionPassword=
my classpath=
D:\kodo-jdo-3.1.0\lib\kodo-jdo.jar;D:\kodo-jdo-3.1.0\lib\kodo-jdo-runt
ime.jar;D:\kodo-jdo-3.1.0\lib\jdo-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jfreechart-0.9.13.jar;D:\kodo-jdo-3.1.0\lib\jakarta-commons-collections-2.1.jar;D:\kodo-jdo-3.1.0\lib\jakarta-commons-lang-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jakarta-commons-pool-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jakarta-regexp-1.1.jar;D:\kodo-jdo-3.1.0\lib\jca1.0.jar;D:\kodo-jdo-3.1.0\lib\jdo-1.0.1.jar;D:\kodo-jdo-3.1.0\lib\jndi.jar;D:\kodo-jdo-3.1.0\lib\jta-spec1_0_1.jar;D:\kodo-jdo-3.1.0\lib\mx4j-admb.jar;D:\kodo-jdo-3.1.0\lib\mx4j-jmx.jar;D:\kodo-jdo-3.1.0\lib\mx4j-tools.jar;D:\kodo-jdo-3.1.0\;D:\kodo-jdo-3.1.0\lib\jdbc-hsql-1_7_0.jar
thanks,
PS how does one reply to a message using the solarmetric website to access
this newsgroup.

Similar Messages

  • Edits in iPhoto create empty files

    iPhoto '08 imports photos correctly, but creates empty files (0kb) once I edit. The original is retained correctly, and I can always "revert to original" to get the files back, but about a quarter of my edited photos show up as empty files when I try to view them.  How can I fix it?  Why does it happen to some, but not others?

    Have these been shot with a Nikon? I've seen occasional reports on here of this happening with Nikons.
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Receiver file adapter creates empty files, Empty-Message Handling SP19

    Hello,
    We have just upgraded the system to SP19.
    One of the new features is that it should be possible to determine how XI messages with an empty main payload are to be handled in the receiver file adapter.
    If the parameter Empty-Message Handling is set to 'Ignore' no file should be created if the main payload is empty. In our case an empty file (size 0 kb) is still created even though the main payload is empty and the flag is set to 'Ignore'.
    Has anybody experienced the same problem?
    //  Best regards  Hans

    This should work:
    Use your own adapter module that parses incoming message and checks if it has any record sets in the document. If it does not have any record sets, then set the message to empty and then give this modified message to File receiver.
    For example, see the example code below:
    Module imports..
    Audit log import..
    DOM imports/SAX imports..
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
              try {
                   // get the XI message from the environment
                   Message msg = (Message) inputModuleData.getPrincipalData();
                   AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
                   Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"RemoveRootTag: Module called");
                   XMLPayload payLoad = msg.getDocument();
                   Document doc = parseXmlFile(payLoad.getInputStream());
                   if(doc != null){
                        if(!doc.getDocumentElement().hasChildNodes()){
                             Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "Document is empty!!");
                             payLoad.setContent("".getBytes());
                             msg.setDocument(payLoad);
                   // provide the XI message for returning
                   inputModuleData.setPrincipalData(msg);
                   } catch (Exception e) {
                   // raise exception, when an error occurred
                   ModuleException me = new ModuleException(e);
                   throw me;
                   // return XI message
              return inputModuleData;
         private Document parseXmlFile(InputStream xmlpayload) {
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setValidating(false);
                   //        Create the builder and parse the file
                   Document doc = factory.newDocumentBuilder().parse(xmlpayload);
                   return doc;
              } catch (SAXException e) {
              } catch (ParserConfigurationException e) {
              } catch(IOException e){
              return null;

  • Create empty file

    Hello Experts,
    I have a requirement something like this.
    I have file to file scenario.
    I have multiple files in sender folder coming everyday. I have PI File adapter scheduled at some perticular time to process these files. For each sender file one receiving file is created.
    Now the requirement is, my client wants that once all the files from sender folder processed and create files at receiver end, they want PI to create one Empty file to indicate that all the files are processed.
    Is it possible? If yes then how?
    Thanks,
    Hetal

    Hiiiii,
    Answer for ur quesitons:
    1) Sending side is that within your organization or is it some kind of outside data?
    Ans: Its within our organization.
    2) Your sender channel is that only opened once during the day or at regular intervals?
    Ans: Its open just once in a day but if needed we can open on regular intervals.
    3) What's the aim of creating an empty file?
    Ans: Actually there are around 3000 files coming from Sender and PI is processing them and dropping it at receiver end.
    Now after PI drops the files at receiver end, another process (we have some other process on receiver side which is inside the organization) will start processing those files. But they dont want to be time dependent, what they want is once PI will process and keep all the files on receiver side then PI should drop one empty file on receiver side, so when receiver process will see this empty file, it will understand that PI has processesed all the files so they can start processing those received files.
    Hope i hv cleared your dobts.
    Thanks,
    Hetal

  • Receiver-File-Adatper creates empty files on FTP-Server

    Hi experts,
    I have a problem with my IDOC-to-File-scenario. My Mapping converts IDOCs to XML-files. Then the xml-files should be send to a ftp-server in New York. but only the filename is created on the ftp-server in New York. but without any content.
    At first I tested the scenario with a ftp-server in our company. and it works. the files and the right content were created. so the scenario and the mapping are working correctly.
    Have you any idea what the problem is?
    Thanks and best regrads
    Christopher

    Dont use anonymous login. Please provide user name and password.
    Also go to adapter engine queue. There see the details description of your message. There it will specify which file got created, on which FTP server, in which folder and also how many bytes XI has transferred. If possible let me know these details.
    Also try uploading any other file to FTP.
    For this got to Command prompt.
    1. open (o) IP ADDRESS
    2. User name
    3. Password
    4. go to specified folder
    5. Use PUT command to save the file on FTP server.
    If after all these empty files is getting created then contact your system administrator and tell him to check firewall settings. Because there are few parameters which allows data transfer.
    Because if firewall problem is there then u wont be able to put a file manually on that FTP server.
    Let me know the output.
    Warm Regards,
    Gouri

  • File receiver: Create empty file named "start.txt" at end of process

    Hello,
    When my file adapter finish the generation of file at the receiver server I want to create another empty file at the same directory named "start.txt". The use of that file if for a scheduled task of OS that only starts a process if start.txt file have been created (the process delete that file).
    How can I do that? I've tried with OS command after precessing but that's for the XI OS not the receiver system SO...
    Then I've seen that I can use ftp command but there isn't ftp command to create a file... only to transfer files.

    You can achive this using script.Write a script/bat to creat a file using ftp connection as well in the script and place in xi machine. Using OS command to call the script before the process ends.
    Unix OS
    Glimpse at OS Command: Yet Another Scenario
    Microsoft OS
    The specified item was not found.
    Regards
    Prabhakar

  • Solaris 10 creates empty files on one partition

    When I use following on this partition
    echo "This is a text" > /vaults/active/.status/TEST
    the system creates a empty file
    cat /vaults/active/.status/TEST # returns nothing
    The file will be created with 0 bytes.
    When I use another partition all is correct
    echo "This is a text" > /tmp/TEST
    cat /tmp/TEST # returns: This is a text
    What can be the reason for this behaviour? There are no quotas specified for the system.

    Is the /vaults/active/.status/ containing filesystem full? Can you create a directory? Ifso, can you create content in the newly created directory?

  • Text Content Conversion - File Adapter - Creates empty file

    I am running XI 7.0.
    Mapping from abap proxy to file - text content conversion.
    The process works, generates and sends file from mySAP, maps through XI, logs onto ftp site and creates file, but doesn't write any data into the file!
    I am really confused as to what is happening!
    This is taken from the communication channel!
    Audit Log for Message: 5ccc2e46-c0f2-5349-e100-00000ddf240f
    Time Stamp Status Description
    2007-04-28 10:37:21 Success Message successfully received by messaging system. Profile: XI URL: http://host.fqdn:55000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSER
    2007-04-28 10:37:21 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2007-04-28 10:37:21 Success Message successfully put into the queue.
    2007-04-28 10:37:21 Success The message was successfully retrieved from the receive queue.
    2007-04-28 10:37:21 Success The message status set to DLNG.
    2007-04-28 10:37:21 Success Delivering to channel: EPIW_FTP_Receiver_EmployeeRecords
    2007-04-28 10:37:21 Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2007-04-28 10:37:21 Success File adapter receiver channel EPIW_FTP_Receiver_EmployeeRecords: start processing: party " ", service "XE_DEV_3RD_EPIW_001"
    2007-04-28 10:37:21 Success Connect to FTP server "ftp.ftp.ftp.ftp", directory "/ECS/Target"
    2007-04-28 10:37:21 Success Write to FTP server "ftp.ftp.ftp.ftp", directory "/ECS/Target",   file "epiw_output.dat"
    2007-04-28 10:37:21 Success Transfer: "BIN" mode, size 125 bytes, character encoding -
    2007-04-28 10:37:21 Success Start converting XML document content to plain text
    2007-04-28 10:37:21 Success File processing complete
    2007-04-28 10:37:21 Success The message was successfully delivered to the application using connection File_http://sap.com/xi/XI/System.
    2007-04-28 10:37:21 Success The message status set to DLVD.
    I can see the data before and after...  Any ideas?

    hi,
    this is starange:)
    did you refresh FTP (F5) ?
    maybe you're checking wrong ftp server? with the same folders ?
    ups - I thought I doens't create any file...
    as suggested check your mapping as per my blog:
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    just use TCODe for abap mapping tests - SXI_MAPPING_TEST
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Import Creates Empty Files?

    I have Sony HC42 camcorder. I connected it to a brand new 27" iMac and am using the latest version of iMovie. The import window shows up fine, I can see and control the movie, so then I try to import it. The import appears to work fine but nothing get created. The import shows up on the left but there are no clips. If I look in my Movies folder, I can see that iMovie created a bunch of .dv files for the clips, but they are all zero length. Can anybody tell me why importing seems to work fine but nothing gets imported?

    Is the /vaults/active/.status/ containing filesystem full? Can you create a directory? Ifso, can you create content in the newly created directory?

  • Empty file, java mapping issue

    Hello,
    does anyone have an ide how to create java mapping to create empty file on FTP?
    Why this code always send NUL character = 1byte and not 0 byte as needed?
    public void execute(InputStream in, OutputStream out) throws StreamTransformationException {
    out = null;

    try 1 thing...
    run ur code for some standalone file.
    create a file at ur local harddisk and check out its size..
    i had tried creating such a file using the code below....
    it is creating a 0 byte file successfully.
    public class TestCode {
         public static void main(String ags[]){
         try{
         TransformerFactory tf = TransformerFactory.newInstance();
         Transformer transform = tf.newTransformer();
         FileOutputStream out;
         out = new FileOutputStream("c:
    OutTestCode.xml");
         transform.transform(null, new StreamResult(out));
         } catch (FileNotFoundException e1) {
              e1.printStackTrace();
         } catch (TransformerConfigurationException e) {
              e.printStackTrace();
         } catch (TransformerException e) {
              e.printStackTrace();

  • Avoiding empty-file creation

    Hi,
    Is there any way to avoid empty file creation on the receiver side? I am using variable-substituton for file naming.
    Thanks,
    Vishal

    Vishal,
    Once I faced a similar issue, a 0kb file though empty file creation "ignore" option was creating empty files.
    Try to avoid empty files creation using
    1. Receiver determination where you can check for required field, and generate target only if it appears
    1. Message mapping by not generating a target structure
    Again, it depends on your requirement on when these empty messages are getting created...
    Can you tell us, on what cases is this empty file is getting created?
    Venkat.

  • Empty files are getting created at receiver FTP server

    Hi Experts,
    I have an Idoc to File scenario where I am sending an XML file to receiver FTP server.
    Scenario is working fine but sometimes an empty file is getting generated at receiver FTP server.
    I have already selected ignore empty file at receiver channel so issue is not within PI system configuration.
    When I checked the message log I can see that almost all the files are getting created successfully without any issues, but
    for some files/messages I can see that there are below error logs.
    "Transmitting the message to endpoint <local> using connection IDoc_AAE_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not get FTP connection from connection pool (1 connections) within 5,000 milliseconds; increase the number of available connections"
    "Exception caught by adapter framework: Could not get FTP connection from connection pool (1 connections) within 5,000 milliseconds; increase the number of available connections."
    And after there is again success message log in the same message and it creating a file successfully during that time stamp.
    but the third party is sometime receiving empty file which I am not able to find in any trace or log (my file name is SD_timestamp.xml).
    Can you please let me know what is the solution and what adjustments FTP server need to do in order to resolve this issue.
    Thanks in advance.
    Regards,
    Rahul Kulkarni

    The error you are getting that says "Could not get FTP connection from connection pool (1 connections) within 5,000 milliseconds; increase the number of available connections" has probably nothing to do with the empty files problem.
    I second Hareesh Gampa that you first should try "temporary file creation". You might also need to tell the FTP owner that he should only pick up files with that are written completely and that do comply with a negotiated file name schema. The temp file should have another schema of course then. He should not pick up just every file that is written. See here for details
    http://help.sap.de/saphelp_nw74/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
    HTH
    Cheers
    Jens

  • Empty File Handling : Do Not Create Message

    Hi,
    I have set this option in Sender CC - file.
    Parameters --> Processing.
    I dont want to pass file to reciever , when file is empty.
    Will the above option  "Do Not Create Message" do the trick.
    OR do i need to choose something else??
    -santosh.

    Santosh,
    Yes. The trick will work for empty file handling.
    When your incoming file is empty then will be no xml message posted to IE and hence receiver will not get any message.
    FYI: Also you can use skip empty files which will do the same but here the files will remain in your source directory.
    Regards,
    Prasanthi.

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • How to create empty text file on target system for empty source text file

    Hi All,
    I have an issue in handling empty file in the Text (FCC) to Text (FCC) file scenario. Interface picks text file and delivers on target system as text file. I have used FCC in both sender and receiver CCs.
    Interface is working fine if the source file is not empty. If the source text file is empty (zero Bytes), interface has to delivery an empty text file on target system.  I have setup empty file handling options correctly on both CCs.
    But when I tried with an empty file I am getting the error message 'Parsing an empty source. Root element expected!'.
    Could you please suggest me what I need to do to create an empty text file on target system from empty source text file?
    Thanks in Advance....
    Regards
    Sreeni

    >
    Sreenivasulu Reddy jonnavarapu wrote:
    > Hi All,
    >
    > I have an issue in handling empty file in the Text (FCC) to Text (FCC) file scenario. Interface picks text file and delivers on target system as text file. I have used FCC in both sender and receiver CCs.
    > Interface is working fine if the source file is not empty. If the source text file is empty (zero Bytes), interface has to delivery an empty text file on target system.  I have setup empty file handling options correctly on both CCs.
    >
    > But when I tried with an empty file I am getting the error message 'Parsing an empty source. Root element expected!'.
    >
    > Could you please suggest me what I need to do to create an empty text file on target system from empty source text file?
    >
    > Thanks in Advance....
    >
    > Regards
    > Sreeni
    the problem is that when there is an empty file there is no XML for parsing available. Hence in case you are using a mapping it will fail.
    What ideally you should do is to have a module that will check if the file is empty and if so write out an XML as you want with no values in the content/fields.
    Or the next choice would be to have a java mapping to handle this requirement. I guess that on an empty file the java mapping will go to an exception which you can handle to write out your logic/processing

Maybe you are looking for

  • Software troublesho​oting warranty

    Is there a warranty of 3 months on HP laptop software and is it possible to get year round software repair?

  • Motion crashes - Macbook Pro Software update and Firmware update

    Anyone out there that is working with Motion 3.0.1 on one of the new Macbook Pros (Santa Rosa) and has installed both the Macbook Pro Software Update 1.0 and the EFI Firmware update (for the 15 inch models)??? Motion 3 crashes on the Macbook Pros wit

  • Multiple form field instances populating ES Process Mgr variables

    Hi ES Process Designers, I am building up a new process in which the user can add instances of one to many fields in a form. I'm trying to find a way to populate a variable(s) with the second or greater instance of a form field value. When using a Li

  • Content Server - Iteration of set of fields

    I am pretty new to Plumtree's Content Management System and am working on the adding a set of fields dynamically and filling the data in the Content Item. For example I want to enter content of 300 rows in Content Entry Form and everytime I want to a

  • Domain Name Change procedure

    Can anyone tell me which are the changes to do in the alui portal when the domain name change ? Which are the files to modify ? Does any tool exist to automate the task ? ex : portal.toto.com became portal.titi.corporate.com