You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2012/07/14 13:29:35 UTC

[jira] [Commented] (AMQ-3926) jms.redeliveryPolicy.redeliveryDelay and jms.redeliveryPolicy.initialRedeliveryDelay options cause a failure on startup

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

Timothy Bish commented on AMQ-3926:
-----------------------------------

jms.redeliveryPolicy.redeliveryDelay isn't a valid option for the policy class which is why you get an error.  Take a look at class RedeliveryPolicy in activemq-core.
                
> jms.redeliveryPolicy.redeliveryDelay and jms.redeliveryPolicy.initialRedeliveryDelay options cause a failure on startup
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3926
>                 URL: https://issues.apache.org/jira/browse/AMQ-3926
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.6.0
>         Environment: Ubuntu 12.04 x64, Tomcat 7.0.22, java1.6_33 x64
>            Reporter: John Miller
>            Priority: Critical
>
> After upgrading from 5.5 to 5.6 broker throws en exception on startup
> ------------------------------------------ context.xml ------------
>  <Resource name="jms/connectionFactory" auth="Container" type="org.apache.activemq.ActiveMQConnectionFactory"
>             description="Repository JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory"
>             brokerURL="failover:(tcp://localhost:61616)?timeout=3000&amp;jms.redeliveryPolicy.maximumRedeliveries=2&amp;jms.redeliveryPolicy.redeliveryDelay=3000L&amp;jms.redeliveryPolicy.useExponentialBackOff=false"
>             brokerName="LocalActiveMQBroker"/>
> ----------------------------------------------------------------------
> java.lang.IllegalArgumentException: There are 1 jms options that couldn't be set on the ConnectionFactory. Check the options are spelled correctly. Unknown parameters=[{redeliveryPolicy.redeliveryDelay=3000L}]. This connection factory cannot be started.
> 	at org.apache.activemq.ActiveMQConnectionFactory.setBrokerURL(ActiveMQConnectionFactory.java:404)
> 	at org.apache.activemq.ActiveMQConnectionFactory.buildFromProperties(ActiveMQConnectionFactory.java:660)
> 	at org.apache.activemq.jndi.JNDIBaseStorable.setProperties(JNDIBaseStorable.java:59)
> 	at org.apache.activemq.jndi.JNDIReferenceFactory.getObjectInstance(JNDIReferenceFactory.java:73)
> 	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143)
> 	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
> 	at org.apache.naming.NamingContext.lookup(NamingContext.java:826)
> 	at org.apache.naming.NamingContext.lookup(NamingContext.java:145)
> 	at org.apache.naming.NamingContext.lookup(NamingContext.java:814)
> 	at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
> 	at org.apache.commons.configuration.JNDIConfiguration.getProperty(JNDIConfiguration.java:404)
> 	at net.worldticket.services.core.persistence.javaConfig.WebApplicationLoaderContext.jmsConnectionFactory(WebApplicationLoaderContext.java:85)
> 	at net.worldticket.services.core.persistence.javaConfig.WebApplicationLoaderContext$$EnhancerByCGLIB$$de53

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira