camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-8746) Jasypt with BridgePropertyPlaceholderConfigurer is not handling spring property injection with defaults anymore
Date Wed, 06 May 2015 11:05:00 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-8746:
-------------------------------
    Estimated Complexity: Novice  (was: Unknown)

> Jasypt with BridgePropertyPlaceholderConfigurer is not handling spring property injection
with defaults anymore
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8746
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8746
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jasypt, camel-spring
>    Affects Versions: 2.15.2
>            Reporter: Oliver Holzmann
>             Fix For: 2.16.0, 2.15.3
>
>
> After updating from 2.15.1 to 2.15.2 injecting property values handled by Jasypt via
{{BridgePropertyPlaceholderConfigurer}} is not supporting default values any more.
> Code like 
> {code}
>     @Value("${testProperty:test}")
>     private String test;
> {code}
> is leading to {{NullPointerException}}:
> {quote}
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'test': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private java.lang.String org.apache.camel.component.jasypt.Test.test;
nested exception is java.lang.NullPointerException
>         at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
>         at java.util.regex.Matcher.reset(Matcher.java:308)
>         at java.util.regex.Matcher.<init>(Matcher.java:228)
>         at java.util.regex.Pattern.matcher(Pattern.java:1088)
>         at org.apache.camel.component.jasypt.JasyptPropertiesParser.parseProperty(JasyptPropertiesParser.java:56)
>         at org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer.resolvePlaceholder(BridgePropertyPlaceholderConfigurer.java:121)
>         at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.resolvePlaceholder(PropertyPlaceholderConfigurer.java:162)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message