Problems with document merge?

Hi,
I have installed JDeveloper 9i rc2 and the following code (it runs correctly on JDeveloper 3.2.3)
Document d = new XMLDocument();
d.appendChild(d.createElement("d"));
Document d2 = new XMLDocument();
d2.appendChild(d2.createElement("d2"));
DocumentFragment rootNode = new XMLDocumentFragment();
Element e = d2.getDocumentElement();
d2.removeChild(e);
--> rootNode.appendChild(e); /* It is here that the Exception is throwned */
d.getDocumentElement().appendChild(rootNode.cloneNode(true));
throws the following exception:
oracle.xml.parser.v2.XMLDOMException: Node doesn't belong to the current document.
Any clue why this happen?
Thanks

@see org.w3c.dom.Document.importNode

Similar Messages

  • Problem with documents on iCloud.

    I have a problem with documents on iCloud, I can`t use it with Pages on Mac and iOS too, Pages not view any documents and can not approach to save documents and not save new documents to iCloud. Any idea?
    Thank you for help.

    Hello,
    Winston and Shayari,
    I have also faced this problem with document on iCloud, I couldn't saved the documents to iCloud,
    But I found this article problem posted by Hindi love Shayari San and I found the solution this way:
    I signed out, then singed in again renabled the iCloud and it works.
    I could do this with the instructions of Winston told to Shayari.
    Well, a big thanks from my side.
    Veena

  • Problem with document splitting

    Hi,
    I am encountering a problem with document splitting, where in while doing clearing of down payment against miro invoice profit center of first line item is over ridding profit center of second line item (line items are two different materials in purchase order).

    Hi Milind,
    Thanks for the reply.
    I've done the below configuration and assigned cost/profit center update. It now works for profit center split. It still does not split accordingly per cost center though.
    SAP Customizing Implementation Guide > Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers >Ledger > Assign Scenarios and Customer Fields to Ledgers
    In the below configuration, cost center is not an available option. Unlike the profit center which is available here.
    SAP Customizing Implementation Guide > Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting
    The profit center split looks fine now, however the cost center split still is only reflected in the expense items and not on the AP item.
    Any ideas on how to actually split the AP line items according to the cost center assignments ?
    Edited by: Patrick on May 9, 2011 7:46 AM

  • Problems with Document Connect

    I have a problem with Document Connect. I am unable access office live workspace.
    I have been on the help line with microsoft but they were unable to help.
    Then I went to an apple store and was informed by one of the sales assistance that Document Connect never worked with the apple. Well what was the point in having it then?

    I wish I knew what Document Connect is. I'd bet I could fix it. Not really, but what is it?

  • Problem with document

    Hi All,
    I've got error message : "problem with document numbering file. Restore the file and contact your software vendor..." after importing some invoices. The first line of message is 2100oInvoices.
    Pls give advice how to resolve it. Thx
    John

    Dear,
    Try below procedure:
    Log off by File Exit, restarting the system, and logging on again.
    If can't sovle your issue, you have to follow the recommandation from Du or log a message to SAP
    Regards
    Apple

  • Problem with Mail Merge to PDF

    Hi there
    I'm having problems with the mail merge to PDF feature of Acrobat XI, in that the process fails part way through and displays the error message 'Acrobat PDFMaker was not able to mail merge the document':
    This process used to work, and still works for one of my colleagues. However I have tried using different PCs (32 bit and 64 bit Windows 7), different versions of Word (2010 and 2013) and different types of data source (Excel and Access) without success.
    I would really appreciate any further suggestions.
    Thanks
    Rianne

    Hi RV,
    pls. take a look to note 1226758 under point 4 where it says:
    4. Call SPAD and choose Settings -> Spool System -> Other. Select 'SP01: Number of Columns for List Display from Format'.
    Maybe you have to take care about point 1-3 , depending on which supp.package level you are. for my i have only changed the settings in SPAD, now it works.
    best regards, Martin

  • Problem with document dates

    Hello dear friends,
    I have a little problem with some document dates
    I've created a sales order (tcode: VA01) on 07.05.2009
    After creating delivery on 25.06.2009 and doing PGI at the same day, I've created billing invoice (tcode: VF01).
    I've noticed in invoice header data the following:
    System shows that the invoice was created on 01.07.2009.
    But, under "accounting data" tab, the system shows billing date: 26.06.2009
    What's going on ? I don't seem to understand !
    Regards,
    Bahia.
    Edited by: Bahia M. on Jul 15, 2009 3:07 PM

    Dear Bahia,
    > My request is: I would like to make the system brings the sales order's date as the princing date in the invoice.
    While maintaining the Sales order type in VOV8 we generally maintain the setting for Pricing date proposal., please check this, i guess this is blank in your case that is why system is proposing Todays date as pricing date Please change it to B.
    in Invoice as the pricing in billng is copying from the Sales order date. This control is in copy control.
    For this please check these
    Goto VTFL,
    Select Delvery and sales document type, Click on item right side, Select the correct item category, generaly it will be TAN.
    Now there is two things One is pricing source and the other is pricing type.
    Make the relevant setting and try to do the cycle again and give us your feedback, i guess it will help.,
    Thanks,
    Raja

  • Problem with Document.importNode function

    What is the problem with the following code?
    What printed out by the last line of code (xmlres.print) is always empty while the 1st print out (xmldoc.print) does print the whole document?
    Can anyone help me out?
    Gary
    FileReader fr = new FileReader("some_xml_file.xml");
    DOMParser parser = new DOMParser();
    parser.setValidationMode(XMLConstants.NONVALIDATING);
    parser.parse(fr);               
    XMLDocument xmldoc = parser.getDocument();
    xmldoc.print(System.out); // 1st print out
    Element elem = xmldoc.getDocumentElement();
    XMLDocument xmlres = new XMLDocument();
    xmlres.importNode(elem, true);
    xmlres.print(System.out); // 2nd print out ; here prints nothing!

    Hi Andrew,
    Thanks for the reply. Yes you are correct, that pretty much sums it up. The problem is that absolutely nothing happens. The page redirects correctly (onto itself) however the plsql page process does not fire. I have done the following:
    * Checked there are no conditional traps inside the plsql code block - None
    * Tried removing the conditional processing on the process definition - No difference
    * Put in a temporary branch to another page conditional on the REQUEST value to test it is correctly working... It does.
    * I have dropped and recreated the page process in case there was something in there that I missed - No difference
    The only time that the plsql is fired is when I remove the call to confirmDelete(). This worked for both the original and the recreated process. It just seems to skip the plsql process for some reason.
    Any suggestions??
    Cheers,
    Mike

  • JAX RPC extension: Problem with document/literal and MyType[]

    Hi,
    I have installed the JAX RPC extension and want to generate a stub from my WSDL file. The WSDL describes a document/literal binding.
    Problem:
    A webservice server method like:
    public wineshop.model.common.SimpleProducer[] getSimpleProducerList() throws RemoteException;
    is translated into a stub method like:
    public UnknownType getSimpleProducerList() throws Exception {..}
    Is an array of own types with the binding style "document/literal" not supported in JAX RPC 1.4 or is it just a bug?
    The WSDL file is generated by JAX RPC 1.4.
    I have installed JWSDP-1.5 and generated a stub with wscompile from the WSDL file. The generated stub has the correct method return type:
    public wineshop.ws.client.SimpleProducer[] getSimpleProducerList()
    throws java.rmi.RemoteException
    It there a workaround like replacing some JDev JARs with JWSDP-1.5 to solve the problem?
    Any hints are welcome.
    Thanks Markus

    repost.....

  • Problems with Document base that does not exist

    I'm using Tomcat to run a Java servlet. Within my "Output - Apache Tomcat 6.0.14" window, I see the following.
    SEVERE: Error starting static Resources
    java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\jupload.4.sourceforge.net\build\web does not exist or is not a readable directory
    This path no longer exists and it is not part of the project. How do you fix the problem? I did a search of "jupload.4"; nothing was found. I looked through some web.xml and context.xml file in the project. The path is not there.
    Here is the entire window content.
    Using CATALINA_BASE: C:\Documents and Settings\esharris\.netbeans\6.0\apache-tomcat-6.0.14_base
    Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14
    Using CATALINA_TMPDIR: C:\Documents and Settings\esharris\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_04
    Feb 19, 2008 9:45:28 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\client_2\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Perl\bin;c:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Rational\common;C:\Program Files\QuickTime\QTSystem\
    Feb 19, 2008 9:45:29 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    Feb 19, 2008 9:45:29 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 3208 ms
    Feb 19, 2008 9:45:29 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Feb 19, 2008 9:45:29 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Feb 19, 2008 9:45:32 AM org.apache.catalina.core.StandardContext resourcesStart
    SEVERE: Error starting static Resources
    java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\jupload.4.sourceforge.net\build\web does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3944)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4113)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    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:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Feb 19, 2008 9:45:32 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error in resourceStart()
    Feb 19, 2008 9:45:32 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Feb 19, 2008 9:45:32 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [jupload.4.sourceforge.net] startup failed due to previous errors
    Feb 19, 2008 9:45:32 AM org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[jupload.4.sourceforge.net] has not been started
    Feb 19, 2008 9:45:37 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    Feb 19, 2008 9:45:37 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Feb 19, 2008 9:45:37 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/99 config=null
    Feb 19, 2008 9:45:37 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 8557 ms
    Feb 19, 2008 9:45:47 AM edu.stanford.smi.protege.plugin.PluginUtilities findPluginsDirectory
    WARNING: Plugins directory not found: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\plugins
    Feb 19, 2008 9:45:56 AM edu.stanford.smi.protegex.owl.repository.impl.LocalFolderRepository update
    WARNING: [Local Folder Repository] The specified file must be a directory. (C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\plugins\edu.stanford.smi.protegex.owl)
    Feb 19, 2008 9:45:56 AM edu.stanford.smi.protegex.owl.repository.util.RepositoryFileManager loadRepositoriesFromURI
    WARNING: [Repository Manager] Could not find repository file: file:/C:/Program%20Files/Apache%20Software%20Foundation/Apache%20Tomcat%206.0.14/bin/RepositoryViewer/web/newspaperswc.repository
    Feb 19, 2008 9:45:56 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser loadTriples
    INFO: Loading triples
    Feb 19, 2008 9:45:56 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser loadTriples
    INFO: Start processing ontology: file:/C:/Program%20Files/Apache%20Software%20Foundation/Apache%20Tomcat%206.0.14/bin/RepositoryViewer/web/newspaperswc.owl Time: Tue Feb 19 09:45:56 EST 2008
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser loadTriples
    INFO: [ProtegeOWLParser] Completed triple loading after 1109 ms
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostProcessor log
    INFO: [TripleChangePostProcessor] Completed lists after 0 ms
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostProcessor log
    INFO: [TripleChangePostProcessor] Completed anonymous classes after 0 ms
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostProcessor log
    INFO: [TripleChangePostProcessor] Completed deprecated classes after 0 ms
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostProcessor log
    INFO: [TripleChangePostProcessor] Completed properties after 0 ms
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostProcessor log
    INFO: [TripleChangePostProcessor] Completed named classes after 0 ms
    Feb 19, 2008 9:45:57 AM edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser loadTriples
    INFO: ... Loading completed after 1159 ms
    Edited by: esharris on Feb 19, 2008 7:18 AM

    Has the phone been set up with your Apple ID? To find out if the phone has been used with another Apple ID, check the current Activation Lock status of a device by visiting icloud.com/activationlock from any Mac or PC.

  • Problem with document type on WF for parking document

    Hello
    Iu2019m actually working on  the SAP workflow dealing  with the FIPP object and  the event u201Ccreatedu201D (FI park document transaction (FV60)).
    The problem is that the WF is launched for all document types wich is not the need of the customer. Iu2019m looking for a solution to launch the WF for some specific document types.
    Iu2019ve already tried to use  the workflow variant, approval groups, paths and procedure with no success. (SPRO -> financial accouting-> accounts receivable and accounts payable -> business transaction -> incoming credit invoice memo -> make and check setting for document parking)
    Thank you for help.
    SL

    Here is the solution I have  eventually found :
    1-      Application of the OSS note 559276 which enables the customizing of the workflow variant (the transaction OBWD becomes here effective)
    2-     Assignment of the documents types, workflow variants and release approval groups with the transaction OBWD.
    Therefore, the document types that are not defined in the transaction OBWD will not require validation (no workflow will be launched).
    SL

  • Problem with Document Numbering

    hi
       i have created user form and UDO also.If i press the add button i got a error like <b>"to generate this document,first define the numbering series in the admin. module"</b>.
      but i gave the document number in the numbering setup.how can i solve this problem ? please help me
    thanks in advance

    Questions:
    - Does the user have full authorisations (Test if user can open a AR invoice (if they can, then not the problem))?
    - If no data in the underlying tables. Try deleting and recreate them
    - Perhaps old data gives problem. If possible try creating the UDO with another UID

  • Problem with Document Size After Exporting

    I created an 8 x 10 document with a .125 inch bleed.  When I export it to a pdf, I made sure the crop marks and the use document bleed settings boxes were both checked as they should be.  However, when I look at the document size in my pdf, it is about 7.5 x 9.5 rather than the 8.25 x 10.25 it should be (cutting on the crop marks should make it 8 x 10).  Any ideas on what could be the problem?  Thanks for the help!

    Where are you seeing this reduced size?

  • Problem with Document Template

    Hi Experts,
    In my workflow i have a workitem which needs to display word document with entries from internal table. I had complete document template part and when i tested the workitem. word document displayed in workitem looks fine on my system with values of internal table work area.
    But the problem is when look at same word document of workitem in another system it doesn't display runtime values instead it displays the document as it has been given. For example in word document i had given &lv_var1& &lv_var2& in my system the values are shown fine this variables. But in other system it shows as it is &lv_var1& &lv_var2&.
    Can anyone tell me how to solve this problem.
    thanks&regards,
    Himesh

    where have you written this ?  &lv_var1& &lv_var2&       is it in the task description ?

  • Problem with document total

    Dear All,
    I have problem adding an invoice through DI API with the total amount of 50,000 including VAT. The system is SBO 2005B, PL42; Document Setting is as following:
    - Rounding Method = By Document
    - Rounding Rule for Tax = Round Down
    - Round Tax Amount in Rows = False
    The following VBA code is used to add an invoice:
    Dim boInv As SAPbobsCOM.Documents
    Dim boCom As SAPbobsCOM.Company
    Set boCom = GetSboCompany() 'this function returns SBO company
    Set boInv = boCom.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    boInv.CardCode = "Customer1"
    boInv.DocDate = #9/1/2008#
    boInv.DocType = dDocument_Items
    boInv.DocCurrency = "JPY"
    'Now add a invoice line
    'boInv.Lines.Add - No need for the first line
    boInv.Lines.ItemCode = "item1"
    boInv.Lines.VatGroup = "S01" 'VAT rate for Japan is 5%
    boInv.Lines.PriceAfterVAT = 50000
    boInv.Add 'add the invoice
    What I get is an invoice with:
    Gross Price = 50000 (in a line)
    Total (LC) = 47619 (in a line)
    Tax Amount = 2380.952381 (in a line)
    and
    Total Before Discount = 47619 (in a header)
    Tax = 2380 (in a header; fractional part was round down because of the Document Setting)
    Total = 49999 (in a header; which is different from Gross Price by 1 yen)
    However, if I enter this invoice directly from the screen, then there will be no difference between Gross Price (Price after VAT) and Total, so, the invoice will be created correctly.
    My question is how to add an invoice with the total amount of 50000? (Of course, 50000 is not the only "difficult" number, for example, 40000 also poses the same problem). I tried to use boInv.Lines.NetTaxAmount property to directly assign the tax amount (which is possible from the SBO screen), but in PL42 there's an error saying that this property is not yet implemented.

    Verner, thank you for advice. I also tried that way, but wasn't helpful. OK, I found a solution that is I think acceptible. I will describe it in short, for those who face such problem. Basic idea is to use XML to create an invoice. Here's the code:
    Dim boInv As SAPbobsCOM.Documents
    Dim boCom As SAPbobsCOM.Company
    Dim strXML As String
    Set boCom = GetSboCompany() 'this function returns SBO company
    'XML data will be supplied as string variable, not an external file
    gboCom.XMLAsString = True
    'Here you will create your XML stream. Important tags are <DocTotal> for the invoice header, and
    '<Quantity>, <PriceAfVAT> tags for invoice lines. If <DocTotal> is specified then you will get invoice with
    'this exact total amount. If sum of <Quantity> x <PriceAfVAT> is equal to '<DocTotal>, then
    'document level discount will be zero.
    strXML = "<BOM> ... </BOM>" 'building XML here
    Set boInv = gboCom.GetBusinessObjectFromXML(strXML, 0) 'Create an invoice object from XML
    boInv.Add 'add the invoice
    Edited by: Jandos Khalik on Sep 2, 2008 10:17 AM
    Edited by: Jandos Khalik on Sep 2, 2008 10:18 AM
    Edited by: Jandos Khalik on Sep 2, 2008 10:20 AM

Maybe you are looking for

  • Interactive booklets no longer play in iTunes

    All my interactive booklets from albums I bought at the iTunes Store no longer play! I am running Leopard with all the latest updates to my software. Thanks for any suggestions.

  • Download a BSP application

    Hi, stupid question : is there a way to download a bsp application into a .txt file for instance and upload it in another system like for Abap programs? Regards & Happy new year, Huy

  • PDF not really loading in Firefox

    Hi, I have created a PDF using the Adobe PDF printer. When opening it from the disk, it shows every page immediately without any problems. However, when accessed with Firefox directly, the pages do not load correctly, it takes ages for a page to show

  • Screen Sharing issues

    I've got VNC working fine for remote access. The problem is I've come across issues where I get disconnected, and the VNC server will never timeout the session. Since OSX seems to only allow 1 VNC connection to the computer, I'm unable to access it u

  • IPhone 4 + iOS 4.02 camera sluggish

    My iPhone 4 is really driving me bananas. Seems like it's taking a while to switch between apps, launch apps, and such. But the real problem is the camera. Any time I shoot video and then stop recording, the image is frozen and it can take up to a mi