org.springframework.boot.env.YamlPropertySourceLoader could not be processed

ZeroTurnaround Homepage Forums JRebel Support org.springframework.boot.env.YamlPropertySourceLoader could not be processed

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Hannes Metssalu 2 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62573

    Hi guys,

    I got this stacktrace if I start an app with spring-boot 2.0.0.BUILD-SNAPSHOT …

    2017-04-26 23:31:37 JRebel: ERROR Class ‘org.springframework.boot.env.YamlPropertySourceLoader’ could not be processed by org.zeroturnaround.javarebel.integration.spring.boot.cbp.YamlPropertySourceLoaderCBP@sun.misc.Launcher$AppClassLoader@18b4aac2: org.zeroturnaround.bundled.javassist.CannotCompileException: [source error] no such constructor: org.springframework.boot.yaml.SpringProfileDocumentMatcher
    at org.zeroturnaround.bundled.javassist.CtNewMethod.make(SourceFile:79)
    at org.zeroturnaround.bundled.javassist.CtNewMethod.make(SourceFile:45)
    at org.zeroturnaround.javarebel.integration.spring.boot.cbp.YamlPropertySourceLoaderCBP.process(YamlPropertySourceLoaderCBP.java:31)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(SourceFile:117)
    at com.zeroturnaround.javarebel.ti.a(SourceFile:376)
    at com.zeroturnaround.javarebel.ti.a(SourceFile:365)
    at com.zeroturnaround.javarebel.ti.a(SourceFile:322)
    at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(SourceFile:34)
    at com.zeroturnaround.javarebel.rm.transform(SourceFile:105)
    at java.lang.ClassLoader.defineClass(ClassLoader.java)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
    at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:131)
    at org.springframework.core.io.support.SpringFactoriesLoader.loadFactories(SpringFactoriesLoader.java:92)
    at org.springframework.boot.env.PropertySourcesLoader.<init>(PropertySourcesLoader.java:65)
    at org.springframework.boot.env.PropertySourcesLoader.<init>(PropertySourcesLoader.java:54)
    at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:296)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:189)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:172)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:159)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:145)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
    at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:73)
    at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
    at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:369)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:337)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1263)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1252)
    at com.siemens.spice.cc.worker.ConfigurationClusterWorkerApplication.main(ConfigurationClusterWorkerApplication.java:10)
    Caused by: compile error: no such constructor: org.springframework.boot.yaml.SpringProfileDocumentMatcher
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atMethodCallCore2(SourceFile:604)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atMethodCallCore(SourceFile:586)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atNewExpr(SourceFile:302)
    at org.zeroturnaround.bundled.javassist.compiler.ast.NewExpr.accept(SourceFile:73)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atNewArrayExpr2(SourceFile:393)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atNewArrayExpr(SourceFile:327)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atNewExpr(SourceFile:294)
    at org.zeroturnaround.bundled.javassist.compiler.ast.NewExpr.accept(SourceFile:73)
    at org.zeroturnaround.bundled.javassist.compiler.JvstCodeGen.atMethodArgs(SourceFile:358)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atMethodCallCore(SourceFile:569)
    at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atCallExpr(SourceFile:537)
    at org.zeroturnaround.bundled.javassist.compiler.JvstCodeGen.atCallExpr(SourceFile:244)
    at org.zeroturnaround.bundled.javassist.compiler.ast.CallExpr.accept(SourceFile:46)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(SourceFile:338)
    at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(SourceFile:50)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(SourceFile:351)
    at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(SourceFile:50)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atIfStmnt(SourceFile:398)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(SourceFile:355)
    at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(SourceFile:50)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(SourceFile:351)
    at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(SourceFile:50)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atMethodBody(SourceFile:292)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atMethodDecl(SourceFile:274)
    at org.zeroturnaround.bundled.javassist.compiler.ast.MethodDecl.accept(SourceFile:44)
    at org.zeroturnaround.bundled.javassist.compiler.Javac.compileMethod(SourceFile:169)
    at org.zeroturnaround.bundled.javassist.compiler.Javac.compile(SourceFile:95)
    at org.zeroturnaround.bundled.javassist.CtNewMethod.make(SourceFile:74)
    … 39 more

    . ____ _ __ _ _
    /\\ / ___’_ __ _ _(_)_ __ __ _ \ \ \ \
    ( ( )\___ | ‘_ | ‘_| | ‘_ \/ _` | \ \ \ \
    \\/ ___)| |_)| | | | | || (_| | ) ) ) )
    ‘ |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    [32m :: Spring Boot :: [39m[2m (v2.0.0.BUILD-SNAPSHOT)[0;39m

    #62574

    Hannes Metssalu
    Rebel Staff

    Hi, thank you for letting us know. Indeed I’ve managed to reproduce the error right away.

    I highly recommend not to use snapshot builds with JRebel. We are constantly updating our integration with different frameworks but generally we target only stable versions. The error you are seeing shouldn’t crash the application, but we can’t guarantee that there aren’t rare cases in which reload will fail.

    All the best,
    Hannes Metssalu

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.