You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Rob Berens (JIRA)" <ji...@apache.org> on 2007/01/03 11:41:27 UTC

[jira] Created: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

[PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
---------------------------------------------------------------------------------------------------------

                 Key: COCOON-1976
                 URL: https://issues.apache.org/jira/browse/COCOON-1976
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: POI
    Affects Versions: 2.1.10, 2.1.9, 2.1.11-dev (current SVN), 2.2-dev (Current SVN)
            Reporter: Rob Berens


When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.

This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörg Heinicke reassigned COCOON-1976:
-------------------------------------

    Assignee: Jörg Heinicke

> [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1976
>                 URL: https://issues.apache.org/jira/browse/COCOON-1976
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: POI
>    Affects Versions: 2.1.9, 2.1.10, 2.1.11-dev (current SVN), 2.2-dev (Current SVN)
>            Reporter: Rob Berens
>         Assigned To: Jörg Heinicke
>         Attachments: patch.txt
>
>
> When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.
> This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Closed: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörg Heinicke closed COCOON-1976.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2-dev (Current SVN)
                   2.1.11-dev (current SVN)

Fixed, but in a different way: Instead of null getCurrentElementProcessor() returns now a NoOpElementProcessor instance if the stack of elements is empty.

> [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1976
>                 URL: https://issues.apache.org/jira/browse/COCOON-1976
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: POI
>    Affects Versions: 2.1.9, 2.1.10, 2.1.11-dev (current SVN), 2.2-dev (Current SVN)
>            Reporter: Rob Berens
>         Assigned To: Jörg Heinicke
>             Fix For: 2.1.11-dev (current SVN), 2.2-dev (Current SVN)
>
>         Attachments: patch.txt
>
>
> When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.
> This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Reopened: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörg Heinicke reopened COCOON-1976:
-----------------------------------


My fix screws up at another place: http://marc.info/?l=xml-cocoon-users&m=117510619129904&w=4.

> [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1976
>                 URL: https://issues.apache.org/jira/browse/COCOON-1976
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: POI
>    Affects Versions: 2.1.9, 2.1.10
>            Reporter: Rob Berens
>         Assigned To: Jörg Heinicke
>             Fix For: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN)
>
>         Attachments: patch.txt
>
>
> When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.
> This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörg Heinicke updated COCOON-1976:
----------------------------------

        Fix Version/s:     (was: 2.1.10)
                       2.1.11-dev (Current SVN)
    Affects Version/s:     (was: 2.1.11-dev (Current SVN))
                           (was: 2.2-dev (Current SVN))

> [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1976
>                 URL: https://issues.apache.org/jira/browse/COCOON-1976
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: POI
>    Affects Versions: 2.1.9, 2.1.10
>            Reporter: Rob Berens
>         Assigned To: Jörg Heinicke
>             Fix For: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN)
>
>         Attachments: patch.txt
>
>
> When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.
> This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

Posted by "Rob Berens (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Berens updated COCOON-1976:
-------------------------------

    Attachment: patch.txt

> [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1976
>                 URL: https://issues.apache.org/jira/browse/COCOON-1976
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: POI
>    Affects Versions: 2.1.9, 2.1.10, 2.1.11-dev (current SVN), 2.2-dev (Current SVN)
>            Reporter: Rob Berens
>         Attachments: patch.txt
>
>
> When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.
> This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (COCOON-1976) [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörg Heinicke closed COCOON-1976.
---------------------------------

    Resolution: Fixed

Fixed it now using Rob's initial proposal with null checks.

> [PATCH] NPE in POI ElementProcessorSerializer for characters between startDocument and first StartElement
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1976
>                 URL: https://issues.apache.org/jira/browse/COCOON-1976
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: POI
>    Affects Versions: 2.1.9, 2.1.10
>            Reporter: Rob Berens
>         Assigned To: Jörg Heinicke
>             Fix For: 2.1.11-dev (Current SVN), 2.2-dev (Current SVN)
>
>         Attachments: patch.txt
>
>
> When there are characters (white space) outside elements e.g. between the startDocument() and the first startElement the ElementProcessorSerializer thorws an NPE. This especially occurs in combination with the JXTemplateGenerator, which generates a call to the consumer's contentHandler characters method for the white space between the startDocument() and the first StartElement.
> This issue is solved by the attached patch.txt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.