Coder Social home page Coder Social logo

Comments (8)

ulisesbocchio avatar ulisesbocchio commented on May 18, 2024

Did you try pulling the repo and building from sources with open jdk?
Do you have public repo I can see your project configuration?

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 18, 2024

any update??

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 18, 2024

It seems that you're running your app with something else than what you're actually showing. Version 52 is Java 8, so if you get that error it means whatever you're running with doesn't support it, meaning it's a lower version JRE/JDK.

from jasypt-spring-boot.

kohlideepti avatar kohlideepti commented on May 18, 2024

Sorry...could not respond earlier. Yes, I did clone the latest and tried
with java 1.8 Stand alone it works with but when I bundled my project in
war and run inside tomcat, it does not work

tomcat version is 8 and java version installed on ubuntu server is openjdk 8

Regards,
Deepti
Director - gheware.com
+91 - 9740807444

-- Track your phone on Google Map by Google Play App
https://play.google.com/store/apps/details?id=com.ghewareunigps.android.location.free
http://ghewareunigps.in/content/android

On Thu, Sep 1, 2016 at 1:06 AM, Ulises Bocchio [email protected]
wrote:

It seems that you're running your app with something else than what you're
actually showing. Version 52 is Java 8, so if you get that error it means
whatever you're running with doesn't support it, meaning it's a lower
version JRE/JDK.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKQSNP4rse23nV2bdVcWfsB1-TWpcFcOks5qldfEgaJpZM4Juq_F
.

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 18, 2024

I see, check what version of java your tomcat is running on, it seems that that's your problem

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 18, 2024

Check out this sample project https://github.com/ulisesbocchio/jasypt-spring-boot-samples/tree/master/jasypt-spring-boot-demo-tomcat-ssl which works just fine with Tomcat

from jasypt-spring-boot.

kohlideepti avatar kohlideepti commented on May 18, 2024

Checked out this samples project and set the property
-Djasypt-encryptor-password=secret before running and got below when ran in
STS spring boot launch:

Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException:
null
at
org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055)
~[jasypt-1.9.2.jar:na]
at
org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
~[jasypt-1.9.2.jar:na]
at
org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498)
~[jasypt-1.9.2.jar:na]
at
com.ulisesbocchio.jasyptspringboot.encryptor.LazyStringEncryptor.decrypt(LazyStringEncryptor.java:32)
~[jasypt-spring-boot-1.8-SNAPSHOT.jar:na]
at
org.jasypt.properties.PropertyValueEncryptionUtils.decrypt(PropertyValueEncryptionUtils.java:72)
~[jasypt-1.9.2.jar:na]
at
com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource.getProperty(EncryptablePropertySource.java:16)
~[jasypt-spring-boot-1.8-SNAPSHOT.jar:na]
at
com.ulisesbocchio.jasyptspringboot.wrapper.EncryptableMapPropertySourceWrapper.getProperty(EncryptableMapPropertySourceWrapper.java:28)
~[jasypt-spring-boot-1.8-SNAPSHOT.jar:na]
at
org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:84)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:60)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:531)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:132)
~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:129)
~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:84)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.PropertySourcesPropertyResolver.getPropertyAsRawString(PropertySourcesPropertyResolver.java:70)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.AbstractPropertyResolver$1.resolvePlaceholder(AbstractPropertyResolver.java:207)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:147)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:204)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:178)
~[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:172)
~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:808)
~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1027)
~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)
~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]

Regards,
Deepti
Director - gheware.com
+91 - 9740807444

-- Track your phone on Google Map by Google Play App
https://play.google.com/store/apps/details?id=com.ghewareunigps.android.location.free
http://ghewareunigps.in/content/android

On Thu, Sep 1, 2016 at 11:17 PM, Ulises Bocchio [email protected]
wrote:

Check out this sample project https://github.com/
ulisesbocchio/jasypt-spring-boot-samples/tree/master/
jasypt-spring-boot-demo-tomcat-ssl which works just fine with Tomcat


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKQSNHAr2wdh3kVY03RE8RmUrDvKq8Gcks5qlw-ygaJpZM4Juq_F
.

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 18, 2024

The passwors is password, so you need -Djasypt-encryptor-password=password or just uncomment line 31 of SampleTomcatSslApplication.

from jasypt-spring-boot.

Related Issues (20)

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.