Announcement Announcement Module
Collapse
No announcement yet.
Spring + Session Replication Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring + Session Replication

    I'm trying to setup load-balancing with tomcat via mod_jk for one of our spring-enabled applications.

    Now my tomcat setup works fine as I've managed to enable session replication for the sample spring jpetstore but I'm having some problems with our application.

    Somehow, seems like the BindException object is not being replicated...(or something to that effect...maybe the form bean...)

    I've followed all the steps mentionned here

    http://tomcat.apache.org/tomcat-5.5-...ter-howto.html

    Here's the stack trace when I kill one server and the request is redirected to the other server.

    java.lang.IllegalArgumentException: Target object must not be null
    at org.springframework.util.Assert.notNull(Assert.jav a:90)
    at org.springframework.validation.BindException.<init >(BindException.java:82)
    at org.springframework.validation.DataBinder.createEr rors(DataBinder.java:126)
    at org.springframework.validation.DataBinder.<init>(D ataBinder.java:112)
    at org.springframework.web.bind.WebDataBinder.<init>( WebDataBinder.java:67)
    at org.springframework.web.bind.ServletRequestDataBin der.<init>(ServletRequestDataBinder.java:65)
    at org.springframework.web.servlet.mvc.BaseCommandCon troller.createBinder(BaseCommandController.java:34 8)
    at org.springframework.web.servlet.mvc.BaseCommandCon troller.bindAndValidate(BaseCommandController.java :303)
    at org.springframework.web.servlet.mvc.AbstractFormCo ntroller.handleRequestInternal(AbstractFormControl ler.java:255)
    at org.springframework.web.servlet.mvc.AbstractContro ller.handleRequest(AbstractController.java:139)
    at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:684)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:625)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:392)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:357)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.cluster.tcp.ReplicationValve.i nvoke(ReplicationValve.java:145)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyo teHandler.java:307)
    at org.apache.jk.common.HandlerRequest.invoke(Handler Request.java:385)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelS ocket.java:748)
    at org.apache.jk.common.ChannelSocket.processConnecti on(ChannelSocket.java:678)
    at org.apache.jk.common.SocketConnection.runIt(Channe lSocket.java:871)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Last edited by l4r5; Jan 3rd, 2006, 12:11 PM.

  • #2
    Sorry to bring this up again but contrary to what I mentionned, it seems as though session replication is working intermittently in tomcat for the spring jpetstore, has anyone ever clustered this application successfully? If so, anything I should be looking out for...?

    Comment

    Working...
    X