[EJB 3.0] - Own DLQ for EJB3-MDB via ActivationConfigProperty doesn't wo
by camunda
Hi!
currently I have a problem with an EJB3-MDB which should have an own DLQ configured. As far as I found this can be done via ActivationConfigProperties in EJB3.
So I added these Annotations to my MDB:
| @MessageDriven(name="CommandMessageDrivenBean", activationConfig = {
| @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue")
| ,@ActivationConfigProperty(propertyName="destination", propertyValue="queue/CommandQueue")
| ,@ActivationConfigProperty(propertyName="user",propertyValue="root")
| ,@ActivationConfigProperty(propertyName="password",propertyValue="xxx")
| ,@ActivationConfigProperty(propertyName="DLQJNDIName", propertyValue="queue/CommandDLQ")
| ,@ActivationConfigProperty(propertyName="DLQUser", propertyValue="root")
| ,@ActivationConfigProperty(propertyName="DLQPassword",propertyValue="xxx")
| ,@ActivationConfigProperty(propertyName="DLQMaxResent",propertyValue="0")
| })
| public class CommandMDB implements MessageListener {
|
But still the default DLQ (queue/DLQ) is used if an exception is thrown in the MDB. This puzzles me.
If I configure a non existent queue in the ActivationConfigProperty "DLQJNDIName", I get an exception that the queue is not available:
| 2009-02-20 13:11:10,517 WARN WARN [org.jboss.resource.adapter.jms.inflow.JmsActivation] (WorkManager(2)-11:) Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@716b8f(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)db19d3 destination=queue/CommandQueue isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=root pass=<not shown> maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/InvalidDLQ DLQUser=null DLQMaxResent=5)
| javax.naming.NameNotFoundException: queue/InvalidDLQ
| at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:242)
| at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)
| at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:312)
| at $Proxy255.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at org.jboss.util.naming.Util.lookup(Util.java:215)
| at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQDestination(AbstractDLQHandler.java:106)
| at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:82)
| at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:369)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:315)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
| at java.lang.Thread.run(Thread.java:619)
|
So I think the property is read correctly...
Any ideas?
Thanks
Bernd
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211773#4211773
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211773
17 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Re: Error deploy xindice in jboss 5.0.0.GA
by poplin
The aplication run but with a new error:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /root/Software/jboss-5.0.0.GA
JAVA: /usr/java/jdk1.6.0_12/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /root/Software/jboss-5.0.0.GA/bin/run.jar:/usr/java/jdk1.6.0_12/lib/tools.jar
=========================================================================
12:34:34,317 INFO [ServerImpl] Starting JBoss (Microcontainer)...
12:34:34,320 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200902201012)
12:34:34,320 INFO [ServerImpl] Bootstrap URL: null
12:34:34,321 INFO [ServerImpl] Home Dir: /root/Software/jboss-5.0.0.GA
12:34:34,321 INFO [ServerImpl] Home URL: file:/root/Software/jboss-5.0.0.GA/
12:34:34,321 INFO [ServerImpl] Library URL: file:/root/Software/jboss-5.0.0.GA/lib/
12:34:34,323 INFO [ServerImpl] Patch URL: null
12:34:34,323 INFO [ServerImpl] Common Base URL: file:/root/Software/jboss-5.0.0.GA/common/
12:34:34,323 INFO [ServerImpl] Common Library URL: file:/root/Software/jboss-5.0.0.GA/common/lib/
12:34:34,323 INFO [ServerImpl] Server Name: default
12:34:34,324 INFO [ServerImpl] Server Base Dir: /root/Software/jboss-5.0.0.GA/server
12:34:34,324 INFO [ServerImpl] Server Base URL: file:/root/Software/jboss-5.0.0.GA/server/
12:34:34,324 INFO [ServerImpl] Server Config URL: file:/root/Software/jboss-5.0.0.GA/server/default/conf/
12:34:34,324 INFO [ServerImpl] Server Home Dir: /root/Software/jboss-5.0.0.GA/server/default
12:34:34,324 INFO [ServerImpl] Server Home URL: file:/root/Software/jboss-5.0.0.GA/server/default/
12:34:34,325 INFO [ServerImpl] Server Data Dir: /root/Software/jboss-5.0.0.GA/server/default/data
12:34:34,325 INFO [ServerImpl] Server Library URL: file:/root/Software/jboss-5.0.0.GA/server/default/lib/
12:34:34,325 INFO [ServerImpl] Server Log Dir: /root/Software/jboss-5.0.0.GA/server/default/log
12:34:34,325 INFO [ServerImpl] Server Native Dir: /root/Software/jboss-5.0.0.GA/server/default/tmp/native
12:34:34,325 INFO [ServerImpl] Server Temp Dir: /root/Software/jboss-5.0.0.GA/server/default/tmp
12:34:34,326 INFO [ServerImpl] Server Temp Deploy Dir: /root/Software/jboss-5.0.0.GA/server/default/tmp/deploy
12:34:36,398 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/root/Software/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
12:34:37,874 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
12:34:37,893 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
12:34:38,780 INFO [CopyMechanism] VFS temp dir: /root/Software/jboss-5.0.0.GA/server/default/tmp
12:34:38,802 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
12:34:43,995 INFO [ServerInfo] Java version: 1.6.0_12,Sun Microsystems Inc.
12:34:44,002 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.2-b01,Sun Microsystems Inc.
12:34:44,002 INFO [ServerInfo] OS-System: Linux 2.6.27.12-170.2.5.fc10.i686,i386
12:34:44,235 INFO [JMXKernel] Legacy JMX core initialized
12:34:55,801 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository(a)8b3bb3(root=/root/Software/jboss-5.0.0.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
12:34:55,804 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@8b3bb3(root=/root/Software/jboss-5.0.0.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
12:34:55,805 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@d175ff{key=org.jboss.profileservice.spi.ProfileKey(a)143b82c3[domain=default,server=default,name=default]}
12:35:04,689 INFO [WebService] Using RMI server codebase: http://desarrollopfc:8083/
12:35:32,794 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
12:35:32,802 INFO [NativeServerConfig] 3.0.4.SP1
12:36:10,104 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://desarrollopfc/jndi/rmi://desarrollopfc:1090/jmxconnector
12:36:11,174 INFO [MailService] Mail Service bound to java:/Mail
12:36:20,911 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
12:36:20,958 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
12:36:21,394 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
12:36:21,396 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
12:36:22,225 INFO [TransactionManagerService] Initializing recovery manager
12:36:22,959 INFO [TransactionManagerService] Recovery manager configured
12:36:22,960 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
12:36:23,057 INFO [TransactionManagerService] Starting transaction recovery manager
12:36:25,667 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
12:36:25,671 INFO [AjpProtocol] Inicializando Coyote AJP/1.3 en ajp-0.0.0.0-8009
12:36:25,671 INFO [StandardService] Arrancando servicio jboss.web
12:36:25,686 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
12:36:25,910 INFO [Catalina] Server startup in 1669 ms
12:36:26,026 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
12:36:28,705 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
12:36:29,070 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
12:36:29,662 INFO [RARDeployment] Required license terms exist, view vfszip:/root/Software/jboss-5.0.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
12:36:29,806 INFO [RARDeployment] Required license terms exist, view vfszip:/root/Software/jboss-5.0.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
12:36:30,087 INFO [RARDeployment] Required license terms exist, view vfszip:/root/Software/jboss-5.0.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
12:36:30,216 INFO [RARDeployment] Required license terms exist, view vfszip:/root/Software/jboss-5.0.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
12:36:30,379 INFO [RARDeployment] Required license terms exist, view vfszip:/root/Software/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
12:36:30,832 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
12:36:31,056 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
12:36:31,063 INFO [RAMJobStore] RAMJobStore initialized.
12:36:31,064 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
12:36:31,072 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
12:36:31,074 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
12:36:34,134 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
12:36:35,783 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
12:36:35,870 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
12:36:35,874 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
12:36:35,874 INFO [JobStoreCMT] Using db table-based data access locking (synchronization).
12:36:35,896 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
12:36:35,897 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
12:36:35,899 INFO [JobStoreCMT] JobStoreCMT initialized.
12:36:35,901 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
12:36:35,901 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
12:36:35,924 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
12:36:35,927 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
12:36:35,927 INFO [JobStoreCMT] Recovery complete.
12:36:35,928 INFO [JobStoreCMT] Removed 0 'complete' triggers.
12:36:35,928 INFO [JobStoreCMT] Removed 0 stale fired job entries.
12:36:35,936 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
12:36:36,425 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
12:36:36,714 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
12:36:37,054 INFO [ConnectionFactory] Connector bisocket://desarrollopfc:4457 has leasing enabled, lease period 10000 milliseconds
12:36:37,055 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@10e6505 started
12:36:37,056 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
12:36:37,058 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
12:36:37,061 INFO [ConnectionFactory] Connector bisocket://desarrollopfc:4457 has leasing enabled, lease period 10000 milliseconds
12:36:37,061 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1385ce started
12:36:37,066 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
12:36:37,068 INFO [ConnectionFactory] Connector bisocket://desarrollopfc:4457 has leasing enabled, lease period 10000 milliseconds
12:36:37,068 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1d7825a started
12:36:37,477 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
12:36:37,615 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
12:36:37,935 INFO [TomcatDeployment] deploy, ctxPath=/xindice-1.1, vfsUrl=xindice-1.1.war
12:36:38,155 INFO [XindiceServlet] Loading configuration from context path WEB-INF/config/system.xml
12:36:38,212 ERROR [1]] StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:256)
at org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:105)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.xindice.xml.dom.DOMParser.(DOMParser.java:67)
... 62 more
12:36:38,216 ERROR [1]] El Servlet /xindice-1.1 lanzó excepción de load()
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.xindice.xml.dom.DOMParser.(DOMParser.java:67)
at org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:256)
at org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:105)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
12:36:38,277 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
12:36:38,322 INFO [AjpProtocol] Arrancando Coyote AJP/1.3 en ajp-0.0.0.0-8009
12:36:38,345 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200902201012)]
Started in 2m:4s:14ms
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211765#4211765
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211765
17 years, 2 months
[JBoss Messaging] - Re: JBM clustering scenario
by jbabad
Thanks.
This is a trace from the sending client - with the logging set to DEBUG. I've not yet managed to get a trace from the receiver
as I can't repeat the problem at will.
I can see where the client thinks that the connection to the server has gone away and where it reconnects.
Where can we set/tune the parameters that control ping timeout and the number of retries?
If the receiver client were to do something similar, would it then get a new connection, but "somehow" miss processing some messages that had already been pulled across to that node? Basically, when the connection is renewed, how does it decide where to pick up from?
| 10:57:37,100 DEBUG @main (com.test.jee.jms.client.JmsSenderImpl.sendMessage(JmsSenderImpl.java:70)) [JmsSenderImpl] sendMessage:: ENTRY - 0 ://192.168.8.117:4457/?JB
| 10:57:39,061 DEBUG @Timer-4 (org.jboss.remoting.ConnectionValidator$WaitOnConnectionCheckTimerTask.run(ConnectionValidator.java:674)) [ConnectionValidator] ConnectionValidator[SocketClientInvoker[f8395f, bisocket://192.168.8.117:4457], pingPeriod=2000 ms]'s connections is invalid
| 10:57:39,360 DEBUG @Timer-4 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed SocketClientInvoker[f8395f, bisocket://192.168.8.117:4457] from registry
| 10:57:39,360 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[f8395f, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,362 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:127)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52940].1263db] closing socket
| 10:57:39,362 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:129)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52940].1263db] closed socket
| 10:57:39,362 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:127)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.118,port=4457,localport=45268].1469658] closing socket
| 10:57:39,659 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:129)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.118,port=4457,localport=45268].1469658] closed socket
| 10:57:39,659 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:127)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52935].23bdd1] closing socket
| 10:57:39,659 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:129)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52935].23bdd1] closed socket
| 10:57:39,659 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:127)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.118,port=4457,localport=45273].830122] closing socket
| 10:57:39,660 DEBUG @Timer-4 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:129)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.118,port=4457,localport=45273].830122] closed socket
| 10:57:39,660 DEBUG @Timer-4 (org.jboss.remoting.ConnectionValidator.doStop(ConnectionValidator.java:616)) [ConnectionValidator] ConnectionValidator[SocketClientInvoker[f8395f, bisocket://192.168.8.117:4457], pingPeriod=2000 ms] stopped, returning true
| 10:57:39,660 DEBUG @Timer-4 (org.jboss.remoting.ConnectionValidator$WaitOnConnectionCheckTimerTask.run(ConnectionValidator.java:680)) [ConnectionValidator] org.jboss.remoting.ConnectionValidator$WaitOnConnectionCheckTimerTask@bf7916 detected connection failure: stopping LeasePinger
| 10:57:39,660 DEBUG @Timer-4 (org.jboss.remoting.LeasePinger.setDisconnectTimeout(LeasePinger.java:285)) [LeasePinger] LeasePinger[SocketClientInvoker[ee1ede, bisocket://192.168.8.117:4457](5c4o83h-59bpys-freqzo4j-1-freqzoni-f)] setting disconnect timeout to: -1
| 10:57:39,366 DEBUG @Thread-10 (org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:74)) [FailoverCommandCenter] failure detected by ConnectionFailureListener[FailoverCommandCenter[ConnectionState[3b-u3b0perf-1-9fvfoerf-3vjl04-938o4c5]]]
| java.lang.Exception: Could not connect to server!
| at org.jboss.remoting.ConnectionValidator$WaitOnConnectionCheckTimerTask.run(ConnectionValidator.java:676)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
| 10:57:39,701 DEBUG @Timer-4 (org.jboss.remoting.ConnectionValidator$WaitOnConnectionCheckTimerTask.run(ConnectionValidator.java:686)) [ConnectionValidator] ConnectionValidator[SocketClientInvoker[f8395f, bisocket://192.168.8.117:4457], pingPeriod=2000 ms] shut down lease pinger
| 10:57:39,742 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1754)) [ServerInvoker] ServerInvoker (SocketServerInvoker[192.168.8.125:1034117969]) removing client callback handler with session id of 5c4o83h-59bpys-freqzo4j-1-freqzonh-d+5c4o83h-59bpys-freqzo4j-1-freqzoop-i.
| 10:57:39,743 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.destroyControlConnection(BisocketServerInvoker.java:479)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:1034117969] shutting down control connection: 5c4o83h-59bpys-freqzo4j-1-freqzoop-i
| 10:57:39,743 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@b9b8d0 from registry
| 10:57:39,743 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketServerInvoker.cleanup(SocketServerInvoker.java:453)) [SocketServerInvoker] SocketServerInvoker[192.168.8.125:1034117969] stopped threads in clientpool
| 10:57:39,743 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketServerInvoker.cleanup(SocketServerInvoker.java:464)) [SocketServerInvoker] SocketServerInvoker[192.168.8.125:1034117969] stopped threads in threadpool
| 10:57:39,744 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketServerInvoker.cleanup(SocketServerInvoker.java:469)) [SocketServerInvoker] SocketServerInvoker[192.168.8.125:1034117969] exiting
| 10:57:39,744 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.stop(ServerInvoker.java:989)) [ServerInvoker] SocketServerInvoker[192.168.8.125:1034117969] stopped
| 10:57:39,747 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed SocketClientInvoker[ee1ede, bisocket://192.168.8.117:4457] from registry
| 10:57:39,747 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[ee1ede, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,748 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:127)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52941].bfed5a] closing socket
| 10:57:39,748 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:129)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52941].bfed5a] closed socket
| 10:57:39,748 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:127)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52936].10c3a08] closing socket
| 10:57:39,749 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketWrapper.close(SocketWrapper.java:129)) [SocketWrapper] ClientSocketWrapper[Socket[addr=/192.168.8.117,port=4457,localport=52936].10c3a08] closed socket
| 10:57:39,749 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed SocketClientInvoker[1e12f6d, bisocket://192.168.8.117:4457] from registry
| 10:57:39,749 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[1e12f6d, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,749 INFO @Thread-10 (org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:117)) [FailoverCommandCenter] JBoss Messaging server failure detected - waiting for failover to complete...
| 10:57:39,751 DEBUG @main (com.test.jee.jms.client.JmsSenderImpl.sendMessage(JmsSenderImpl.java:79)) [JmsSenderImpl] sendMessage:: EXIT
| 10:57:39,752 DEBUG @main (com.test.jee.jms.client.JmsSenderApp.sendMessages(JmsSenderApp.java:21)) [JmsSenderApp] sendMessages:: Message: 320
| 10:57:39,755 DEBUG @main (com.test.jee.jms.client.JmsSenderImpl.sendMessage(JmsSenderImpl.java:70)) [JmsSenderImpl] sendMessage:: ENTRY - 0 ://192.168.8.117:4457/?JB
| 10:57:39,759 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:438)) [MicroRemoteClientInvoker] SocketClientInvoker[55d93d, bisocket://192.168.8.118:4457] added client with session ID 5c4o83h-59bpys-freqzo4j-1-freqzzc6-9i to the lease pinger
| 10:57:39,760 DEBUG @Thread-10 (org.jboss.remoting.Client.addListener(Client.java:960)) [Client] starting callback Connector: InvokerLocator [bisocket://192.168.8.125:1689108489/callback?callbackServerHost=192.168.8.125&callbackServerPort=1689108489&callbackServerProtocol=bisocket&clientMaxPoolSize=1&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&datatype=jms&guid=5c4o83h-59bpys-freqzo4j-1-freqzzcf-9l&isCallbackServer=true&onewayThreadPool=org.jboss.jms.server.remoting.DirectThreadPool&serverSocketClass=org.jboss.jms.server.remoting.ServerSocketWrapper]
| 10:57:39,850 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.createServerSocketFactory(ServerInvoker.java:1498)) [ServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] did not find server socket factory configuration as mbean service or classname. Creating default server socket factory.
| 10:57:39,851 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.createServerSocketFactory(ServerInvoker.java:1504)) [ServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] created server socket factory javax.net.DefaultServerSocketFactory@113beb5
| 10:57:39,852 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.setup(BisocketServerInvoker.java:659)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] setting pingFrequency to 214748364
| 10:57:39,852 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.setup(BisocketServerInvoker.java:677)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] setting pingWindowFactor to 10
| 10:57:39,852 DEBUG @Thread-10 (org.jboss.remoting.transport.Connector.start(Connector.java:354)) [Connector] org.jboss.remoting.transport.Connector@ed5d9d started
| 10:57:39,853 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1745)) [ServerInvoker] ServerInvoker (SocketServerInvoker[192.168.8.125:1689108489]) added client callback handler CallbackManager[9b688e] with session id of 5c4o83h-59bpys-freqzo4j-1-freqzzc6-9i+5c4o83h-59bpys-freqzo4j-1-freqzzf0-9m and callback handle object of null.
| 10:57:39,853 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@5e8d7d from registry
| 10:57:39,853 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.getSecondaryLocator(BisocketClientInvoker.java:560)) [BisocketClientInvoker] getting secondary locator
| 10:57:39,851 DEBUG @Finalizer (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[ee1ede, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,856 DEBUG @Finalizer (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[ee1ede, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,856 DEBUG @Finalizer (org.jboss.remoting.ServerInvoker.stop(ServerInvoker.java:989)) [ServerInvoker] SocketServerInvoker[192.168.8.125:1034117969] stopped
| 10:57:39,858 DEBUG @Finalizer (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[1e12f6d, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,858 DEBUG @Finalizer (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.disconnect(MicroSocketClientInvoker.java:384)) [MicroSocketClientInvoker] SocketClientInvoker[1e12f6d, bisocket://192.168.8.117:4457] disconnecting ...
| 10:57:39,862 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.getSecondaryLocator(BisocketClientInvoker.java:568)) [BisocketClientInvoker] secondary locator: InvokerLocator [null://192.168.8.118:47524/?]
| 10:57:39,863 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:379)) [BisocketServerInvoker] creating control connection: InvokerLocator [null://192.168.8.118:47524/?]
| 10:57:39,866 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:463)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] created control connection (5c4o83h-59bpys-freqzo4j-1-freqzzf0-9m): Socket[addr=/192.168.8.118,port=47524,localport=41033]
| 10:58:39,914 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1754)) [ServerInvoker] ServerInvoker (SocketServerInvoker[192.168.8.125:1689108489]) removing client callback handler with session id of 5c4o83h-59bpys-freqzo4j-1-freqzzc6-9i+5c4o83h-59bpys-freqzo4j-1-freqzzf0-9m.
| 10:58:39,915 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.destroyControlConnection(BisocketServerInvoker.java:479)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] shutting down control connection: 5c4o83h-59bpys-freqzo4j-1-freqzzf0-9m
| 10:58:39,915 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@103fcaa from registry
| 10:58:39,915 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketServerInvoker.cleanup(SocketServerInvoker.java:453)) [SocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] stopped threads in clientpool
| 10:58:39,915 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketServerInvoker.cleanup(SocketServerInvoker.java:464)) [SocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] stopped threads in threadpool
| 10:58:39,916 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketServerInvoker.cleanup(SocketServerInvoker.java:469)) [SocketServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] exiting
| 10:58:39,916 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.stop(ServerInvoker.java:989)) [ServerInvoker] SocketServerInvoker[192.168.8.125:1689108489] stopped
| 10:58:39,916 DEBUG @Thread-10 (org.jboss.remoting.LeasePinger.setDisconnectTimeout(LeasePinger.java:285)) [LeasePinger] LeasePinger[SocketClientInvoker[55d93d, bisocket://192.168.8.118:4457](5c4o83h-59bpys-freqzo4j-1-freqzo5f-4)] setting disconnect timeout to: -1
| 10:58:39,920 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:632)) [InvokerRegistry] decremented SocketClientInvoker[55d93d, bisocket://192.168.8.118:4457]'s count, current count 1
| 10:58:39,921 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:632)) [InvokerRegistry] decremented SocketClientInvoker[6b9c84, bisocket://192.168.8.118:4457]'s count, current count 1
| 10:58:39,922 DEBUG @Thread-10 (org.jboss.jms.client.container.ClusteringAspect.handleCreateConnectionDelegate(ClusteringAspect.java:194)) [ClusteringAspect] Client attempted failover, but no failover attempt has been detected on the server side. We will now try again on the original server in case there was a temporary glitch on the client--server network
| 10:58:41,929 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:545)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting maxPoolSize to 200
| 10:58:41,930 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:562)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting client socket wrapper class name to org.jboss.jms.client.remoting.ClientSocketWrapper
| 10:58:41,930 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:571)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting shouldCheckConnection to false
| 10:58:41,930 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketClientInvoker.configureParameters(SocketClientInvoker.java:98)) [SocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting timeout to 0
| 10:58:41,931 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:278)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] constructed
| 10:58:41,931 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:545)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting maxPoolSize to 200
| 10:58:41,932 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:562)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting client socket wrapper class name to org.jboss.jms.client.remoting.ClientSocketWrapper
| 10:58:41,933 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:571)) [MicroSocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting shouldCheckConnection to false
| 10:58:41,933 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketClientInvoker.configureParameters(SocketClientInvoker.java:98)) [SocketClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] setting timeout to 0
| 10:58:41,933 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.<init>(BisocketClientInvoker.java:181)) [BisocketClientInvoker] Setting ping frequency to: 214748364
| 10:58:41,933 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:283)) [MicroRemoteClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] connecting
| 10:58:41,934 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.initPool(MicroSocketClientInvoker.java:1011)) [MicroSocketClientInvoker] Creating semaphore with size 200
| 10:58:41,934 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:297)) [MicroRemoteClientInvoker] SocketClientInvoker[39060b, bisocket://192.168.8.117:4457] connected
| 10:58:41,942 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:545)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting maxPoolSize to 1
| 10:58:41,943 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:562)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting client socket wrapper class name to org.jboss.jms.client.remoting.ClientSocketWrapper
| 10:58:41,943 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:571)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting shouldCheckConnection to false
| 10:58:41,944 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketClientInvoker.configureParameters(SocketClientInvoker.java:98)) [SocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting timeout to 0
| 10:58:41,944 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:278)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] constructed
| 10:58:41,944 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:545)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting maxPoolSize to 1
| 10:58:41,945 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:562)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting client socket wrapper class name to org.jboss.jms.client.remoting.ClientSocketWrapper
| 10:58:41,945 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:571)) [MicroSocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting shouldCheckConnection to false
| 10:58:41,945 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketClientInvoker.configureParameters(SocketClientInvoker.java:98)) [SocketClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] setting timeout to 0
| 10:58:41,945 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.<init>(BisocketClientInvoker.java:181)) [BisocketClientInvoker] Setting ping frequency to: 214748364
| 10:58:41,946 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:283)) [MicroRemoteClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] connecting
| 10:58:41,946 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.initPool(MicroSocketClientInvoker.java:1011)) [MicroSocketClientInvoker] Creating semaphore with size 1
| 10:58:41,946 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:297)) [MicroRemoteClientInvoker] SocketClientInvoker[166c114, bisocket://192.168.8.117:4457] connected
| 10:58:41,948 DEBUG @Thread-10 (org.jboss.remoting.Client.addListener(Client.java:960)) [Client] starting callback Connector: InvokerLocator [bisocket://192.168.8.125:997103908/callback?callbackServerHost=192.168.8.125&callbackServerPort=997103908&callbackServerProtocol=bisocket&clientMaxPoolSize=1&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&datatype=jms&guid=5c4o83h-59bpys-freqzo4j-1-frer1bbv-9t&isCallbackServer=true&onewayThreadPool=org.jboss.jms.server.remoting.DirectThreadPool&serverSocketClass=org.jboss.jms.server.remoting.ServerSocketWrapper]
| 10:58:41,951 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.createServerSocketFactory(ServerInvoker.java:1498)) [ServerInvoker] SocketServerInvoker[192.168.8.125:997103908] did not find server socket factory configuration as mbean service or classname. Creating default server socket factory.
| 10:58:41,951 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.createServerSocketFactory(ServerInvoker.java:1504)) [ServerInvoker] SocketServerInvoker[192.168.8.125:997103908] created server socket factory javax.net.DefaultServerSocketFactory@113beb5
| 10:58:41,952 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.setup(BisocketServerInvoker.java:659)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:997103908] setting pingFrequency to 214748364
| 10:58:41,952 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.setup(BisocketServerInvoker.java:677)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:997103908] setting pingWindowFactor to 10
| 10:58:41,952 DEBUG @Thread-10 (org.jboss.remoting.transport.Connector.start(Connector.java:354)) [Connector] org.jboss.remoting.transport.Connector@b31a7c started
| 10:58:41,953 DEBUG @Thread-10 (org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1745)) [ServerInvoker] ServerInvoker (SocketServerInvoker[192.168.8.125:997103908]) added client callback handler CallbackManager[509df8] with session id of 5c4o83h-59bpys-freqzo4j-1-frer1bba-9p+5c4o83h-59bpys-freqzo4j-1-frer1bc0-9u and callback handle object of null.
| 10:58:41,953 DEBUG @Thread-10 (org.jboss.remoting.InvokerRegistry.decrementClientInvokerCounter(InvokerRegistry.java:628)) [InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@8fcc7b from registry
| 10:58:41,953 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.getSecondaryLocator(BisocketClientInvoker.java:560)) [BisocketClientInvoker] getting secondary locator
| 10:58:41,956 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.getSecondaryLocator(BisocketClientInvoker.java:568)) [BisocketClientInvoker] secondary locator: InvokerLocator [null://192.168.8.117:42993/?]
| 10:58:41,956 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:379)) [BisocketServerInvoker] creating control connection: InvokerLocator [null://192.168.8.117:42993/?]
| 10:58:41,957 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:463)) [BisocketServerInvoker] SocketServerInvoker[192.168.8.125:997103908] created control connection (5c4o83h-59bpys-freqzo4j-1-frer1bc0-9u): Socket[addr=/192.168.8.117,port=42993,localport=50314]
| 10:58:41,969 DEBUG @Thread-10 (org.jboss.remoting.ConnectionValidator.<init>(ConnectionValidator.java:264)) [ConnectionValidator] ConnectionValidator[null, pingPeriod=2000 ms] created
| 10:58:41,969 DEBUG @Thread-10 (org.jboss.remoting.ConnectionValidator.start(ConnectionValidator.java:504)) [ConnectionValidator] ConnectionValidator[null, pingPeriod=2000 ms] timeout: 1000
| 10:58:41,969 DEBUG @Thread-10 (org.jboss.remoting.ConnectionValidator.start(ConnectionValidator.java:505)) [ConnectionValidator] ConnectionValidator[null, pingPeriod=2000 ms] ping retries: 1
| 10:58:41,970 DEBUG @Thread-10 (org.jboss.remoting.ConnectionValidator.start(ConnectionValidator.java:506)) [ConnectionValidator] ConnectionValidator[null, pingPeriod=2000 ms] connection retries: null
| 10:58:41,973 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:562)) [MicroSocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] setting client socket wrapper class name to org.jboss.jms.client.remoting.ClientSocketWrapper
| 10:58:41,973 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:571)) [MicroSocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] setting shouldCheckConnection to false
| 10:58:41,973 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketClientInvoker.configureParameters(SocketClientInvoker.java:98)) [SocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] setting timeout to 0
| 10:58:41,974 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.<init>(MicroSocketClientInvoker.java:278)) [MicroSocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] constructed
| 10:58:41,975 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:562)) [MicroSocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] setting client socket wrapper class name to org.jboss.jms.client.remoting.ClientSocketWrapper
| 10:58:41,975 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.configureParameters(MicroSocketClientInvoker.java:571)) [MicroSocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] setting shouldCheckConnection to false
| 10:58:41,976 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.SocketClientInvoker.configureParameters(SocketClientInvoker.java:98)) [SocketClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] setting timeout to 0
| 10:58:41,976 DEBUG @Thread-10 (org.jboss.remoting.transport.bisocket.BisocketClientInvoker.<init>(BisocketClientInvoker.java:181)) [BisocketClientInvoker] Setting ping frequency to: 214748364
| 10:58:41,976 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:283)) [MicroRemoteClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] connecting
| 10:58:41,976 DEBUG @Thread-10 (org.jboss.remoting.transport.socket.MicroSocketClientInvoker.initPool(MicroSocketClientInvoker.java:1011)) [MicroSocketClientInvoker] Creating semaphore with size 50
| 10:58:41,977 DEBUG @Thread-10 (org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:297)) [MicroRemoteClientInvoker] SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457] connected
| 10:58:41,977 DEBUG @Thread-10 (org.jboss.remoting.ConnectionValidator.start(ConnectionValidator.java:528)) [ConnectionValidator] ConnectionValidator[SocketClientInvoker[1e6696c, bisocket://192.168.8.117:4457], pingPeriod=2000 ms] started
| 10:58:41,984 INFO @Thread-10 (org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:177)) [FailoverCommandCenter] JBoss Messaging failover complete
| 10:58:41,984 DEBUG @Thread-10 (org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:201)) [FailoverCommandCenter] FailoverCommandCenter[ConnectionState[8b-0qx1perf-1-9fvfoerf-3vjl04-938o4c5]] completed successful failover
| 10:58:42,020 DEBUG @main (com.test.jee.jms.client.JmsSenderImpl.sendMessage(JmsSenderImpl.java:79)) [JmsSenderImpl] sendMessage:: EXIT
| 10:58:42,020 DEBUG @main (com.test.jee.jms.client.JmsSenderApp.sendMessages(JmsSenderApp.java:21)) [JmsSenderApp] sendMessages:: Message: 321
| 10:58:42,020 DEBUG @main (com.test.jee.jms.client.JmsSenderImpl.sendMessage(JmsSenderImpl.java:70)) [JmsSenderImpl] sendMessage:: ENTRY - 0 ://192.168.8.117:4457/?JB
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211763#4211763
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211763
17 years, 2 months
[Clustering/JBoss] - JBoss is Clustered Mode, Network issues, strange response...
by srinivasan_chandrashekar
Hi All,
We were evaluating jBoss clustering for our product, we have JBoss 4.0.4 GA.
Our setup is something like this:-
1) We have one node, with 2 JBoss servers.
2) Load balancer, that posts the requests to these servers in round robin fashion.
We test different scenarious as below and the results are fine:-
this is in the middle of jBoss processing a long transactions involving lots of sub tasks
1) One of the the JBoss is shutdown properly(normal exit), other jBoss takes over the session and pending transactions seamlessly.
2) One of the the JBoss is crashed shut down (we force crash), and the other jBoss takes over the session and pending transactions seamlessly.
We have a problem under this scenario:-
1) To simulate the Network Issues, we unplug the network cable of one of the JBoss which is in cluster and processing a long transaction and this when the processing is half way through
2) The Other jBoss takes over the transaction and starts processing, but the resources that are accessed by the first server are locked and the second server cannot perform the task.. its a Dead lock situation...
Basically we have a Set of Database updates and deletes in the subtask, and we unplug the network cable for the second JBoss before the transaction is comitted. The second jBoss restarts the transaction but it encounters a timeout and cannot proceed..
My Question is: Even though JBoss shutdown and network cable unplug is done at a similar point of Transaction processing, howcome in the first scenario the second server is able to take over the transaction and why not in the second...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211761#4211761
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211761
17 years, 2 months