INTERNAL_ERROR in multithreaded test on db xml 2.3.10

I upgraded from 2.2.13 to 2.3.10. I'm on Windows XP / Java 1.5.10
My multi-threaded test soon hits INTERNAL_ERRORs when running on 2.3.10.
While on 2.2.13, I have much better results.
My test case basically sets up one or more threads doing a tight loop of
for (i=1; i < 10000000; i++) {
  try { putXML("key"+i/2, contentString); } finally {}
  try {getXML("key+i/2); } finally {}
}With one thread, this test will run for at least an hour or more until my time limit expires.
With two threads, this will run ~10-20 minutes
With three threads this test will immediately hit these internal errors.
Once these errors, they repeat and soon the JVM crashes.
I've checked nearly every forum posting, deleted every results.next, deleted every Xml* object possible (except XmlContainer) and so on.
Any advice? Are there any samples that do multi-threaded write/read/queries?
Are there any clues to be found by looking at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_12 ?
Thanks in advance,
Douglas Moore
Reported error:
com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_12(Native Method)
at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:433)
at  ....putXML(XMLBDBFacade.java:370)create container method:
       // set properties specific to the BDB XML Container
        XmlContainerConfig xmlContainerConfig = new XmlContainerConfig();
        xmlContainerConfig.setAllowCreate(true);
        // TODO review me this is new for BDB XML 2.3.10
        // TODO review me xmlContainerConfig.setDirtyRead(BDB_XML_DIRTY_READ);
        xmlContainerConfig.setMultiversion(true);
        xmlContainerConfig.setSnapshot(true);
        xmlContainerConfig.setReadUncommitted(false);
        xmlContainerConfig.setTransactional(true);
        //TODO xmlContainerConfig.setPageSize(1024);
        xmlContainerConfig.setAllowValidation(false);
        xmlContainerConfig.setNodeContainer(true);
        xmlContainerConfig.setIndexNodes(true);
        xmlContainerConfig.setCacheSize(200000);
        xmlContainerConfig.setCacheCount(1);
        if (LOG.isDebugEnabled()) {
            LOG.debug("Creating XML DB Container "
                    + dpcContainerConfig$.getAbsolutePath());
        // BDB XML container create
        XmlContainer xmlContainer = getBDBXMLManager().openContainer(
            dpcContainerConfig$.getAbsolutePath(),
            xmlContainerConfig);getXmlTransaction method:
            TransactionConfig txnConfig = new TransactionConfig();
            txnConfig.setNoWait(true);
            txnConfig.setReadUncommitted(true);
            txnConfig.setReadCommitted(true);
            txnConfig.setSnapshot(true);
            txnConfig.setSync(true);
            transaction = getXmlManager().createTransaction(null, txnConfig);putXML method:
        try {
            ContentKey contentKey = new ContentKey(container$, key$, ContentType.XML);
            boolean exists = ItemRegistry.instance().contains(contentKey);
            if (exists) {
                // updating document
                doc = getXmlManager().createDocument();
                doc.setName(key$);
                doc.setContent(content$);
                updateContext = getXmlManager().createUpdateContext();
                xmlContainer.updateDocument(transaction$, doc, updateContext);
            } else {
                // putting document
                updateContext = getXmlManager().createUpdateContext();
                xmlContainer.putDocument(transaction$, key$, content$, updateContext);
                ItemRegistry.instance().add(contentKey);
        } catch (XmlException e) {
                BDBUtility.handleXmlException(container$, key$, e);
        } finally {
            if (null != doc) {
                doc.delete();
                doc = null;
            if (null != updateContext) {
                updateContext.delete();
                updateContext = null;
            }

Yes, we have the same error:
com.sleepycat.dbxml.XmlException: std::exception thrown from C++ API: bad allocation: Unknown error, errcode = INTERNAL_ERROR
     at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
     at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
com.sleepycat.dbxml.XmlException, errcode = NO_MEMORY_ERROR
     at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
     at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
The version we use is 2.2.13, can anyone give suggestions to resolve it?
Regards,
Jane

Similar Messages

  • I want to display the number of Passed / failed tests in Testtand xml report , please help me

    Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
    My requirement is later i should be able to display these number of passed/failed test in report header too.
    Solved!
    Go to Solution.

    I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
    and the Result Count is passed to the "ModifyReportHeader" through File Globals,  where you can edit the XML file to show it in the Repot (follow the link in my previous post).
    Hope this helps
    AshwiN,
    Attachments:
    Get Result Count.seq ‏8 KB

  • How to discard skipped test results in XML report generated from TestStand

    Hello,
    I'm generating XML report from TestStand. I have more than 100 test cases & user has the flexibility to select the test cases to execute or to skip.
    Problem statement:
    1. In Configure\report options there is filter expression to filter test results to be logged. However, this filter is disabled for XML report.
    2. Is there a way to compress XML file using either encryption or any other methods?
    I understand that there would be two methods ideally for my problem statement #1 above:
    A. To have a workaround in reportgen_xml.seq to pragmatically log only executed test cases and discard skipped test results.
    B. Modify stylesheet supplied by NI to discard skipped test results.
    For problem statement #2 above:
    I am able to encrypt the data before logging it to XML. But I don't know how to modify the stylesheet to decrypt the same using either public/ private encryption keys. Can anyone bring in more ideas here !!!
    My preference would be to implement using #A above to reduce the XML file size which is ~4 MB will all test results (skipped + executed). If this is not possible my last option would be to implement using #B above
    I would appreciate if someone can help me for my problem statement? I'm using TestStand 2010
    Solved!
    Go to Solution.

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • Automated Unit Tests / TEST-INF/testrun.xml

    Hello!
    Regarding to the originial question here Re: Automated Unit Tests through NWDI / Purpose of testrun.xml I'll try to ask this question again:
    Is it possible to run jUnit-Tests automatically during the build (cbs)?
    A very promising looking file (testrun.xml) is not documented..
    We're using the NWDI and CE 7.11.
    Testdriven development isn't a new paradigm in the standard java development so it must be possible to do so with ce and nwdi.
    Thanks in advance,
    --cl

    Hi Carsten
    I guess that the testrun.xml allows to do exactly that you want - to run jUnit-Tests automatically during the build (CBS).
    Though there is one small thing - I think that the tool which can understand the file and run the tests is SAP internal tool. So I doubt that having just pure CBS server it'll be possible to activate the automatic test execution process. It seems we need to have something more.
    I also could not find any documentation regarding this on SDN. That's why I think the functionality is SAP internal.
    BR, Siarhei

  • Unable to test creation of XML document

    I tried the JUnit forum first and they suggested a XML forum
    I suspect that this could be a simple mistake in my code or a race condition. Please see the comments in the code.
    My test is this. I create a org.w3c.dom.Document using my class EncryptedData
    @Test
    public void testDocument() throws TransformerException {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    try {
    documentBuilder = dbf.newDocumentBuilder();
    Document document = documentBuilder.newDocument();
    EncryptedData encryptedData = new EncryptedData( document );
    assertNotNull( encryptedData.getEncryptedData() );
    printXML( encryptedData.getEncryptedData() );
    } catch (ParserConfigurationException e) {
    This is EncryptedData.java.
    private Element encryptedData;
    private Document document;
    public EncryptedData( Document document ) {
    this.document = document;
    encryptedData =
    (Element)
    document.createElement("EncryptedData");
    +//When I append the child in the constructor there is no exception+
    document.appendChild( encryptedData );
    public Document getEncryptedData(){
    +//When I append the child in this method there is an exception+
    encryptedData =
    (Element)
    document.createElement("EncryptedData");
    return document;
    org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a
    node where it is not permitted.
    at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown Source)
    at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)
    at
    com.fss.maps.security.xml.EncryptedData.getEncryptedData(EncryptedData.java:56)
    at
    com.fss.maps.security.test.XMLEncryptionTestCase.testDocument(XMLEncryptionTestC\
    ase.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav\
    a:25)
    at
    org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java\
    :44)
    at
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:\
    15)
    at
    org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:4\
    1)
    at
    org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20\
    at
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76\
    at
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50\
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
    at
    com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunne\
    r.java:97)
    at
    com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter\
    .java:192)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)

    that is what you expect, but still you have the proof that something else is going on. It is not going to make any difference where you call code, both will work the same. But "it is not working", so you are doing something wrong without realizing it.
    Step through the code in a debugger and see what is really happening.

  • How to test SOAP request using XML SPY

    Hi,
    1. I am new to WebServices concept, I have downloaded the wsdl file and now I need to test the SOAP requests using XML Spy. However, when I try to test the SOAP request generated by XML Spy I receive an error "Internal Error: Session is not available. Aborting" , How do I go ahead to generate the session, Is there a way I can provide the Username and password in the XML Spy to generate something like session.
    2. The second problem that I am facing is when I import the WSDL in XML Spy and generate the SOAP request, for all the fields xml tags gets populated with "aaaaaaaaaaaa" kind of data through out. Am i doing something wrong ? Is there some step while creating a SOAP request that I am missing becasue of which the gibbrish data is being populated as default ?
    Please Help !
    Thanks .

    I got my SOAP Requests tested using SOAP UI .. However I am still looking for ways to test it using XML SPY.
    In the SOAP UI Tool just do right click and select Add WS Security Token ..
    Thanks :)

  • Testing XML Parser for C (v1.0.1 & v2)

    Hi,
    I had tested the Oracle XML Parser for C (v1.0.1.0.0) and found out that it was bundled with the 8i database. Is this a requirement of the parser?
    Now I want to test version 2 of the same parser. Can you tell me the main differences between the two versions? Also we are using Oracle 8.1.5i at our site, can we run the v2 parser with 8.1.5i?
    My last question is when will the commercial product (both v1.0.1 and v2) be available?
    Thanks,
    Francis

    Hi,
    Are you sure I can use the downloaded XML Parser for C v2 on Oracle 7.3 and Oracle 8? Because in the lib directory there are the following libraries:
    libcore8.a, libnls8.a, libxml8.a, libxmlc8.a
    I think they are for Oracle 8i instead. I tried to compiled the Oracle XML Parser for C v1.0.0.0.1 before on Oracle 7.3 and it failed because of libraries problem. How can I get the libraries required for Oracle 7.3 and Oracle 8? Please verify.
    Many thanks!
    Francis

  • How to test or view data if the source is XML files..?

    Hi,
    I just got a doubt..
    How can we test or view data from BI Admintool if the source is XML files.
    If it is database we can perform "Update Row Count" or "view data" from physical layer.
    I am just going through the "sample sales" example and could not find the option to test
    connectivity with xml file..(I can see the directory which points to samplesales and xml files..
    but how can I view those data in BI admintool)..
    Help would be appreciable..
    Thanks and Regards,
    Sri.

    Hi Sri,
    Yes, this option is not available for XML and multidimensional sources. Check "Show row count in physical view" in Table 2-1 documented here ,
    http://docs.oracle.com/cd/E21764_01/bi.1111/e10540/planning.htm#BABEFIHE
    Rgds,
    Dpka

  • Error in testing XML query result set web service

    Hi
    I was trying to test a <b>XML query result set web service</b> in BW system with tcode wsadmin but getting error like
    <b>Cannot download WSDL from http://ibmbtsb02.megacenter.de.ibm.com:8070/sap/bw/xml/soap/queyview?sap-client=001&wsdl=1.1&mode=sap_wsdl: F:\usr\sap\W70\DVEBMGS70\j2ee\cluster\server0\apps\sap.com\com.sap.engine.services.webservices.tool\servlet_jsp\wsnavigator\root\WEB-INF\temp\ws1139464945296\wsdls\wsdlroot.wsdl (The system cannot find the path specified)</b>
    I had tried it first time few days ago and was able to test it successfully with the same configuration settings.
    Could any one of you please provide any suggestion on this?
    Thanks in advance
    Sudip

    hi
    check this links it may help u.
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/e3072e65f04445a010847aa970b68b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/frameset.htm
    Regards,
    Manoseelan

  • Automated Unit Tests through NWDI / Purpose of testrun.xml

    Hello,
    I could not find any documentation on the test infrastructure / system that seems to be integrated into Netweaver CE 7.1. A DC offers the option via the context menu to "Add/Repair Unit Test Support". When this is used the Developer Studio automatically creates the necessary test source folder, JUnit library dependencies and a file called TEST-INF/testrun.xml.
    The first two things are clear, but what function does the testrun.xml file serve? To me it looks like it defines the Tests that should be executed (automaticaly during build?). However, the tests are never actually run.
    <?xml version="1.0" encoding="UTF-8"?>
    <test>
      <run type="junit">
        <include>com.sap.**</include>
        <exclude></exclude>
      </run>
    </test>
    Can anybody expain how this file is though to be used? Or how to perform automatic unit tests during/after the build process?
    Thanks in advance.
    ciao,
    Elmar
    Edited by: Elmar Weber on Sep 17, 2008 9:58 AM

    Hi test developers,
    the integration of JUnit tests into the DC build is planned for 7.30. You can add your tests in a separate test folder and specify additional "test"-dependencies, if required. The tests will be executed during the DC build. If a test fails, the build will also fail. Generation of code coverage reports will be possible, too.
    Best Regards,
      Jochen Ehret.

  • Plsql xml unit tests

    I need to find a framework to test some plsql xml web services.
    Has anyone found a good framework I can build some unit tests to both test the PLSQL, but more importantly to check the XML that the services are generating?

    Yeh, somewhere in your code you called validate.validateAll( someArg ) and whatever you passed as someArg is null.
    Mike

  • UIX/XML username / password while testing from IDE

    Hello,
    When we test a UIX XML / BC4J application from the Jdeveloper IDE (9.0.2) with the deploy password option selected for the connection it works OK.
    If we uncheck this option however, we get a connection error, and no opportunity to specify the password.
    We have the following questions:
    (for testing from the IDE)
    1) Must we build a login uix page to ask the user for it?
    2) Once we have the user and the password, how can we use them to connect to the application module, instead of the username and password from the bc4j.xcfg?
    Many thanks,
    Xavi Marfull.

    This functionality is not currently supported by the BC4J UIX data binding.
    We'll track the request internally for a future release.
    Regards,
    John Fallows
    Oracle Corporation.

  • Data filtering in XML report with out changing the underlying query

    Hi, This is Nagesh and from Verizon.
    I'm testing Query based XML report in Peoplesoft 9.1 app with tools version 8.5.
    I'm trying to filter the data on XML Report template with out changing the underlying PS query. I mean filter the data on the report to only specific accounts though the underlying PS query query return transactions booked to all Accounts for a given Legal Entity. Is it possible. any advise or idea is highly appreciated.
    Thanks
    Ages

    If the value is not of importance how come it became obligatory in your program?
    Any how you can do one thing...Put some value in your obligatory field, put a debugger point where you are interested in  and use the pencil tool to change the value of the field while debugging. 
    Regards,
    Philip.

  • XML Publisher/Report Definition - Excel Template Issue

    Hi everyone,
    I'm Diego, and I've been getting some issue to upload/download Excel templates using XML Publisher and Report Definition.
    I've been working over Real Estate Module and I get an activity to make an Excel Report. I've made all necessary step to make an excel template; create a .xls template, uploading the file to XML Publisher Repository, creating a Report Definition associating a RDA, and so on...
    When I generate the file in the Web (DV), it doesnt work; when I download the final excel, it doesnt appear any information. It comes just the statics texts and formatting, the real data information inside xml doesn't appear at excel.
    I've made a lot of tests and changes, but without success.
    FYI, I've already made a .rtf template and it worked well.
    I'd really apreciate if anyone help me or at least having any clue about it.
    Thanks so much,
    Diego Santos

    Hi my friend,
    First of all, thanks for reply.
    I've checked the template definition, and it seems OK.
    I've created the XML Publish Repository with Object Type = TL, in excel template I didn't put any additional info, (the field Template Type = TYPE_EXCEL_TEMPLATE cames by default).
    As I told above, i've made many tests..with and without grouping, but no success.
    However, when I test it locally it works. When I test the .xls + xml using Template Viewer runs well. But when I download the .xls on Web, it didn't retrieve any data information. =/
    I've already downloaded this doc, and I'm using it as support.
    If you need any more information, pls let me know that I'll tell you in a sec.
    Thanks a lot,
    Diego

  • How to download Answers report in XML format?

    I would like to send the developed Answers reports in the form of XML so that it can be sent to various Govt and 3rd Party systems. Any idea how to achieve this?
    Thanks
    Edited by: user12242480 on 05-Feb-2010 01:52

    Use the go url:
    http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_go_url
    And specify the format as XML.
    Example:
    saw.dll?Go&Path=/Shared/Test/SB2&Format=XML
    May be you can add the XML to the menu. But i never do it, you have to search in the custommessage.
    Cheers
    Nico

Maybe you are looking for

  • WAITING FOR TIME CODE....again

    Hi, when I try to capture from DV device, the capture window appears "PREVIEW DISABLED" I can remote the dv device, mark time code in or out, play tape, pause tape, the time code in the capture window run and is the same taht the tape, but when I do

  • HT5517 AirPlay from iPad to tv

    have iTunes loaded on my PC.  Do I need it on my iPad to use airplay to protect from iPad to tv?

  • How to calculate actual activity price using cost center balance

    I have a problem,the case is that: i have two pro.order. orderA settlement to cost center M; orderB is a standard pro.ord,and the work center of orderB link to cost center M. when i calculate the actual activity revaluation.the activity price update

  • Cannot get PhotoStream to work on the Mac

    Any ideas on this? I'm running Lion latest build, latest iphoto but PhotoStream will not enable. Its on in the iCloud preferences, but for the life of me i cannot get it to work.

  • Welcome email script exchange 2007

    Hello Team, could you verify below my test script for Welcome Msg for new user mailbox. Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin $NewUsers = Get-User -ResultSize Unlimited | Where {($_.WhenCreated -gt (get-date).addhours(-12))} for