Giter VIP home page Giter VIP logo

jasypt-spring-boot-samples's Introduction

Build Status

jasypt-spring-boot-samples

Sample apps using jasypt-spring-boot

jasypt-spring-boot-samples's People

Contributors

dependabot[bot] avatar melloware avatar rupert-madden-abbott avatar tkalmar avatar ulibocchio avatar ulisesbocchio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jasypt-spring-boot-samples's Issues

Encryption not working with bootstrap.propertites

I have added jasypt spring boot starter 1.18 version in pom as my spring boot version is 1.5.16. I am trying to encrypt bootstrap.properties which is used to access spring cloud config sever url, username and password. The password is in jasypt encrypted format however while connecting to spring cloud config server it's not sending decrypted value. Does anyone know how to encrypt value of bootstrap.propetites using Jasypt?? I tried all the available options.

Not able to run SimpleDemoApplication.class demo

Hi UB,

I tried to run SimpleDemoApplication.class as is but end up with the below exception on startup. Can you please help me out?

org.springframework.context.ApplicationContextException: Exception Creating PropertySource; nested exception is java.lang.IllegalArgumentException: Property source name must contain at least one character
    at com.ulisesbocchio.jasyptspringboot.configuration.EncryptablePropertySourcesInitializer$EncryptablePropertySourceAnnotationBeanFactoryPostProcessor.loadEncryptablePropertySource(EncryptablePropertySourcesInitializer.java:71)
    at com.ulisesbocchio.jasyptspringboot.configuration.EncryptablePropertySourcesInitializer$EncryptablePropertySourceAnnotationBeanFactoryPostProcessor.lambda$postProcessBeanFactory$0(EncryptablePropertySourcesInitializer.java:58)
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
    at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
    at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
    at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
    at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
    at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
    at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
    at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(Unknown Source)
    at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
    at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
    at com.ulisesbocchio.jasyptspringboot.configuration.EncryptablePropertySourcesInitializer$EncryptablePropertySourceAnnotationBeanFactoryPostProcessor.postProcessBeanFactory(EncryptablePropertySourcesInitializer.java:58)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:174)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
    at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
    at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
    at com.esi.feps.p10496.p10496_jasypt_sb_test.SimpleDemoApplication.main(SimpleDemoApplication.java:42)
Caused by: java.lang.IllegalArgumentException: Property source name must contain at least one character
    at org.springframework.util.Assert.hasText(Assert.java:168)
    at org.springframework.core.env.PropertySource.<init>(PropertySource.java:71)
    at org.springframework.core.env.PropertySource.<init>(PropertySource.java:85)
    at org.springframework.core.env.EnumerablePropertySource.<init>(EnumerablePropertySource.java:51)
    at org.springframework.core.env.CompositePropertySource.<init>(CompositePropertySource.java:52)
    at com.ulisesbocchio.jasyptspringboot.configuration.EncryptablePropertySourcesInitializer$EncryptablePropertySourceAnnotationBeanFactoryPostProcessor.createPropertySource(EncryptablePropertySourcesInitializer.java:79)
    at com.ulisesbocchio.jasyptspringboot.configuration.EncryptablePropertySourcesInitializer$EncryptablePropertySourceAnnotationBeanFactoryPostProcessor.loadEncryptablePropertySource(EncryptablePropertySourcesInitializer.java:63)
    ... 26 common frames omitted

Thanks in advance.

Madhu.

Failes when property not defined

in our environment, we - for development put all properties in our application-dev.properties file.
in our upstream environments - we add a startup parameter (-Dsecurity.file=somefile). which has the encrypted properties

our configuration file for the non dev envionments has the following:
@EncryptablePropertySource(value = "file:${security.file}", ignoreResourceNotFound = true)

this fails as security.file is not defined in our dev environments.

Assume the fix is: in EncryptablePropertySourceBeanFactoryPostProcessor

something like:

private PropertySource createPropertySource(AnnotationAttributes attributes, ConfigurableEnvironment environment, ResourceLoader resourceLoader, EncryptablePropertyResolver resolver, List loaders) throws Exception {
String name = generateName(attributes.getString("name"));
String[] locations = attributes.getStringArray("value");
boolean ignoreResourceNotFound = attributes.getBoolean("ignoreResourceNotFound");
CompositePropertySource compositePropertySource = new CompositePropertySource(name);
Assert.isTrue(locations.length > 0, "At least one @propertysource(value) location is required");
try{
for (String location : locations) {
String resolvedLocation = environment.resolveRequiredPlaceholders(location);
Resource resource = resourceLoader.getResource(resolvedLocation);
if (!resource.exists()) {
if (!ignoreResourceNotFound) {
throw new IllegalStateException(String.format("Encryptable Property Source '%s' from location: %s Not Found", name, resolvedLocation));
} else {
log.info("Ignoring NOT FOUND Encryptable Property Source '{}' from locations: {}", name, resolvedLocation);
}
} else {
String actualName = name + "#" + resolvedLocation;
loadPropertySource(loaders, resource, actualName)
.ifPresent(compositePropertySource::addPropertySource);
}
}
}
catch (Exception e){
if(!ignoreResourceNotFound){
log.warn("the % is not defined - ignoring the property file",locations.toString());
throw e;
}
}
return new EncryptableEnumerablePropertySourceWrapper<>(compositePropertySource, resolver);
}

Decryption not working with Spring vault and spring boot 3.2.4

spring:
  config:
    import: vault://
  cloud:
    vault:
      authentication: approle
      app-role:
        app-role-path: approle
        role-id: ${encrypted-role-id}
        secret-id: ${encrypted-secret-id}
      kv:
        backend: spring-boot-test
        enabled: true
        profile-separator: /
        default-context: saml
      enabled: true
      uri: https://test.test.com
      scheme: https

encrypted-role-id: ENC(encryptedtext)
encrypted-secret-id: ENC(encryptedtext)


<dependency>
	<groupId>com.github.ulisesbocchio</groupId>
	<artifactId>jasypt-spring-boot-starter</artifactId>
	<version>3.0.5</version>
</dependency>
<dependency>
	<groupId>com.github.ulisesbocchio</groupId>
	<artifactId>jasypt-spring-boot-starter</artifactId>
	<version>3.0.5</version>
</dependency>

The encrypted string is being passed in as the role id when trying to login, can you please help me out.

Decryption of Properties failed, make sure encryption/decryption passwords match

Hi,
I'm playing around with jasypt-spring-boot-demo-tomcat-ssl sample.
It's worth mentioning that all the steps below have been first tested with the original configuration (the one that uses jasypt.encryptor.password=password) and everything worked as expected.
Then, I wanted to simulated a change of the password: from password to 12345.

  1. encrypt the value
./encrypt.sh input="this is a different chupacabra" password=12345
----ENVIRONMENT-----------------

Runtime: Oracle Corporation OpenJDK 64-Bit Server VM 11.0.5+10 



----ARGUMENTS-------------------

input: this is a different chupacabra
password: 12345



----OUTPUT----------------------

SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==
  1. update the value in application.properties
    secret.property=ENC(SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==)

  2. build again: mvn clean install -DskipTests

  3. deploy in Tomcat passing the new password as and env variable:

docker run -it --rm -p 8080:8080 --env jasypt.encryptor.password=12345 -v $(pwd)/target/jasypt-spring-boot-demo-tomcat-ssl-0.1-SNAPSHOT.war:/usr/local/tomcat/webapps/app.war tomcat:9.0

  .   ____          _            __ _ _

 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \

( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )

  '  |____| .__|_| |_|_| |_\__, | / / / /

 =========|_|==============|___/=/_/_/_/

�[32m :: Spring Boot :: �[39m      �[2m (v2.2.1.RELEASE)�[0;39m



�[2m2020-01-29 15:51:27.600�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36ms.tomcat.SampleTomcatSslApplication     �[0;39m �[2m:�[0;39m Starting SampleTomcatSslApplication on c58d12c092da with PID 1 (/usr/local/tomcat/webapps/app/WEB-INF/classes started by root in /usr/local/tomcat)

�[2m2020-01-29 15:51:27.621�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36ms.tomcat.SampleTomcatSslApplication     �[0;39m �[2m:�[0;39m No active profile set, falling back to default profiles: default

�[2m2020-01-29 15:51:28.756�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mptablePropertiesBeanFactoryPostProcessor�[0;39m �[2m:�[0;39m Post-processing PropertySource instances

�[2m2020-01-29 15:51:28.863�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy

�[2m2020-01-29 15:51:28.864�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper

�[2m2020-01-29 15:51:28.865�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource servletContextInitParams [org.springframework.web.context.support.ServletContextPropertySource] to EncryptableEnumerablePropertySourceWrapper

�[2m2020-01-29 15:51:28.865�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource jndiProperties [org.springframework.jndi.JndiPropertySource] to EncryptablePropertySourceWrapper

�[2m2020-01-29 15:51:28.865�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper

�[2m2020-01-29 15:51:28.866�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper

�[2m2020-01-29 15:51:28.866�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper

�[2m2020-01-29 15:51:28.866�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.EncryptablePropertySourceConverter�[0;39m �[2m:�[0;39m Converting PropertySource applicationConfig: [classpath:/application.properties] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper

�[2m2020-01-29 15:51:28.970�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.filter.DefaultLazyPropertyFilter  �[0;39m �[2m:�[0;39m Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter

�[2m2020-01-29 15:51:29.059�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mo.s.web.context.ContextLoader           �[0;39m �[2m:�[0;39m Root WebApplicationContext: initialization completed in 1365 ms

�[2m2020-01-29 15:51:29.313�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.r.DefaultLazyPropertyResolver     �[0;39m �[2m:�[0;39m Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver

�[2m2020-01-29 15:51:29.321�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.d.DefaultLazyPropertyDetector     �[0;39m �[2m:�[0;39m Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector

�[2m2020-01-29 15:51:29.432�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m String Encryptor custom Bean not found with name 'jasyptStringEncryptor'. Initializing Default String Encryptor

�[2m2020-01-29 15:51:29.479�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.algorithm, using default value: PBEWITHHMACSHA512ANDAES_256

�[2m2020-01-29 15:51:29.480�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.key-obtention-iterations, using default value: 1000

�[2m2020-01-29 15:51:29.480�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.pool-size, using default value: 1

�[2m2020-01-29 15:51:29.485�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.provider-name, using default value: null

�[2m2020-01-29 15:51:29.485�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.provider-class-name, using default value: null

�[2m2020-01-29 15:51:29.486�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.salt-generator-classname, using default value: org.jasypt.salt.RandomSaltGenerator

�[2m2020-01-29 15:51:29.497�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.iv-generator-classname, using default value: org.jasypt.iv.RandomIvGenerator

�[2m2020-01-29 15:51:29.498�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mc.u.j.encryptor.DefaultLazyEncryptor    �[0;39m �[2m:�[0;39m Encryptor config not found for property jasypt.encryptor.string-output-type, using default value: base64

�[2m2020-01-29 15:51:29.640�[0;39m �[33m WARN�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mConfigServletWebServerApplicationContext�[0;39m �[2m:�[0;39m Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleController': Injection of autowired dependencies failed; nested exception is com.ulisesbocchio.jasyptspringboot.exception.DecryptionException: Unable to decrypt: ENC(SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==). Decryption of Properties failed,  make sure encryption/decryption passwords match

�[2m2020-01-29 15:51:29.656�[0;39m �[32m INFO�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mConditionEvaluationReportLoggingListener�[0;39m �[2m:�[0;39m 



Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

�[2m2020-01-29 15:51:29.667�[0;39m �[31mERROR�[0;39m �[35m1�[0;39m �[2m---�[0;39m �[2m[           main]�[0;39m �[36mo.s.boot.SpringApplication              �[0;39m �[2m:�[0;39m Application run failed



org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleController': Injection of autowired dependencies failed; nested exception is com.ulisesbocchio.jasyptspringboot.exception.DecryptionException: Unable to decrypt: ENC(SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==). Decryption of Properties failed,  make sure encryption/decryption passwords match

	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:403) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1429) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

	at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172) ~[spring-web-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) ~[catalina.jar:9.0.30]

	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978) ~[catalina.jar:9.0.30]

	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849) ~[catalina.jar:9.0.30]

	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]

	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]

	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.30]

	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) ~[na:na]

	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773) ~[catalina.jar:9.0.30]

	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) ~[catalina.jar:9.0.30]

	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576) ~[catalina.jar:9.0.30]

	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[catalina.jar:9.0.30]

	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]

	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.30]

	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na]

	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.30]

	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) ~[catalina.jar:9.0.30]

	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.30]

	at org.apache.catalina.startup.Catalina.start(Catalina.java:633) ~[catalina.jar:9.0.30]

	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]

	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]

	at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]

	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343) ~[bootstrap.jar:9.0.30]

	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474) ~[bootstrap.jar:9.0.30]

Caused by: com.ulisesbocchio.jasyptspringboot.exception.DecryptionException: Unable to decrypt: ENC(SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==). Decryption of Properties failed,  make sure encryption/decryption passwords match

	at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.lambda$resolvePropertyValue$0(DefaultPropertyResolver.java:46) ~[jasypt-spring-boot-3.0.2.jar:na]

	at java.base/java.util.Optional.map(Optional.java:265) ~[na:na]

	at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.resolvePropertyValue(DefaultPropertyResolver.java:40) ~[jasypt-spring-boot-3.0.2.jar:na]

	at com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver.resolvePropertyValue(DefaultLazyPropertyResolver.java:50) ~[jasypt-spring-boot-3.0.2.jar:na]

	at com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource.getProperty(EncryptablePropertySource.java:20) ~[jasypt-spring-boot-3.0.2.jar:na]

	at com.ulisesbocchio.jasyptspringboot.caching.CachingDelegateEncryptablePropertySource.getProperty(CachingDelegateEncryptablePropertySource.java:38) ~[jasypt-spring-boot-3.0.2.jar:na]

	at com.ulisesbocchio.jasyptspringboot.wrapper.EncryptableMapPropertySourceWrapper.getProperty(EncryptableMapPropertySourceWrapper.java:31) ~[jasypt-spring-boot-3.0.2.jar:na]

	at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:85) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:62) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:537) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:137) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:133) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:85) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.core.env.PropertySourcesPropertyResolver.getPropertyAsRawString(PropertySourcesPropertyResolver.java:74) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:151) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:236) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.lambda$processProperties$0(PropertySourcesPlaceholderConfigurer.java:175) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:908) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1228) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1207) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:636) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:116) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:397) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

	... 58 common frames omitted

Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException: null

	at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1169) ~[jasypt-1.9.3.jar:na]

	at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:738) ~[jasypt-1.9.3.jar:na]

	at org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:511) ~[jasypt-1.9.3.jar:na]

	at com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor.decrypt(DefaultLazyEncryptor.java:115) ~[jasypt-spring-boot-3.0.2.jar:na]

	at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.lambda$resolvePropertyValue$0(DefaultPropertyResolver.java:44) ~[jasypt-spring-boot-3.0.2.jar:na]

	... 82 common frames omitted



29-Jan-2020 15:51:29.669 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/usr/local/tomcat/webapps/app.war]

	java.lang.IllegalStateException: Error starting child

		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)

		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)

		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)

		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)

		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)

		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)

		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)

		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)

		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)

		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)

		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)

		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)

		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)

		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)

		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)

		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)

		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

		at java.base/java.lang.reflect.Method.invoke(Method.java:566)

		at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)

		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)

	Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/app]]

		at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)

		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)

		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)

		... 37 more

	Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleController': Injection of autowired dependencies failed; nested exception is com.ulisesbocchio.jasyptspringboot.exception.DecryptionException: Unable to decrypt: ENC(SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==). Decryption of Properties failed,  make sure encryption/decryption passwords match

		at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:403)

		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1429)

		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)

		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)

		at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)

		at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

		at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)

		at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)

		at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)

		at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)

		at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)

		at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

		at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)

		at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)

		at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

		at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)

		at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)

		at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)

		at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)

		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)

		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

		... 38 more

	Caused by: com.ulisesbocchio.jasyptspringboot.exception.DecryptionException: Unable to decrypt: ENC(SlWh8XFVwxkCEIEeDn3E9Y4Bosp9MZmtnXzL0atBoSH6lqC/8CmE9g==). Decryption of Properties failed,  make sure encryption/decryption passwords match

		at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.lambda$resolvePropertyValue$0(DefaultPropertyResolver.java:46)

		at java.base/java.util.Optional.map(Optional.java:265)

		at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.resolvePropertyValue(DefaultPropertyResolver.java:40)

		at com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver.resolvePropertyValue(DefaultLazyPropertyResolver.java:50)

		at com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource.getProperty(EncryptablePropertySource.java:20)

		at com.ulisesbocchio.jasyptspringboot.caching.CachingDelegateEncryptablePropertySource.getProperty(CachingDelegateEncryptablePropertySource.java:38)

		at com.ulisesbocchio.jasyptspringboot.wrapper.EncryptableMapPropertySourceWrapper.getProperty(EncryptableMapPropertySourceWrapper.java:31)

		at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:85)

		at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:62)

		at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:537)

		at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:137)

		at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:133)

		at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:85)

		at org.springframework.core.env.PropertySourcesPropertyResolver.getPropertyAsRawString(PropertySourcesPropertyResolver.java:74)

		at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:151)

		at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124)

		at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:236)

		at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210)

		at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.lambda$processProperties$0(PropertySourcesPlaceholderConfigurer.java:175)

		at org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:908)

		at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1228)

		at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1207)

		at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:636)

		at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:116)

		at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:397)

		... 58 more

	Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException

		at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1169)

		at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:738)

		at org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:511)

		at com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor.decrypt(DefaultLazyEncryptor.java:115)

		at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.lambda$resolvePropertyValue$0(DefaultPropertyResolver.java:44)

		... 82 more

29-Jan-2020 15:51:29.677 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/app.war] has finished in [5,130] ms

29-Jan-2020 15:51:29.680 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

29-Jan-2020 15:51:29.708 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]

29-Jan-2020 15:51:29.728 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [5,304] milliseconds

^C29-Jan-2020 15:52:08.922 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]

29-Jan-2020 15:52:08.928 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]

29-Jan-2020 15:52:08.929 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]

29-Jan-2020 15:52:08.934 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]

29-Jan-2020 15:52:08.938 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]

29-Jan-2020 15:52:08.941 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]

29-Jan-2020 15:52:08.947 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]

What's wrong with what I'm doing?

Windows Path Issue with H2 Example

Git on Windows is failing with...

Clone: Invalid path: jasypt-spring-boot-demo-db-h2/src/main/resources/testdb:testdb.mv.db

I believe it is because testdb:testdb.mv.db is not a valid windows file name?

Test Failure

I just checked out the code and ran the samples with zero changes and I am getting test failures.

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.406 sec <<< FAILURE!
testIndirectProperties(demo.CloudConfigDemoApplicationTest) Time elapsed: 0 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:https://u[bocchio]:chupacabras@localho... but was:https://u[li]:chupacabras@localho...
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at demo.CloudConfigDemoApplicationTest.testIndirectProperties(CloudConfigDemoApplicationTest.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.