The following issue has been updated:

    Updater: Yash Talwar (mailto:[EMAIL PROTECTED])
       Date: Thu, 23 Sep 2004 11:18 AM
    Comment:
In my stylesheet, I used <xsl:namespace-alias> as follows:

<xsl:namespace-alias stylesheet-prefix="xhtml" result-prefix="#default"/>

However, I did not declare the default namespace uri.  If I decalre the default 
namespace even with uri as empty string, my application works fine.  So it is a user 
error.  However, NullPointerException is not a good feedback to use for the error.  
The proposed patch provide a more reasonable error message to the user.

    Changes:
             Attachment changed to Patch.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XALANJ-1967?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XALANJ-1967

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XALANJ-1967
    Summary: NullPointerException during transformation in my web application.
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XalanJ2
 Components: 
             Xalan
   Versions:
             CurrentCVS

   Assignee: 
   Reporter: Yash Talwar

    Created: Thu, 23 Sep 2004 11:16 AM
    Updated: Thu, 23 Sep 2004 11:18 AM
Environment: Windows 2000. Xalan Java 2.6.0

Description:
The following error occurs in when I run my application.

----------------------------
java.lang.NullPointerException
at org.apache.xml.serializer.ToHTMLStream.processAttribute(ToHTMLStream.java:957)
at org.apache.xml.serializer.ToHTMLStream.processAttributes(ToHTMLStream.java:1644)
at org.apache.xml.serializer.ToHTMLStream.endElement(ToHTMLStream.java:883)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:708)
----------------------------

My application is big, I cannot provide my application as testcase.  However, I do 
know the reason for this failure.  I will provide a patch that provide a more 
reasonable error message rather than NullPointerException.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to