Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] 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  
Status closed   Product Version 3.0.19
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
    at com.caucho.quercus.env.ServerArrayValue.fillMap(
    at com.caucho.quercus.env.ServerArrayValue.get(
    at com.caucho.quercus.expr.ArrayGetExpr.eval(
    at com.caucho.quercus.expr.Expr.evalString(
    at com.caucho.quercus.expr.AppendExpr.evalString(
    at com.caucho.quercus.expr.IncludeOnceExpr.eval(
    at com.caucho.quercus.program.ExprStatement.execute(
    at .(/Users/sgrimm/resin/resin-3.0.s060510/webapps/ROOT/help.php:2)
Additional Information
Attached Files

- Relationships

- Notes
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.
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.
05-11-06 12:58

The method is not defined in the Resin version of

Steve-Grimms-MacBook% pwd
Steve-Grimms-MacBook% find . -name | xargs grep getRemote
 * <tr><td>REMOTE_ADDR<td>getRemoteAddr()
 * <tr><td>REMOTE_HOST<td>getRemoteHost()
 * <tr><td>REMOTE_USER<td>getRemoteUser()
  public String getRemoteUser();
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