You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Drew Davidson <dr...@ognl.org> on 2003/01/14 19:54:48 UTC

Style task failure

I'm using the <style> task to run a DocBook document and I'm getting the 
following exception:

    [style] : Fatal Error! org.apache.xml.dtm.DTMException: No more DTM 
IDs are available Cause: org.apache.xml.dtm.DTMException: No more DTM 
IDs are available

Any clues as to what's causing this?

I'm using Ant 1.5.1, saxon651.jar, docbook-xsl-1.56.1, docbkx412.

- Drew

-- 
+---------------------------------+
< Drew Davidson | OGNL Technology >
+---------------------------------+
|  Email: drew@ognl.org          /
|    Web: http://www.ognl.org   /
|    Vox: (520) 531-1966       <
|    Fax: (520) 531-1965        \
| Mobile: (520) 405-2967         \
+---------------------------------+



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Style task failure

Posted by Drew Davidson <dr...@ognl.org>.
J.Pietschmann wrote:

> Drew Davidson wrote:
>
>> It would appear that way.  How do I make it see Saxon first?  I tried 
>> the <classpath> entry within the <style> task but that apparently 
>> doesn't work.
>
>
> The problem is that the buggy Xalan is in the bootclasspath, because
> it's part of the JRE. You can move Saxon (or a more recent Xalan)
> into the JRE's lib/endorsed directory, or fiddle with the bootclasspath
> if you know what you are doing (you'll need the <java> task for this,
> I think).

The JRE's lib/endorsed directory worked like a charm!  It's tons faster 
now, also.

- Drew

-- 
+---------------------------------+
< Drew Davidson | OGNL Technology >
+---------------------------------+
|  Email: drew@ognl.org          /
|    Web: http://www.ognl.org   /
|    Vox: (520) 531-1966       <
|    Fax: (520) 531-1965        \
| Mobile: (520) 405-2967         \
+---------------------------------+




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Style task failure

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Drew Davidson wrote:
> It would appear that way.  How do I make it see Saxon first?  I tried 
> the <classpath> entry within the <style> task but that apparently 
> doesn't work.

The problem is that the buggy Xalan is in the bootclasspath, because
it's part of the JRE. You can move Saxon (or a more recent Xalan)
into the JRE's lib/endorsed directory, or fiddle with the bootclasspath
if you know what you are doing (you'll need the <java> task for this,
I think).


> Dale's suggestion of backing down to 1.4.0 worked.  Hmmm...

Different Xalan versions tend to have different bugs.

J.Pietschmann



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Style task failure

Posted by Drew Davidson <dr...@ognl.org>.
Nicola Ken Barozzi wrote:

> Dale Anson wrote:
>
>> I ran into this problem right after upgrading java from 1.4.0 to 
>> 1.4.1. I reverted to 1.4.0 and the problem went away. I didn't dig 
>> too deep, but it appears to be a glitch in the java 1.4.1 xml apis.
>
> I saw this DTM stuff error in a bugged version of Xalan. So it seems 
> you're not using Saxon after all. I'd suggest you to add latest Xalan 
> or something else as the endorsed xslt system in the endorsed dir in 
> the JDK installation.

It would appear that way.  How do I make it see Saxon first?  I tried 
the <classpath> entry within the <style> task but that apparently 
doesn't work.

Dale's suggestion of backing down to 1.4.0 worked.  Hmmm...

- Drew

-- 
+---------------------------------+
< Drew Davidson | OGNL Technology >
+---------------------------------+
|  Email: drew@ognl.org          /
|    Web: http://www.ognl.org   /
|    Vox: (520) 531-1966       <
|    Fax: (520) 531-1965        \
| Mobile: (520) 405-2967         \
+---------------------------------+




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Style task failure

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Dale Anson wrote:
> I ran into this problem right after upgrading java from 1.4.0 to 1.4.1. 
> I reverted to 1.4.0 and the problem went away. I didn't dig too deep, 
> but it appears to be a glitch in the java 1.4.1 xml apis.

I saw this DTM stuff error in a bugged version of Xalan. So it seems 
you're not using Saxon after all. I'd suggest you to add latest Xalan or 
something else as the endorsed xslt system in the endorsed dir in the 
JDK installation.

> Drew Davidson wrote:
> 
>> I'm using the <style> task to run a DocBook document and I'm getting 
>> the following exception:
>>
>>    [style] : Fatal Error! org.apache.xml.dtm.DTMException: No more DTM 
>> IDs are available Cause: org.apache.xml.dtm.DTMException: No more DTM 
>> IDs are available
>>
>> Any clues as to what's causing this?
>>
>> I'm using Ant 1.5.1, saxon651.jar, docbook-xsl-1.56.1, docbkx412.


-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Style task failure

Posted by Dale Anson <da...@germane-software.com>.
I ran into this problem right after upgrading java from 1.4.0 to 1.4.1. 
I reverted to 1.4.0 and the problem went away. I didn't dig too deep, 
but it appears to be a glitch in the java 1.4.1 xml apis.

Dale Anson
danson@germane-software.com


Drew Davidson wrote:

> I'm using the <style> task to run a DocBook document and I'm getting 
> the following exception:
>
>    [style] : Fatal Error! org.apache.xml.dtm.DTMException: No more DTM 
> IDs are available Cause: org.apache.xml.dtm.DTMException: No more DTM 
> IDs are available
>
> Any clues as to what's causing this?
>
> I'm using Ant 1.5.1, saxon651.jar, docbook-xsl-1.56.1, docbkx412.
>
> - Drew
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>