-
Jan 8th, 2013, 04:48 PM
#1
message-driven-inbound-adapter setup with Tibco
Hello Team,
Can someone please please provide the steps involved in setting up a message driven adapter for consuming messages from TIBCO EMS server.
I am having the configuration like below and i an facing an exceptions.
<bean id="msginTopic" class="com.tibco.tibjms.TibjmsTopic">
<constructor-arg value="EMS Topic Name" />
</bean>
<bean id="defaultMessageListenerContainer" class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
<property name="concurrentConsumers" value="1"/>
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destinationName" value="msginTopic"/>
</bean>
<jms:message-driven-channel-adapter id="msgDrivenAdapter" container="defaultMessageListenerContainer"
channel="msgchannel"/>
<bean name="connectionFactory" class="com.tibco.tibjms.TibjmsConnectionFactory">
<property name="serverUrl" value="server name with post"/>
<property name="userName" value="userid"/>
<property name="userPassword" value="password"/>
</bean>
Exception is below
Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.jms.ChannelPublis hingJmsMessageListener#0': Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcept ion
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 94)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:291 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:918)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:469)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
at com.barcap.ocs.scheduling.main.Bootstrap.main(Boot strap.java:15)
Caused by: java.lang.reflect.MalformedParameterizedTypeExcept ion
at sun.reflect.generics.reflectiveObjects.Parameteriz edTypeImpl.validateConstructorArguments(Parameteri zedTypeImpl.java:42)
at sun.reflect.generics.reflectiveObjects.Parameteriz edTypeImpl.<init>(ParameterizedTypeImpl.java:35)
at sun.reflect.generics.reflectiveObjects.Parameteriz edTypeImpl.make(ParameterizedTypeImpl.java:77)
at sun.reflect.generics.factory.CoreReflectionFactory .makeParameterizedType(CoreReflectionFactory.java: 86)
at sun.reflect.generics.visitor.Reifier.visitClassTyp eSignature(Reifier.java:122)
at sun.reflect.generics.tree.ClassTypeSignature.accep t(ClassTypeSignature.java:31)
at sun.reflect.generics.repository.ClassRepository.ge tSuperInterfaces(ClassRepository.java:82)
at java.lang.Class.getGenericInterfaces(Class.java:79 4)
at org.springframework.core.GenericTypeResolver.getTy peVariableMap(GenericTypeResolver.java:287)
at org.springframework.core.GenericTypeResolver.resol veParameterType(GenericTypeResolver.java:82)
at org.springframework.beans.GenericTypeAwareProperty Descriptor.getWriteMethodParameter(GenericTypeAwar ePropertyDescriptor.java:150)
at org.springframework.beans.GenericTypeAwareProperty Descriptor.getPropertyType(GenericTypeAwarePropert yDescriptor.java:132)
at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:516)
at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:510)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.convertForProperty(Abst ractAutowireCapableBeanFactory.java:1406)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1365)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:517)
... 11 more
-
Jan 11th, 2013, 11:08 AM
#2
Found the issue and resolved now.
This was a conflict between spring.2.5.1.jar and spring.2.5.6.jar. I used spring.2.5.1 and the application is able to read the Tibco Topic. Very concise way of defining the bean and very elegant. I am impressed with the features of Spring Integration
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules