You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Noseda Anne (JIRA)" <ji...@apache.org> on 2009/10/28 11:27:52 UTC

[jira] Created: (SMXCOMP-667) java.lang.NoSuchMethodError: org.springframework.jms.listener.DefaultMessageListenerContainer.setIdleTaskExecutionLimit(I)V

java.lang.NoSuchMethodError: org.springframework.jms.listener.DefaultMessageListenerContainer.setIdleTaskExecutionLimit(I)V
---------------------------------------------------------------------------------------------------------------------------

                 Key: SMXCOMP-667
                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-667
             Project: ServiceMix Components
          Issue Type: Bug
          Components: servicemix-jms
         Environment: smx-3.3.1.20 / redhat
            Reporter: Noseda Anne


We tried to migrate from smx-3.3.1.0-fuse to smx-3.3.1.20-fuse, we had a problem with the jms component. 
A class seems to have changed between this two versions and a method had disappeared.
We tested version smx-3.3.1.20-fuse with component servicemix-jms-3.3.1.0-fuse-installer.zip and servicemix-jms-3.3.1.10-fuse-installer.zip and it worked.
So the modification seemed to appear after version 3.3.1.10 ...

Here our JMS configuration :
---------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0" xmlns:tns="http://www.etnic.be/janus"
	xmlns:amq="http://activemq.org/config/1.0" xmlns:faseAsync="http://www.etnic.be/janus/fase/async">
	<jms:consumer service="faseAsync:JmsOut" endpoint="JmsOutFaseEndpoint"
		targetService="faseAsync:pipeline" targetEndpoint="pipelineFaseEndpoint"
		destinationName="FASE" connectionFactory="#connectionFactory"
		synchronous="true" concurrentConsumers="${concurrentConsumers}"
		listenerType="default" transacted="xa" cacheLevel="3" />
	<amqpool:xa-pool xmlns:amqpool="http://jencks.org/amqpool/2.0"
		id="connectionFactory"
		brokerURL="failover:(tcp://${jmsBroker1Host}:${jmsBroker1Port}?wireFormat.maxInactivityDuration=0,tcp://${jmsBroker2Host}:${jmsBroker2Port}?wireFormat.maxInactivityDuration=0)?jms.redeliveryPolicy.useExponentialBackOff=true&amp;jms.redeliveryPolicy.maximumRedeliveries=3"
		transactionManager="#transactionManager" maxConnections="8" />
	<bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiName" value="javax.transaction.TransactionManager" />
	</bean>
</beans>

Here the stacktrace :
-----------------------------

INFO  - ServiceUnitLifeCycle           - Starting service unit: FASE_ASYNC_WORK_BC_JMS
Exception in thread "Timer-3" java.lang.NoSuchMethodError: org.springframework.jms.listener.DefaultMessageListenerContainer.setIdleTaskExecutionLimit(I)V
	at org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint.createDefaultMessageListenerContainer(JmsConsumerEndpoint.java:558)
	at org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint.createListenerContainer(JmsConsumerEndpoint.java:484)
	at org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint.start(JmsConsumerEndpoint.java:428)
	at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:58)
	at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:53)
	at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
	at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
	at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
	at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:483)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingComponents(AutoDeploymentService.java:535)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateSharedLibrary(AutoDeploymentService.java:317)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:254)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
	at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.