camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronny Aerts <>
Subject JasyptPropertiesParser fails on default value
Date Wed, 07 Jun 2017 13:39:51 GMT
Hello communicty,

I'm using the JasyptPropertiesParser in combination with the BridgePropertyPlaceholderConfigurer
to able to encrypt properties by adding the parser property.
             <beans:property name="parser">
                    <!-- define the jasypt properties parser with the given password to
be used -->
                    <beans:bean class="org.apache.camel.component.jasypt.JasyptPropertiesParser"
                           <beans:property name="password" value="#{IP.getPassword()}"/>
                           <beans:property name="algorithm" value="PBEWITHSHA1ANDRC4_128"/>
This works fine but when I have a "tris.dlq.folder.process.history:c:/temp/TrisESB" property
with a default value in my xml route, the route creating fails with error:
Caused by: java.lang.IllegalArgumentException: PropertiesComponent with name properties must
be defined in CamelContext to support property placeholders. Property with key [tris.dlq.folder.process.history:c:/temp/TrisESB]
not found in properties from text: file://{{tris.dlq.folder.process.history:c:/temp/TrisESB}}?fileName=$simple{header.breadcrumbId}-prochist.htm

My log also mentions the parsing of the property.
[TRACE] [org.apache.camel.component.jasypt.JasyptPropertiesParser] Parsing property 'tris.dlq.folder.process.history:c:/temp/TrisESB=null'

Has someone seen this before?
It seems that the JasyptPropertiesParser can't handle default properties.

vriendelijke groeten,
Ronny Aerts<> - Intris nv - Wapenstilstandlaan 47, 2600
Berchem, Belgiƫ
Product Owner Integrations / Integrations Manager
Prince II<> certified - ITIL<>
Tel: +32-3-326.50.75

Intris nv
Wapenstilstandlaan 47
B-2600 Berchem  Tel.  +32 3 326 50 75
Fax  +32 3 326 42 23<>
This is an e-mail from Intris. The information contained in this communication is intended
solely for use by the individual or entity to whom it is addressed.
Use of this communication by others is prohibited. If the e-mail message was sent to you by
mistake, please notify<>, destroy it without
reading, using, copying or disclosing its contents to any other person.
We accept no liability for damage related to data and/or documents which are communicated
by electronic mail.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message