You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by David Crossley <cr...@indexgeo.com.au> on 2001/12/30 15:42:53 UTC

List of Docs fails during build docs

The "List of Docs" functionality to generate a Table of
Contents has a strange problem. Everything is OK when
you run it as a webapp. See the Welcome page under
the "Documentation" section.

However, if this is linked in to the actual xdocs, then i get
a fatal error when running "build docs". I have disabled the
link in xdocs/book.xml by commenting it out. Bring it back
and you will see the following error.

------
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.sitemap.ContentAggregator to the pool
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.transformation.TraxTransformer to the pool
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.transformation.TraxTransformer to the pool
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.transformation.TraxTransformer to the pool
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to the pool
DEBUG   10097   [        ] (): Recycling of CachingStreamPipeline
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.serialization.LinkSerializer to the pool
DEBUG   10097   [        ] (): Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to the pool
FATAL_E 10097   [        ] (): Error in TraxTransformer: javax.xml.transform.TransformerException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
javax.xml.transform.TransformerException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at org.apache.xalan.transformer.ClonerToResultTree.cloneToResultTree(ClonerToResultTree.java:269)
        at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:152)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:420)
...
...
...
        at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
        at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:48)
        at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:115)
...
...
...
------

Does anyone have a clue as to the cause of such a thing?
--David Crossley

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: List of Docs fails during build docs

Posted by David Crossley <cr...@indexgeo.com.au>.
The "List of Docs" is now working properly. Try it out
via the "Documentation" section of the Welcome page,
or via the side-panel of a top-level document page.

I have found the cause of the bug shown below.
To Bugzilla - when i have a better grasp of it.
It is a strange effect from one particular menu item
in developing/book.xml ... API (Javadoc)
Anyway, doclist2document.xsl has a workaround.
--David

David Crossley wrote:
> The "List of Docs" functionality to generate a Table of
> Contents has a strange problem. Everything is OK when
> you run it as a webapp. See the Welcome page under
> the "Documentation" section.
> 
> However, if this is linked in to the actual xdocs, then i get
> a fatal error when running "build docs". I have disabled the
> link in xdocs/book.xml by commenting it out. Bring it back
> and you will see the following error.
<snip/>
FATAL_E 10097   [        ] (): Error in TraxTransformer:
javax.xml.transform.TransformerException:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
<snip/>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org