[JBossCache] - Replication problem and stuck of Jboss-Cache
by JochenWeberFMI
Hello all,
we have some strange problems in our standalone application with our JbossCache/JGroups implementation.
The application is working fine for a while and then the application get stuck, and each put in the tree-Cache will lead to a ReplicationException (see below).
The port that is used (in this case 33146) was printed in the log file as the first output of the GMS protocol.
----------------
GMS: address is ?.
----------------
Some more GMS outputs like this are available.
After this moment the cache is not be able to reinitialized.
After some minutes in one server we see some logs entries like:
(caller=Thread[Timer-0,5,main], lock info: read owners=[Thread[UpHandler (GMS),5,JGroups threads]] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))2006-11-27 19:00:28,145
ERROR org.jgroups.protocols.pbcast.GMS:446 up_handler thread for GMS was interrupted (in order to be terminated), but is still alive2006-11-27
and after a while only entries like:
19:01:06,320 ERROR org.jgroups.protocols.pbcast.GMS:845 coords or merge_id == null
A restart of a single server is not helping so that in the end all servers have to be restarted.
We are using the following versions for JGroups and JBoss Cache:
JGroups-2.4.0
JBossCache-1.4.0.SP1
JDK:JBossCache-1.4.0.SP1
The JGroups configuration is the following:
**************************************************************************************
<UDP mcast_addr="228.1.2.3" mcast_port="45566" ip_ttl="64" ip_mcast="true"
mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000"
ucast_recv_buf_size="80000" loopback="false" />
<PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
<MERGE2 min_interval="10000" max_interval="20000" />
<FD shun="true" up_thread="true" down_thread="true" />
<VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
<pbcast.NAKACK gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" up_thread="false" down_thread="false"/>
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
<pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
<FRAG frag_size="8192" down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
<pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
Cached Exception:
***************************************************************************************************************
2006-11-27 18:39:23,095 FATAL com.fmi.mapserver.licence.LicencedKeysSingleton:? stack: 520E16:CacheException in enableAccessCacheException rsp=sender=10.160.33.18:33146, retval=null, received=false, suspected=false
org.jboss.cache.ReplicationException: rsp=sender=10.160.33.18:33146, retval=null, received=false, suspected=false
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4191)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4114)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4215)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:110)
at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:88)
at org.jboss.cache.interceptors.ReplicationInterceptor.handleReplicatedMethod(ReplicationInterceptor.java:119)
at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:83)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345)
at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:157)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520)
at org.jboss.cache.TreeCache.put(TreeCache.java:3678)
at org.jboss.cache.TreeCache.put(TreeCache.java:3616)
at com.fmi.mapserver.licence.LicencedKeysSingleton.enableAccess(Unknown Source)
at com.fmi.mapserver.action.InitAccessAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.cache.lock.TimeoutException: Response timed out: sender=10.160.33.18:33146, retval=null, received=false, suspected=false
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4189)
... 36 more
Have anybody any idea ?
Jochen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989288#3989288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989288
19Â years, 5Â months
[JBoss Seam] - Re: Error when using ajax and facelets
by ellenzhao
Ah sorry i made a mistake. That was "EJB3" section but not "EAR" section. So I guess the jboss-seam.jar may well be already be found at deploy time.
I modified the hotel booking example too and the packaging strategy also followed the example (your packaging is a bit different). Everything including ajax4jsf worked fine.
Here is my latest packaging-build.xml (it can be easily mapped to build.xml)
| <?xml version="1.0" encoding="UTF-8"?>
| <project name="Packaging Generator" default="_packaging_generation_">
| <target name="_packaging_generation_" depends="N65540,N65605,N65722" />
| <target name="N65540" description="hotelEJB.jar">
| <mkdir dir="dist" />
| <jar destfile="dist/hotelEJB.jar">
| <zipfileset dir="resources/META-INF" prefix="META-INF">
| <include name="ejb-jar.xml" />
| </zipfileset>
| <zipfileset dir="resources/META-INF" prefix="META-INF">
| <include name="persistence.xml" />
| </zipfileset>
| <zipfileset dir="resources">
| <include name="jndi.properties" />
| </zipfileset>
| <zipfileset dir="resources">
| <include name="seam.properties" />
| </zipfileset>
| <zipfileset dir="resources">
| <include name="testdb-ds.xml" />
| </zipfileset>
| <zipfileset dir="resources">
| <include name="hotel-ds.xml" />
| </zipfileset>
| <zipfileset dir="bin" />
| </jar>
| </target>
| <target name="N65605" description="hotelWeb.war">
| <mkdir dir="dist" />
| <jar destfile="dist/hotelWeb.war">
| <zipfileset dir="D:\sd\lib\jboss-seam-1.1.0.BETA2" prefix="WEB-INF/lib">
| <include name="jboss-seam-debug.jar" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\jboss-seam-1.1.0.BETA2" prefix="WEB-INF/lib">
| <include name="jboss-seam-ui.jar" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\facelets-1.1.11" prefix="WEB-INF/lib">
| <include name="jsf-facelets.jar" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\facelets-1.1.11\lib" prefix="WEB-INF/lib">
| <include name="el-api.jar" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\facelets-1.1.11\lib" prefix="WEB-INF/lib">
| <include name="el-ri.jar" />
| </zipfileset>
| <zipfileset dir="resources/WEB-INF" prefix="WEB-INF">
| <include name="components.xml" />
| </zipfileset>
| <zipfileset dir="resources/WEB-INF" prefix="WEB-INF">
| <include name="faces-config.xml" />
| </zipfileset>
| <zipfileset dir="resources/WEB-INF" prefix="WEB-INF">
| <include name="navigation.xml" />
| </zipfileset>
| <zipfileset dir="resources/WEB-INF" prefix="WEB-INF">
| <include name="web.xml" />
| </zipfileset>
| <zipfileset dir="resources">
| <include name="pageflow.jpdl.xml" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\ajax4jsf-1.0.3-full.zip_FILES\lib" prefix="WEB-INF/lib">
| <include name="ajax4jsf.jar" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\ajax4jsf-1.0.3-full.zip_FILES\lib" prefix="WEB-INF/lib">
| <include name="oscache-2.3.2.jar" />
| </zipfileset>
| <zipfileset dir="view" />
| </jar>
| </target>
| <target name="N65722" description="hotel.ear">
| <mkdir dir="dist" />
| <jar destfile="dist/hotel.ear">
| <zipfileset dir="resources/META-INF" prefix="META-INF">
| <include name="application.xml" />
| </zipfileset>
| <zipfileset dir="resources/META-INF" prefix="META-INF">
| <include name="jboss-app.xml" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\jboss-seam-1.1.0.BETA2">
| <include name="jboss-seam.jar" />
| </zipfileset>
| <zipfileset dir="D:\sd\lib\jbpm-bpel-1.1.Beta2\lib\jbpm">
| <include name="jbpm-3.1.2.jar" />
| </zipfileset>
| <zipfileset dir="dist">
| <include name="hotelEJB.jar" />
| </zipfileset>
| <zipfileset dir="dist">
| <include name="hotelWeb.war" />
| </zipfileset>
| </jar>
| </target>
| </project>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989259#3989259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989259
19Â years, 5Â months
[Tomcat, HTTPD, Servlets & JSP] - Problems starting JBOSS
by reservator
Hi,
i have a problem starting JBOSS server 4.0.4.
The start hangs if i put these lines in web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
<filter-name>AffiliateFilter</filter-name>
<filter-class>com.reservator.filter.AffiliateFilter</filter-class>
<filter-mapping>
<filter-name>AffiliateFilter</filter-name>
<servlet-name>ReserBotServlet</servlet-name>
</filter-mapping>
(...)
The server output:
(...)
13:06:55,875 INFO [DLQ] Bound to JNDI name: queue/DLQ
13:06:56,390 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
13:06:56,578 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
13:07:03,125 INFO [TomcatDeployer] deploy, ctxPath=/reserves, warUrl=.../tmp/deploy/tmp38523reserves-exp.war/
and nothing else.
If I remove the filter and filter-mapping lines it works.. What can i do?
Thank you in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989244#3989244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989244
19Â years, 5Â months