Adding new element block before the original nodes

I want to form a new xml like this:
<xml>
<form id="name1"> // this is
</form> // new element i'll add
<form id="_name1"> // this is
</form> // original element
<form id="name2"> // this is
</form> // new element i'll add
<form id="_name2"> // this is
</form> // original element
</xml>
how to insert new element parts into xml file by using Jdom?
Thanks
jj

Sorry for my format
I added i.previous();
                                        i.add(newFormElement);
                                        i.next();still not work properly.
How can i do?? pls see my code again!
     public void modifyvxml(Document doc){
               Element root = doc.getRootElement();
               java.util.List forms = root.getChildren();
               if(forms.size()>0)
                    for(int formloop=0; formloop < forms.size() ; formloop++)
                         List newFormList = new java.util.LinkedList();
                         Element form = (Element)forms.get(forms.size());     
                         String form_id = form.getAttributeValue("id");
                         System.out.print ("Form_id is  "+form_id+"\n");
               ListIterator i = forms.listIterator();
               while (i.hasNext()) {
                    Element form = (Element) i.next();
                         String form_id = form.getAttributeValue("id");
                         if(form_id != null){          
                                        int j = 0;                    
                                        StringBuffer sb_form = new StringBuffer(form_id);
                                        sb_form.insert(0, '_');
                                        form_id = sb_form.toString();
                                        form.setAttribute("id", form_id);
//==================add new forms                         
                                        Element newFormElement = new Element("form");
                                        Element subdialog = new Element("subdialog");
                                        int index = forms.indexOf(newFormElement);
                                        newFormElement.setAttribute("id", form_id);                                        
                                        newFormElement.addContent(subdialog);
                                        subdialog.setAttribute("src", "call.jsp");
                                        i.previous();
                                        i.add(newFormElement);
                                        i.next();
//                                        newFormList.add(formloop,newFormElement);
//                                        newFormList.add(formloop,forms);
                    System.out.print ("new form_id is "+form_id+"\n");
//=====================
                    try{               
                    XMLOutputter out = new XMLOutputter();
                    File myXML = new File("testvxml.xml");
                    out.output(doc,new FileOutputStream(myXML));                                   
                    }catch (IOException e) {
                    e.getMessage();
}Thanks

Similar Messages

  • Adding new assignment block in the sales order component

    Hi ,
    In sales order ,  qty filed is available at line item general details  level .now my requirment, the qty field has to display  in the new assinment block. i am thinking to create new view and context  node in the same component and ii will add this view to SOItemOV page . Please guide me this  approach is correct or not.

    Dear Venky,
    Refer to this [WIKI|http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock] for help.
    Thanks
    Vishal

  • NewElementInHierarchy() - Adding New Elements, progressively takes longer when adding multiple siblings

    With my ESTK script, users select model numbers from a list and then the script inserts an element with a model number entered into an attribute, one element for each model selected.
    When adding a large number of elements, each additional sibling element takes a little longer to add then the previous element. Adding 250 elements can take upwards of 3-1/2 minutes or more. While adding 20, 50, or 75 elements happens quickly, without any noticeable duration. It’s somewhere above 110 is where it starts to be noticeable.
    I even used $.hiresTimer and wrote the value to the console for each time a model was added. Since the timer is reset back to zero (0) each time it's called, it was easier to notice that the amount it incremented from one element to the next got progressively larger.
    Any thoughts as to why it’s taking so long or thoughts on what I could do to speed it up?
    The structure looks like this:
    <PartModels>
          <NoteText>Text</NoteText>
          <Model ModelNumber=”ABC01”/>
          <Model ModelNumber=”ABC02”/>
          <Model ModelNumber=”DEF03”/>
          <Model ModelNumber=”DEF04”/>
          <Model ModelNumber=”XYZ01-A”/>
          <Model ModelNumber=”XYZ*B”/>
          <Model ModelNumber=”XYZ500”/>
    </PartModels>
    The script is somewhat straight forward: cycle through an array of the model numbers selected, add a new element for each model number and set it's attribute value to the model number. This is the short version:
    Function InsertModelElements (modelsToIns, insElemLoc, GVdoc) {
         var newEleId;
         var newElemLoc = insElemLoc;
         var elemDef = GVdoc.GetNamedElementDef(“Model”);
         for(var i = 0; i < modelsToIns.length; i++){ // modelsToIns is the array of models selected
              newEleId = elemDef.NewElementInHierarchy(newElemLoc); //ElementLoc based on NoteText first, last, or not present
              SetAttribute(newEleId, "ModelNumber", null, modelsToIns[i]); //more robust function to set attribute
              /*Which also works for setting attribute*/
              //var vattributes = newEleId.GetAttributes();
              //vattributes[0].values[0] = modelsToIns[i];
              //newEleId.Attributes = vattributes;
              /*At one point I tried using a new element location from the last inserted element, no change*/
              //var newElemRange = setElementSelection(GV_doc, EleId); //function that returns range
              //newElemLoc = newNewElemRange.end;
    Any help is appreciated.
    Sincerely,
    Trent

    Thanks Russ,
    I seriously considered trying copy/paste and started to modify the code to do so. But I couldn't let it go, the answer had to be right there in front of me, just it's been too long since I've worked with this stuff, I'm not able to see it. Then it dawned on me what is happening.
    In an earlier test, I placed a timer on each action that is looped through. For example, I start with an container element that has 200 children elements, each with a specific/unique model number attribute. All 200 existing elements are deleted and then replaced with 250 new elements with a different value for the model number attribute. The timer was placed after the Element.Delete() method and ElementDef.NewElementInHierarchy() method. What I noticed with the timer is that each element deleted was deleted faster than the previous element (so it progressively took less and less time to delete an element). And of course the opposite was noticed for inserting elements, each element inserted took longer than the previous element inserted.
    These elements can be inserted in two areas of the structure, one of the areas has fewer format rules that impact the formatting and is actually a little quicker. This led me to the cause being the EDD format rules. The area that takes longer has quite a few extensive format rules that apply. Every time an element is inserted or deleted, FrameMaker runs through those rules to format the content of the elements. Since the rules apply to parent, first, last, next, previous, etc., FrameMaker has to apply format rules to all the elements in the structure that the rules apply to (which are extremely complex because of the various elements, attribute values, and combinations that can be inserted).
    Removing or thinning down the FormatRules in the EDD, it does get quicker. But each of the FormatRules are needed. So using app.ApplyFormatRules = false; right before the elements are deleted and inserted works great. But the key is to set ApplyFormatRules back to true before deleting the last element to be deleted and before inserting the last element to be inserted, so it will cycle through all the format rules of the EDD for all the elements in the hierarchy those format rules apply to. Setting ApplyFormatRules to true and assigning the ElementDef to the last element also works [EleId.ElementDef = GV_doc.GetNamedElementDef(insElemType);], but only before any other functions are performed or different elements are added.
    doc.Reformat() isn't going to reformat the content correctly after the fact because the element was created without the format rules, so it just reformats the content of the elements without the format rules.
    The FDK version that was created 10 years ago had the same problem of running slow when a large number of elements were being inserted, but was still an improvement over having to manually insert each element and type in the attribute value, so it was lived with.
    It's now working amazingly fast. I hope my explanation of what I think is happening, including the cause/solution, is understandable.
    Sincerely,
    Trent Schwartz

  • I own both Photoshop Elements and Photoshop (the original editor).  I find the elements editor to be too cumbersome to use and would just like to edit using Photoshop.  When I try to install Photoshop as a secondary editor in elements I get an error messa

    I own both Photoshop Elements and Photoshop (the original editor).  I find the elements editor to be too cumbersome to use and would just like to edit using Photoshop.  When I try to install Photoshop as a secondary editor in elements I get an error message that I don't need to this because it is already supported on the edit menu and task bar.  I can not find any way to send images to Photoshop for editing - all I can do is send them to elements editor or the premier editor.  Can someone tell me how to send them to Photoshop?  Thanks!

    Hi,
    The D810 requires Camera Raw 8.6 or later - the latest version that is compatible with Photoshop Elements 12 is Camera Raw 8.5 as far as I can see.
    You need to either buy a new version of Photoshop Elements or use the free Adobe DNG converter.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • I need to synch my iphone, ipod touch and classic to a Mac that I have and 2 I am about to buy. I have legally paid for all my music. If I use migration on my new Macs and clone the original, can I use my iAppliances on all 3 Macs?

    I need to synch my iphone, ipod touch and classic to a Mac that I have and 2 I am about to buy. I have legally paid for all my music. If I use migration on my new Macs and clone the original, can I use my iAppliances on all 3 Macs?

    Yes.
    You can authorize up to 5 computers to play itunes music ( pre-itunes plus).  There is no limit on itunes plus ( all itunes music for the past several years) and imported music.
    You can sync as many ipods/ipads/iphones as you like to each of your computers.

  • Why does a new tab (middle click) in a new window open in the original window?

    In FF 4 Beta 11 I open a new window, middle click a link in the new window, but the new tab opens on the original window.
    Why doesn't it open in the new window?
    Are there settings to alter this behaviour?

    In 4.0 stable this problem still occurs. I have restarted in safe mode and all new tabs (middle click or right click new tab) open in the original window.

  • Added new key figure in the report

    Experts,
    I have added new key figure in the report .If i display this key figure value in the report it is populating correct value with ERROR(example 22.5 ERROR).The report is on the multiprovider .i have check the value for this in multiprovider it is populating correctly .There is no calculation in the report for this .While extracting in to report i am getting this. Help me to resolve this issue.
    Thanks
    Murali

    Hi,
    I have already created a formula like NODIM(Key field).that only i am using .
    and mapping I did in this way. I went to multiprovider and I have selected this key figure and right click and select (assign) then I have click on create proposal for all infoobjects option.
    Please suggest any thing need to do.
    I am sorry .I did not understand the lonterm solution suggested by you .what is UOM .Please tell me how to map.can you pls tell me clearly please
    Thanks
    Murali

  • I had to reload windows and I have lost my Adobe Photoshop Elements 12 & Adobe Premiere Elements, I have the original online PO can I still download fthis software from Adobe and how?

    I had to reload windows and I have lost my Adobe Photoshop Elements 12 & Adobe Premiere Elements, I have the original online PO can I still download fthis software from Adobe and how?

    stepheng
    Do you have the purchased serial number? What computer operating system?
    If you purchased from Adobe direct, you can get download installation files from "My Orders" at the Adobe web site under your Adobe ID and Password (http://www.adobe.com).
    Alternatively, you can use the following Adobe document with links to the downloads....
    Other downloads
    Also, from the following web site as a tryout into which you insert your purchased serial number during installation
    Adobe Photoshop Elements 12 Direct Download Links, Premiere too | ProDesignTools
    To avoid Access Denied message, follow carefully the web site's "Note: Very Important Instructions".
    Just in case note...make sure installation files are for your computer operating system 32 vs 64 bit. Two files (.exe and .7z)
    Any questions or need clarification, please do not hesitate to ask.
    Please let us know the outcome as your schedule permits.
    Thank you.
    ATR

  • I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?

    I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?

    Hi Don,
    DON RICE wrote:
    I wish to install adobe Flash player , I do not know my pass word .How do I create a new one or retrieve the original one?
    Which password are you referring to in your statement? You can download flash player using this Link - https://get2.adobe.com/flashplayer/
    Regards,
    Rahul

  • How do I re-install Adobe Photohop Elements 8 from the original diskette?

    How do I re-install Adoboe Photoshop Elements 8 from the original diskette.  All the diskette wants to do is to uninstall the program.  [If I did this would I lose all my photos?]
    Thanks in advance for your help.
    Tom Barker
    <Removed by Moderator>

    no, you won't lose your photos.  but you might want to prepare your catalog for migration, http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html
    and if you follow all 7 steps you can directly download a trial here:  http://prodesigntools.com/direct-download-links-for-lightroom-3-and-photoshop-elements-8.h tml
    and activate with your serial number.
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.

  • HT201240 I've forgotten my administrator password and can't download software. can anyone advise how to reset a new password without having the original?

    I've forgotten my administrator password and can't download software. can anyone advise how to reset a new password without having the original?

    Forgot Your Account Password
    For Snow Leopard and earlier
         Mac OS X 10.6- If you forget your administrator password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.
    If you are unable to boot from an installer DVD:
    (these will only work on Leopard or earlier)
      1. Boot to Safe Mode by restarting and after the chime press and hold down
          the COMMAND-S keys until a black screen with white type appears.
      2. At the prompt, type the following commands pressing return after each
          command line:
         /sbin/fsck -yf
         If you do not receive a "Filesystem OK" message then repeat this command
         until you do.  If after seven tries you still do not receive a "Filesystem OK"
         message, then the system is corrupted and needs to be reinstalled.
         mount -uw /
         cd /private/var/db/netinfo
         mv local.nidb local.old
         rm ../.AppleSetupDone
         shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
    This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
    Reset Admin Password Using The Terminal
    You can reset the password by printing out (or writing down) and carefully following these steps.
    First, find the short name of the admin user on the machine. The easiest way of doing this is by looking at what the directory is called in the Users folder.
    Now, start in Single-user Mode. It should boot into a command line.
    Enter these exact lines. Press RETURN after each.
    mount -uw /
    ifconfig lo0 up
    cd /var/db/netinfo
    netinfod -s local
    Now you'll need that short name. Enter "passwd", a space, and the short name of the admin. For example, if the admin was rather prosaically called "imadmin", you would enter "passwd imadmin".
    The computer will now prompt you to change the password for "lmadmin" (or whatever the short name was). Go ahead and enter a new password.
    Now, enter:
    sync
    reboot
    and the machine will reboot. The admin password should now be changed.

  • Officejet 150 Mobile Error "Printer shutdown before the original was removed...

    Display Error: Printer shutdown before the original was removed. Remove the original to continue
    I've tried everything to get the to go away! Help...anybody! Thank You!

    Hi @moosefood , and welcome to the HP Forums!
    I can see from your post that you're experiencing printer errors.  I'd like to help!
    Before we get started, I need a little info. I am linking a few HP Support documents below that will show you how to find which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    In the meantime, I'd recommend a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    Please let me know what you find.  Thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • I'm restoring a new iPad 2 (shattered the original).  Backed it up on the iCloud and have restored all apps, music, photo albums, etc.  However, the photo stream has not activated, so no photos have downloaded.  Photo Stream is fine on my Iphone and Mac.

    I'm restoring a new iPad 2 (shattered the original).  Backed it up on the iCloud and have restored all apps, music, photo albums, etc.  However, the photo stream has not activated, so no photos have downloaded.  Photo Stream is fine on my Iphone and Mac.

    Hello there, Tamghosh.
    The following Knowledge Base article provides some good steps to use for troubleshooting the issue you're describing:
    iCloud: Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Particularly:
    I don't see photos in Photo Stream on my iOS device.
    Check the following:
    From your Home screen, tap Settings > iCloud > Photo Stream, and make sure the slider is set to the ON position.
    From the Home screen, tap Settings > Wi-Fi, make sure the slider is set to ON, and that your device is connected to a wireless network.
    Ensure that Camera app is closed on the device where you took the photo. Photo Stream will not upload photos from an iOS device until the Camera app is closed.
    Ensure your iOS device has not fallen below 20% battery power. To preserve battery life, Photo Stream downloading and uploading are disabled when the battery reaches this threshold. Downloading and uploading will resume once you charge your device, and the battery charge is greater than 20%.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Adding new elements to a Master Page and sharing them to existing pages

    I need to include new navigation elements on the master page
    and I want it to show up on pages I've already created. I've added
    the new elements on a layer of their own which is part of the
    master page, but the Share Layer to Pages... option is dimmed.

    jcbluesman wrote:
    > I'm using CS4, Jim, and here's a link to the .png
    > (
    http://idisk.mac.com/jconstant-Public/deimos.png
    >
    > The 3 tabs in the upper right on the master page are the
    ones I'm trying to
    > share across the existing pages. I created them in PS
    (also CS4), then imported
    > the .psd into this FW document, if that makes any
    difference.
    >
    > Thanks,
    > Jim
    >
    OK there are two related as I see it.
    Each of your pages consists of a solid, opaque bitmap for a
    main image.
    Master Pages, by default, are at the bottom of the layer
    stack. Your
    tabs ARE present, you just can't see them because they are
    covered up by
    the bitmap.
    Assuming you don't have those page images as multi-object
    elements,
    where you can edit the blue backgrounds, there are still two
    things you
    can do, both of which are pretty easy.
    Go into each page and temporarily reduce the opacity of Layer
    1.
    Use the marquee tool to draw a selection around the area of
    the tabs.
    Delete the selection.
    Return the lay back to full opacity.
    OR
    Try dragging the Master page to the top of the layer stack in
    each page.
    Hide or delete the Master page background.
    This option is a little trickier, but I was able to do it.
    Wait for the
    black bar to appear before you release the mouse. You may
    need to try
    this a few times before it works.
    HTH
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    .:Author:.
    Lynda.com -
    http://movielibrary.lynda.com/authors/author/?aid=188
    Peachpit Press -
    http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
    Layers Magazine -
    http://www.layersmagazine.com/author/jim-babbage

  • Adding new element to BPEL for use in PL SQL type, has binding errors

    Figured I might as well post this here since I haven't gotten a single reply in 3 days anywhere else :/
    I have a BPEL service that calls a PL SQL procedure. I have added a new element to the BPEL called quote_cart_line.
    All I had to the BPEL to accomplish this was edit 3 files -
    Async_Invoke_Import_Model.xsd (Source)
    <element name="orig_sys_line_ref" type="integer" minOccurs="1" nillable="true"/>
           <element name="quote_cart_line" minOccurs="1" nillable="true" type="integer"/>
          </sequence>
    .....APPS_NI_MODEL_IMPORT_UTIL_IMPORT_SELECTIONS.xsd (Target)
    <element name="ORIG_SYS_LINE_REF" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
             <element name="QUOTE_CART_LINE" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
          </sequence>
    .....Transform_NIE_Inputs.xsl (Transforming from Source to Target)
    <ns1:orig_sys_line_ref>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:orig_sys_line_ref"/>
            </ns1:orig_sys_line_ref>
            <ns1:quote_cart_line>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:quote_cart_line"/>
            </ns1:quote_cart_line>
          </ns1:import_line>
    .....I have done this to two other BPELs and they work fine. (1st BPEL calls the second BPEL passing this new element, which then passes it to this BPEL I am having trouble with, which then should be binding it to a PL SQL type)
    So this BPEL calls a PL SQL procedure, binding the elements from the BPEL to a PL SQL type (ni_model_import_line). So I edited the PL SQL type to accept this new parameter:
    orig_sys_header_ref       NUMBER,
           quote_cart_line           NUMBER,
           CONSTRUCTOR FUNCTION ni_model_import_line(p_part_number                IN VARCHAR2,
    MEMBER PROCEDURE add_orig_sys_header_ref(p_org_sys_header_ref          IN NUMBER),
           MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER)
    MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER) IS
    BEGIN
       quote_cart_line := p_quote_cart_line;
    END add_quote_cart_line;
    END;
    .....I invoke all of this, and the new element gets populated in 3 different BPELs, including this one I explained here. But when it comes time to call the PL SQL I am now getting an error:
    <fault>
    -<bpelFault>
    <faultType>0</faultType>
    -<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'nie_import_2' failed due to: Interaction processing error.
    Error while processing the execution of the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API interaction.
    An error occurred while processing the interaction for invoking the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API. Cause: java.lang.NullPointerException
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    </part>
    -<part name="detail">
    <detail>null</detail>
    </part>
    -<part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>This doesnt happen if I remove the references to this new element and try again, so it obviously is a problem with the element, but I have no idea what it is. It works fine when going from BPEL to BPEL, but as soon as the process tries to call the PL SQL procedure this happens. It is even more frustrating because I have done this exactly before adding another element, and it worked fine...
    Any ideas or tips please?

    Figured I might as well post this here since I haven't gotten a single reply in 3 days anywhere else :/
    I have a BPEL service that calls a PL SQL procedure. I have added a new element to the BPEL called quote_cart_line.
    All I had to the BPEL to accomplish this was edit 3 files -
    Async_Invoke_Import_Model.xsd (Source)
    <element name="orig_sys_line_ref" type="integer" minOccurs="1" nillable="true"/>
           <element name="quote_cart_line" minOccurs="1" nillable="true" type="integer"/>
          </sequence>
    .....APPS_NI_MODEL_IMPORT_UTIL_IMPORT_SELECTIONS.xsd (Target)
    <element name="ORIG_SYS_LINE_REF" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
             <element name="QUOTE_CART_LINE" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
          </sequence>
    .....Transform_NIE_Inputs.xsl (Transforming from Source to Target)
    <ns1:orig_sys_line_ref>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:orig_sys_line_ref"/>
            </ns1:orig_sys_line_ref>
            <ns1:quote_cart_line>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:quote_cart_line"/>
            </ns1:quote_cart_line>
          </ns1:import_line>
    .....I have done this to two other BPELs and they work fine. (1st BPEL calls the second BPEL passing this new element, which then passes it to this BPEL I am having trouble with, which then should be binding it to a PL SQL type)
    So this BPEL calls a PL SQL procedure, binding the elements from the BPEL to a PL SQL type (ni_model_import_line). So I edited the PL SQL type to accept this new parameter:
    orig_sys_header_ref       NUMBER,
           quote_cart_line           NUMBER,
           CONSTRUCTOR FUNCTION ni_model_import_line(p_part_number                IN VARCHAR2,
    MEMBER PROCEDURE add_orig_sys_header_ref(p_org_sys_header_ref          IN NUMBER),
           MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER)
    MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER) IS
    BEGIN
       quote_cart_line := p_quote_cart_line;
    END add_quote_cart_line;
    END;
    .....I invoke all of this, and the new element gets populated in 3 different BPELs, including this one I explained here. But when it comes time to call the PL SQL I am now getting an error:
    <fault>
    -<bpelFault>
    <faultType>0</faultType>
    -<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'nie_import_2' failed due to: Interaction processing error.
    Error while processing the execution of the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API interaction.
    An error occurred while processing the interaction for invoking the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API. Cause: java.lang.NullPointerException
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    </part>
    -<part name="detail">
    <detail>null</detail>
    </part>
    -<part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>This doesnt happen if I remove the references to this new element and try again, so it obviously is a problem with the element, but I have no idea what it is. It works fine when going from BPEL to BPEL, but as soon as the process tries to call the PL SQL procedure this happens. It is even more frustrating because I have done this exactly before adding another element, and it worked fine...
    Any ideas or tips please?

Maybe you are looking for

  • How do I back up multiple drives to one drive?

    What ever happened to the standard back up software that used to scan the volume(s) you want backed up and would then back them up to one location (back in the day it was tapes) then would update changes to the backup for subsequent backups after the

  • Upgrade final cut pro for intel macbook pro

    Hi I need help i have the old software for a G5 i just got a g4 intel macbook pro i install final cut express version 1 and then i got a upgrade to final cut pro 4, i install this software but runs too slow and there is te problem with agp card i kno

  • Backup file corrupted- How do I recover or locate older backup files?

    I synced my original iPhone (with 2.0 software) a few times last night to make sure everything I had on the iPhone was synced to my computer before I restored it, and sold it on ebay. It backed up the iPhone a few times and always wanted to restore i

  • BC4J - update bug

    Hi, I have the following view query : SELECT Citiri.ID, Citiri.LOCM_ID, Citiri.PERD_ID, TO_CHAR(PerioadeDecontare.data_inceput, 'dd.mm.yyyy') || ' - ' || TO_CHAR(PerioadeDecontare.data_sfirsit, 'dd.mm.yyyy')|| ' anterior ' || TO_CHAR(v.data_inceput,

  • "Unrepairable" issue on start up with OS 10.7.5 Lion "Permissions"?

    Hi. I have an early 2008 MacBook with 10.7.5 Lion OS. I installed Lion online. I can't update to Maverick on this early version of MacBook to fix the following problem with the OS... My chronic problem is with start up. I get white or black screen an