Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003023 [Resin] major always 10-24-08 05:03 12-15-08 15:53
Reporter vicsanca View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 3.1.6
  Product Build
Summary 0003023: JSTL and empty cookies fails
Description The first time you look with jstl if a cookie is empty/exists server gives nullpointerexception.
Steps To Reproduce
Additional Information Example code working in Tomcat:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" [^] %>
<c:if test="${empty cookie.kk}">
    kk cookien don't exists
</c:if>

Error in resin

java.lang.NullPointerException
    at com.caucho.jsp.el.CookieFieldExpression.getValue(CookieFieldExpression.java:76)
    at com.caucho.el.ValueExpr.getValue(ValueExpr.java:90)
    at com.caucho.el.UnaryExpr.evalBoolean(UnaryExpr.java:141)
    at _jsp._vic._test__jsp._jspService(vic/test.jsp:2)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
    at com.caucho.jsp.Page.pageservice(Page.java:578)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
    at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
    at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
    at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
    at java.lang.Thread.run(Thread.java:619)

Attached Files

- Relationships

- Notes
(0003648)
ferg
12-15-08 15:53

jsp/315o
 

- Issue History
Date Modified Username Field Change
10-24-08 05:03 vicsanca New Issue
11-17-08 05:06 vicsanca Issue Monitored: vicsanca
12-15-08 15:53 ferg Note Added: 0003648
12-15-08 15:53 ferg Assigned To  => ferg
12-15-08 15:53 ferg Status new => closed
12-15-08 15:53 ferg Resolution open => fixed
12-15-08 15:53 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker