activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Skoglund (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-4189) PooledConnectionFactory with JmsTemplate results in MalformedParameterizedTypeException
Date Fri, 30 Nov 2012 11:59:58 GMT

    [ https://issues.apache.org/jira/browse/AMQ-4189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507285#comment-13507285
] 

Robin Skoglund commented on AMQ-4189:
-------------------------------------

We had the same issue, and found it to be a version mismatch (transitive dependencies, ahoy!)
between commons-pool 1.4 (used by commons-dbcp) and 1.7 (used by activemq-pool). Solved it
by excluding commons-pool from the commons-dbcp dependency.

Not saying that this is a proper fix/workaround, or even related to your issues, but it worked
for us. Watching this issue to see what the amq guys will say.
                
> PooledConnectionFactory with JmsTemplate results in MalformedParameterizedTypeException
> ---------------------------------------------------------------------------------------
>
>                 Key: AMQ-4189
>                 URL: https://issues.apache.org/jira/browse/AMQ-4189
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: activemq-pool
>    Affects Versions: 5.7.0
>         Environment: Tomcat 7.0.27
> Spring 3.1.2
>            Reporter: Pragadeesh Prakasam
>
>   <!-- JMS ConnectionFactory to use, configuring the embedded broker using XML -->
>   <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/>
>   
>   <!-- Spring JMS Template -->
>   <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
>     <property name="connectionFactory">
>       <!-- lets wrap in a pool to avoid creating a connection per send -->
>       <bean class="org.springframework.jms.connection.SingleConnectionFactory">
>         <property name="targetConnectionFactory">
>           <ref local="jmsFactory" />
>         </property>
>       </bean>
>     </property>
>   </bean>
> here if we use org.apache.activemq.pool.PooledConnectionFactory  instead of org.springframework.jms.connection.SingleConnectionFactory,

> we are receiving org.springframework.beans.factory.BeanCreationException: Initialization
of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

> We got this when we upgraded from ActiveMQ 5.4 to 5.7

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message