Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4296185AE for ; Wed, 6 May 2015 08:30:00 +0000 (UTC) Received: (qmail 19537 invoked by uid 500); 6 May 2015 08:30:00 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 19409 invoked by uid 500); 6 May 2015 08:30:00 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 19397 invoked by uid 99); 6 May 2015 08:30:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2015 08:30:00 +0000 Date: Wed, 6 May 2015 08:30:00 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-8746) Jasypt with BridgePropertyPlaceholderConfigurer is not handling spring property injection with defaults anymore MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-8746: ------------------------------- Priority: Major (was: Critical) > 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 > > 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.(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)