#8 Running the example program provided in the documentation.

crash
closed-later
Tom Bradford
1
2004-07-31
2004-04-26
Akshay R
No

Hi all,

Hope I'm posting this to the right place. If not, my
apologies.

I've just installed dbXML and have already created a
collection and assigned documents to the collection
through the command-line. I'm now trying to access the
collection using the Java API; in particular, I'm trying to
run the example program (Retrieval Example) given in the
documentation.

Unfortunately, I get the following exception thrown at
me:-

FATAL ERROR: Could not create default SAX Parser
Factory
org.xml.sax.SAXNotRecognizedException: Feature: http:
//xml.org/sax/features/namespace-prefixes
at org.apache.xerces.jaxp.SAXParserFactoryImpl.
setFeature(SAXParserFactoryImpl.java:100)
at org.apache.xmlrpc.XmlRpc.<clinit>(XmlRpc.java:
170)
at com.dbxml.db.client.xmlrpc.ConnectionManager.
<clinit>(ConnectionManager.java:110)
at quascade.populator.interactors.nxdb.dbxml.
Example1.main(Example1.java:20)
at sun.reflect.NativeMethodAccessorImpl.
invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.
invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.
invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.
main(Unknown Source)

If it's any help, I'm running JDK 1.4.02 and am using
IntelliJ IDEA IDE to code/run the program.

Could someone guide me as to what I should do next?
Any help would be deeply appreciated.

Thanking you,
Akshay R.

Discussion

  • Tom Bradford
    Tom Bradford
    2004-06-23

    Logged In: YES
    user_id=35410

    It would seem as though your java environment is using an
    XML parser that doesn't support the SAX namespace-prefixes
    feature. This is partially a bug because the dbXML client
    *shouldn't* blow up if that happens, but you should be using
    a parser that supports that feature... particularly Xerces,
    which is actually included as part of the dbXML/java/lib
    directory.

    Hope that helps, and I'll look into making the XML
    bootstrapping a little more robust.

     
  • Tom Bradford
    Tom Bradford
    2004-06-23

    • milestone: 351571 -->
    • priority: 5 --> 1
    • assigned_to: bradford --> nobody
    • labels: 583147 -->
     
  • Tom Bradford
    Tom Bradford
    2004-06-23

    • labels: --> XML/DTSM Classes
    • milestone: --> crash
    • assigned_to: nobody --> bradford
    • status: open --> open-later
     
  • Tom Bradford
    Tom Bradford
    2004-07-31

    • status: open-later --> closed-later