Throw exception in Java mapping and handle this in BPM

Hi,
I'll use a Java mapping in a BPM transform step. Is it possible to throw an exception inside this Java mapping and handle this in a BPM exception handler?
thanks and regards
Verena

Hi Verena,
In a BPM transformation step, I think you can throw exceptions only for system errors.
Let me explain with an example, one of the ways to handle your scenario:
Lets assume your Java Mapping fails then you can trap that exception in your Java mapping and compose an XML message which indicates that an error has occurred.
say for e.g.
<intermediateStructure>
<SatusDocument>
<StatusCode>ERROR</StatusCode>
<ErrCode>123</ErrCode>
<ErrDesc><!populate the thrown exception details></ErrDesc>
</StatusDocument>
<Payload>
<!contains actual XML message with data>
</Payload>
</intermediateStructure>
if Java mapping is Successful, you can compose the XML message as follows:
<intermediateStructure>
<SatusDocument>
<StatusCode>SUCCESS</StatusCode>
<ErrCode>0</ErrCode>
<ErrDesc></ErrDesc>
</StatusDocument>
<Payload>
<!contains actual XML message with data>
</Payload>
</intermediateStructure>
You can use BPM switch operation to switch to different processing branches say for e.g. "error" branch or "success" branch by examining the value of <StatusCode> tag.
Hope it helps !
Regards,
Sridhar

Similar Messages

  • Error in Raising exceptions in a method and handling the same in the WF

    Hi All
    I tried to implement Raising exceptions in a method and handling the same in the workflow
    in the same way given in SAPtechnical site .
    1.by adding a error msg in exception parameter .
    2. if the select query fails, to fetch the agent then :exit_return 9001 'ztable name' space space space.
    3.in the Background activity in which this method is called there automatically one outcome appears ,and I hav acitvated that outcome and in that done what need to be done for that error handling - just send a mail to concern person .
    4. in the normal outcome of the activity , the step to be executed are there .
    but its not working , if exception come then the WF stuck there only . it do not follow the exception outcome .
    Kindly help me , How can I do the exception handly in WF.
    thanks & Regards
    Kakoli

    > That is usually the case - you catch an error in the underlying program and pass that back so the workflow can go into error.
    > You're doing it correctly.
    I don't think that's quite right.
    If you define an error/exception in a method, it is automatically mapped to an outcome of the step/task.
    If you activate that outcome, then you can handle the exception in a branch of the workflow.
    For example: 'Remote connection is down, please contact Basis'
    The step should only go into error if an outcome occurs that you have NOT activated.
    So the original question is valid. Please give some more information on what the error message is..
    chrs
    Paul

  • Java mapping and no content conversion

    Hi all,
    I have a file to idoc scenario. The file is in flat idoc format and I've made my own java mapping that gets the flat file and converts it to idoc xml format.
    I don't use content conversion in the sender file adapter because I don't wan't the file to be converted to xml before the java mapping processes it. But with this configuration my scenario fails in the interface determination step, as it doesn't find an xml to apply the java mapping.
    Is there a way to make it work as I want? (with my java mapping and not applying content conversion?) If not, is there a way to put all the file in a single xml tag using content conversion?
    I mean something like this:
    <FILE>
    </FILE>
    This way it would be easy for my java mapping to remove the tags and work with the flat file as it does now.
    Thanks in advance.

    Thanks Stephan for your answer.
    In fact I have the defined that interface, as well as a dummy data type and message type that uses it. I still get the error though. My guess is that, as I don't use content conversion in file adapter (message protocol is file) the outbound message is in fact not in xml format, and it cannot identify it in interface determination. That's my guess but perhaps I'm wrong?
    This is the error I'm getting:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Interface Determination
      -->
    - <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="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>No interface determination found for outbound interface http://********.****/EDELIVERY.SI_OUT_A_0596_RECADV: Error while determining root tag of XML: BOM / charset detection failed</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the inbound interface: No interface determination found for outbound interface http://********.****/EDELIVERY.SI_OUT_A_0596_RECADV: Error while determining root tag of XML: BOM / charset detection failed No interface determination found for outbound interface http://********.****/EDELIVERY.SI_OUT_A_0596_RECADV: Error while determining root tag of XML: BOM / charset detection failed Error while determining root tag of XML: BOM / charset detection failed Error while parsing an XML stream: 'BOM / charset detection failed'.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Any idea?

  • Java Mapping  and Graphical Mapping

    Hi All,
    Could any one clarifies the situation where we need to write in a same interface ,
    Both Java mapping and Graphical mapping.
    Regards,
    venu.

    Hi,
       Here is a scenario where you might need to use both graphical and user defined functions.
    source: <fname> <lname> <filename>
    target: <name> <filetype>
    Suppose, you need to concatenate fname and lname into the target <name> tag, you could use the normal graphical mapping using the concat function.
    <fname>\
    concat <name>
    <lname>/
    next, if we need to extract only the filetype from the filename, for example, if we have filename.txt... and we want only the value .txt, we need to write a user defined function which would achieve this for u, since there are no inbuilt function which can solve this for you in graphical mapping.
    Further XSLT mapping comes into picture when we need to create the entire target xml structure. Again, graphical mapping would not be useful here.
    Regards,
    Smitha.

  • About Java mapping and java proxy

    Hi
    Iam new to Xi and basically iam an ABAPER.When iam dooing mappinps or proxies i cant able to understand the java pari cant (javamapping and java proxies) .I need some notes on java mapping and java proxy which is easy to do.And why do we use this java mapping or java proxy particularly when we r having abap mappipng and abap proxy.
    thanks in advance

    Hi,
    refer
    Java Mapping
    SAP Network Blog: Java Mapping (Part I)
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    Java Mapping in XI
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
    Runtime Environment (Java Mappings) (SAP Library - Partner Connectivity Kit)
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/c91241c738f423e10000000a155106/frameset.htm
    Java Mapping (SAP Library - Partner Connectivity Kit)
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    SAP Network Blog: Testing and Debugging Java Mapping
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    SAP Network Blog: Implementing a Java Mapping in SAP PI
    /people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
    "JAVA MAPPING", an alternate way of reading a CSV file
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    SAP Network Blog: XI Java Mapping Helper (DOM)
    /people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
    Java Proxy
    Java Proxy Objects (SAP Library - SAP Exchange Infrastructure)
    http://help.sap.com/saphelp_nw04/helpdata/en/c5/7d5e3c754e476ee10000000a11405a/frameset.htm
    Accessing Active Directory through Java Proxy on SAP Exchange Infrastructure 3.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10716e9f-23d7-2a10-8c8c-d2665615f8fc
    Thanks
    Swarup

  • XI 7.0 passing attributes between java mapping and message mapping

    Hi all,
    Here's a newbie question. There is a scenario where an interface mapping has several stages of java mapping and message mapping
    I would like to know how to set attributes in the java mapping so that it can be accessed in a message map (or vice versa). What I intend to do is pass some information from one mapping to the other so that action can be taken based on the values passed.
    Thank you!

    Another option is storing the values in the message header in the same way as the Adapter-Specific Message Attributes:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
    Just use your own name/namespace combination, which is not used in any adapter.
    If possible use the way that Sandro proposed and add the information which you need to additional tags in the payload.
    Regards
    Stefan

  • Multi-Mapping and Message Split using BPM

    Hi All,
    Could anyone pls let me know clearly how message mapping can be done for this weblog
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Thanks,
    Ram

    Hi,
    When you are doing Message mapping after adding the Messaget types for source and target messages. You can click on the "" button in the target message and add one more tab. You can go to Message tab as shown in the 5th image and click "" button to add one more message type. Then do the mapping as usual.
    <b>Based on the value of the element(name), the node of input(details)should be directed to one of the two message types</b>
    Here in this blog it is done based on the Name.
    You need to use IFTHENELSE boolean function and do the mapping.
    Thanks,
    Prakash

  • Multi mapping and message splitting in BPM

    Hi ,
    I am working with this scenario ...
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    how many message interfaces i have to create .
    one outbound , one abstract  and two inbound .. is it correct.

    Hi
    Minimum you need to create three message interfaces i.e. Bpm_In_MI_Abstract,  aBpm_Out_MI_Abstract Bpm_Out1_MI_Abstract, because abstract interfaces can be use inbound and outbound as well.
    You can also use create implement it by using inbound and outbound message interfaces. In that case you have to use three additional interfaces(1 outbound and 2 inbound).
    Regards
    Sami
    Reward points if helpful.

  • Multi-Mapping and Message Split using BPM UDFs Error

    hi
    As per the below blog
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    I have just modified the UDFs(1.selectnodeifA 2.selectNodeifB)
    1.selectnodeifA
    for(int i=0;i<=n;i++)
    if(Name<i>.equals("A"))
    result.addValue(Node<i>);
    2.selectNodeifB
    for(int i=0;i<=n;i++)
    if(Name<i>.equals("B"))
    result.addValue(Node<i>);
    while checking I am getting the following errors
    Source code has syntax error: 
    D:/usr/sap/D10/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapdc8fa4d0896011dd907d001cc01cef0d/source/com/sap/xi/tf/_bpm_mm_.java:132: cannot resolve symbol
    symbol : variable n
    location: class com.sap.xi.tf._bpm_mm_
    for(int i=0;i<=n;i++)
    ^
    D:/usr/sap/D10/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapdc8fa4d0896011dd907d001cc01cef0d/source/com/sap/xi/tf/_bpm_mm_.java:140: cannot resolve symbol symbol : variable n
    location: class com.sap.xi.tf._bpm_mm_
    for(int i=0;i<=n;i++)
    ^
    2 errors
    The source code given in the blog is correct ? I thought for loop has not completed
    pls help
    manian

    Hi manian,
    I was having a look to Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure blog.
    The functions are not the same. I mean, yours and blogs functions.
    Each function has two parameters, Name and node. Furtheremore, in the blogs' functions is using arrays and you don't.
    So, the right code will be
    1.selectnodeifA
    for(int i=0;i<=node.length();i++)
    if(Name<i>.equals("A"))
    result.addValue(Node<i>);
    However, if you don't need an advance user defined function as you want to process just one element of the node's queue, you will not need to use for sentence.
    Something like:
    1.selectnodeifA
    // for(int i=0;i<=n;i++)
    if(Name.equals("A"))
    result.addValue(Node);
    Hope it is usefull for you.
    Carlos

  • This is regarding "throw exceptions" in Java

    Hi, I have Queue class and a Test drive for the Queue class called QueueDriver. After I run the program I see a number which I have set in the QueueDrive shown up in the terminal window. How can I throw an exception here along with a message? what kind of exception would it be? IOException......OR FileNotFound exception.....OR is there a generic type of exception?
    Thanks.

    Queue class;
    public class Queue
        private Object []items;
        private int max_items;
         private int next_free;
         private int next_full;
         public Queue(int _max_items)
             max_items = _max_items;
              items = new Object[max_items];
              next_free = next_full = 0;
         public void enqueue(Object it)
              items[next_free] = it;
              next_free = (next_free + 1) % max_items;
         // throw exception....
         public Object dequeue()
             Object rtn = items[next_full];
             next_full = (next_full + 1) % max_items;
             return rtn;
         // throw exception....
    QueueDriver;
    import Queue;
    public class QueueDriver
        public static void main(String[] args)throws Exception;
            Queue int_queue = new Queue(50);
            try
                int_queue.enqueue(new Integer(12));
                int_queue.enqueue(new Integer(5));
                System.out.println((Integer) int_queue.dequeue());
               catch(QueueException e)
                   System.out.println("Caught QueueException: " + e.getMessage());
    }

  • Throwing Exception in java embedding to BPEL

    Hi,
    My requirement is that all exceptions needs to be thrown to BPEL so that the BPEL exception handler can handle it.I am using some classes through BPEL's java embedding. So any exception in them, i wud like to be propagated to BPEL. The Exception is thrown to the java embedding activity but i am not able to throw it to BPEL after that. I have to catch and handle it there itself, else the BPEL gives a compilation error.
    Can anybody please gimme a sol for this problem
    Thanks
    Ashish

    Hi,
    My requirement is that all exceptions needs to be thrown to BPEL so that the BPEL exception handler can handle it.I am using some classes through BPEL's java embedding. So any exception in them, i wud like to be propagated to BPEL. The Exception is thrown to the java embedding activity but i am not able to throw it to BPEL after that. I have to catch and handle it there itself, else the BPEL gives a compilation error.
    Can anybody please gimme a sol for this problem
    Thanks
    Ashish

  • Exception in Java Mapping

    hi All,
    I'm trying to validate the incoming XML against a given XSD using Java Mapping.. When i execute it i get the following error in the Mapping...
    com.sap.engine.lib.xml.util.NestedException -> com.sap.engine.lib.xml.parser.ParserException -> java.io.IOException: Parsing an empty source. Root element expected!
    Please do help me out..... I have given my java Code Below.....
    Note:The XSD is attached in the same zip file which contains java class and the zip file is imported in the Imported ARchive Area....
    package cts.com.XSD;
    import java.io.*;
    import java.util.Map;
    import com.sap.aii.mapping.api.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    public class TestJavaMapping implements StreamTransformation
         Map param=null;
         public void setParameter(Map arg0)
              this.param=arg0;
         public  void execute(InputStream in, OutputStream out) throws StreamTransformationException
         byte b[];
         byte b1[];
         try
               b = new byte[in.available()];
               in.read(b);
                  AbstractTrace trace=(AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);
               InputStream Schemainput= new
    TestJavaMapping().getClass().getClassLoader().getResourceAsStream("cts/com/XSD/ShipmentDetails.xsd");
         b1 = new byte[Schemainput.available()];
         Schemainput.read(b1);
         String XsdString =new String(b1);
         trace.addInfo("XSD obtained");
         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         docBuilderFactory.setNamespaceAware(true);
         docBuilderFactory.setValidating(true);
         trace.addInfo("After Setting True");
    docBuilderFactory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage","http://www.w3.org/2001/XMLSchema");
    docBuilderFactory.setAttribute( "http://java.sun.com/xml/jaxp/properties/schemaSource",XsdString);
    trace.addInfo("After Setting ATtribute");
              trace.addInfo("B4 Parsing");
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
              Document validDoc = docBuilder.parse(in);     
              trace.addInfo("After Parsing");
              out.write(b);
         catch(Exception e)
              AbstractTrace trace=(AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);
              trace.addInfo(e.getMessage());

    Hi Thorsten,
    Thanks for the Suggestion of using SAX instead of DOM... i even tried using SAX parser i get "Generic Exception"..i have give the code below.. please do help me out..
    package cts.com.XSD;
    import java.util.Map;
    import java.io.*;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.w3c.dom.Document;
    public class TestJavaMapping implements StreamTransformation
         Map param=null;
         public void setParameter(Map arg0)
              this.param=arg0;
         public  void execute(InputStream in, OutputStream out) throws StreamTransformationException
              try
                    SAXParserFactory factory = SAXParserFactory.newInstance();
                    factory.setNamespaceAware( true);
                    factory.setValidating( true);
    InputStream Schemainput = new
    TestJavaMapping().getClass().getClassLoader().getResourceAsStream("cts/com/XSD/ShipmentDetails.xsd");               
                      SAXParser parser = factory.newSAXParser();
                    parser.setProperty( "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                                                "http://www.w3.org/2001/XMLSchema");
                    parser.setProperty( "http://java.sun.com/xml/jaxp/properties/schemaSource",Schemainput);
                    byte b[]=new byte[in.available()];
                    in.read(b);
                    XMLReader reader = parser.getXMLReader();
                      reader.parse(new String(b));
                    out.write(b);
              catch ( ParserConfigurationException e)
                   AbstractTrace trace=(AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);
                   trace.addInfo(e.getMessage());
              catch ( SAXException e)
                   AbstractTrace trace=(AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);
                   trace.addInfo(e.getMessage());
              catch ( IOException e)
                     AbstractTrace trace=(AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);
                   trace.addInfo(e.getMessage());
              catch(Exception e)
                   AbstractTrace trace=(AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);
                   trace.addInfo(e.getMessage());

  • Message splitting using java mapping and BPM

    Hi all,
    I have a PLAIN FILE to IDOC Scenario.
    We decide to use javamapping instead of message mapping because we have several hierachical structures.
    We has more than one IDOC for file. And the mapping it's unable to detect the another header and create it at XI.
    I had seen:
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    "XI: IDOC bundling - the "trick" with the occurance change"
    But the problem it's we doesn't use mapping programs, so we can't apply to this case.
    So now i need to create a BPM scenario for resolve this issue. Anyone knows any example for split the income message and send any idocs to destination?
    Thanks in advance,

    IT WORKED !!!!
    The only thing it's at out code line we must improve it in another way.
    For everyone who needs to resolve, i copy the code line of the java mapping program.
    The relationship is from the specific mapping for every scenary calling GenToHierMap.
    0.0.0.0.0.0.0.0.0.0.0.0.1. GENERIC PACKAGE (GenToHierMap)
    0.0.0.0.0.0.0.0.0.0.0.0.2.
    package com.sap.javaMapping;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import java.util.Vector;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Text;
    import com.sap.aii.mapping.api.StreamTransformation;
    public class GenToHierMap
         private Element root, idoc;
         private Element nodeArrayRef[];
         private String nodeArrayTagName[];
         private Relation  rel ;
         private int  stack_count ;
         private String nameSpace;
         private String separator="#!";
         protected String msgName;
         GenToHierMap(InputStream in, OutputStream out,Vector v1,String msgName1,String nameSpace1)
         msgName = msgName1;
         nameSpace = nameSpace1;
         rel = new Relation(v1);
         execute(in,out);
        public void execute(InputStream in, OutputStream out)
              Element e ;
              Relation cur_rel;
              DOMSource domS = null;
              Element keyNodeParent;
              //int numdocs;
              try
                           DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                           factory.setNamespaceAware(true);
                             TransformerFactory tf = TransformerFactory.newInstance();
                             Transformer transform = tf.newTransformer();
                             // Create DOM structure from input XML
                             DocumentBuilder builderel = factory.newDocumentBuilder();
                             Document docIn = builderel.parse(in);
                            NodeList rows = docIn.getElementsByTagName("ROW");
                            nodeArrayTagName = new String[rows.getLength() + 1];
                            nodeArrayRef = new Element[rows.getLength() + 1];
                             Document docOut = builderel.newDocument();
                             root = docOut.createElement(msgName);
                             docOut.appendChild(root);
                             //idoc = docOut.createElement("IDOC");
                             //root.appendChild(idoc);     
                            //Número de documents inicialitzat a 0
                            //numdocs=0;
                            //Per cada filera ROW
                       for (int count=0;count<rows.getLength();count++)
                                  String dataRecord = "";
                                  Node node = rows.item(count);
                                  node = node.getFirstChild();
                                  dataRecord = node.getNodeValue();
                                  String fieldValue [] = dataRecord.split(separator);
                                  //Cada cop que es troba una nova capçalera es crea un nou document.
                                  //Això permet que hi hagi més d'un IDOC per missatge processat.
                                  if (Integer.valueOf(fieldValue[0]).intValue()==1){
                                       //numdocs = numdocs + 1;
                                       //if (numdocs > 1){
                                            //Es dona sortida al document anterior abans de crear-ne un de nou - BE AWARE BECAUSE IN THE NEXT LINES WE DEFINE THE UNBOUNDED IDOC ATTRIBUTE, WITH BEGIN = 1 ****
                                            //transform.transform((domS),new StreamResult(out));
                                            //docOut = builderel.newDocument();
                                            //root = docOut.createElement(msgName);
                                            //docOut.appendChild(root);
                                            idoc = docOut.createElement("IDOC");
                                            idoc.setAttribute("BEGIN","1");
                                            root.appendChild(idoc);     
                                  cur_rel = (Relation) rel.v.get(Integer.valueOf(fieldValue[0]).intValue());                    
                                  String keyId = cur_rel.node;
                                  keyNodeParent = searchNode(keyId);
                                  nodeArrayTagName[count] = keyId;
                               e = docOut.createElement(keyId);
                                  e.setAttribute("SEGMENT",fieldValue[0]);
                               nodeArrayRef[count]= e;
                              keyNodeParent.appendChild(e);
                              createXmlTree(docOut,e,keyId,fieldValue);
                              domS = new DOMSource(docOut);
                              stack_count = stack_count + 1;
                         transform.transform((domS),new StreamResult(out));
           catch (Exception t)
                  t.printStackTrace();
    return;
    //returns the parent of the given node
    private Element searchNode(String keyId)
         Relation cur_rel;
         for (int i=0;i<rel.v.size();i++)
              cur_rel = (Relation) rel.v.get(i);
              if (cur_rel.node.equals(keyId))
                     for (int j=0;j<cur_rel.parents.length;j++)
                              if (cur_rel.parents[j].equals("NULL")) return root;
                              if (cur_rel.parents[j].equals("IDOC")) return idoc;
                               for (int k=(stack_count-1);k>=0;k--)
                                   for (int p=0;p<cur_rel.parents.length;p++)
                                       if (nodeArrayTagName[k].equals(cur_rel.parents[p]))
                                       return nodeArrayRef[k];
    return null;
    //Creates all the elements of the given node
    private void createXmlTree(Document docOut,Element node,String keyId, String fieldValue[])
          Element tagName;
          Text tagValue;
          Relation cur_rel;
          for (int i=0;i<rel.v.size();i++)
                     cur_rel = (Relation) rel.v.get(i);
                     if (cur_rel.node.equals(keyId))
                        for (int j=1;j<cur_rel.elements.length;j++)
                           tagName = docOut.createElement(cur_rel.elements[j]);
                           node.appendChild(tagName);
                           if ( j < fieldValue.length  && fieldValue[j].length() != 0 )
                           if ( fieldValue[j].substring(0,1).equals("""))
                           if ( fieldValue[j].length() > 2 )
                           fieldValue[j] = fieldValue[j].substring(1,( fieldValue[j].length() - 1 ));
                           else
                           fieldValue[j] = new String ();
                           if ( j >= fieldValue.length )
                           tagValue = docOut.createTextNode(new String());
                           else
                           tagValue = docOut.createTextNode(fieldValue[j]);
                           tagName.appendChild(tagValue);
                        return;
    //Main thread of execution
    0.0.0.0.0.0.0.0.0.0.0.0.1. SPECIFIC ONE
    0.0.0.0.0.0.0.0.0.0.0.0.2.
    package com.sap.javaMapping;
    * Mapping Program to Convert NOM IDOC Master Structure to the Generic structure Expected by
    * the FTP Receiver adapter
    import com.sap.aii.mapping.api.*;
    import java.io.*;
    import java.util.Map;
    import java.util.Vector;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    //Specify the Hirearchial Structure
    public class INT938_mapping implements StreamTransformation
         public Vector v;
        private Map map;
        /** * method setParamters is required, but we do not anything with it */
         public void setParameter(Map param)
              map = param;
         } /** * method execute is called by the XI mapping program */
    public void buildXsd()
      Relation  mriRel ;
      v = new Vector();
      /* INICI MODIFICACIÓ ESTRUCTURA DE SORTIDA DEL MAPPING */
      // --> TOCAR AQUEST NODE IMPLICA MODIFICAR EL CÒDI!!!
      mriRel = new Relation();
      mriRel.parents = new String[1];
      mriRel.node =  "IDOC" ;
      mriRel.parents[0] =   "NULL" ;
      v.add(mriRel) ;
      /* ESTRUCTURA DEL IDOC DE SORTIDA */
      //NODE - 01
      mriRel = new Relation();                          
      mriRel.parents = new String[1];                                                    
      mriRel.elements = new String[22];                                                                 
      mriRel.node = "E1BPEBANC";                                    
      mriRel.parents[0]   =   "IDOC";                                              
      mriRel.elements[0]  =   "SEGMENT";   
      mriRel.elements[1]  =   "PREQ_ITEM"; 
      mriRel.elements[2]  =   "DOC_TYPE";  
      mriRel.elements[3]  =   "PUR_GROUP"; 
      mriRel.elements[4]  =   "CREATED_BY";
      mriRel.elements[5]  =   "PREQ_NAME"; 
      mriRel.elements[6]  =   "PREQ_DATE"; 
      mriRel.elements[7]  =   "SHORT_TEXT";
      mriRel.elements[8]  =   "MATERIAL";  
      mriRel.elements[9]  =   "PLANT";     
      mriRel.elements[10] =   "STORE_LOC";
      mriRel.elements[11] =   "TRACKINGNO";
      mriRel.elements[12] =   "MAT_GRP";   
      mriRel.elements[13] =   "QUANTITY";  
      mriRel.elements[14] =   "UNIT";      
      mriRel.elements[15] =   "DELIV_DATE";
      mriRel.elements[16] =   "ACCTASSCAT";
      mriRel.elements[17] =   "DES_VENDOR";
      mriRel.elements[18] =   "PURCH_ORG"; 
      mriRel.elements[19] =   "BATCH";     
      mriRel.elements[20] =   "VEND_MAT";  
      mriRel.elements[21] =   "CURRENCY";
      v.add(mriRel) ; 
      //NODE - 02
      mriRel = new Relation();                                   
      mriRel.parents = new String[1];                                                    
      mriRel.elements = new String[2];                                                                  
      mriRel.node = "Z1SOLCOM";                                    
      mriRel.parents[0]  =   "E1BPEBANC";                                                     
      mriRel.elements[0] =   "SEGMENT";  
      mriRel.elements[1] =   "ZPO_NUMBER";
      v.add(mriRel) ;
      //NODE - 03
      mriRel = new Relation();                                   
      mriRel.parents = new String[1];                                                    
      mriRel.elements = new String[3];                                                                 
      mriRel.node = "E1BPEBKN";                                    
      mriRel.parents[0]  =   "IDOC";                                                   
      mriRel.elements[0] =   "SEGMENT";
      mriRel.elements[1] =   "PREQ_ITEM";   
      mriRel.elements[2] =   "COST_CTR";
      v.add(mriRel) ;
      //NODE - 04
      mriRel = new Relation();                                   
      mriRel.parents = new String[1];                                                    
      mriRel.elements = new String[8];                                       
      mriRel.node = "Z1SOLRES";                                    
      mriRel.parents[0]  =   "E1BPEBKN";                                                   
      mriRel.elements[0] =   "SEGMENT";            
      mriRel.elements[1] =   "DADES_PACIENT";      
      mriRel.elements[2] =   "NOHIS";              
      mriRel.elements[3] =   "ZNINTER";            
      mriRel.elements[4] =   "ZFEIMP";             
      mriRel.elements[5] =   "NMPAC";              
      mriRel.elements[6] =   "ZNLOTE";             
      mriRel.elements[7] =   "ZNSERIE";            
      v.add(mriRel) ;
      /* FI    MODIFICACIÓ ESTRUCTURA DE SORTIDA DEL MAPPING */
    public void execute(InputStream in, OutputStream out) throws com.sap.aii.mapping.api.StreamTransformationException
         INT938_mapping rel = new INT938_mapping();
         rel.buildXsd();
         new GenToHierMap(in,out,rel.v,"ZPREEX01","http://namespace1/namespace");
    public static void main (String[] args) throws Exception
              try
                   INT938_mapping rel = new INT938_mapping();
                   FileInputStream in = new FileInputStream ("C:/DOM_IN.xml");
                   FileOutputStream out = new FileOutputStream ("C:/DOM_OUT.xml");
                   rel.buildXsd();
                   new GenToHierMap(in,out,rel.v,"ZPREEX01","http://namespace1/namespace");
              }catch(Exception e) {e.printStackTrace();}
    //Transformation of flat structure to hirearchial structure
    Any issue you can contact me. Best regards and reward points !

  • Exception when "Edit Maps and Interface"

    This is pretty uniform on all .jws I tried. Right click on the client
    interface and choose "Edit Maps and Interface" yields:
    Unexpected exception:
    java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:394)
    at java.lang.Integer.parseInt(Integer.java:476)
    at jellybeans.util.CookingUtil.getErrorCount(CookingUtil.java:159)
    at jellybeans.util.CookingUtil.getErrorText(CookingUtil.java:142)
    at
    jellybeans.modules.jws.dialog.SvcMapEditorDialog$GetDefaultMapTask.runForegr
    ound(SvcMapEditorDialog.java:1441)
    at
    jellybeans.core.task.TaskThread$ExecuteForeground.run(TaskThread.java:164)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at jellybeans.util.AssertUtil$1.run(AssertUtil.java:147)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at
    jellybeans.modules.jws.action.EditSvcMapsAction.actionPerformed(EditSvcMapsA
    ction.java:93)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    n.java:1820)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    19)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
    MenuItemUI.java:932)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Was caught at:
    jellybeans.util.AssertionFailureException: Unexpected exception: null
    at jellybeans.util.AssertUtil.handleUnexpectedException(AssertUtil.java:50)
    at jellybeans.util.AssertUtil.handle(AssertUtil.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    java.awt.EventDispatchThread.handleException(EventDispatchThread.java:304)
    at
    java.awt.EventDispatchThread.processException(EventDispatchThread.java:210)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:202)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at jellybeans.util.AssertUtil$1.run(AssertUtil.java:147)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at
    jellybeans.modules.jws.action.EditSvcMapsAction.actionPerformed(EditSvcMapsA
    ction.java:93)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    n.java:1820)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    19)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
    MenuItemUI.java:932)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

    Thanks all. I appreciate the help.
    "Peter Laird" <[email protected]> wrote in message
    news:[email protected]...
    >
    Me too. I got different errors however because I did something different:
    1.) Download and install the public beta.
    2.) Start WLS (I started mydomain server)
    3.) Start Workshop from the Start Menu.4) Created a new method for my webservice
    5) Selected Debug->"Start and Debug"
    6) Got ClassNotFound exceptions on my mydomain server console window andWorkshop
    showed a progress bar for multiple minutes instead of failing outright.
    There seems to be a basic assumption for some users that Workshopinteracts with
    the out of the box WLS instance. Its not clear for people that don't readthe
    documentation (that's me!) that the WLS instance needs to be Cajun aware.
    Perhaps a message dialog should appear upon first install explaininglittle gotchas
    like this. It should be one of those windows that you can uncheck "Showthis window
    at startup".
    Just a suggestion.
    "Joe Noonan" <[email protected]> wrote:
    Thanks Ian. I also had this problem. I had started WebLogic before
    WorkShop and ran into the same problem. Once I read this and started
    it
    from within WorkShop, it ran fine.
    Joe Noonan
    [email protected]
    "Ian M. Goldstein" <[email protected]> wrote in message
    news:[email protected]...
    Thanks, Robert. It looks like this error happens when running a
    non-Workshop-enabled instance of WebLogic Server.
    Note the differences in the classpath settings in the Workshop-enabled
    startWebLogic.cmd script
    (C:\bea\weblogic700b\samples\workshop\startWebLogic.cmd) as opposedto the
    non-Workshop-enabled scripts at
    C:\bea\user_domains\mydomain\startWebLogic.cmd or
    C:\bea\weblogic700b\samples\server\config\examples\startWebLogic.cmd.
    I'll file an issue about improving the error message if the instanceof
    WebLogic Server which is running doesn't have the necessary Workshopjars
    in
    its classpath.
    Ian M. Goldstein
    Developer Relations Engineer
    BEA Systems, Inc.
    "Robert Patrick" <[email protected]> wrote in message
    news:[email protected]...
    Here are the steps to reproduce this.
    1.) Download and install the public beta.
    2.) Start WLS (probably don't need to do this)
    3.) Start Workshop from the Start Menu.
    4.) Right Click on the Hello interface and Choose "Edit Maps andInterface".
    Hope this helps,
    Robert Patrick
    Technical Director
    BEA Systems
    Ian M. Goldstein wrote:
    Hi Steve. I'm not seeing this myself with any of the samples or
    my own
    jws
    files. There was a pre-beta issue that fit this description, but
    it
    was
    resolved before the beta release. What build are you running?
    (Click
    on
    Help
    About WebLogic Workshop.)
    Are you actually modifying the interface when you're getting that
    error,
    or
    does it happen just from opening the "Edit Maps and Interface"
    dialog
    box?
    Once you get the error, can you get past it and try to open the
    "Edit
    Maps
    and Interface" dialog box again? Do you get the error again, or
    does
    it
    let
    you actually edit the interface now?
    Thanks,
    Ian M. Goldstein
    BEA Developer Relations Engineer
    "Steve Demuth" <sdemuthxxxxartemisalliance.com> wrote in message
    news:[email protected]...
    This is pretty uniform on all .jws I tried. Right click on the
    client
    interface and choose "Edit Maps and Interface" yields:
    Unexpected exception:
    java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:394)
    at java.lang.Integer.parseInt(Integer.java:476)
    at jellybeans.util.CookingUtil.getErrorCount(CookingUtil.java:159)
    at jellybeans.util.CookingUtil.getErrorText(CookingUtil.java:142)
    at
    jellybeans.modules.jws.dialog.SvcMapEditorDialog$GetDefaultMapTask.runForegr
    >>>>>
    ound(SvcMapEditorDialog.java:1441)
    at
    jellybeans.core.task.TaskThread$ExecuteForeground.run(TaskThread.java:164
    atjava.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    >>>>>
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at jellybeans.util.AssertUtil$1.run(AssertUtil.java:147)
    atjava.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    >>>>>
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at
    jellybeans.modules.jws.action.EditSvcMapsAction.actionPerformed(EditSvcMapsA
    >>>>>
    ction.java:93)
    at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    >>>>>
    n.java:1820)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    >>>>>
    19)
    atjavax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
    >>>>>
    MenuItemUI.java:932)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    atjava.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    atjava.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    >>>>>
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :144)
    atjava.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    atjava.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Was caught at:
    jellybeans.util.AssertionFailureException: Unexpected exception:
    null
    at
    jellybeans.util.AssertUtil.handleUnexpectedException(AssertUtil.java:50)
    at jellybeans.util.AssertUtil.handle(AssertUtil.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    >>>>>
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    >>>>>
    .java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    java.awt.EventDispatchThread.handleException(EventDispatchThread.java:304
    at
    java.awt.EventDispatchThread.processException(EventDispatchThread.java:210)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    >>>>>
    va:202)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at jellybeans.util.AssertUtil$1.run(AssertUtil.java:147)
    atjava.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    >>>>>
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :144)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :134)
    at java.awt.Dialog.show(Dialog.java:524)
    at
    jellybeans.modules.jws.action.EditSvcMapsAction.actionPerformed(EditSvcMapsA
    >>>>>
    ction.java:93)
    at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    >>>>>
    n.java:1820)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    >>>>>
    19)
    atjavax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
    >>>>>
    MenuItemUI.java:932)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1380)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1437)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    atjava.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
    atjava.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
    at java.awt.Container.dispatchEventImpl(Container.java:1423)
    at java.awt.Window.dispatchEventImpl(Window.java:1566)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    >>>>>
    va:191)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    >>>>>
    :144)
    atjava.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    atjava.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

  • Generic Exception in java mapping

    hi all,
    i'm using xerces api inorder to validate the outbound xml with its corresponding xsd using java mapping . when mapping is executed , i get "Generic Exception". it does'nt leave any  trace other than the word "Generic Exception". i use same jdk version used by  XI.kindly help me regarding this issue.
    Thanks and Regards
    kausik

    hello kausik,
    i have the same problem in java mapping by validating incoming xml files.
    could you solve the problem?
    can you tell me how to solve the problem?
    you can write me an email with the solution ([email protected])? or post it here?
    thanks a lot
    ciao alex

Maybe you are looking for

  • Convert planned orders in contracts

    Hi. When running MRP, It seems that is only possible to create Purchase requisitions, schedule agreement divisions or planned orders. I need that the MRP output goes to a contract. Does anyone know if itu2019s possible to do it directly from MRP run?

  • Performance tuning for OS400 - three instances

    I have an OS400 LPAR that has been setup with 10GB RAM and 40GB swap space. The LPAR supports three SAP systems, a development ERP, QA ERP and PI Development system (ABAP+JAVA). All systems are based from the Netweaver 7.0 stack. Quite often the CPU

  • Am I able to use Apple's Face Time to call England from U.S. (Free)?

    Can I make a Face Time Call from the U.S. to England using my iMac Intel?

  • PE-CE Dynamic routing

    I am running a PE-CE vpn routing. Now my client wants to access a particulat ip which is on internet and may be the demand can be increased and he doesnot want to add the addtional static routes for this. Can we have any routing solution which can so

  • HP Pavilion g6 "preparing automatic repair"

    I have an HP pavilion g6, windows 8 laptop. My laptop suddenly froze so I turned it off and turned it back on hoping it would work but instead when I turned it on the "HP" logo comes up and loads for a few minutes and then goes to a bright blue scree