Failed to set delayPattern with properties in redeliveryPolicy tag.

Solution Verified - Updated -

Issue

  • User defined a redelivery policy in <onException> with
<redeliveryPolicy maximumRedeliveries="{\{maxRe}}" delayPattern="{\{delayPatt}}" />
  • With properties max=-1 and pattern=0:10000;6:300000;18:900000
  • But user get the following error
Caused by: java.lang.NumberFormatException: null
  at java.lang.Long.parseLong(Long.java:404)[:1.7.0_45]
  at java.lang.Long.valueOf(Long.java:540)[:1.7.0_45]
  at org.apache.camel.processor.RedeliveryPolicy.calculateRedeliverDelayUsingPattern(RedeliveryPolicy.java:242)[org.apache.camel:camel-core:2.12.0.redhat-610379 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4]
  at org.apache.camel.processor.RedeliveryPolicy.calculateRedeliveryDelay(RedeliveryPolicy.java:201)[org.apache.camel:camel-core:2.12.0.redhat-610379 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4]

Environment

  • Red Hat JBoss Fuse
    • 6.1
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.