Menu

Couldn't start Ashpool: SAX2 driver class

Help
sdw
2004-12-06
2013-04-17
  • sdw

    sdw - 2004-12-06

    After running treebeard.bat on Win XP using the sun jdk 1.5.0

    I get the following error:

    Couldn't start Ashpool: java.sql.SQLException: Could not open datastore: SAX2 dr
    iver class org.apache.crimson.parser.XMLReaderImpl not found
    java.sql.SQLException: Could not open datastore: SAX2 driver class org.apache.cr
    imson.parser.XMLReaderImpl not found
            at com.rohanclan.ashpool.jdbc.Driver.connect(Driver.java:141)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at com.robrohan.tools.AshpoolDB.startUp(Unknown Source)
            at com.robrohan.fangorn.Fangorn.<init>(Unknown Source)
            at com.robrohan.fangorn.Fangorn.main(Unknown Source)
    Exception in thread "main" java.lang.NullPointerException
            at com.robrohan.tools.AshpoolDB.executeQuery(Unknown Source)
            at com.robrohan.fangorn.Fangorn.<init>(Unknown Source)
            at com.robrohan.fangorn.Fangorn.main(Unknown Source)

    Any suggestions? And is the source code for 0.9 downloadable?

    Cheers,
    Scott

     
    • Rob

      Rob - 2004-12-06

      I havent tested it with 1.5, It looks like 1.5 doesnt have the crimson xml parser by default - same error on Linux I think.

      As for the source you can check it out via cvs, but I havent made a src distro for it yet. Most java IDEs can do cvs check out. Follow these instructions:

      http://sourceforge.net/cvs/?group_id=57438

       
    • Rob

      Rob - 2004-12-06

      btw

      (dir) fangorn/
      (dir) appframework_xquery_plugin/

      are the two main modules you'll want (fangorn is the main part of the app)

       
    • sdw

      sdw - 2004-12-06

      Thanks for the quick reply. How do you set the sax driver Ashpool uses?

       
    • Rob

      Rob - 2004-12-06

      Actually your right it's not Treebeard it's self...

      http://sourceforge.net/projects/ashpool

      cvs: http://sourceforge.net/cvs/?group_id=73642
      module: (dir) Tessier/

      Off the top of my head, it uses whatever you have setup as the default parser (it's some java system config file) not sure where it is, but all java programs should use it so a quick google should turn something up.

       
    • Rob

      Rob - 2004-12-06

      btw a quick way to check ashpool by itsself is

      C:\Program Files\Treebeard>java -jar Ashpool.jar .\config
      +===============================+
      |    Ashpool  XML Database&#9559;    |
      |   Copyright 2003  Rob Rohan   |
      +===============================+
      Datastore : [.\config]
      Scripting : [  OK  ]
      <   Welcome to Ashpool  >
      << Type 'help;' for help >>

      Ashpool~# sys;
      Available Processors: 1
      Total: 2031616 (1984K  1MB)
      Free : 1781408 (1739K  1MB)
      Max  : 66650112 (65088K  63MB)
      +===================================================+
      SAX Factory      : null
      Transform Factory: null
      SAX Driver       : org.apache.crimson.parser.XMLReaderImpl
      Runtime Version  : 1.4.2_04-b05
      OS Name          : Windows XP
      Processor Type   : x86
      File Encoding    : Cp1252
      User Language    : en
      Script Language  : javascript
      Ashpool~#

       
    • sdw

      sdw - 2004-12-06

      Okay, the isssue does seem to be with ashpool. Looks like it is probably in com.rohanclan.ashpool.core.BasixXslEngine

      looks like it hard codes using saxon and the crimson parser.

      It'll probably take me a while to get the build environment together (any idea where the crypto package is ?) to test solutions, but I'll post whatever solution I find.

      Thanks for the help

      Scott

       
    • Rob

      Rob - 2004-12-06

      I'll try to fix it tonight if you dont beat me to it - if you just delete all references to the crypto stuff it'll compile fine (the crypto stuff it part of my bread and butter and I should have removed it from cvs) - hard coding :-p I shall beat myself when I get home

       
    • sdw

      sdw - 2004-12-06

      okay commented out line 85 in com/rohanclan/ashpool/core/BasixXslEngine.java

      System.setProperty("org.xml.sax.driver", SAXDriver);

      This allows the system to use its default sax driver. I just replaced the BasicXslEngine class file in the Treebeard Ashpool.jar  and Treebeard starts now.
      No idea how this will affect older versions of the jre but WFM :)

      Cheers,
      Scott

       
    • iandl

      iandl - 2007-05-11

      Tried the same solution (recompiling the BasicXSLEngine.java class): received a couple of errors, see below, regarding jimi and avalon which couldn't be resolved (the remaining errors are my own from Windows environment variables in the CLASSPATH) and where it is not clear where you have these jar files from.

      Would it not be sensible, if the code has been updated since 2004 to place a new compiled version which does not have the above hard-coding problem in the public domain?

      D:\Programme\Treebeard>javac -Xlint -classpath "%CLASSPATH%;.\treebeard.jar;.\re
      gexp.jar;.\Ashpool.jar;.\fop.jar;.\avalon.jar;.\xercesImpl.jar;.\bsh.jar" D:\usr
      \src\java\BasicXSLEngine.java
      warning: [path] bad path element "%XMLjars%\XML.jar": no such file or directory
      warning: [path] bad path element "%XMLjars%\ErrorList.jar": no such file or dire
      ctory
      warning: [path] bad path element "%XMLjars%\SideKick.jar": no such file or direc
      tory
      warning: [path] bad path element "%XSLTjars%\Xalan.jar": no such file or directo
      ry
      warning: [path] bad path element "%XSLTjars%\xercesImpl.jar": no such file or di
      rectory
      warning: [path] bad path element "%XSLT%\XercesPlugin.jar": no such file or dire
      ctory
      warning: [path] bad path element "%XSLTjars%\saxon8.jar": no such file or direct
      ory
      warning: [path] bad path element ".\jimi-1.0.jar": no such file or directory
      warning: [path] bad path element ".\avalon-framework-cvs-20020806.jar": no such
      file or directory
      D:\usr\src\java\BasicXSLEngine.java:78: warning: [unchecked] unchecked call to a
      dd(E) as a member of the raw type java.util.Vector
                      params.add(name);
                                ^
      D:\usr\src\java\BasicXSLEngine.java:79: warning: [unchecked] unchecked call to a
      dd(E) as a member of the raw type java.util.Vector
                      params.add(value);
                                ^
      11 warnings

      Yours,

      Ian

       
      • Rob

        Rob - 2007-05-11
         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.