Berkely XML DB Compiling error in Tourbo C - Need Help

Hi, i am compiling the below program in turbo C. and getting 26 errorrs like unbale to open file "XMLPORTABILITY.HPP", "XMLCONTAINER.HPP" etc... which are defined in "DBXML.HPP"......i have placed all the said above files in the TC directory and saved the path as well. but still its not able to open those files while compiling hte below code and giving 26 error. Kindly sugsest what should i do. I have
#include "DbXml.hpp"
// exception handling omitted for clarity
int main(void)
// Open an XmlManager.
XmlManager myManager;
----------------------------------------------------------------------

Hi,
I'm surprise that you are using DBXML with Turbo C. :)
Because Xml*.hpp are in the same directory as DbXml.hpp, I guess the lib didn't be built/install correctly since Turbo C only can find DbXml.hpp.
So how did you build and install the lib? Did you built the lib with Visual Studio or just install libs with DBXML Windows MSI installer?
Best regards,
Rucong Zhao
Oracle Berkeley DB XML

Similar Messages

  • Help IP restore error 21 (DFU ) running DFU  and error 1600. I need help

    I restore error 21 ( DFU ) >>> running DFU and error 1600. >>> I need help ?

    ip 4, 32g is me. I running FW up ios 6.0 >> error 21 ( DFU ) >>  mode DFU  >>>> error 1600 ( recovery mode )

  • Hello, I have a problem on my iPhone every second turn on and off I mean it shows the apple and off and again shows the apple icon and off and tried to Restore and it hangs on my iPhone and then waits Error 3004 Please I need help please!

    Hello, I have a problem on my iPhone every second turn on and off I mean it shows the apple and off and again shows the apple icon and off and tried to Restore and it hangs on my iPhone and then waits Error 3004 Please I need help please!

    Resolve communication issues
    Related errors: 17, 1004, 1013, 1638, 3014, 3194, 3000, 3002, 3004, 3013, 3014, 3015, 3194, or 3200.
    These alerts refer to gs.apple.com, say "There was a problem downloading the software," or say the "device isn't eligible for the requested build."
    I would guess your iphone has been hacked ( jailbroken ) ring any bells ?

  • Recent wipe of Mac HD.     Reinstall won't allow CS5 .  Quote error 213.5. Need Help

    I recently had my Mac software reinstalled but Adobe Photoshop will not reinstall siting error 213.5.  Need help.

    Hi Nicintime101,
    Please go through the forum link below and  check.
    https://forums.adobe.com/thread/1256895?tstart=0
    Regards,
    Anand

  • Installation of Photoshop update 13.1.2 for creative cloud fails with error code U44M1P7 I need help

    I need help installing update 13.1.2 for Photoshop creative cloud, installation fails with error code: U44M1P7. Could someone please help?

    Sorry to bother you.
    I could find the answer after searching previous posts about this language problem.
    Had to change my language in AAM profile and then download PS CS6 again ( english version ).
    Then open the actual Photoshop and in preferences > interface you can besides the Dutch also option for English.
    restart application and Voila.
    Greetz, Jeroen

  • Windows phone error code 80188301,. please need help

    i am getting an error while updating my windows phone.  windows phone error code 80188301,.
    please need help

    Hi,
    If issue persists after using the solutions provided by Aman Raizada, then I would suggest you ask the question in Windows Phone support forum:
    http://www.windowsphone.com/en-US/how-to/wp-support
    Regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Error encountered in DocumentInstance, need help

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted or to anyone encountered this, I Need help! Im trying to open a deski document to pass parameter and set report format then schedue to run. In this line:  DocumentInstance documentInstance = reportEngine.openDocument(infoObject.getID()); Im encountering this error message:Entering getRASConnection()ExceptionError Message: No server was available to process the request. Please try again later. (Error: RFC 00101) Any idea? Though, RAS  server is running. I hope you can help me on this.Thank you. 

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,I tried to switch to other BO XI server which infoView is working with pass parameter using my user ID. But when I tried to run my application. The same error I encountered. Though, the pdf was created but with no parameters so no records was displayed in the pdf except for header,footer, and other static data.  See error below, Im just wondering which server/configuration should I checked if down/disable? Please advise. "Unable to find servers in CMS <Server path> and cluster @<Server path>
    with kind dpscacheFullClient and extra criteria null. All such servers
    could be down or disabled by the administrator. &#91;RASLIB9006&#93;"Please advise, I hope you can help me again here. Thank you.  Stacktrace:documentInstance = reportEngine.openDocument(infoObject.getID())Entering getRASConnection()com.businessobjects.rebean.wi.ServerException: No server was available to process the request. Please try again later. (Error: RFC 00101)    at com.businessobjects.rebean.fc.internal.ras21.XMLviaRAS21Encode.newSession(XMLviaRAS21Encode.java:972)    at com.businessobjects.rebean.fc.internal.ras21.RAS21ReportEngineComAdapter.openDocument(RAS21ReportEngineComAdapter.java:87)    at com.businessobjects.rebean.fc.internal.ReportEngineImpl.openDocument(ReportEngineImpl.java:249)    at edu.uillinois.boxir2.BOXIR2ReportEngine.testRunReportWithParameters(BOXIR2ReportEngine.java:718)    at edu.uillinois.boxir2.BOXIR2ReportEngine.main(BOXIR2ReportEngine.java:72)Exception encountered during setting parameter values. @Wed Apr 30 14:47:21 CDT 2008Error Message: No server was available to process the request. Please try again later. (Error: RFC 00101)Caused by: ErrorFailureUnable to find servers in CMS <Server path> and cluster @<Server path> with kind dpscacheFullClient and extra criteria null. All such servers could be down or disabled by the administrator. &#91;RASLIB9006&#93;    at com.crystaldecisions.sdk.occa.ras21.RASConnection.a(Unknown Source)    at com.crystaldecisions.sdk.occa.ras21.RASConnection.<init>(Unknown Source)    at com.crystaldecisions.sdk.occa.ras21.RASConnectionFactory.a(Unknown Source)    at com.crystaldecisions.sdk.occa.ras21.RASConnectionFactory.getRASConnectionObjectId(Unknown Source)    at com.businessobjects.rebean.fc.internal.ras21.XMLviaRAS21Encode.newSession(XMLviaRAS21Encode.java:958)    ... 4 moreCaused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$AllServersDown: Unable to find servers in CMS <Server path> and cluster @<Server path> with kind dpscacheFullClient and extra criteria null. All such servers could be down or disabled by the administrator.    at com.crystaldecisions.enterprise.ocaframework.aa.int(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.int(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.o.try(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)    at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)    ... 9 more  

  • I can't activate my desktop account. Error: E_AUTH_NOT_READY. Please, need help!

    I instaled my desktop Adobe Digital Edition, but I'm failing in activate it with my Adobe Id. The error code is:   E_AUTH_NOT_READY
    Please, need help!

    For this problem, you need to deauthorize and authorize ADE again.
    Launch ADE
    Help -> Erase authorization.
    ADE will be deauhorized.
    Now again AUTHORIZE ADE
    Help-> authorize computer.
    Error will be fixed !!

  • ITunes Error Message. Still need help. Please.

    I still haven't been able to use my ITunes for about two months. I need help to fix the problem. Here's what it says when I try to start ITunes:
    Microsoft Visual C+ + runtime library
    Runtime Error!
    Program: C:\program files\itunes\itunes.exe
    This application has requested to terminate in an unusual way. Please contact the application’s support team for more information.
    If anyone can help me with this I would greatly, greatly appreciate it. Thanks.
      Windows XP  

    Have you tried un-installing iTunes, downloading the program again from Apple, and re-installing?
    It's always worth a try, as it should help you clear off anything causing the problem and start again.

  • It says my ipod 4th gen could not be restored an unknown error occurred OxE8000001. Need help

    could not be restored an unknown error occurred OxE8000001. Need help

    Try here:
    iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting

  • Error restoring row currency - Need Help

    Hi All,
    Can anyone explain me how can I control the row currency???????
    this is my situation:
    when I navigate from page1 (with one read-only table - tableEmployees) to page2 (with a read-only table - tableSelectEmployees, with this columns: ps, eps, obs, obs2, where ps, eps and obs are the primary keys), selecting the "create" button, I need to insert a new row in tableSelectEmployees (page2) with this values (ps=2, eps=2, obs=null, obs2=null). -----> Until here everything works Fine :)
    The Big problem is when I need to navigate from page2 to page3 (with a read-only table - tableAddEmployees with this columns: DOM_ID, id, meaning, where Id is the primary key). The tableAddEmployees has a Query like this:
    SELECT *
    FROM tableAddEmployees
    WHERE NVL(tableAddEmployees.DOM_ID,0) = NVL(:1, 0)
    AND tableAddEmployees.ID NOT IN (
    SELECT obs
    FROM tableSelectEmployees
    WHERE Ps= :2
    AND Eps = :3
    AND NVL(obs, 0) = NVL(:4, 0))
    When I select the new row created (Ps=2, Eps=2, null, null) in page 2 and go to page3 I get this error messages from the log window:
    12:17:20 DEBUG (JhsActionServlet) -Request class: com.evermind.server.http.EvermindHttpServletRequest
    12:17:20 DEBUG (JhsActionServlet) -Request URI: /App_S2-ViewController-context-root/S2PopUpObstaculos.do
    12:17:20 DEBUG (JhsActionServlet) -Request Character Encoding: windows-1252
    12:17:20 DEBUG (JhsActionServlet) -Parameter searchText:
    12:17:20 DEBUG (JhsActionServlet) -Parameter event_Rollback:
    12:17:20 DEBUG (JhsActionServlet) -Parameter event:
    12:17:20 DEBUG (JhsActionServlet) -Parameter partial:
    12:17:20 DEBUG (JhsActionServlet) -Parameter source:
    12:17:20 DEBUG (JhsActionServlet) -Parameter eventValue:
    12:17:20 DEBUG (JhsActionServlet) -Parameter rowKeyStr:
    12:17:20 DEBUG (JhsActionServlet) -Parameter partialTargets:
    12:17:20 DEBUG (JhsDataAction) -Executing action /S2PopUpObstaculos
    12:17:20 DEBUG (JhsDataAction) -lastIssuedPageTimeStamp set to: 1156245440919
    12:17:20 DEBUG (JhsDataAction) -Found existing searchBean for S2AltaSociais2UIModel
    12:17:20 DEBUG (JhsDataAction) -Stored searchBean for S2AltaSociais2UIModel on request
    12:17:20 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 0 has changed: old value=0 ,new value=
    12:17:20 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 1 has changed: old value=0 ,new value=2
    12:17:20 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 2 has changed: old value=0 ,new value=2
    12:17:20 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 3 has changed: old value=0 ,new value=
    12:17:20 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: executing query, bind parameter values have changed
    12:17:20 DEBUG (JhsDataAction) -executing onRollback
    12:17:20 DEBUG (JhsDataAction) -executing Rollback ActionBinding
    12:17:21 DEBUG (JhsDataAction) -Restoring row currencies
    12:17:21 ERROR (JhsDataAction) -Error restoring row currency for S2ObstaculosLevel1Iterator: JBO-25020: View row of key oracle.jbo.Key[2 2 null ] not found in S2ObstaculosLevel1Iterator.
    12:17:21 ERROR (JhsDataAction) -Error restoring row currency for S2ObstaculosLevel1Iterator: JBO-25020: View row of key oracle.jbo.Key[2 2 null ] not found in S2ObstaculosLevel1Iterator.
    12:17:21 ERROR (JhsDataAction) -Error restoring row currency for S2ObstaculosAssoc1Iterator: JBO-25020: View row of key oracle.jbo.Key[2 2 null ] not found in S2ObstaculosAssoc1Iterator.
    12:17:21 ERROR (JhsDataAction) -Error restoring row currency for S2ObstaculosLevel1Iterator: JBO-25020: View row of key oracle.jbo.Key[2 2 null ] not found in S2ObstaculosLevel1Iterator.
    12:17:21 ERROR (JhsDataAction) -Error restoring row currency for S2ObstaculosLevel1Iterator: JBO-25020: View row of key oracle.jbo.Key[2 2 null ] not found in S2ObstaculosLevel1Iterator.
    12:17:21 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 0 has changed: old value= ,new value=278263
    12:17:21 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 3 has changed: old value= ,new value=278263
    12:17:21 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: executing query, bind parameter values have changed
    12:17:21 DEBUG (JhsDataAction) -Storing table binding factory under key jhsTableBindings on request
    12:17:21 DEBUG (JhsDataAction) -Forward set by parameter property returned: /WEB-INF/page/S2PopUpObstaculos.uix
    --->If I want this null values why is JDeveloper changing the row currency?
    When I select one row from page2 with values like this (2, 2, 278264, null) I get the correct response:
    12:19:41 DEBUG (JhsActionServlet) -Request class: com.evermind.server.http.EvermindHttpServletRequest
    12:19:41 DEBUG (JhsActionServlet) -Request URI: /App_S2-ViewController-context-root/S2PopUpObstaculos.do
    12:19:41 DEBUG (JhsActionServlet) -Request Character Encoding: windows-1252
    12:19:41 DEBUG (JhsActionServlet) -Parameter searchText:
    12:19:41 DEBUG (JhsActionServlet) -Parameter event_Rollback:
    12:19:41 DEBUG (JhsActionServlet) -Parameter event:
    12:19:41 DEBUG (JhsActionServlet) -Parameter partial:
    12:19:41 DEBUG (JhsActionServlet) -Parameter source:
    12:19:41 DEBUG (JhsActionServlet) -Parameter eventValue:
    12:19:41 DEBUG (JhsActionServlet) -Parameter rowKeyStr:
    12:19:41 DEBUG (JhsActionServlet) -Parameter partialTargets:
    12:19:41 DEBUG (JhsDataAction) -Executing action /S2PopUpObstaculos
    12:19:41 DEBUG (JhsDataAction) -lastIssuedPageTimeStamp set to: 1156245581741
    12:19:41 DEBUG (JhsDataAction) -Found existing searchBean for S2AltaSociais2UIModel
    12:19:41 DEBUG (JhsDataAction) -Stored searchBean for S2AltaSociais2UIModel on request
    12:19:41 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 0 has changed: old value=0 ,new value=278264
    12:19:41 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 1 has changed: old value=0 ,new value=2
    12:19:41 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 2 has changed: old value=0 ,new value=2
    12:19:41 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: value of bind param 3 has changed: old value=0 ,new value=278264
    12:19:41 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: executing query, bind parameter values have changed
    12:19:41 DEBUG (JhsDataAction) -executing onRollback
    12:19:41 DEBUG (JhsDataAction) -executing Rollback ActionBinding
    12:19:41 DEBUG (JhsDataAction) -Restoring row currencies
    12:19:42 DEBUG (JhsDataAction) -ViewObject S2DominiosLevel1: bind parameter values have not changed
    12:19:42 DEBUG (JhsDataAction) -Storing table binding factory under key jhsTableBindings on request
    12:19:42 DEBUG (JhsDataAction) -Forward set by parameter property returned: /WEB-INF/page/S2PopUpObstaculos.uix
    Can anyone help me with this problem, please?
    What can I do to solve this currency problem?
    Please, I really need help on this!!!
    I'm using JDeveloper10.1.2, struts, uix pages.
    Thanks,
    Atena

    Can anyone give some help here?

  • Compilation Error while using string (Please help)

    Hi,
    I am using "Sun WorkShop Compiler C++ SPARC Version 5.000". Compiling code which contains a "string variable" throws the following error:
    "/opt/WS5/SC5.0/include/CC/./new", line 32: Error: The prior declaration for ope
    rator new(unsigned) has no exception specification.
    "/opt/WS5/SC5.0/include/CC/./new", line 34: Error: The prior declaration for ope
    rator delete(void*) has no exception specification.
    "/opt/WS5/SC5.0/include/CC/./new", line 36: Error: The prior declaration for ope
    rator new[](unsigned) has no exception specification.
    "/opt/WS5/SC5.0/include/CC/./new", line 38: Error: The prior declaration for ope
    rator delete[](void*) has no exception specification.
    4 Error(s) detected.
    The command used for compilation is :
    /opt/WS5/bin/CC -compat=4 -I/opt/WS5/SC5.0/include/CC -features=%all try.cpp
    Would help if I could get some comments on the above.
    Thanks and Regards,
    M Shetty

    There is a requirement that I use the Workshop 5.0
    compilere with option "-compat=4".
    The program I am trying to compile contains:
    #include <string>
    int main()
    string test = "aaa";
    return 0;
    There is no "string" in "-compat=4". You need to
    do something like this:
    // --- start test.cc ---
    #include <rw/cstring.h>
    int main()
    RWCString test = "aaa";
    return 0;
    // --- end test.cc ---
    CC -compat=4 -library=rwtools7 test.cc

  • Compile Errors when Generating Conditional Tag Help File

    Ok, here is a recap of everything I have done. I started over from scratch. Unzipped the Help File into C:\Users\edwinwood\Documents\My RoboHelp Projects\Adobe RoboHelp 9 folder. Went to the properties SSOL Help Development folder and unchecked read only. Opened RoboHelp 9 as an administrator, went to File->Open and opened the help file. The first thing that pops up is a message stating this is a help file made with an older version of RoboHelp(v8) and must be upgraded(v9). I hit ok. The next pop-up is this “Unable to connect to the project $/SSOL HelpDevelopment@:ROBOSOURCE in version control. Would you like to browse for it?” I hit yes and the next pop-up just asks do you want to discontinue connection attempts in the future. I hit no. After that is usually where the files that are write protected pop-up but they didn’t this time. After about 5 minutes It will say upgrade complete. I shut down RoboHelp go into the language folder copy the robohhre.lng and paste it into the root folder. Like I said this file has nothing in it.  I reopen RoboHelp as an administrator and open the project again. I then go to View->Pods->Single Source Layouts. Double click the Tag1 Remove Hickory Tech and then click save and generate. At the very end of the compile process I still get Template Errors...
    Applying WebHelp 5.50 Template...
    Template Error: can not resolve macro: WH_LNG_LoadingData
    ...Template Error: can not resolve macro: WH_LNG_MergeError1
    Template Error: can not resolve macro: WH_LNG_MergeError2
    Template Error: can not resolve macro: WH_LNG_JS_alert_ProjectLoadingFail
    ...Template Error: can not resolve macro: WH_LNG_PreTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_NextTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    Template Error: can not resolve macro: WH_LNG_SyncTocTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtopic.js
    .....Template Error: can not resolve macro: WH_LNG_IndexSelectTopicTitle
    Template Error: can not resolve macro: WH_LNG_IndexSelectTopicLabel
    .....Template Error: can not resolve macro: WH_LNG_LoadingContentsData
    Template Error: can not resolve macro: WH_LNG_Book
    Template Error: can not resolve macro: WH_LNG_Page
    Template Error: can not resolve macro: WH_LNG_Remote_Page
    ....Template Error: can not resolve macro: WH_LNG_IndexBtnText
    ....Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whfform.htm
    Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whfform.htm
    Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whfform.htm
    Template Error: can not resolve macro: WH_LNG_FtsMaxResult
    Template Error: can not resolve macro: WH_LNG_FtsBtnText
    .....Template Error: can not resolve macro: WH_LNG_JS_alert_ErrorInLoading
    ....Template Error: can not resolve macro: WH_LNG_About in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_Author in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_PoweredBy in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_GeneratedBy in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whskin_banner.htm
    Template Error: can not resolve macro: WH_LNG_SearchPrompt in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_ToolBarSearchBtnText in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_Show_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_Hide_Navigation_Component in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_SyncTocTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_ContentCategoryList in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_NextTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Template Error: can not resolve macro: WH_LNG_PreTooltip in C:\SSOL Tag1 Remove HickoryTech\WebHelp\whtbar.js
    Finished applying Template in 40 sec(s)

    Ok, replaced the 0k .lng file with one that actually has something in it and I am down to one error.
    Template Error: can not resolve macro: WH_LNG_ContentCategoryList
    If anyone could help me with this one I would be much obliged

  • SAX error parsing by element. need help!

    I am trying to develop a small method to that can parse an xml file and return an elements value. I got some code to build a SAXHandler. I have build the SAXHandler and have compiled it no problem.
    import java.io.*;
    import java.util.Hashtable;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    public class SAXHandler extends DefaultHandler {
    private Hashtable table = new Hashtable();
    private String currentElement = null;
    private String currentValue = null;
    public void setTable(Hashtable table) {
    this.table = table;
    public Hashtable getTable(){
    return table;
    public void startElement(String tag, Attributes attrs)
    throws SAXException {
    currentElement = tag;
    public void characters(char[] ch, int start, int length)
    throws SAXException {
    currentValue = new String(ch, start, length);
    public void endElement(String name) throws SAXException {
    if (currentElement.equals(name)) {
    table.put(currentElement, currentValue);
    I am using the following code to read the file in and parse it.
    public String getXMLElement(){
    try {
    File xmlFile = new File(appDataFile);
    FileReader xmlRead = new FileReader(xmlFile);
    XMLReader xmlParser;
    SAXParserFactory spf = SAXParserFactory.newInstance();
    SAXParser sp = spf.newSAXParser();
    SAXHandler handler = new SAXHandler();
    sp.parse(new InputSource(xmlRead), handler);
    i am recieving the following error when I try to run the servlet
    javax.servlet.ServletException: Cannot allocate servlet instance for path /JDtrack/servlet/JDTrack
    what makes this wierd is that is i take out the line
    sp.parse(new InputSource(xmlRead), handler);
    I do not get the error.
    I am newer to java and could use all the help I can get
    thanks.

    A few things to try to help identify the problem:
    -Create and InputSource before parsing the file. If the InputSource cannot be created, there may be a problem with accessing the file from your servlet.
    -Write a quick program to do the same thing from an application. If you can do this outside the servlet container, it may be a problem from running inside the servlet container.
    -The code you listed is in a try block, however the catch block is not listed. If you are not already doing so, place debug message (to console or log) from inside each catch block. If an exception is thrown but not handled corrrectly, the servlet container may just throw a ServletException.
    Hope this helps.

  • Error in creating JVM, need help!

    I am just trying a simple c program to create a JVM on a linux machine. However it always result errors during compilation. I got no idea what's went wrong.
    I am using jdk1.2.
    #include <jni.h>
    #include <stdlib.h>
    int main( int argc, char *argv[] )
    JNIEnv *env;
    JavaVM *jvm;
    JDK1_1InitArgs vm_args;
    jint res;
    vm_args.version=0x00010001;
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    vm_args.classpath=".:/usr/local/jdk1.2.2/include/linux/jni_md.h:/usr/local/jdk1.2.2/include$
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    res=JNI_CreateJavaVM(&jvm,(void **)&env,&vm_args);
    if (res < 0)
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    (*jvm)->DestroyJavaVM(jvm);
    return(0);
    Errors:
    /tmp/ccvMj208.o: In function `main':
    /home/bettylo/2/invoke.c:12: undefined reference to `JNI_GetDefaultJavaVMInitArgs'
    /home/bettylo/2/invoke.c:14: undefined reference to `JNI_GetDefaultJavaVMInitArgs'
    /home/bettylo/2/invoke.c:15: undefined reference to `JNI_CreateJavaVM'
    collect2: ld returned 1 exit status
    This is the command I use to compile the c program
    gcc -I$JAVA_HOME/include/linux -I$JAVA_HOME/include -o invoke.exe invoke.c

    You can set the LD_LIBRARY_PATH in linux with the follow command :
    Replace whatever specific library path you need in the below example!
    Red Hat Linux specific format :
    export LD_LIBRARY_PATH=<your lib path>:<other paths required>:$LD_LIBRARY_PATH
    Another small example :
    export LD_LIBRARY_PATH=/usr/java/jsdk1.2/jre/lib:$LD_LIBRARY_PATH
    Only after loading the library environment will you be able to run the JVM successfully.
    Your other question on the segmentation core dump is probably due to the fact that you use a (void**) pointer with the old 1.1 vm_args.version. JDK versions lower than 1.2 uses the older interface that is not as portable and takes a JNIEnv pointer in the
    JNI_CreateJavaVM(JavaVM* ,JNIEnv **,JDK1_1InitArgs);
    method but newer 1.2 uses
    JNI_CreateJavaVM(JavaVM* ,void **,JavaVMInitArgs);
    Read the updated docs on 1.2 from your JDK distribution and you will realize that the segmentation crush was due to pointer problems. Note also that the code to invoke the 1.2 version and 1.1 versions are different, so read the docs carefully.

Maybe you are looking for

  • Blue Screen when burning a DVD

    When I try to burn a DVD the systems crash with a blue screen when "compiling media" is at 95%. Windows returns a post error "PX Engine has stopped working properly". I have followed all steps in both pages http://forums.adobe.com/thread/415318?tstar

  • Using samaccountname together with userprincipalname

    Hi, we are using the userprincipalname (user at domain.com) to uniquely identify users on the UME. Is there a way however, to have users logon with just the username and to have the portal add the at_domain.com? This prevents a lot of typo's...... No

  • Heaving troubles with OSX mavericks installing

    It ***** and want to install back my old OSX mountain lion 10.8 on my MacBook Pro

  • Help with wildcard cert

    I have been using a self signed cert with 100% success but we are going to start support outside devices. I am looking for a guide or something to help me. I have the PEM format keys from the Certificate Authority but not sure what to do now. RDS app

  • How copy contents of iPhone to a new machine?

    My old PC died.  I purchased a Mac Pro.  Now I want to use my iPhone on the Mac Pro.  However, iTunes wants to wipe out my music, apps, and other stuff on my iPhone, in order to use it on the new machine. How can I copy my iPhone contents to my new m