The following simple expression with replaceAll and a regex (to remove tags like <mytag>):
.setProperty("testString", new SimpleExpression("${exchangeProperty.testString.replaceAll('<[^>]+>','')}"))
Causes an IllegalArgumentException. It appears that the presence of the '<' character at position 0 causes the DefaultClassResolver to throw the IllegalArgumentException when testing the parameter type. This is the method that does the loadClass:
called from:
This same expression worked in Camel 2.x, but fails in Camel 3.14.x. Workarounds are available (do the regex/replace in a processor, for example).