[jboss-user] [Clustering/JBoss] - Re: Session Replication - Concurrency Problems?

praveenas do-not-reply at jboss.com
Thu Jun 26 08:59:19 EDT 2008


Hi,
 
     I am trying to cluster 2 jboss 4.2.2.GA instances with apache 2.0.x load balancer. 

I have enabled sticky session by "worker.loadbalancer.sticky_session=1". 

I ve the default values for  "Isolation level" and "CacheMode"

REPEATABLE_READ

        <!-- Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC
             
             If you use REPL_SYNC and a UDP-based ClusterConfig
             we recommend you comment out the FC (flow control)
             protocol in the ClusterConfig section below.
        -->
        REPL_ASYNC



Also, my jboss-web.xml is 

<jboss-web>
    <replication-config>
 <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
        <replication-granularity>SESSION</replication-granularity>
 <replication-field-batch-mode>true</replication-field-batch-mode>
    </replication-config>
</jboss-web>


I found my exception stack trace for one server as:

18:08:32,991 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
18:08:32,991 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 
18:08:32,991 ERROR [STDERR] log4j:ERROR [WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader at fe03b3
] whereas object of type 
18:08:32,991 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader at cdedfd].
18:08:32,991 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
18:08:35,152 ERROR [[TestContainer]] Servlet.service() for servlet TestContainer threw exception
javax.servlet.ServletException: Service id "Echo.ContentPane" not registered.
        at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:253)
        at nextapp.echo2.webrender.WebRenderServlet.doGet(WebRenderServlet.java:179)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
        at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:675)
18:08:35,296 ERROR [[TestContainer]] Servlet.service() for servlet TestContainer threw exception
javax.servlet.ServletException: Service id "Echo.TextComponent" not registered.
        at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:253)
        at nextapp.echo2.webrender.WebRenderServlet.doGet(WebRenderServlet.java:179)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
        at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:675)
18:08:35,310 ERROR [[TestContainer]] Servlet.service() for servlet TestContainer threw exception
javax.servlet.ServletException: Service id "Echo.Button" not registered.
        at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:253)
        at nextapp.echo2.webrender.WebRenderServlet.doGet(WebRenderServlet.java:179)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
        at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:675)
18:08:36,106 INFO  [STDOUT] java.io.FileNotFoundException: sses/d/Trend/source/2008-06-26_18:08:27.862.html (No such file or directory)
18:08:42,471 INFO  [STDOUT] Pages Downloaded
18:08:42,474 INFO  [STDOUT] Error in Parser.java::java.io.FileNotFoundException: sses/d/Trend/source/2008-06-26_18:08:27.862.html (No such file or directory)
18:09:00,228 INFO  [CacheListener] Possible concurrency problem: Replicated version id 8 matches in-memory version for session UkxTM9dXOUBJbgCo6b4SPg**
18:26:38,389 INFO  [STDOUT] 2
18:26:38,753 INFO  [STDOUT] 4
18:26:39,115 INFO  [STDOUT] 6


And for the 2nd server:

18:04:21,890 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader at 1c39a2d].
18:04:21,891 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
18:04:23,272 INFO  [CacheListener] Possible concurrency problem: Replicated version id 2 matches in-memory version for session UkxTM9dXOUBJbgCo6b4SPg**
18:04:31,137 INFO  [STDOUT] Pages Downloaded
18:04:31,153 INFO  [STDOUT] 
In Constructor. dbSelector = casperdb
18:04:31,232 INFO  [STDOUT] From DatabaseManager Connect getConnection():org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
18:04:31,232 INFO  [STDOUT] From DatabaseManager getRow():java.lang.NullPointerException
18:04:31,232 INFO  [STDOUT] Error in Parser.java::java.lang.NullPointerException
18:04:48,328 INFO  [CacheListener] Possible concurrency problem: Replicated version id 8 matches in-memory version for session UkxTM9dXOUBJbgCo6b4SPg**
18:22:26,706 INFO  [STDOUT] 3
18:22:27,046 INFO  [STDOUT] 5
18:22:27,416 INFO  [STDOUT] 7


PS: Finally the application is running. But I am getting problem with the other components of java. 


Please let me know what to be done to avoid that 

18:04:48,328 INFO  [CacheListener] Possible concurrency problem: Replicated version id 8 matches in-memory version for session UkxTM9dXOUBJbgCo6b4SPg**

Thanks in advance,
Praveena. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160853#4160853

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160853



More information about the jboss-user mailing list