You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/09/30 02:02:52 UTC
DO NOT REPLY [Bug 36871] New: -
Null Pointer exception in xsl mode
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36871>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36871
Summary: Null Pointer exception in xsl mode
Product: Fop
Version: 0.20.5
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: mark0978@yahoo.com
When your XSL file contains a condition that isn't met, so that you don't have a
<fo:root to do anything with you get a null pointer execption.
The xsl document looks like:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<xsl:template match="VWSEARCHRESULTS">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
---------
The xml document looks like
<?xml version="1.0" encoding="utf-8" ?>
<VWSEARCHRESULT STATUS="success" XMLNS="https://test.valuewizard.com/webServices">
<FAILUREDETAILS />
<WARNINGDETAILS />
The problem is in the "match=" line in the template. That "match=" statement
fails because there is a trailing S at the end of the word. Rather than
reporting there is nothing to do, you get a Null pointer exception.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Re: DO NOT REPLY [Bug 36871] New: - Null Pointer exception in xsl mode
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 02.10.2005 01:46:48 J.Pietschmann wrote:
> bugzilla@apache.org wrote:
> > When your XSL file contains a condition that isn't met, so that you don't have a
> > <fo:root to do anything with you get a null pointer execption.
>
> Well, the bug report should read "no proper error message
> if there is no fo:root". I vaguely remember Jeremias worked on
> this, unfortunately I don't remember whether this got into
> 0.20.5, and I can't currently test it. Does someone else have
> a 0.20.5 installation ready to run to do a quick test?
>
> J.Pietschmann
If you fill in well-formed XML you'll get a proper error message in the
maintenance branch and in the trunk. In the bug reporter's case however
the stylesheet produced non-wellformed output (the XML started with text
after the XML header). I've fixed the trunk to provide better error
messages.
Jeremias Maerki
Re: DO NOT REPLY [Bug 36871] New: - Null Pointer exception in
xsl mode
Posted by "J.Pietschmann" <j3...@yahoo.de>.
bugzilla@apache.org wrote:
> When your XSL file contains a condition that isn't met, so that you don't have a
> <fo:root to do anything with you get a null pointer execption.
Well, the bug report should read "no proper error message
if there is no fo:root". I vaguely remember Jeremias worked on
this, unfortunately I don't remember whether this got into
0.20.5, and I can't currently test it. Does someone else have
a 0.20.5 installation ready to run to do a quick test?
J.Pietschmann