Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000100 [Resin] minor always 04-13-05 00:00 05-11-05 00:00
Reporter user121 View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version 3.0.12
Summary 0000100: Exception when calling EL methods from JSP
Description RSN-91
I have just made my first function call-back from JSP to Java. My code works in Tomcat 5.0.28 but fails in Resin 3.0.12 with the following exception

java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.caucho.el.FunctionExpr.evalObject(FunctionExpr.java:101)
    at com.caucho.el.Expr.print(Expr.java:275)
    at _jsp._t1__jsp._jspService(_t1__jsp.java:28)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:63)
    at com.caucho.jsp.Page.pageservice(Page.java:570)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:341)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:467)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
    at java.lang.Thread.run(Thread.java:534)

From what I can see in the debugger the problem may be that the Method.invoke gets incorrect arguments.

The TLD description is

        <function-signature>
            java.lang.String formatNumber(java.lang.Double, int, char, int)
        </function-signature>

and the argument passed in Method.invoke contains is displayed in Eclipse as a [Double, Integer, ",", Integer].

The JSP-snippet is

${axs:formatNumber(123.456789, 0, ',', 3) }

Additional Information Windows XP, java 1.4.2_08
Attached Files

- Relationships

- Notes
(0000107)
ferg
04-13-05 00:00

jsp/18i6
 

- Issue History
Date Modified Username Field Change
04-13-05 00:00 user121 New Issue
11-30-05 00:00 administrator Fixed in Version  => 3.0.13


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