XalanJ2
  1. XalanJ2
  2. XALANJ-1967

NullPointerException during transformation in my web application.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Labels:
      None
    • 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.

      1. Patch.txt
        5 kB
        Yash Talwar
      2. patch.1967.txt
        4 kB
        Brian Minchau

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12571759 ] jira [ 12595311 ]
        Mark Thomas made changes -
        Workflow jira [ 37439 ] Default workflow, editable Closed status [ 12571759 ]
        Brian Minchau made changes -
        Affects Version/s 2.7.1 [ 10863 ]
        Affects Version/s 2.7 [ 11080 ]
        Brian Minchau made changes -
        Fix Version/s 2.7 [ 11080 ]
        Brian Minchau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Brian Minchau made changes -
        Attachment patch.1967.txt [ 17845 ]
        Brian Minchau made changes -
        Component/s Xalan [ 11321 ]
        Brian Minchau made changes -
        Component/s Xalan [ 11321 ]
        Component/s Diagnostic messages/resources [ 11331 ]
        Yash Talwar made changes -
        Field Original Value New Value
        Attachment Patch.txt [ 17770 ]
        Yash Talwar created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Yash Talwar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development