Inserting a large document

Hi I am trying to insert a large document a litte over 7M, but I get
com.sleepycat.dbxml.XmlException: Error: Buffer: failed to allocate memory, err
code = NO_MEMORY_ERROR
     at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocumentInternal__SWIG_0(
Native Method)
     at com.sleepycat.dbxml.XmlContainer.putDocumentInternal(XmlContainer.java:884)
     at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:103)
     at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:54)
I am usiing Java
4 caches of 33554432 each
jvm runs with -Xms256m -Xmx512m
I already tried using XmlInputStream created with XmlManager.createLocalFileInputStream(java.lang.String) as well as XmlEventWriter, but both fail because of memory.
I just found out that the shell loads it so fast I could not blink twice, so I guess I must be doing something wrong in Java code.
Edited by: MauricioSC on Jul 6, 2009 6:10 PM
Edited by: MauricioSC on Jul 6, 2009 9:35 PM
OK something came to my mind while driving home and I tested it with almost 100% assurance that it was THE issue. Yes it was. My wrapper class around dbxml java stuff was creating a default index (a fully featured one) to any container by default. That's it, the 7M doc was crashing because of indexing operations set as default by the container while loading.
Sorry to bother.

2009-07-06 18:42:45.640 dbxml DEBUG: c.getContainerType()=1
so, no. It has to be something else.
Edited by: MauricioSC on Jul 6, 2009 9:47 PM
OK something came to my mind while driving home and I tested it with almost 100% assurance that it was THE issue. Yes it was. My wrapper class around dbxml java stuff was creating a default index (a fully featured one) to any container by default. That's it, the 7M doc was crashing because of indexing operations set as default by the container while loading.

Similar Messages

  • How can I change a page position in a large document?,

    How can I change a page position in a large document?

    Question asked and answered many times !
    Insert a section break just before the page to move.
    Insert a section break just after the page to move.
    Select the page's thumbnail
    cut
    Insert a section break where you want to insert the page.
    paste
    The required infos are available in Pages User Guide which isn't delivered to help helpers to help you.
    Yvan KOENIG (VALLAURIS, France) mercredi 5 octobre 2011 14:33:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • XSLT on very large documents w/XSU

    Hi:
    I need to load some very large documents, and I am looking at the example in Ch. 14 (14-4?) of the Muench book. It looks fine, but my question is that if, for instance, the element names don't match the table column names, and I need to use XSLT to change them, can I "stream" this? I am afraid that since XSLT wants to work on a "tree", it will want me to tranform the 6 gig (e.g.) file before passing it to the SAX parser. Is this correct? Can I make "mini" trees inside the multitableInsertHandler and work off of those one at a time? Can I do something like "XMLSave.applyStylesheet" (whatever it is) on a doc. from XMLDocumentSplitter? Complex question(s) I know. I think I am close, but missing the obvious.
    Thanks.
    Mike
    null

    Thanks for the clarification. I am planning on having one "rowset" element,and many "row" elements, each of which would have a "table" and "operation" attribute, because I am trying to mirror another database via its log file. Each row will be an insert/update/delete for one of several tables. Do you see a problem with this approach (i.e., doing away with most of the "rowset" elements)? I don't plan on batching at this point.
    On batching: If I did batch, and if the transaction fails, and I get a vector back where everything is set to (-1) or whatever it does, how do I know which records in the transaction actually succeeded?
    Thanks again,
    Mike
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Yes. The Multitable insert handler transforms one "subdocument" at a time using XSLT into a multitable-insert document. The result isn't processed directly by XSU, but is processed by some code in the example that iterates the resulting <ROWSET table="xxx"> tags and "choreographs" the use of an OracleXMLSave for each target table.
    Steve Muench
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    <HR></BLOCKQUOTE>
    null

  • Query performance - A single large document VS multiple small documents

    Hi all,
    What are the performance trade offs when using a single large document VS multiple small documents ?
    I want to store xml snippets with similar structure in a container. Is there any benefit while querying, if I use a single large document to store all these snippets against adding each snippet as a different document. Would it degrade the performance when adding an xml snippet each time by modifying an existing document?
    How could we decide whether to use a single large document VS multiple small documents?
    Thanks,
    Anoop

    Hello Anoop,
    In case you wanted to get a comparison between the storage types for containers, wholedoc and node, let us know.
    What are the performance trade offs when using a
    single large document VS multiple small documents ?Depends on what is more important to you, performance when creating the container, and inserting the document(s) or performance when retrieving data.
    For querying the best option is to go with smaller documents, as node indexes would help in improving query performance.
    For inserting initial data, you can construct your large document composed of smaller xml snippets and insert the document as a whole.
    If you further want to modify this document changing its structure implies performance penalties; more indicated is to store the xml snippets as documents.
    Overall, I see no point in using a large document that will hold all of your xml snippets, so I strongly recommend going with multiple smaller documents.
    Regards,
    Andrei Costache
    Oracle Support Services

  • XSLT of large documents in Oracle

    Hi,
    I'm trying to run XSLT in Oracle for large documents (say 1MB) via a stored procedure. It works for small documents but for large ones I'm getting an errror:
    : ORA-19011: Character string buffer too small
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    ORA-06512: at "MAPSUBMISSION_FN", line 7
    here's the sproc I'm using. How should I increase the buffer?
    thanks
    CREATE OR REPLACE FUNCTION MapSubmission_FN(outputId IN NUMBER, newtaskId IN NUMBER, mapId IN NUMBER)
    RETURN NUMBER
    IS
    newoutputId NUMBER;
    BEGIN
         select task_output_seq.nextval into newoutputId from dual;
         insert into task_output_tbl values (newoutputId, newtaskId,'xml',
         (select xmltransform(output_tbl.xml_output_data_lob, (select xml_data from xml_tbl_wrk
                   where temp_id=mapId)).getStringVal()
         from task_output_tbl output_tbl where task_output_id=outputId), current_timestamp);
         RETURN newoutputId;
    END;

    Would you try change getStringVal() to getClobVal()?

  • Have Windows XP and Adobe 9 Reader and need to send a series of large documents to clients as a matter of urgency     When I convert 10 pages a MS-Word file to Pdf this results in file of 6.7 MB which can't be emailed.     Do I combine them and then copy

    I have Windows XP and Adobe 9 Reader and need to send a series of large documents to clients as a matter of urgency When I convert 10 pages a MS-Word file to Pdf this results in file of 6.7 MB which can't be emailed.  Do I combine them and then copy to JPEG 2000 or do I have to save each page separately which is very time consuming Please advise me how to reduce the size and send 10 pages plus quickly by Adobe without the huge hassles I am enduring

    What kind of software do you use for the conversion to pdf? Adobe Reader can't create pdf files.

  • How do I increase the font size of a large document?

    Whenever I try to increase the font size of a large document, the text boxes cross their boundaries and mix with each other, or partly disappear at the end of every page. Do I really have to adjunst every text bos in the document or is there a faster way? Im having this issue with adobe acrobat 11 pro

    This is not a feasible thing to do. Editing a PDF is a desperate last resort for so many reasons.
    Whatever you need to solve, you are unlikely  to solve it in Acrobat. Probably best to export text and remake it.

  • How to insert a word document or an RTF document into RichTextEditor?

    How to insert a word document or an RTF document into af:richTextEditor. I am using Apache POI for reading the Word document and getting its contents. I am able to display the whole content of the document except the table and image within the document. The data in the table is getting displayed as a string and not as a table inside the editor.
    Can we insert a word/RTF document into a rich text editor?
    Can we insert images into the rich text editor?
    The following is the code that I used. On clicking a button the word document has to be inserted into the <af:richTextEditor>.
    <af:richTextEditor id="rte1" autoSubmit="true"
    immediate="true"
    columns="110" rows="20">
    <af:dropTarget dropListener="#{SendEmail.richTextEditorDrop}">
    <af:dataFlavor flavorClass="java.lang.String"/>
    </af:dropTarget>
    </af:richTextEditor>
    <af:commandButton text="Insert at position" id="cb2">
    <af:richTextEditorInsertBehavior for="rte1" value="#{RichTextEditorUtil.docFile}"/>
    </af:commandButton>
    Java Code: I am using Apache POI for reading the word document.
    import org.apache.poi.hwpf.HWPFDocument;
    import org.apache.poi.hwpf.extractor.WordExtractor;
    public String getDocFile() {
    File docFile = null;
    WordExtractor docExtractor = null ;
    WordExtractor exprExtractor = null ;
    try {
    docFile = new File("C:/temp/test.doc");
    //A FileInputStream obtains input bytes from a file.
    FileInputStream fis=new FileInputStream(docFile.getAbsolutePath());
    //A HWPFDocument used to read document file from FileInputStream
    HWPFDocument doc=new HWPFDocument(fis);
    docExtractor = new WordExtractor(doc);
    catch(Exception exep)
    System.out.println(exep.getMessage());
    //This Array stores each line from the document file.
    String [] docArray = docExtractor.getParagraphText();
    String fileContent = "";
    for(int i=0;i<docArray.length;i++)
    if(docArray[i] != null)
    System.out.println("Line "+ i +" : " + docArray);
    fileContent += docArray[i] + "\n";
    System.out.println(fileContent);
    return fileContent;

    Hi,
    images are not yet supported. Its an open enhancement request for the rich text editor.
    For tables, it seems they are supported but in a basic way (just HTML 4 style) if I interpret the tag documentation correct
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_richTextEditor.html
    Frank

  • Can't print large documents.

    For years, we've been printing large documents to our plotter without issue.  Suddenly last week, nothing large will print.
    I've seen a few different error messages, and have tried different computers, and different versions of Illustrator, but nothing large will print.
    When trying to print, I currently get the following:
    I've also seen an error suggesting not enough memory is available, which is bogus.  And I think another error that was more vague, something to the effect of "can't print"
    I've setup a clean install of illustrator on a clean windows install, same issue.
    I setup an alternate print server with our rip software, same software we've been using for years.  Same error on the alternate server.
    Nothing changed, and it's effecting everything here, and new installs.  I don't know what happened, but this is getting critical, we need the ability to print.

    EFI eXpress v. 4.1
    This all worked fine until a week ago, so I don't think there should be a hardware software compatibility issue.  The software and hardware were all working fine, and then we got blindsided by this stubborn error that came out of nowhere, won't go away, and has no error or log that gives us any useful information.
    It isn't a font issue.  I've created a basic test document that just consists of the word test.  Using this same font, I've had success printing documents that are 37"x79", 39"x75".  But, when I print 39"x79", it fails.  i've not zeroed in on the size that seems to be the cutoff, but I knew that a 37x75 worked, and 40x80 didn't, and 39x79 didn't either.  So, playing around with the numbers I found the above that did work.
    Also, using the general epson driver that you can get on epson's site, any print job can be sent without issue.  It's just that anything beyond 90 inches gets cut off. 
    I suppose this suggests the problem lies with EFI.  But, a clean install of EFI didn't resolve the issue.  What it comes down to for me is, the error is generated from Adobe.  So, at the least, I'd like an explanation from Adobe as to what the error is, since their software is generating it, and giving me no reason why it failed.  Plus, there's no way I can justify to management the cost of bringing in a 3rd party support for the EFI software, unless I have a better reason why the EFI software worked last week, but not this week, so I really need better data out of Adobe as to why it fails.
    I currently have a paid case open with Adobe, but they seem to be having difficulty as well, so far it's been a lot of time on hold, and a little bit of "try this, try that, try this", which is getting nowhere.  I need something more methodical to happen, and some actual following of data, or checking of logs, to get some detailed information, hopefully the case will get escalated to someone with a bit more in depth knowledge on these things.
    I will keep posting the details here as they emerge, because there's nothing I hate more than a forum thread with a problem I'm experiencing, that doesn't end with an answer.  I think forums should do a better job of either posting a resolution, or purging the cases that don't resolve, to get rid of the useless junk that clogs the internet and wastes people's time searching for answers.

  • 8500 A909a Won't Print Large Documents

    My OfficeJet Pro 8500 A909a will not print large documents. Prints fine on websites, 2 or 3 page docs but nothing larger. Trying to print a mail merge of 450 letters - print spooler goes though normal proces but printer never prints - it just beeps when the print spooler is completed. Printer is installed ethernet on XP. HP check software reports OK. Thank you.

    Take a look at this HP support page.
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • Links in each page of a large document

    I have a 350+ pages PDF document and would like to add a link to the TOC in each page. Obviously not one by one because this would take a lot of work/time.
    I thought to use a general header or footer with the linked text. But I don't know how to put linked text in a header/footer. Can this be done?
    Is there any other way you know to easily add a link to all pages of a large document?

    Another way is to put your link in a button: buttons can be duplicated to all (or a range) of pages. If you don't like a button that 'looks like a button' just use 'no border, no fill', or even an icon to customise it.

  • IMac. Adobe Acrobat Pro 8.3.1. Since I installed Yosemite, cannot insert a pdf document into a pdf document. What's my upgrade?

    I have an iMac with Yosemite. I have Adobe Acrobat Pro van 8.3.1.
    I am unable to insert a pdf document into a  pdf document. I go to Document/Insert in the menu bar, get a spinning ball, can do nothing with the app except force-quit.
    What's my upgrade? I cannot find one. Do I have to pay full price for a version that will work?

    Your version of Acrobat is quite old and not compatible with any current OS, so problems are to be expected. It is too old to qualify for an upgrade as well, so if you want the current version (XI) then you need to purchase a new license, which you can do via the Adobe Products Page.

  • How to insert a PDF document into a Word file?

    I'm using Acrobat Standard 9 and Microsoft Word 2010 and I'm unable to insert a PDF document into a Word file. Operating system is Windows 7 Enterprize. Can someone help?

    Thanks for the reply, Bill. 
    Yes, let me elaborate further:
    I have a four page document in WORD with instructions. Examples of the instructions are in PDF files. I want to insert each PDF example next to or below each line item in WORD.The PDF will open when clicking on the icon without having a hyperlink attached to it.  

  • After closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    after closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    You can always shut it down manually via the Task Manager
    (CtrlShiftEsc)...
    On Mon, Sep 1, 2014 at 3:05 PM, frank koethen <[email protected]>

  • Larger Document Appears Black and Displays Incorrectly

    Hello,
    I have just purchased Web Premium CS4. Photoshop CS4 Extended was included with the package and I installed and ran it. Sadly any large document I tried to open appears black and sometimes when I zoom in partly displays with random black lines through it. I have checked my system's specs and they all match up with the requirements. I am running Vista SP1 on a Dell computer. I have read all the knowledge base articles relating to this matter and have done everything they said (including disabling OpenGL, etc.) but still the problem continues. Is there any way or patch/addon to fix this?
    Thank You So Much,
    Bailey

    Do they open up in other images manipulation software packages? Try CS3 if you have it.
    What size, format (psb, tiff, etc) are they?
    I've only experienced what you say with corrupt files...I hope that's not the case here.

Maybe you are looking for

  • Black Screen on iMac 27" after loading BootCamp 3.1

    Hi all, I manage to load Windows 7 on my iMac 27" with ATI Radeon HD 4850 after several tries (need to read all the instruction the first time). I had in running, loaded my Office 2010 suite and other software. But something was missing. I loaded my

  • Problem combining select, order by, rownum (top-N) and for update

    Hello, i have serious problems with this. -- drop table testtable; create table testTable (id number(10,0) primary key, usage number(10,10)); -- delete from testtable; insert into testtable values (11, 0.5); insert into testtable values (10, 0.3); in

  • Itunes keeps quitting

    Hi, My itunes has suddenly decided to "quit unexpectedly" every time I try to open it. It will remain open for 30 seconds or so, and then the "Itunes has closed unexpectedly" window opens. This is the error report from the last time it closed on me:

  • OIM Connector Installation Error

    Hello, I am trying to install connector for OUD from Oracle Identity Manager 11gr2PS1. After loading the connectors, I get this error in OIM server and installation stops. Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-000

  • Thanks to Mandeep5062 Acrobat Pro download issue with Safari

    Before your response arrived I shut down Safari, loaded Firefox, went directly to the Adobe download page and attempted a download. The download started correctly and then switched over to the Creative Cloud downloader and I thought, "Here we go agai