Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
100 | minor | always | 04-13-05 00:00 | 05-11-05 00:00 | |
|
|||||
Reporter: | user121 | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.12 | ||
Product Build: | 3.0.12 | Resolution: | fixed | ||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.13 | ||
|
|||||
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) } |
||||
Steps To Reproduce: | |||||
Additional Information: | Windows XP, java 1.4.2_08 | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|