Giter Club home page Giter Club logo

Comments (1)

LemonNanami avatar LemonNanami commented on May 26, 2024

Hello.

I might have got the same problem.

When I set proxy-property-sources=true, I find a ClassCastException while invoking method com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource.isImmutable() with PropertiesPropertySource.

I havn't find any known issue about, but when I set proxy-property-sources=false it works.

Caused by: org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public default boolean com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource.isImmutable()] on target [PropertiesPropertySource {name='systemProperties'}] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:360) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:765) at com.ulisesbocchio.jasyptspringboot.aop.EncryptablePropertySourceMethodInterceptor.invoke(EncryptablePropertySourceMethodInterceptor.java:42) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:765) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:717) at org.springframework.core.env.PropertiesPropertySource$$SpringCGLIB$$0.isImmutable(<generated>) at org.springframework.boot.context.properties.source.SpringIterableConfigurationPropertySource.isImmutablePropertySource(SpringIterableConfigurationPropertySource.java:173) at org.springframework.boot.context.properties.source.SpringIterableConfigurationPropertySource.<init>(SpringIterableConfigurationPropertySource.java:66) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySource.from(SpringConfigurationPropertySource.java:149) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources.adapt(SpringConfigurationPropertySources.java:69) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources$SourcesIterator.fetchNext(SpringConfigurationPropertySources.java:124) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources$SourcesIterator.fetchNext(SpringConfigurationPropertySources.java:122) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources$SourcesIterator.fetchNext(SpringConfigurationPropertySources.java:122) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources$SourcesIterator.fetchNext(SpringConfigurationPropertySources.java:122) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources$SourcesIterator.fetchNext(SpringConfigurationPropertySources.java:119) at org.springframework.boot.context.properties.source.SpringConfigurationPropertySources$SourcesIterator.hasNext(SpringConfigurationPropertySources.java:94) at org.springframework.boot.context.properties.bind.Binder.<init>(Binder.java:186) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.getBinder(ConfigurationPropertiesBinder.java:181) at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.bind(ConfigurationPropertiesBinder.java:94) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:96) ... 52 common frames omitted Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.checkReceiver(DirectMethodHandleAccessor.java:197) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:99) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:352) ... 74 common frames omitted
20240221-103130

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.