Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7933933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:28:51+00:00 2026-06-03T21:28:51+00:00

I have a jsp code working fine on one of the machines. But when

  • 0

I have a jsp code working fine on one of the machines. But when i copied to another machine I am getting this no such method found exception. I am new to spring. Can some one explain what am i missing.

Following is the lines of code that is causing exception:

<c:set var="rawDate" value="${result.getDate()}"/>
<c:set var="rawTime" value="${result.getTime()}"/>
<td id="formattedDate" class="center"><c:out value="${rawDate.substring(4,6)}"/>/<c:out value="${rawDate.substring(6,8)}"/></td>
<td id="formattedTime" class="center"><c:out value="${result.getTime().substring(0,2)}"/>:<c:out value="${result.getTime().substring(2,4)}"/></td>

Here is the stack trace

May 9, 2012 9:35:56 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
 (, )
   at java.lang.Class.getMethod(Class.java:1605)
   at javax.el.BeanELResolver.invoke(BeanELResolver.java:405)
   at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:147)
   at org.apache.el.parser.AstValue.getValue(AstValue.java:159)
   at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
   at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:989)
   at org.apache.jsp.WEB_002dINF.jsp.tables.WatchAllTable_jsp._jspx_meth_c_005fout_005f8(WatchAllTable_jsp.java:1132)
   at org.apache.jsp.WEB_002dINF.jsp.tables.WatchAllTable_jsp._jspx_meth_c_005fforEach_005f0(WatchAllTable_jsp.java:412)
   at org.apache.jsp.WEB_002dINF.jsp.tables.WatchAllTable_jsp._jspService(WatchAllTable_jsp.java:127)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
   at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
   at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
   at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
   at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [spring] in context with path [/watch] threw     exception [An exception occurred processing JSP page /WEB-INF/jsp/tables/WatchAllTable.jsp at     line 77

74:                        <c:set var="rawDate" value="${result.getDate()}"/>
75:                        <c:set var="rawTime" value="${result.getTime()}"/>
76:                        
77:                        <td id="formattedDate" class="center"><c:out value="${rawDate.substring(4,6)}"/>/<c:out value="${rawDate.substring(6,8)}"/></td>
78:                        <td id="formattedTime" class="center"><c:out value="${result.getTime().substring(0,2)}"/>:<c:out value="${result.getTime().substring(2,4)}"/></td>
79:                        <td id="documentGroup" class="hidden"><c:out value="${curDocGroup}"/>    </td>

Here is the link which looks like solution to this issue but i didnt understand what they are saying .

http://forum.springsource.org/showthread.php?108175-SpEL-does-not-recognize-functions&s=e077b42fd45ae3a3177a01c90339893c

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:28:54+00:00Added an answer on June 3, 2026 at 9:28 pm

    EL (Expression Language, those ${} things) treats numbers as long while the real method expects int numbers only. That explains this exception.

    You need JSTL fn:substring() instead,

    <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    ...
    <c:set var="rawDate" value="${result.date}"/>
    <c:set var="rawTime" value="${result.time}"/>
    <c:out value="${fn:substring(rawDate,4,6)}"/>/<c:out value="${fn:substring(rawDate,6,8)}"/>
    <c:out value="${fn:substring(rawtime,0,2)}"/>:<c:out value="${fn:substring(rawtime,2,4)}"/>
    

    or better, just use the right tool directly, store it as java.util.Date in the model and use JSTL <fmt:formatDate>.

    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    ...
    <fmt:formatDate value="${result.realJavaUtilDate}" pattern="MM/dd HH:mm" />
    

    Use the right data type for the data it holds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this code which is not working. <jsp:useBean id=abbreviationlist class=AbbreviationListType/> <jsp:setProperty name=abbreviationlist property=id/>
I have this JSP code snippet: <%@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c%> <c:choose> <c:when test=${var1.properties[\Item Type\]
I'm a c# developer but have a job that involves some jsp code. I've
I have a jsp page which needs a java code. This java code inside
I have the following code: index.jsp: <form name=f action=db/ajoutConducteur.jsp method=post> <input type=text pattern=\d{8} required
I have a jsp code like this <html:option value=${apealstaList.appealStatusMasterId} disabled=true>${apealstaList.appealStatusDescription}</html:option> This disable the options
I have a code which is working fine and displaying some set of values
I have a JSP page which loads another jsp page's content which is working
I have inherited some code that isn't quite working ... I have jsp which
I have a block of JSP code that needs to be used in several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.