Java Mapping with a huge file

Hi to all,
I have a strange problem in my integration process.
there are two java mappings in order to create bapi input:
-the first mapping keeps a file of 5Mb and transforms it in a file of 50MB (and it works!)
-the second mapping keeps the file above and has to create another file of 50Mb.
And this second mapping doesn't work on the customer system, while everything is ok on my developing system.
On customer system I don't have any error message: SXMB_MONI gives me a "clock" and the message says: mapping in process..... It remains in this status "forever"!!!
Why does it work on my system with same code and same file and it doesn't on customer's?
There is any system parameter that I can check to see if there is some difference in system configuration?
Thank for the help!
bye,
Antonio

Hi Antonio,
...seems to be a hardware problem (sizing).
I would write some logging in my java to see how far it comes.
Regards Mario

Similar Messages

  • Java Mapping with Stream API

    Hi,
      Can you please let me know when java mapping with STAX will be supported in Netweaver XI?
    Regards
    Sudhir

    Hi Sudhir,
      STAX is Stream API for XML. It works similar to SAX but is a pull based model. It can also work with multiple XSD's...
    XI support of STAX will moslty be supported when XI supports Java EE 5. We can say that this will be supported very soon...
    http://www.xml.com/pub/a/2003/09/17/stax.html presents the overview of STAX.
    Hope this helps
    Regards
    Kiran..

  • XSLT-transformation in Java-Mapping with javax.xml

    Hi,
    we wanna use javax.xml for transformations in Java-Mapping.
    Inside the Java-mapping we read in XSL-files to transform a XML-stream. With XSLT 1.0 everything works fine - but with XSLT 2.0 we are getting runtime errors.
    Is it possible that javax.xml only supports XSLT 1.0?
    Regards
    Wolfgang

    Hi ,
    Jaxp 1.3 is available in this link -
    http://java.sun.com/webservices/jaxp/
    Use these jar files to process XSLT 2.0.
    Nanda

  • Error in scheduling a mapping with sqlloader ctl file

    Hi everyone,
    I have been trying to schedule a single mapping which generates sqlloader ctl file. but i get the error
    ORA-20001: Begin. initialize complete. workspace set. l_job_audit_execution_id= 20545. ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found ORA-06512: at "USER7.PMAP_TLOG_JOB", line 180 ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found
    but when i attach this mapping with a process flow it works fine. There is no error.
    so my question is in OWB is it a must that we should attach the mapping which generates sqlloader ctl file to a process flow and then schedule it or can we schedule a single mapping which generates sqlloader ctl file and what should be the process to schedule a single mapping which generates sqlloader ctl file?
    can anyone please help?
    Thanks & Regards
    Subhasree

    Hi Nawneet,
    Any suggestions?
    can anybody else also help me in this error???
    Regards
    Subhasree

  • Java Mapping with an xml array as input

    Hi Gurus,
    I have to perform a java mapping to map some input xml contained in an array with a target message type. I have found a good java mapping example here:
    Re: Please provide Java Mapping example
    but my mapping input is not a single XML, but an XML array, thus I have a doubt...
    How can I map multiple XML contained in an array with a target XML? I have to solve this problem into a Java mapping prospective.
    Thanks to all!
    Message was edited by:
            Gabriele Morgante

    Hey Stefan, I think he is refering to a n:1 multimapping.
    If that is indeed the case, Gabriele, you will have to consider the initial tags inserted by mapping runtime to treat multimappings.
    Suppose your XML message is like
    <myMT xmlns="urn:mynamespace">
      <value>xpto</value>
    </myMT>
    Then, if your source message interface occurrence is defined as unbounded in your interface mapping, your mapping program (message mapping, xslt, java mapping, whatever) will receive, from mapping runtime, a message like this:
    <Messages xmlns="http://sap.com/xi/XI/SplitAndMerge">
      <Message1>
        <myMT xmlns="urn:mynamespace">
          <value>xpto1</value>
        </myMT>
        <myMT xmlns="urn:mynamespace">
          <value>xpto2</value>
        </myMT>
        <myMT xmlns="urn:mynamespace">
          <value>xpto3</value>
        </myMT>
      </Message1>
    </Messages>
    Also, if you have more than 1 message type as source of your interface mapping, your mapping program will receive the other message types in <Message2>, <Message3>... tags.
    The <Messages> and <MessageX> tags will always be automatically generated by mapping runtime when dealing with multimappings, which are mappings from m XML messages to n XML messages, with either m, n or both different of 1 (note that this definition includes mappings from 1 type to 1 type, when either source, target or both message types have max occurrence = ubounded).
    Finally, remember that the output that your mapping program generates will also have to include these <Messages> and <MessageX> tags (with proper namespace), since mapping runtime will be expecting them. Message mappings treat those by default, but your xslt and java multimappings will have to explicitely include these tags in the output.
    Regards,
    Henrique.

  • Java Mapping with CDATA

    One simplest way is read the data element value as the string and ignore first  six or seven characters by using substring method or so... Use the return value string for parsing the values from respective tag element using parser or manually

    Hi Xinaxu,
    Here is the java mapping code.
    public class Cdata implements StreamTransformation{
         public static void main(String[] args) {
              try{
                   Cdata genFormat=new Cdata();
                   FileInputStream in=new FileInputStream("C:\\Apps\\acm\\cdata.xml");
                   FileOutputStream out=new FileOutputStream("C:\\Apps\\acm\\cdata1.xml");
                   genFormat.execute(in,out);
                   catch(Exception e)
                   e.printStackTrace();
         public void execute(InputStream in, OutputStream out)
                   throws StreamTransformationException {
              try
                   DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
                   DocumentBuilder builderel=factory.newDocumentBuilder();
                   /*input document in form of XML*/
                   Document docIn=builderel.parse(in);
                   /*document after parsing*/
                   Document docOut=builderel.newDocument();
                   TransformerFactory tf=TransformerFactory.newInstance();
                   Transformer transform=tf.newTransformer();
                   Element root,child,child1;
                   root=docOut.createElement("Header");
                   root.setAttribute("xmlns","urn:bp:xi:hr:edm:test:100");
                   NodeList l;
                   Node n;
                   l=docIn.getElementsByTagName("Data");
                   int i,len=l.getLength();
                   String charSet[]={"&lt;","&gt;","&amp;","&apos;","&quot;"};
                   String replaceSet[]={"<",">","&","'","\""};
                   for(i=0;i<len;++i)
                        child=docOut.createElement("Data");
                        if(l.item(i).hasChildNodes())
                             n=l.item(i).getFirstChild();
                             //System.out.println(n.getNodeType());
                             //System.out.println(n.getNodeValue());
                             int j;
                             if(n.getNodeType()==3 && n.getNodeValue().indexOf("CDATA")>=0)
                                  // that means this is Cdata section
                                  //capture data in a string
                                  String s=n.getNodeValue();
                                  /*if you are sure that string contains
                                   * valid xml tags. You can parse
                                   * the tags.First replace
                                   * &lt; with < less than
                                     &gt; with > greater than
                                     &amp; with & ampersand 
                               &apos; with ' apostrophe
                               &quot; with " quotation mark
                               to avoid exceptions
                                  //System.out.println("s="+s);
                                  for(j=0;j<charSet.length;++j)
                                       s=s.replaceAll(charSet[j], replaceSet[j]);
                                  int ll;
                                  ll=s.length();
                                  String a="";
                                  int count=0;
                                  //extract only xml tags from string
                                  for(j=0;j<ll;++j)
                                       if(count<2)
                                            if(s.charAt(j)=='<')
                                                 count++;
                                            if(count<2)
                                                 continue;
                                       a=a+s.charAt(j);
                                  //System.out.println("a="+a);
                                  for(j=a.length()-1,count=0;j>=0;--j)
                                            if(a.charAt(j)=='>')
                                                 count++;
                                            if(count==2)
                                                 break;
                                  if(j>=0)
                                       s=a.substring(0,j+1);
                                  System.out.println(s);
                                  org.xml.sax.InputSource inStream = new org.xml.sax.InputSource();
                                 inStream.setCharacterStream(new java.io.StringReader(s));
                                  DocumentBuilder b=factory.newDocumentBuilder();
                                  Document cdataSection=b.parse(inStream);
                                  child1=(Element) docOut.importNode(cdataSection.getDocumentElement(),true);
                                  child.appendChild(child1);
                             else if(n.getNodeType()==4)
                                  // that means this is Cdata section
                                  //capture data in a string
                                  String s=n.getNodeValue();
                                  /*if you are sure that string contains
                                   * valid xml tags. You can parse
                                   * the tags.  replace invalid characters
                                   * before parsing
                                  for(j=0;j<charSet.length;++j)
                                       s=s.replaceAll(charSet[j], replaceSet[j]);
                                  org.xml.sax.InputSource inStream = new org.xml.sax.InputSource();
                                 inStream.setCharacterStream(new java.io.StringReader(s));
                                  DocumentBuilder b=factory.newDocumentBuilder();
                                  Document cdataSection=b.parse(inStream);
                                  child1=(Element) docOut.importNode(cdataSection.getDocumentElement(),true);
                                  child.appendChild(child1);
                        root.appendChild(child);
                   docOut.appendChild(root);
                   transform.transform(new DOMSource(docOut), new StreamResult(out));
              catch(Exception e)
                   e.printStackTrace();
         public void setParameter(Map arg0) {
              // TODO Auto-generated method stub
    Hope this solves your problem.
    regards
    Anupam

  • Could java deal with shortcut/link files ?

    Hi all,
    We could often use the shortcut(.lnk) or link files on Windows or Unix.
    Could Java class deal with these files directly ? That is, could it got
    the target file of the shortcut link files? So that, we could use the target file exactly the same with other normal files.
    Any comments and help are welcome. Thanks.
    -GeorgeZ.

    Be aware that MS .lnk files are extremely different from what you use in Unix. In Unix, the OS resolves links automatically, and the application never even knows they are there. In Windows, this is absolutely not the case, and it takes a bit of work to get the windows shell to tell you where the link is pointing.
    If you absolutely have to dereference .lnk files in Java you'll need to use JNI. The JNI interface will be the absolute easiest part of this, though. Getting a resolved .lnk in C++ is a major pain in the neck (about 50 lines of code).
    - K

  • Java mapping for fixed length file in XI

    Can Anyone help me On this?

    Hi,
    This may Help you
    Check these for JAVA Mapping
    Java Mapping (Part I)
    Java Mapping (Part II)
    Java Mapping (Part III)
    Testing and debugging
    Testing and Debugging Java Mapping in Developer Studio
    Implermenting JAVA Mapping in PI
    Implementing a Java Mapping in SAP PI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/400ee77e-f9d6-2a10-2b8c-99281a4dcf6b
    REgards
    Seshagiri

  • JAVA Mapping with SAX: Illegal character exception &

    Hi everybody,
    I use a SAX JAVA Mapping. It throws an error cause the xml that is parsed has a
    &amp;
    like in
    <D_3036>Company &amp; Co. KG</D_3036>
    Does anybody know how to solve the problem?
    I do not want to replace the
    &amp;
    Are there special settings/properties for the handler/parser?
    Thanks
    Regards
    Mario

    Hi all,
    thanks for your comments and suggestions. The error was not cause by the problem I describes.
    FYI:
    If there is an ampersand in the middle of a string, than the standard method
    characters
    in the handler is called three times!
    This let me asume the ampersand was the error.
    Regards Mario
    Edited by: Mario Müller on Dec 19, 2008 1:23 AM

  • UME java mapping with ABAP

    Hi Experts
    I need to keep the users of my AS Java syncronized with some user in ERP.
    Thats means, when some user change some information in ABAP, i need to get this information and change in AS Java too, like email or password...
    I can't use CUA, and i can't use that function that syncronized ABAP user in AS Java automatically. There is another way to do it?
    Could somene help me?
    Best Regards
    Marcos Brandã

    Hi Martin
    Thanks for your response,
    When i was talking about the function that syncronized the user in abap and java, i was talking exactly about use ABAP user store as a source for UME. This solution doesn't wirk because the customer do not when activate this. He is worried about the performance and the information of the user in 2 diferent location, there is a lot of users in ABAP user store and he don't want this solution.
    I need to get just specific user to reply in Java stack user store. I kown how can i do it without get user password, but this do not resolve to me. I need the same user credencials in both systems.
    I will see th SPML / Idm and what kind of problems this solution brings to me, if this solve my problem, i will try to use it.
    There is another way, instead this two way? maybe get the encripted password, decript it and save in java user store with encription mecanism of ume?
    Best Regards
    Marcos Brandao

  • Error in Java console with lop.properties file

    Hi,
    I keep getting this error on my java console when opening XI.  Somebody have an idea why?
    Thanks
    Yves
    NFO: using logging implementation "Dual SAP/AII Logging"
    INFO: log configuration file "C:\Documents and Settings\berniery\Desktop\log.properties" could not be read
    INFO: using simple log configuration
    <<< frog.jar: version 5.1.4  08/20/04  sap.theme: Streamline >>>
    #8 09:33:22 [AWT-EventQueue-0] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable
    Thrown:
    MESSAGE ID: com.sap.aii.ib.core.roa.rb_all.ROA_MOA_NOTCOMPLETED
    com.sap.aii.utilxi.misc.api.ResourceException: Attempt to access the 1 requested objects on 1 failed. Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Unable to read object Adapter Metadata BIC | http://seeburger.com/xi (a0d754d06f9f11d992c0c8340a0068a7) of type AdapterMetaData from application REPOSITORY on system REPOSITORY. Detailed information: Software component version with GUID a0d754d0-6f9f-11d9-92c0-c8340a0068a7 does not exist
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Unable to read object Adapter Metadata BIC | http://seeburger.com/xi (a0d754d06f9f11d992c0c8340a0068a7) of type AdapterMetaData from application REPOSITORY on system REPOSITORY. Detailed information: Software component version with GUID a0d754d0-6f9f-11d9-92c0-c8340a0068a7 does not exist
         at com.sap.aii.ib.sbeans.gen.GeneralSessionBean.wrap(GeneralSessionBean.java:156)
         at com.sap.aii.ib.sbeans.gen.GeneralSessionBean.wrap(GeneralSessionBean.java:131)
         at com.sap.aii.ib.sbeans.misc.MiscServicesBean.getAdapterMetadata(MiscServicesBean.java:242)
         at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl10.getAdapterMetadata(MiscServicesRemoteObjectImpl10.java:2028)
         at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl10p4_Skel.dispatch(MiscServicesRemoteObjectImpl10p4_Skel.java:285)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         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:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)

    Hi Yves,
    Of course, here it is:
    " Attempt to access the 1 requested objects on 1 failed. Detailed information:  com.sap.aii.ib.core.roa.RoaObjectAccessException: Unable to read object Adapter Metadata File | http://sap.com/xi/XI/System (3b787a8035c111d6bbe0efe50a1145a5) of type AdapterMetaData from application REPOSITORY on system REPOSITORY. Detailed information: Software component version with GUID 3b787a80-35c1-11d6-bbe0-efe50a1145a5 does not exist"
    do you have any idea?
    Thanks and Kind Regards

  • How to start java app with many jar files

    Hi,
    I have an application that makes use of 50 jar files. When I try to start the application, I need a very long command line like
    java -classpath file1.jar;file2.jar;file3.jar; ... de.me.myapp.myclass
    This is not very handy. Is there a shorter way if all jars are in the same directory? I would like a command like this:
    java -cp /usr/local/my_jars de.me.myapp.myclass
    but this does not work.
    Any Idea if there is an easy solution?
    Andreas

    aaa801 wrote:
    i think there was a way to do it but it eather only worked with javac or java exe which is a lil problem but i did -cp .;./*.jar or something of that sortAs of Java 6, the classpath can contain wildcards.
    http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html

  • What's with the HUGE file sizes for patches

    Hi gang,
    Every time I install a patch my Staroffice directory bloats back up. When installing for the first time, I select english only and it only installs english but when I install the patches it installs about 5 different languages which fattens up the installation. Can't it be smart enough to realize that I only want English or just give me the option during install for English only or better yet, let me download an english only install.
    Now for Linux it is even worse as the "patch" is about 500MB and includes MANY more duplicate files by language.
    Some of us don't have the bandwidth OR HD space to spare on all of this.
    IS Sun at all concerned? Does anyone else care?

    Saturday 13 January 2007
    With the exception of the patches for 1.1.5, which are available as a total of three files, SO is following OOo which includes all files in its updates.
    Phil

  • What does Java do with the input file?

    Hello everyone --
    I have a freaky Java problem. I'm running a program that takes an input file, reads it one line at a time, and determines whether the info I'm looking for is contained in it or not. For each line it reads, it decides if that line is good or bad, and broadcasts the findings in a System.out.println(). Every line gets one. When I run the program, I redirect the output to a log file. What's going on when the input file is 13000+ lines long and the log file is only 2500 lines long? This is tweakin' me out.
    Thanks for the advice,
    -Kwj.

    Here's what I have:
    boolean isGood = true;
    int count = 1;
    while((line = in.readLine()) != null)
    if (/*some condition is met*/)
    {*do some stuff*/}
    else
    isGood = false;
    System.out.println("***" + line);
    if (isGood)
    /*do some more stuff*/
    System.out.println(count + ". " + line)
    count++;
    }//process all lines
    As far as I can tell, I have every line accounted for in the else statement or the last if statement. If the line doesn't meet the req., it doesn't get to go on to the last if processing. All the good ones get processed. I think.

  • CFDOCUMENT with Images = Huge File

    I've been looking through the forum and google and can't find
    a straight answer. Has Adobe responded to the issue? My PDF is 10x
    that of the image. I know there are alternatives to CFDOCUMENT, I
    know the PDF's can be optimized out of CF, but why isn't this
    fixed? Maybe at least an optimize option in CFPDF
    Anyone found a work around in CF? Any response from
    Adobe?

    not that I've heard yet. Hopefully someone will respond...
    even better if Adobe responds.

Maybe you are looking for

  • Warning message on Sun Enterprise E3500

    Hi, Does anyone knows what the error below means? Feb 27 09:03:06 oracle unix: WARNING: /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2 1000004cf6850f6,0 (ssd11):^M^M Feb 27 09:03:06 oracle unix:    Error for Command: write(10)               Error Level:

  • Help needed: Lion boots only in single user mode after a kasperksy unsuccefull installation

    Hello everyboby, I used to be a Sun Solaris sysadmin with root privileges, but I can't fix the Macbook of my girlfriend... WHAT I WISHED: I wished I could restore the boot INI/config files of a MacBook (the old one, made of white plastic, not the pro

  • Dreamweaver rewriting cfincludes

    Dreamweaver is rewriting my cfincludes from <cfinclude template="mytemplate.cfm"> to: <MM:BeginLock translatorClass="MM_SSI" type="ssi" orig="%3Ccfinclude template=%22dsp_productDetail.cfm%22%3E" fileRef="dsp_productDetail.cfm"><img src="file:///C|/P

  • Why do I get a message that PDF Pack isn't available in my country?

    How is it possible that when I try to subscribe I get the message that "it is not available in my country"?  Also why is there no help line just this forum?

  • Discoverer 10g not returning same data every time

    Hi all Has anyone come across this at all? I have a client who is reporting that sometimes, not always, when they run a query, the data comes back with wrong ID number. They can then run the query again and it will then give the correct IDs. Sometime