Announcement Announcement Module
Collapse
No announcement yet.
Exceptions in web application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exceptions in web application

    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java(Compiled Code))
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java(Compiled Code))
    [10/28/08 16:58:04:692 IST] : [Servlet Error]-[org.springframework.web.context.support.RequestHan dledEvent: method &lt;init&gt;(Ljava/lang/Object;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/ThrowableV not found]: java.lang.NoSuchMethodError: org.springframework.web.context.support.RequestHan dledEvent: method <init>(Ljava/lang/Object;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/ThrowableV not found

    Whats the cause of this exception??

    Environment:JDK 1.4 on WAS 5.1 linux
    Last edited by A Kumar; Oct 31st, 2008, 06:37 AM.

  • #2
    Is that whole stacktrace?

    Comment


    • #3
      give the complete stackStrace.....only then we can help

      Comment


      • #4
        Code:
        &lt;init&gt;(Ljava/lang/Object;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V not found]: java.lang.NoSuchMethodError: org.springframework.web.context.support.RequestHandledEvent: method <init>(Ljava/lang/Object;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V not found
                at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:420)
                at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
                at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
                at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
                at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
                at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
                at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
                at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
                at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1036)
                at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:544)
                at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:210)
                at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:139)
                at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:332)
                at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
                at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
                at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
                at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
                at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
                at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
                at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
                at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
        This is all i could get from the logs...

        Comment


        • #5
          I'm having a similar issue. I can start my server app and I can browse to several pages. However, as soon as I goto a page that is backed by a Spring Controller, I get an error message. I've cleaned out the classpath and rebuilt everything several times/ways. I am attaching my server log and my pom which shows the versions I am using of everything. I can paste my spring config files if necessary.

          Snippet of log error
          Code:
          [INFO] Started Jetty Server
          Hibernate: select this_.id as id3_0_, this_.create_date as create2_3_0_, this_.description as descript3_3_0_, this_.display_order as display4_3_0_, this_.enabled as enabled3_0_, this_.long_name as long6_3_0_, this_.short_name as short7_3_0_, this_.update_date as update8_3_0_, this_.version as version3_0_ from public.country this_ order by this_.display_order asc
          2008-11-10 17:19:03.561::WARN:  Error for /mskAdmin/test.html
          java.lang.NoSuchMethodError: org.springframework.web.context.support.RequestHandledEvent.<init>(Ljava/lang/Object;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
          	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:419)
          	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
          	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
          	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
          	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
          	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
          	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
          	at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
          	at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.webapp.DefaultLoginPageGeneratingFilter.doFilterHttp(DefaultLoginPageGeneratingFilter.java:86)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
          	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
          	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
          	at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
          	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
          	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
          	at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
          	at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
          	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
          	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
          	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
          	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
          	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
          	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
          	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
          	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          	at org.mortbay.jetty.Server.handle(Server.java:324)
          	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
          	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
          	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
          	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
          	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
          	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
          	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
          Snippet of POM
          Code:
          		<dependency>
          			<groupId>org.springframework</groupId>
          			<artifactId>spring</artifactId>
          			<version>2.5.5</version>
          			<scope>compile</scope>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework</groupId>
          			<artifactId>spring-web</artifactId>
          			<version>1.2.7</version>
          			<scope>compile</scope>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework</groupId>
          			<artifactId>spring-webmvc</artifactId>
          			<version>1.2.7</version>
          			<scope>compile</scope>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework</groupId>
          			<artifactId>spring-tx</artifactId>
          			<version>2.5.6</version>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework</groupId>
          			<artifactId>spring-orm</artifactId>
          			<version>2.5.6</version>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework.security
          			</groupId>
          			<artifactId>spring-security-acl</artifactId>
          			<version>2.0.4</version>
          			<scope>compile</scope>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework.security
          			</groupId>
          			<artifactId>spring-security-core</artifactId>
          			<version>2.0.4</version>
          			<scope>compile</scope>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework.security
          			</groupId>
          			<artifactId>spring-security-core-tiger
          			</artifactId>
          			<version>2.0.4</version>
          			<scope>compile</scope>
          		</dependency>
          		<dependency>
          			<groupId>org.springframework.security
          			</groupId>
          			<artifactId>spring-security-taglibs
          			</artifactId>
          			<version>2.0.4</version>
          			<scope>compile</scope>
          		</dependency>

          Comment


          • #6
            Spring MVC - Displaying errors on JSP from controller.

            I'm aware that if you use validators you can display an error back to your page using spring:hasBindErrors.

            Is there something for displaying errors back to the user that you can encounter in your controller, or do you add an error attribute to your command object and check for it ?

            Comment


            • #7
              I have log4j setup and I am doing debug messages n several areas of my Controller. I never see any of those debug messages in the logs. I'm really not sure what to deduct from that fact except that this might be a spring version/compatibility issue?
              Larry

              Comment


              • #8
                You are mixing Spring component versions e.g. 1.2.x, 2.0.x, and 2.5.x versions of different spring components are used. This would certainly result in exceptions such as NoSuchMethodError at runtime.

                You need to make sure that all the components are versions that work together. I am certain that the mix you have wouldn't!

                Comment


                • #9
                  I suppose I made the incorrect assumption that getting the latest of each component would ensure they worked together. Thanks for the tip. I'm going to play with the versions a little and see what happens.
                  Larry

                  Comment


                  • #10
                    I have never used the maven repository for Spring projects so I'm not sure what is in there, but something like spring-webmvc should have a 2.5.x version to be the latest. I know Spring Source have some sort of repository you can use that would certainly have the latest versions. See http://blog.springsource.com/2007/09...n-artifacts-2/.

                    The Spring distro also comes with an "all in one" jar that contains all of the core modules including webmvc, which is often an easy way to avoid these types of problems.

                    Comment

                    Working...
                    X