Use BDB XML API on MS Visual C++ compiler problem

Excuse me
I install BDB XML 2.3.8, and I use MS Visual C++ 6 compiler.
In VC6, I add fellow path setting ~
include files:
C:\Program Files\Oracle\Berkeley DB XML 2.3.8\include
                                   C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin\debug
                                   C:\Program Files\Oracle\Berkeley DB XML 2.3.8\include\dbxml
Library files:
C:\Program Files\Oracle\Berkeley DB XML 2.3.8\lib
                                   C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin\debug
Source files:     
C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin
                                   C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin\debug
Executable files:     
C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin
                                             C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin\debug
and in Link setting, add 「 libdb45.lib libdbxml23.lib xerces-c_2.lib xqilla10.lib 」
I write some test code:
#include "stdafx.h"
#include "DbXml.hpp"
using namespace DbXml;
int main(int argc, char* argv[])
     printf("= BDBtest Programe =\n");
     XmlManager myManager;
try {
               XmlContainer myContainer = myManager.createContainer("test.dbxml");
               printf(" finish test.dbxml create \n");
          } catch (DbXml::XmlException &xe) {
               // Error handling goes here
               printf("!! error 1 !!\n");
               printf ("%s\n", xe.what());
          } catch (std::exception &e) {
               // Error handling goes here
               printf("!! error 2 !!\n");
               printf ("%s\n", e.what());
     return 0;
but when I executable program, the screen print:
!! error 2 !!
bad allocationIf I have setting wrong, or missing some setting??

And when I run in debug mode, it produce follow information..
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\Documents and Settings\wang\compiler\VC6\BDBtest\Debug\libdbxml23.dll', no matching symbolic information found.
Loaded 'C:\Documents and Settings\wang\compiler\VC6\BDBtest\Debug\libdb45.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcr71.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcp71.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin\xerces-c_2_7.dll', no matching symbolic information found.
Loaded 'C:\Program Files\Oracle\Berkeley DB XML 2.3.8\bin\xqilla10.dll', no matching symbolic information found.
HEAP[BDBtest.exe]: Invalid allocation size - CCCCCCD0 (exceeded 7ffdefff)
HEAP[BDBtest.exe]: Invalid allocation size - CCCCCCCD (exceeded 7ffdefff)
First-chance exception in BDBtest.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in BDBtest.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in BDBtest.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
The program 'C:\Documents and Settings\wang\compiler\VC6\BDBtest\Debug\BDBtest.exe' has exited with code 0 (0x0).

Similar Messages

  • Using AWM XML API

    We have the following questions related to cube creation in MOLP based on metadata and data in relational tables. Please help us.
    Is it optimal to use Oracle OLAP Analytic Workspace Java API for creation of the analytic workspace and the cube based on the metadata in the relational tables?
    Is there any PL-SQL equivalent for these APIs? Can we use CWM2 PL-SQL APIs for these? If we use the CWM2 APIs will we miss some of the optimizations on the storage space, aggregations, calculations etc, which are features of 10g?
    In order to fetch the data of the measures and dimensions one option is to create relational view on top of the data tables and create mapping. In this case what are the optimizations done by the maintenance task? . But if the user wants to create a new dimension or measure, it is not going to be easy. So we would like to know what is an alternative to this mapping? Can we programmatically load the data to the cube?

    Hi Vinod -
    I recommend that you use the OLAP AW Java API for the creation of AWs. You can find the API documentation here: http://www.oracle.com/technology/products/bi/olap/OLAP_AW_API_10.2.0.2_Beta.zip.
    The API provides everything required to:
    1. create dimensions, hierarchies, levels, measures, calculations, folders, etc. - including specifying detail storage parameters for objects (like compression, partitioning, etc.)
    2. map these objects to their sources (e.g. columns in lookup tables, fact tables or transaction tables)
    3. maintain the AW (e.g. load data from the tables - incremental or full, aggregate the data, run forecasts, run allocations, etc.)
    The API documentation does point to examples which show how to perform each of these steps.
    The definition of everything described above - including the processes - can be saved as a XML definition. These XML definitions can be leveraged as part of a PL/SQL process for performing these tasks. There is no equivalent PL/SQL API to the Java API aside from leveraging the XML definitions.
    I'm not sure I quite understand your final questions. Once the data has been loaded into the AW, the data is stored in an optimal way for OLAP analyses. The speed in which the loading process takes place may well depend on how quickly the source data can be queried - but this should only effect the loading of the leaf node data and the hierarchies. It will not impact the data aggregation stage of the build process.

  • How to use HTTP / XML API

    Hi,
    I have to communicate with a product . The product has HTTP / XML API . The API has some functions. The examples in the product docs ,
    If you send a HTTP request to URL of the product with function name and some input parameters , It returns XML response , this response corresponds to some DTD.
    Now from java Application I have to send some HTTP requests and do some things according to obtained responses.Some times I have to parse the XML responses returned to show the user some results.
    How can I do this in Java , I have not worked with this kind of requirements.
    Thanks,
    pandu

    I wanted to do both , from the java Application to server.
    1.Send HTTP (post) request
    2.Parse the returned XML response from the server.

  • Visual Studio Compiler problem

    Hi guys,
    I'm trying to run the compiler for Microsoft Visual Studio 2005 as part of OPNET but receive this error when I try to run a simulation:
    "comp_msvc: Unable to execute compiler (Win32 error code: 2). Check that Visual C++ has been installed correctly, and that its BIN directory is included in the Path environment variable."
    My PATH environment variable has all the required directories, including BIN.
    Has anybody seen this before? Anybody know how I fix this?
    Any help would be appreciated. Cheers.

    I also experienced this, and the solution is in the environment settings are done.
    example
    C: \ Visual8 \ SDK \ v2.0;
    Initially I enter it in the environment, apparently because of the visual layout of my studio is in program files, so I changed my envorionment seleuruh related to visual studio installation into
    C: \ Program Files \ Microsoft Visual Studio 8 \ VC;
    Hope it helps

  • How to output full-text document from BDB-XML

    I put a XML document(test.xml) into BDB-XML; Edit and modify use BDB-XML API.
    After, if I want to output(roll out) my XML document(test.xml) which was storage in BDB-XML.
    Are there any support in BDB-XML API or Shell to output full-text document from DB??
    Thank you very much :)

    In the shell:
    dbxml> getDocument "document name"
    dbxml> print ["output_file_name"]
    In a (Java) program:
    XmlDocument doc = container.getDocument("document name");
    String output = doc.getContentAsString();
    Regards,
    George

  • JNI FindClass Error: Using the Invocation API  from visual C++

    I am using JNI invocation api in microsoft visual c++ to invoke java. When I use the FindClass method, I get a return value of 0. I have verified that the class "a" exists and believe have set the java class path appropriately. A valid jvm and jenv are created. The program fails at the FindClass call and returns 0.
    std::string classPath = "c:\\work\\java;C:\\j2sdk1.4.2_08;C:\\j2sdk1.4.2_08\\bin;C:\\j2sdk1.4.2_08\\lib";
         vmArgs.classpath = classpath;
         jint res = JNI_CreateJavaVM(&jvm, (void**)(&jenv), &vmArgs);
         if (res < 0)
              cout << "Error!! Cannot create jvm" << endl;
    jclass jFixEngineClass1 = jenv->FindClass("a");
         if (jFixEngineClass1 == 0)
              cout << "Error could not find a class" << endl;
         else
              cout << "a class found" << endl;
    thanks in advance,
    hcg

    Jschell,
    Thanks for your help.
    I found the error. I was using JDK1_1InitArgs for my vm_args. Since, I am using JDK 1.4, the classpath I was setting was not getting picked up. I changed the vm_args type as in the code below and it worked.
    JavaVMInitArgs vmArgs;
         JavaVMOption options[1];
         char classPathDef[1024];classPathDef[0] = '\0';
         sprintf(classPathDef, "%s", "-Djava.class.path=");
         sprintf(classpath, "%s%s", classPathDef, NYSE_FIX::userClassPath.c_str());
         options[0].optionString = classpath;
         cout << "Option string is:" << options[0].optionString << endl;
    vmArgs.version = 0x00010004;
    vmArgs.options = options;
    vmArgs.nOptions = 1;
    vmArgs.ignoreUnrecognized = JNI_TRUE;
         jint ret = JNI_GetDefaultJavaVMInitArgs(&vmArgs);

  • Collecting plug-in metrics using XML API from Perl?

    Hi all,
    We are building a plug-in to retrieve metrics over an XML API.
    The QueryDescriptor of each metric will do a call to the Agent's Perl script. This Perl script will then do the actual XML API call, to retrieve the metric's values.
    Does anyone have experience with this? We needed to install a few extra Perl modules from CPAN, to provide the high-level HTTP(s) communication. These modules are not in the Perl that’s used by the Oracle Agent, so I’m not sure if this is going to work when called by the Agent.
    Did any of you use an XML API? Did you make this a prereq (installing modules) or is there an alternative solution?
    Many thanks,
    Ed

    Thank you, Ash. I read the example quickly, and found (quoted)from the paper - "the Applet was designed as compact as possible in order to limit download time and to fit in a 50K jar file. The JAXP XML Parsing API package, including the SAX parser from SUN Project X (approximately 150K) is one of the smallest implementations we were able to use. It is, however, still too large to be downloaded for each session; therefore, it was installed locally to keep the download time as low as possible."
    However, in my current design, I can not ask each customer to install the JAXP API locally, so it seems that the API needs to be downloaded during the run time (am I right?). So the same problem will occur as that stated in the paper - the jar file is still too large to be downloaded for each session. Is there any lightweight API to solve it?
    BTW, as you might see, the paper was published in year 2000, I don't think the JDK plugin supported XML at that time, so it is quite reasonable to download JAXP API in that paper. But my current question is - as I posted in my previous message - whether the newest JDK plugin (JDK1.4) support Java XML API?
    Many many thanks.
    - Sun

  • Web Target & XML API use

    Hello there,
    I am going to make process to create Lun on NetApp Simulator.
    I had NetApp simulator, NetApp SDK server up n running on my server ...i made web target as my SDK API server and my TEO also on same server..http://172.21.***.**:8088  << this is my target connection.
    1> i want to check : does my connection work succefully or not for that i created process "web HTTP request" but that was not hit my target...
    so, please anybody have information for creating web http request process..please share with me...i appreciate you....
    2> I also have one more question regrding to using XML API in the process....As i said i also want to make process to crete Lun on my simulator...
    so..does anybody have information that how to use this XML API in our process...
    I really appreciate for help...
    Regards,
    Krupesh Patel

    Hello Christopher.......
    Now this time i just want to do simple web service target ...i want to use web service execute activity with wsdl use...
    Here ..i created web target as http://www.weather.gov/
    My process is to execute the web service ..this is my Relative url : http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl in for web service execute activity as i show in the image..
    Now..i want to select method by veryfing the url but i didn't get success....and got error...i want to execute this service on the target and want weather according to zip code i get from method...
    please help...appreciate you for information....
    Here is that image :

  • Very urgent (bdb xml)

    actually in my requirement doc they mentioned that Berkely BD should use no more than 32 MB of shared memory.
    so what does it mean????????????
    i AM USING bdb xml ,SO wheather by enabling BD_INIT_MPOOLflag will serve this purpose.

    I am not quite sure of what you are asking, based on my understanding, the anser is:
    When you are setting the cache size via Berkeley DB API DB->set_cachesize, you can specify the cache size. And yes, you need to set DB_INIT_MPOOL in DB_ENV->open.
    If this is not the anwser you look for, can you describe your issue in much more detail?
    David

  • BDB XML 2.4 : Xquery from file

    Hi
    I am using BDB XML 2.4 (on Fedora Linux - C++) . Is it possible to run Xquery from xquery file (instead of placing the query string in a string variable)? If so please let me know what API i have to use?
    Thanks,
    Santhosh

    Hi Santhosh,
    DB XML doesn't provide API to do that directly. You'll have to write a small wrapper function that reads the file into a string and passes that to DB XML.
    John

  • Installing BDB XML and including it into a java application

    Hi there :)
    I'm new to BDB XML and I've got some questions about it :
    1/ The documentation says about BDB XML that it is based on BDB. Does it mean that I need to install the standard BDB first to use BDB XML ? (I'm pretty sure I don't have to but I would like a confirmation =))
    2/ I want to developp a web application which will use BDB XML. The documentation says I need to add some jars into my project to use it but do I need to install it on my computer (Windows XP) first ? (with the .msi file ?)
    3/ Where will the xml files be physically stored after I add them into the database ? (what is the default database folder on the hard disk ?)
    Thank you for you help :)
    Regards,
    Gary

    Hi Gary,
    1) You need to install only DB XML. BDB is bundled with DB XML, so you don't have to worry.
    2) Yes, you need to add two jars: db.jar and dbxml.jar. But these jars depend on native DB XML libraries, so you will have to install DB XML anyway: only jars wouldn't be sufficient. Moreover, I would recommend to install DB XML from sources providing the --enable-java+ flag to the buildall.sh script
    3) All XML files will be stored in a container or containers (depending on how many of those you will decide to utilize in your application). It is up to you where you are going to reside DB XML environment/containers -- DB XML is quite low-level XML-database.
    Hope this helps,
    Vyacheslav

  • Miscellanous questions about BDB XML

    Hi !
    I'm in search for a storage solution for a Matlab app that manipulates big volumes of datas (several Gb), and so can't load them fully in memory without crashing. I also can't load / unload them each time I need a bit of these data, since it is rather long to load a file in memory (about 0.12s). So I was thinking about using a DMB like BDB XML, and I have a few questions about it :
    <ul><li>What about performances to create a 3-5Gb database in a single batch ?</li>
    <li>What about performances to excecute a XQuery request on a db this large ? Longer or shorter than loadin directly the file in memory ? With an index or without ?
    </li>
    <li> No matlab integration is provided, so I have to way : use Matlab C integration to make an interface to use BDB XML, or using the shell via an exec like command to interact with BDB ? Is the shell trick performant ? Or does it spend a lot of time parsing the input ?</li>
    </ul>
    Thanks for those who will take a bit of their precious time to answer my questions !

    Hello,
    I'm in search for a storage solution for a Matlab app that manipulates big volumes of datas (several Gb), and so can't load them fully in memory without crashing. I also can't load / unload them each time I need a bit of these data, since it is rather long to load a file in memory (about 0.12s). So I was thinking about using a DMB like BDB XML, and I have a few questions about it :
    <ul><li>What about performances to create a 3-5Gb database in a single batch ?</li>It will take a while. If you bulk load you should avoid using transactions and sync/exit the environment when you are done. Note that you should determine what indexes you might want/need before doing the load and create them. Reindexing 5GB of data will take another really large chunk of time. I recommend experimentation with indexes, queries and a small representative subset of the data.
    Be sure to create a node storage container with nodes indexed.
    Is this one document or many? Many is better. One 5Gb document is less than ideal but will work.
    <li>What about performances to excecute a XQuery request on a db this large ? Longer or shorter than loadin directly the file in memory ? With an index or without ?You really need indexes. The query will likely succeed without indexes but depending on the query and the data could take a very long time. See above on experimentation first.
    </li>
    <li> No matlab integration is provided, so I have to way : use Matlab C integration to make an interface to use BDB XML, or using the shell via an exec like command to interact with BDB ? Is the shell trick performant ? Or does it spend a lot of time parsing the input ?</li>There is no C interface, just C++. I would not recommend using the dbxml shell for this although you could if you really need to.
    Let the group know how this turns out.
    Regards,
    George

  • Use of XML

    I have a Oracle->Web system. The Oracle database interacts with other Oracle databases and non-Oracle systems. At present the exchange of data is in simple text format. How can XML be applied to this enviornment?

    As DrClap implied, you must be more specific with your intent.
    If you simply want to create an XML Doc from data queried from Oracle ( or any database ) create an XML Schema for the data gathered from your query. Use som XML API to create a new XML Document and populate it with the data.

  • XML API access to the chat pod?

    Is it possible to access the contents of the chat pod, in
    Connect Professional, using the XML API? What I want to do is clear
    the contents of the pod programmatically.
    I've tried drilling down through the SCO ID's of my test
    meetings, but I don't see anything below the meeting level. In
    other words there doen't seem to be a SCO for the individual pods.
    Thanks Eric

    Bummer. I suppose there's no way to tie into the stream
    between the different meeting clients either? What I mean is that
    if I'm the moderator of a meeting and I clear the chat through my
    pod then all the other chat pods (for the guests) are cleared as
    well. Any way to get at the functionality outside of the XML API?
    The reason I ask is that I'm trying to automate the process
    for a customer that uses persistent meetings. The problem is they
    don't want the chat text from the previous session to show up in
    the next session, and quite often the moderator forgets to clear it
    out before they exit the meeting.
    Thanks
    Eric

  • Problem in Accessing serial port using java comm Api

    I have installed java comm Api in my pc.
    i have gone through the instalation instruction which comes on this package.
    I have done the instalation like this
    Copy win32com.dll to my <JDK>\bin directory.
    Copy comm.jar to my <JDK>\lib directory.
    Copy javax.comm.properties to my <JDK>\lib directory.
    and restart the system.
    But when i run the BlackBox , it is giving me message
    "serial port not found".
    Can any one tell me , what is the exact problem ?

    I'm not sure what you mean by BlackBox, but I have used the COMM api extensively.
    The majority of problems is that the api cannot see the serial port (which is what you are describing) and this is caused by incorrect placing of the javax.comm.properties file.
    As well as <JDK>\lib, try putting it into <JRE>\lib as well. That has often solved problems on my setup.

Maybe you are looking for

  • How to use non-Unicode mode in VB6 with ADO.

    I'm using ADO on top of OraOLEDB to connect to Oracle 9.2. The database characterset is AL32UTF8. Since my client can't handle Unicode characters, I need a character conversion. However, arcording to the OraOLEDB document( which can be obtained here

  • Adobe Reader XI (11.0.04) not working on Windows 8

    Hello, All of the sudden Adobe reader XI (11.0.04) stopped working on my computer running Windows 8. When opening any .pdf it opens then stops responding then just closes by itself. No error messages or anything. I have tried uninstalling & reinstall

  • Trading Partner

    Hi, New to BCS hence needs guidance from you experts 1. Can we define Trading Partner for a specific Item in a company or replace the existing partner with new partner 2.  I have uploaded a file thru Flexi upload method, I want to reload that file wi

  • Beware of IPOD and ITUNES (lame quicktime add on) java interaction!

    i just got an ipod a couple days ago and had to install itunes for it. the installation disc installs quicktime 6 with itunes whether you want to or not. Anyway, the next day i went to work with my laptop and none of my code would compile. Stupid qui

  • RandomAcessFile problem

    Hi, I'm trying to run a programm that reads characters from the file. As a example I took ment to be working sourse from my study book. And receive java.io.EOFExeption at java.io.RAndomAccessFile.readChar(Unknown sourse) public static void main(Strin