JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-6133

Pattern:validator cannot have filter and outbound endpoint child elements.

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.2.1
  • Fix Version/s: None
  • Component/s: Core: (other)
  • Labels:
    None
  • Environment:

    JDK 6

  • User impact:
    Medium
  • Log Output:
    Hide
    ...
    Root Exception stack trace:
    java.lang.IllegalArgumentException: validationFilter can't be null
    nbsp;nbsp;nbsp;nbsp;at org.apache.commons.lang.Validate.notNull(Validate.java:203)
    nbsp;nbsp;nbsp;nbsp;at org.mule.construct.Validator.<init>(Validator.java:76)
    nbsp;nbsp;nbsp;nbsp;at org.mule.construct.builder.ValidatorBuilder.buildFlowConstruct(ValidatorBuilder.java:69)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
    ...
    Show
    ... Root Exception stack trace: java.lang.IllegalArgumentException: validationFilter can't be null nbsp;nbsp;nbsp;nbsp;at org.apache.commons.lang.Validate.notNull(Validate.java:203) nbsp;nbsp;nbsp;nbsp;at org.mule.construct.Validator.<init>(Validator.java:76) nbsp;nbsp;nbsp;nbsp;at org.mule.construct.builder.ValidatorBuilder.buildFlowConstruct(ValidatorBuilder.java:69) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ...
  • Similar Issues:
    None

Description

See the attached ValidatorTestCase.java and validator-config.xml, which has been extended to expose the bug.
Note that the bug will cause all other tests in the case to fail.

The filter is added to the properties of the generic bean definition created from the pattern:validator element with the property name "messageProcessor".
If there is a outbound endpoint child element, it is added to the properties of the generic bean definition created from the pattern:validator element with the property name "messageProcessor", thus overwriting the message property created by the filter child element.
The end result will be an exception thrown by the org.mule.construct.Validator class, since it will receive null-value for the validation filter.
If the outbound endpoint is specified using an attribute of the pattern:validator element, the above problem will not occur.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    ValidatorTestCase.java
    20/Mar/12 01:53 PM
    4 kB
    Ivan Krizsan
  2. XML File
    validator-config.xml
    20/Mar/12 01:53 PM
    5 kB
    Ivan Krizsan

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Ivan Krizsan added a comment - 20/Mar/12 01:53 PM

Validator test case and Mule configuration file with new test that exposes the issue.

Show
Ivan Krizsan added a comment - 20/Mar/12 01:53 PM Validator test case and Mule configuration file with new test that exposes the issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Ivan Krizsan
Vote (1)
Watch (0)

Dates

  • Created:
    20/Mar/12 01:51 PM
    Updated:
    28/Mar/12 01:19 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.