You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Bachran, Michael" <MB...@microstrategy.com> on 2000/08/29 13:20:00 UTC

Cocoon2: SAXException while building docs

Does anyone of you have an idea why this error occurs? I downloaded the
snapshot from 2000/08/29 and just extracted it.

Buildfile: .\build.xml

init:
      ------------------- Cocoon 1.8-dev [1999-2000] ---------

prepare-docs:
  [replace] Replacing ./xdocs/dtd/ --> dtd/
  [replace] Replacing ./xdocs/dtd/ --> dtd/
   [delete] Deleting: D:\Cocoon2\xdocs\book.xml

docs:
     [java] [StyleBook] Overriding targetDirectory="./build/docs" (Old=".")
     [java] [StyleBook] Project URL: "sbk:/sources/book.xml"
     [java] [BasicEngine] Initializing
     [java] [Loader] Parsing Project file
     [java] [XalanProcessor] Applying XSL sheet
"sbk:/style/stylesheets/book2project.xsl"
     [java] [XalanProcessor] Applying XSL sheet
"sbk:/style/stylesheets/directory2project.xsl"
     [java] [XercesParser] String index out of range: 125
     [java] org.apache.stylebook.CreationException: SAXException caught
while parsing
     [java] 	at
org.apache.stylebook.parsers.XercesParser.parse(XercesParser.java:55)
     [java] 	at
org.apache.stylebook.parsers.CachingParser.parse(CachingParser.java:92)
     [java] 	at
org.apache.stylebook.parsers.AbstractParser.parse(AbstractParser.java:28)
     [java] 	at
org.apache.stylebook.producers.ParserProducer.produce(ParserProducer.java:26
)
     [java] 	at org.apache.stylebook.Project.processEntry(Project.java,
Compiled Code)
     [java] 	at
org.apache.stylebook.Project.processNodeList(Project.java, Compiled Code)
     [java] 	at org.apache.stylebook.Project.<init>(Project.java:42)
     [java] 	at org.apache.stylebook.Loader.load(Loader.java, Compiled
Code)
     [java] 	at
org.apache.stylebook.StyleBook.getProject(StyleBook.java:124)
     [java] 	at org.apache.stylebook.StyleBook.main(StyleBook.java,
Compiled Code)
     [java] [StyleBook] Caught org.apache.stylebook.LoadingException:
Processing Entry (SAXException caught while parsing)
     [java] [StyleBook] Error creating project
     [java] Result: 1


Thanks Michael

Re: Cocoon2: SAXException while building docs

Posted by Hans Ulrich Niedermann <ni...@isd.uni-stuttgart.de>.
"Bachran, Michael" <MB...@microstrategy.com> writes:

> Does anyone of you have an idea why this error occurs? I downloaded the
> snapshot from 2000/08/29 and just extracted it.

At first look, it seems to be a Xerces bug. At least using yesterday's
CVS Xerces "./build.sh docs" barfs later (complains about lacking
uniqueness of unique ID type attributes in todo.xml). 

There was a Xerces bug some time ago mishandling namespaced attributes
in DTDs which resulted in a "String index out of range" error. And I
don't know if the Xerces version included with C2 includes the patch.

Uli

> Buildfile: .\build.xml
> 
> init:
>       ------------------- Cocoon 1.8-dev [1999-2000] ---------
> 
> prepare-docs:
>   [replace] Replacing ./xdocs/dtd/ --> dtd/
>   [replace] Replacing ./xdocs/dtd/ --> dtd/
>    [delete] Deleting: D:\Cocoon2\xdocs\book.xml
> 
> docs:
>      [java] [StyleBook] Overriding targetDirectory="./build/docs" (Old=".")
>      [java] [StyleBook] Project URL: "sbk:/sources/book.xml"
>      [java] [BasicEngine] Initializing
>      [java] [Loader] Parsing Project file
>      [java] [XalanProcessor] Applying XSL sheet
> "sbk:/style/stylesheets/book2project.xsl"
>      [java] [XalanProcessor] Applying XSL sheet
> "sbk:/style/stylesheets/directory2project.xsl"
>      [java] [XercesParser] String index out of range: 125
>      [java] org.apache.stylebook.CreationException: SAXException caught
> while parsing
>      [java] 	at
> org.apache.stylebook.parsers.XercesParser.parse(XercesParser.java:55)
>      [java] 	at
> org.apache.stylebook.parsers.CachingParser.parse(CachingParser.java:92)
>      [java] 	at
> org.apache.stylebook.parsers.AbstractParser.parse(AbstractParser.java:28)
>      [java] 	at
> org.apache.stylebook.producers.ParserProducer.produce(ParserProducer.java:26
> )
>      [java] 	at org.apache.stylebook.Project.processEntry(Project.java,
> Compiled Code)
>      [java] 	at
> org.apache.stylebook.Project.processNodeList(Project.java, Compiled Code)
>      [java] 	at org.apache.stylebook.Project.<init>(Project.java:42)
>      [java] 	at org.apache.stylebook.Loader.load(Loader.java, Compiled
> Code)
>      [java] 	at
> org.apache.stylebook.StyleBook.getProject(StyleBook.java:124)
>      [java] 	at org.apache.stylebook.StyleBook.main(StyleBook.java,
> Compiled Code)
>      [java] [StyleBook] Caught org.apache.stylebook.LoadingException:
> Processing Entry (SAXException caught while parsing)
>      [java] [StyleBook] Error creating project
>      [java] Result: 1
> 
> 
> Thanks Michael