You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2006/10/17 20:34:36 UTC
[jira] Created: (COCOON-1935) [Patch] NPE in ResourceReader when
InputSource returns null on getURI
[Patch] NPE in ResourceReader when InputSource returns null on getURI
---------------------------------------------------------------------
Key: COCOON-1935
URL: http://issues.apache.org/jira/browse/COCOON-1935
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core, - Blocks Framework
Affects Versions: 2.2-dev (Current SVN)
Reporter: Alexander Klimetschek
Priority: Critical
The ResourceReader crashes on a NPE when the InputSource returns a null String in getURI() while checking the cache and the lastmodified value.
The problem was very invisible because the exception was completely hidden due to reflection when calling the ResourceReader from the pipeline.
Problem was triggered by the BlockSource, which falsely returns a null systemId in getURI(). To solve the problem there are two ways, both included as patches: fix the ResourceReader and fix the BlockSource.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (COCOON-1935) [Patch] NPE in ResourceReader when
InputSource returns null on getURI
Posted by "Daniel Fagerstrom (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1935?page=all ]
Daniel Fagerstrom closed COCOON-1935.
-------------------------------------
Resolution: Fixed
Applied (both patches). Thanks for spotting the bug.
> [Patch] NPE in ResourceReader when InputSource returns null on getURI
> ---------------------------------------------------------------------
>
> Key: COCOON-1935
> URL: http://issues.apache.org/jira/browse/COCOON-1935
> Project: Cocoon
> Issue Type: Bug
> Components: * Cocoon Core, - Blocks Framework
> Affects Versions: 2.2-dev (Current SVN)
> Reporter: Alexander Klimetschek
> Priority: Critical
> Attachments: cocoon-blocksource-fix-getURI-NPE.patch, cocoon-core-resourcereader-getURI-NPE.patch
>
>
> The ResourceReader crashes on a NPE when the InputSource returns a null String in getURI() while checking the cache and the lastmodified value.
> The problem was very invisible because the exception was completely hidden due to reflection when calling the ResourceReader from the pipeline.
> Problem was triggered by the BlockSource, which falsely returns a null systemId in getURI(). To solve the problem there are two ways, both included as patches: fix the ResourceReader and fix the BlockSource.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1935) [Patch] NPE in ResourceReader when
InputSource returns null on getURI
Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1935?page=all ]
Alexander Klimetschek updated COCOON-1935:
------------------------------------------
Attachment: cocoon-core-resourcereader-getURI-NPE.patch
To be applied in cocoon root. Affects cocoon-core.
> [Patch] NPE in ResourceReader when InputSource returns null on getURI
> ---------------------------------------------------------------------
>
> Key: COCOON-1935
> URL: http://issues.apache.org/jira/browse/COCOON-1935
> Project: Cocoon
> Issue Type: Bug
> Components: * Cocoon Core, - Blocks Framework
> Affects Versions: 2.2-dev (Current SVN)
> Reporter: Alexander Klimetschek
> Priority: Critical
> Attachments: cocoon-core-resourcereader-getURI-NPE.patch
>
>
> The ResourceReader crashes on a NPE when the InputSource returns a null String in getURI() while checking the cache and the lastmodified value.
> The problem was very invisible because the exception was completely hidden due to reflection when calling the ResourceReader from the pipeline.
> Problem was triggered by the BlockSource, which falsely returns a null systemId in getURI(). To solve the problem there are two ways, both included as patches: fix the ResourceReader and fix the BlockSource.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1935) [Patch] NPE in ResourceReader when
InputSource returns null on getURI
Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1935?page=all ]
Alexander Klimetschek updated COCOON-1935:
------------------------------------------
Attachment: cocoon-blocksource-fix-getURI-NPE.patch
To be applied in cocoon root. Affects the cocoon-blocks-fw-impl module.
> [Patch] NPE in ResourceReader when InputSource returns null on getURI
> ---------------------------------------------------------------------
>
> Key: COCOON-1935
> URL: http://issues.apache.org/jira/browse/COCOON-1935
> Project: Cocoon
> Issue Type: Bug
> Components: * Cocoon Core, - Blocks Framework
> Affects Versions: 2.2-dev (Current SVN)
> Reporter: Alexander Klimetschek
> Priority: Critical
> Attachments: cocoon-blocksource-fix-getURI-NPE.patch, cocoon-core-resourcereader-getURI-NPE.patch
>
>
> The ResourceReader crashes on a NPE when the InputSource returns a null String in getURI() while checking the cache and the lastmodified value.
> The problem was very invisible because the exception was completely hidden due to reflection when calling the ResourceReader from the pipeline.
> Problem was triggered by the BlockSource, which falsely returns a null systemId in getURI(). To solve the problem there are two ways, both included as patches: fix the ResourceReader and fix the BlockSource.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira