• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

nullpointer exception in getAsString of tiles 3.0.4 with EL expressions

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having an issue with configuring tiles 3.0.4 with spring 3.2.10

the following layout.jsp file succeeds to get the title which is set via value=, while the css and footer which is set via the el functionality fails
with a nullpointerexception..
but the footer only fails in getAsString, but not in insertAttribute, so i believe it should work in getAsString as well.
Am I missing something?

==================================================================================================
the error is:
DEBUG org.apache.tiles.template.GetAsStringModel - Ignoring exception
java.lang.NullPointerException
at org.apache.tiles.template.GetAsStringModel.renderAttribute(GetAsStringModel.java:177)
at org.apache.tiles.template.GetAsStringModel.execute(GetAsStringModel.java:122)
at org.apache.tiles.jsp.taglib.GetAsStringTag.doTag(GetAsStringTag.java:261)
at org.apache.jsp.client.default_.layout.layout_jsp._jspx_meth_tiles_005fgetAsString_005f1(layout_jsp.java:258)
at org.apache.jsp.client.default_.layout.layout_jsp._jspService(layout_jsp.java:132)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

==============================================================================
I have a tiles_en.xml of:


=================================================================================================
layout.jsp:
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Somebody has moved your post because the Ranch Office forum where you posted is intended for other discussions, about the website itself.
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic