[
https://issues.apache.org/jira/browse/TILES-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mck SembWever updated TILES-499:
--------------------------------
Attachment: TILES-499.patch
TILES-499.patch should fix it.
It ensures the deprecated UrlDefinitionsFactory is initialised so that it has
assigned its LocaleResolver and DefinitionsDAO (and applicationContext is set
inside the DefinitionsDAO).
> NPE in UnresolvingLocaleDefinitionsFactory
> ------------------------------------------
>
> Key: TILES-499
> URL: https://issues.apache.org/jira/browse/TILES-499
> Project: Tiles
> Issue Type: Bug
> Affects Versions: 2.2.1
> Reporter: Nigel Sim
> Fix For: 2.2.2
>
> Attachments: TILES-499.patch, tiles-npe.zip
>
>
> When using Tiles 2.2.1 in a project on it's own, configured using
> org.apache.tiles.web.startup.TilesFilter, I get an NPE whenever the tiles
> definition is inserted using JSP. This same code works fine with Tile 2.2.0.
> See attached Maven project:
> java.lang.NullPointerException
>
> org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory.getDefinition(UnresolvingLocaleDefinitionsFactory.java:102)
>
> org.apache.tiles.impl.BasicTilesContainer.getDefinition(BasicTilesContainer.java:364)
>
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:618)
>
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
>
> org.apache.tiles.template.InsertDefinitionModel.end(InsertDefinitionModel.java:105)
>
> org.apache.tiles.jsp.taglib.InsertDefinitionTag.doTag(InsertDefinitionTag.java:278)
>
> org.apache.jsp.index_jsp._jspx_meth_tiles_005finsertDefinition_005f0(index_jsp.java:81)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.tiles.web.startup.TilesFilter.doFilter(TilesFilter.java:75)
--
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