• 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

formatDate tag giving NullPointerException in resin

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am migration from websphere to resin and in this process i came across a exception caused by formatDate jstl tag while running in resin. It was working fine when its running in websphere. These are the tags used by me. I am resin 3.1.6 .

<fmt:formatDate value="${ixxxxxx}" type="date" pattern="MM/dd/yyyy" var="issueDate" />
<fmt:formatDate value="${ixxxxxx}" type="date" pattern="EEEE" var="issueDay" />

the exception its giving is

713212 [2010-03-10 10:55:20,762] [http--8080-10] ERROR org.apache.tiles.impl.BasicTilesContainer - Error rendering tile
java.lang.NullPointerException
at com.caucho.server.connection.RequestWrapper.isSecure(RequestWrapper.java:296)
at com.caucho.server.connection.RequestAdapter.getCookieName(RequestAdapter.java:463)
at com.caucho.server.connection.RequestAdapter.getSession(RequestAdapter.java:387)
at com.caucho.server.webapp.DispatchRequest.getSession(DispatchRequest.java:448)
at org.springframework.web.servlet.support.JstlUtils$SpringLocalizationContext.getLocale(JstlUtils.java:120)
at org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.getFormattingLocale(SetLocaleSupport.java:256)
at org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.doEndTag(FormatDateSupport.java:116)


Can some suggest me what is going wrong here.
Thanks
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"naveen javaguy", please check your private messages for an important administrative matter.
 
reply
    Bookmark Topic Watch Topic
  • New Topic