You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Jeroen van Vianen (JIRA)" <ji...@apache.org> on 2009/11/12 17:51:13 UTC

[jira] Created: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
----------------------------------------------------------

                 Key: TILES-484
                 URL: https://issues.apache.org/struts/browse/TILES-484
             Project: Tiles
          Issue Type: Bug
          Components: tiles-extras
    Affects Versions: 2.2.1
         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
            Reporter: Jeroen van Vianen


The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.

In my web.xml I have:

    <listener>
        <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
    </listener>

And a few definitions in /WEB-INF/tiles.xml

If I add a file META-INF/tiles.xml with a bogus definition it works.

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


[jira] Closed: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli closed TILES-484.
----------------------------------

    Resolution: Fixed

> NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
> ----------------------------------------------------------
>
>                 Key: TILES-484
>                 URL: https://issues.apache.org/struts/browse/TILES-484
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-extras
>    Affects Versions: 2.2.1
>         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
>            Reporter: Jeroen van Vianen
>            Assignee: Antonio Petrelli
>         Attachments: patch.txt
>
>
> The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.
> In my web.xml I have:
>     <listener>
>         <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
>     </listener>
> And a few definitions in /WEB-INF/tiles.xml
> If I add a file META-INF/tiles.xml with a bogus definition it works.

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


[jira] Updated: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

Posted by "Alvin Singh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alvin Singh updated TILES-484:
------------------------------

    Attachment: patch.txt

Patch attached.

> NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
> ----------------------------------------------------------
>
>                 Key: TILES-484
>                 URL: https://issues.apache.org/struts/browse/TILES-484
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-extras
>    Affects Versions: 2.2.1
>         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
>            Reporter: Jeroen van Vianen
>         Attachments: patch.txt
>
>
> The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.
> In my web.xml I have:
>     <listener>
>         <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
>     </listener>
> And a few definitions in /WEB-INF/tiles.xml
> If I add a file META-INF/tiles.xml with a bogus definition it works.

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


[jira] Updated: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli updated TILES-484:
-----------------------------------

    Fix Version/s: 2.2.2

> NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
> ----------------------------------------------------------
>
>                 Key: TILES-484
>                 URL: https://issues.apache.org/struts/browse/TILES-484
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-extras
>    Affects Versions: 2.2.1
>         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
>            Reporter: Jeroen van Vianen
>            Assignee: Antonio Petrelli
>             Fix For: 2.2.2
>
>         Attachments: patch.txt
>
>
> The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.
> In my web.xml I have:
>     <listener>
>         <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
>     </listener>
> And a few definitions in /WEB-INF/tiles.xml
> If I add a file META-INF/tiles.xml with a bogus definition it works.

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


[jira] Assigned: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli reassigned TILES-484:
--------------------------------------

    Assignee: Antonio Petrelli

> NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
> ----------------------------------------------------------
>
>                 Key: TILES-484
>                 URL: https://issues.apache.org/struts/browse/TILES-484
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-extras
>    Affects Versions: 2.2.1
>         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
>            Reporter: Jeroen van Vianen
>            Assignee: Antonio Petrelli
>         Attachments: patch.txt
>
>
> The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.
> In my web.xml I have:
>     <listener>
>         <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
>     </listener>
> And a few definitions in /WEB-INF/tiles.xml
> If I add a file META-INF/tiles.xml with a bogus definition it works.

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


[jira] Updated: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli updated TILES-484:
-----------------------------------


Fixed by applying patch by Alvin Singh.
Thanks Alvin!

> NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
> ----------------------------------------------------------
>
>                 Key: TILES-484
>                 URL: https://issues.apache.org/struts/browse/TILES-484
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-extras
>    Affects Versions: 2.2.1
>         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
>            Reporter: Jeroen van Vianen
>            Assignee: Antonio Petrelli
>         Attachments: patch.txt
>
>
> The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.
> In my web.xml I have:
>     <listener>
>         <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
>     </listener>
> And a few definitions in /WEB-INF/tiles.xml
> If I add a file META-INF/tiles.xml with a bogus definition it works.

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


[jira] Commented: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47060#action_47060 ] 

Antonio Petrelli commented on TILES-484:
----------------------------------------

If you want this bug to be resolved early, please post a patch.

> NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
> ----------------------------------------------------------
>
>                 Key: TILES-484
>                 URL: https://issues.apache.org/struts/browse/TILES-484
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-extras
>    Affects Versions: 2.2.1
>         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
>            Reporter: Jeroen van Vianen
>
> The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml, because applicationContext.getResources() returns null rather than an empty Set in those cases.
> In my web.xml I have:
>     <listener>
>         <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
>     </listener>
> And a few definitions in /WEB-INF/tiles.xml
> If I add a file META-INF/tiles.xml with a bogus definition it works.

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