Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001092 [Quercus] major always 05-10-06 19:59 05-15-06 12:17
Reporter koreth View Status public  
Assigned To
Priority normal Resolution no change required Platform Mac (Intel)
Status closed   OS MacOS X
Projection none   OS Version 10.4
ETA none Fixed in Version Product Version 3.0.19
  Product Build resin-3.0.s060510
Summary 0001092: Quercus references nonexistent HttpServletRequest method
Description com.caucho.quercus.env.ServerArrayValue.fillMap() calls getRemotePort() on the HttpServletRequest object. Unfortunately Resin's HttpServletRequest interface has no getRemotePort() method, so I get a NoSuchMethodError:

com.caucho.quercus.QuercusExecutionException: java.lang.NoSuchMethodError
javax.servlet.http.HttpServletRequest.getRemotePort()I
    at com.caucho.quercus.env.ServerArrayValue.fillMap(ServerArrayValue.java:215)
    at com.caucho.quercus.env.ServerArrayValue.get(ServerArrayValue.java:141)
    at com.caucho.quercus.expr.ArrayGetExpr.eval(ArrayGetExpr.java:92)
    at com.caucho.quercus.expr.Expr.evalString(Expr.java:379)
    at com.caucho.quercus.expr.AppendExpr.evalString(AppendExpr.java:146)
    at com.caucho.quercus.expr.IncludeOnceExpr.eval(IncludeOnceExpr.java:86)
    at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:78)
    at .(/Users/sgrimm/resin/resin-3.0.s060510/webapps/ROOT/help.php:2)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001113)
koreth
05-10-06 20:00

Should be in the "Quercus" category. I didn't get a list of categories to select from when I submitted the bug report.
 
(0001118)
ferg
05-11-06 12:35

Can you check the classpath? You might have a jsdk-23 jar for some reason. The getRemotePort is part of jsdk-24 which is the version Resin 3.0 supports.
 
(0001120)
koreth
05-11-06 12:58

The method is not defined in the Resin version of HttpServletRequest.java:

Steve-Grimms-MacBook% pwd
/Users/sgrimm/resin/resin-3.0.s060510/modules
Steve-Grimms-MacBook% find . -name HttpServletRequest.java | xargs grep getRemote
 * <tr><td>REMOTE_ADDR<td>getRemoteAddr()
 * <tr><td>REMOTE_HOST<td>getRemoteHost()
 * <tr><td>REMOTE_USER<td>getRemoteUser()
  public String getRemoteUser();
Steve-Grimms-MacBook%
 
(0001121)
koreth
05-11-06 13:51

I am a moron. That method is of course in ServletRequest, which HttpServletRequest extends. I'll go check for other jarfiles. Sorry for the noise.
 

- Issue History
Date Modified Username Field Change
05-10-06 19:59 koreth New Issue
05-10-06 20:00 koreth Note Added: 0001113
05-11-06 12:35 ferg Note Added: 0001118
05-11-06 12:35 ferg Project Resin => Quercus
05-11-06 12:58 koreth Note Added: 0001120
05-11-06 13:51 koreth Note Added: 0001121
05-15-06 12:17 ferg Status new => closed
05-15-06 12:17 ferg Resolution open => no change required


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