You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Ivelin Ivanov <iv...@apache.org> on 2002/11/16 19:58:59 UTC

Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

The latest Cocoon CVS HEAD (2.1) is working again, but...

Read details below:

After I spent a few hours trying to debug the problem,
I realized that there is an issue with Xerces 2.2.0 and 2.2.1 (or
incompatibility between it and the new Xalan libs).
I rolled back to Xerces 2.1.0 and things are looking good again.
I kept the latest versions of Xalan.
The combination appears to work well.

As far as XSLTC is concerned, there appears to be a difference in the
behaviour between its latest version and Xalan.
I am attaching two html files, result from XSLTC and Xalan applied against
the same xml source file.
The stylesheet is also attached.
Xalan produces the results that I would like to see,
although it is possible that my stylesheet is buggy.

Until now all XMLForm demo pages have been working equally good with both
XSLTC and Xalan.
I will now have to switch the demo to Xalan until this difference in the
translators is resolved.


If anybody has a better diagnostics of the problem, please notify the Xalan
group of your findings.


Cheers,

Ivelin


----- Original Message -----
From: "Ramy Mamdouh" <ra...@imkenberg.net>
To: <co...@xml.apache.org>
Sent: Friday, November 15, 2002 5:53 AM
Subject: [XMLFORMS exception] was Re: Exception with current CVS of 2.1


> Hi
>
> using the latest xerces with xmlforms (either mine or the wizard sample)
> resulted in :
>
> /org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> java.util.EmptyStackException/
> Original exception : java.util.EmptyStackException
> at java.util.Stack.peek(Stack.java:82)
> at java.util.Stack.pop(Stack.java:64)
> at org.apache.xml.utils.DOMBuilder.endElement(DOMBuilder.java:375)
> at
>
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1050)
> at
> org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> at
> org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> at
>
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractS
AXTransformer.java:366)
> at
>
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
So
>
> and eveything else seems working properly in Cocoon with the new xerces
> in the COMMON/endorsed.
>
> Anyway to get over this exception?
> Thanks in advance.
>
> Enke, Michael wrote:
>
> >Tomcat looks into all WEB-INF/lib directorys and into
$CATALINA_HOME/common/endorsed.
> >To work properly you must have xerces, xml-apis, xalan and xslt in
common/endorsed.
> >Probably this one are old ones and in latest cocoon you have new one.
> >
> >But be careful with throwing away your old ones: xml-form doesn't work
> >with the new xerces. Error was reported and is reproducable. With old
libs it is working.
> >
> >Michael
> >
> >
> >Jeremy Quinn wrote:
> >
> >
> >>With the latest CVS of cocoon-dev 2.1, I am getting this exception
> >>(below) from TomCat4.1.12 when I access anything in cocoon webapp.
> >>
> >>The problem seems to be : "java.lang.VerifyError: Cannot inherit from
> >>final class", while setting up xerces:
> >>"org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher
> >>".
> >>
> >>Is someone in the middle of working on something that may be causing
> >>this?
> >>
> >>Thanks for any help.
> >>
> >>regards Jeremy
> >>
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>

Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Ivelin Ivanov <iv...@apache.org>.
Sorry for the delay.

XML source doc attached.

----- Original Message -----
From: "Tom Amiro" <To...@Sun.COM>
To: "Ivelin Ivanov" <iv...@apache.org>
Cc: <co...@xml.apache.org>; "Santiago Pericas-Geertsen"
<Sa...@Sun.COM>
Sent: Monday, November 18, 2002 8:06 AM
Subject: Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1


> Hi,
>
> Santiago has started looking at the problem with XSLTC.
> It would help if you could send some XML source.
>
> Tom

Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Tom Amiro <To...@Sun.COM>.
Hi,

Santiago has started looking at the problem with XSLTC. 
It would help if you could send some XML source.

Tom

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


Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Tom Amiro <To...@Sun.COM>.
Sorry. I must have made a mistake cutting and pasting. The
snippets are the same. 

Tom

Tom Amiro wrote:
> 
> Hi,
> 
> The html produced by Xalan vs XSLTC are so different, it is hard to know
> where to begin.
> It definitely looks like an XSLTC  bug.
> 
> Below are snippets from the top showing that things get out of synch
> really fast.
> 
> It would help in debugging this, if you could simplify the xsl and
> provide a small
> XML source for testing and file a bug with Bugzilla.
> 
> Xalan
> -------
> 
> <TBODY>
>   <TR>
>     <TD align=middle colSpan=3>
>       <H1>Confirm Input
>       <HR>
>        </H1></TD></TR>
>   <TR>
>     <TD vAlign=top align=left>
>       <P class=caption>First Name</P></TD>
>     <TD align=left>
>       <TABLE class=plaintable>
>         <TBODY>
>         <TR>
>           <TD align=left>[Donald] </TD></TR></TBODY>
> 
> XSLTC
> ---------
>   <TBODY>
>   <TR>
>     <TD align=middle colSpan=3>
>       <H1>Confirm Input
>       <HR>
>        </H1></TD></TR>
>   <TR>
>     <TD vAlign=top align=left>
>       <P class=caption>First Name</P></TD>
>     <TD align=left>
>       <TABLE class=plaintable>
>         <TBODY>
>         <TR>
>           <TD align=left>[Donald] </TD></TR></TBODY>
> 
> Tom

-- 
 Tom Amiro -- SQE Engineer
 WTS - Interoperability and Quality
 voice: 781-442-0589 Fax: 781-442-1437
 eMail: tom.amiro@.sun.com

Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Tom Amiro <To...@Sun.COM>.
Sorry. I must have made a mistake cutting and pasting. The
snippets are the same. 

Tom

Tom Amiro wrote:
> 
> Hi,
> 
> The html produced by Xalan vs XSLTC are so different, it is hard to know
> where to begin.
> It definitely looks like an XSLTC  bug.
> 
> Below are snippets from the top showing that things get out of synch
> really fast.
> 
> It would help in debugging this, if you could simplify the xsl and
> provide a small
> XML source for testing and file a bug with Bugzilla.
> 
> Xalan
> -------
> 
> <TBODY>
>   <TR>
>     <TD align=middle colSpan=3>
>       <H1>Confirm Input
>       <HR>
>        </H1></TD></TR>
>   <TR>
>     <TD vAlign=top align=left>
>       <P class=caption>First Name</P></TD>
>     <TD align=left>
>       <TABLE class=plaintable>
>         <TBODY>
>         <TR>
>           <TD align=left>[Donald] </TD></TR></TBODY>
> 
> XSLTC
> ---------
>   <TBODY>
>   <TR>
>     <TD align=middle colSpan=3>
>       <H1>Confirm Input
>       <HR>
>        </H1></TD></TR>
>   <TR>
>     <TD vAlign=top align=left>
>       <P class=caption>First Name</P></TD>
>     <TD align=left>
>       <TABLE class=plaintable>
>         <TBODY>
>         <TR>
>           <TD align=left>[Donald] </TD></TR></TBODY>
> 
> Tom

-- 
 Tom Amiro -- SQE Engineer
 WTS - Interoperability and Quality
 voice: 781-442-0589 Fax: 781-442-1437
 eMail: tom.amiro@.sun.com

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


Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Joerg Heinicke <jo...@gmx.de>.
What's different? ;-)

Joerg

Tom Amiro wrote:
> Hi,
> 
> The html produced by Xalan vs XSLTC are so different, it is hard to know
> where to begin.
> It definitely looks like an XSLTC  bug.
> 
> Below are snippets from the top showing that things get out of synch
> really fast.
> 
> It would help in debugging this, if you could simplify the xsl and
> provide a small
> XML source for testing and file a bug with Bugzilla.
> 
> Xalan
> -------
> 
> <TBODY>
>   <TR>
>     <TD align=middle colSpan=3>
>       <H1>Confirm Input
>       <HR>
>        </H1></TD></TR>
>   <TR>
>     <TD vAlign=top align=left>
>       <P class=caption>First Name</P></TD>
>     <TD align=left>
>       <TABLE class=plaintable>
>         <TBODY>
>         <TR>
>           <TD align=left>[Donald] </TD></TR></TBODY>
> 
> XSLTC
> ---------
>   <TBODY>
>   <TR>
>     <TD align=middle colSpan=3>
>       <H1>Confirm Input
>       <HR>
>        </H1></TD></TR>
>   <TR>
>     <TD vAlign=top align=left>
>       <P class=caption>First Name</P></TD>
>     <TD align=left>
>       <TABLE class=plaintable>
>         <TBODY>
>         <TR>
>           <TD align=left>[Donald] </TD></TR></TBODY>
> 
> Tom


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


Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Tom Amiro <to...@sun.com>.
Hi,

The html produced by Xalan vs XSLTC are so different, it is hard to know
where to begin.
It definitely looks like an XSLTC  bug.

Below are snippets from the top showing that things get out of synch
really fast.

It would help in debugging this, if you could simplify the xsl and
provide a small
XML source for testing and file a bug with Bugzilla.

Xalan
-------

<TBODY>
  <TR>
    <TD align=middle colSpan=3>
      <H1>Confirm Input
      <HR>
       </H1></TD></TR>
  <TR>
    <TD vAlign=top align=left>
      <P class=caption>First Name</P></TD>
    <TD align=left>
      <TABLE class=plaintable>
        <TBODY>
        <TR>
          <TD align=left>[Donald] </TD></TR></TBODY>

XSLTC
---------
  <TBODY>
  <TR>
    <TD align=middle colSpan=3>
      <H1>Confirm Input
      <HR>
       </H1></TD></TR>
  <TR>
    <TD vAlign=top align=left>
      <P class=caption>First Name</P></TD>
    <TD align=left>
      <TABLE class=plaintable>
        <TBODY>
        <TR>
          <TD align=left>[Donald] </TD></TR></TBODY>

Tom




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


Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Tom Amiro <to...@sun.com>.
Hi,

The html produced by Xalan vs XSLTC are so different, it is hard to know
where to begin.
It definitely looks like an XSLTC  bug.

Below are snippets from the top showing that things get out of synch
really fast.

It would help in debugging this, if you could simplify the xsl and
provide a small
XML source for testing and file a bug with Bugzilla.

Xalan
-------

<TBODY>
  <TR>
    <TD align=middle colSpan=3>
      <H1>Confirm Input
      <HR>
       </H1></TD></TR>
  <TR>
    <TD vAlign=top align=left>
      <P class=caption>First Name</P></TD>
    <TD align=left>
      <TABLE class=plaintable>
        <TBODY>
        <TR>
          <TD align=left>[Donald] </TD></TR></TBODY>

XSLTC
---------
  <TBODY>
  <TR>
    <TD align=middle colSpan=3>
      <H1>Confirm Input
      <HR>
       </H1></TD></TR>
  <TR>
    <TD vAlign=top align=left>
      <P class=caption>First Name</P></TD>
    <TD align=left>
      <TABLE class=plaintable>
        <TBODY>
        <TR>
          <TD align=left>[Donald] </TD></TR></TBODY>

Tom




Re: [XMLFORMS exception] was Re: Exception with current CVS of 2.1

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
On Saturday, Nov 16, 2002, at 18:58 Europe/London, Ivelin Ivanov wrote:

> Until now all XMLForm demo pages have been working equally good with 
> both
> XSLTC and Xalan.
> I will now have to switch the demo to Xalan until this difference in 
> the
> translators is resolved.
>

One thing I noticed recently, not to do with XMLForm, but differences 
between Xalan and XSLTC, is that the javascripts that make 
'pretty-content' view expand and collapse in Mozilla only work when you 
have used Xalan to run 'simple-xml2html.xsl' (distributed with Cocoon), 
not XSLTC.

Sorry, but I have not investigated what is going on.


regards Jeremy


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