Can't not work with springboot2

Forum on this website is being phased out. New threads or replies cannot be posted. Existing content remains available for now in read only mode. You can contact technical support at support@zeroturnaround.com.

ZeroTurnaround Homepage Forums JRebel Support Can't not work with springboot2

This topic contains 1 reply, has 2 voices, and was last updated by  Tiit Oja 1 month ago.

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

    陈亮周
    Member

    there is error msg:
    2018-03-22 11:43:00 JRebel: ERROR Class ‘org.springframework.boot.env.PropertiesPropertySourceLoader’ could not be processed by org.zeroturnaround.javarebel.integration.spring.boot.cbp.PropertiesPropertySourceLoaderCBP@sun.misc.Launcher$AppClassLoader@b4aac2: org.zeroturnaround.bundled.javassist.CannotCompileException: [source error] no such field: profile
    at org.zeroturnaround.bundled.javassist.expr.MethodCall.replace(SourceFile:241)
    at org.zeroturnaround.javarebel.integration.spring.boot.cbp.PropertiesPropertySourceLoaderCBP$1.edit(PropertiesPropertySourceLoaderCBP.java:42)
    at org.zeroturnaround.bundled.javassist.expr.ExprEditor.loopBody(SourceFile:224)
    at org.zeroturnaround.bundled.javassist.expr.ExprEditor.doit(SourceFile:91)
    at org.zeroturnaround.bundled.javassist.CtBehavior.instrument(SourceFile:712)
    at org.zeroturnaround.javarebel.integration.spring.boot.cbp.PropertiesPropertySourceLoaderCBP.process(PropertiesPropertySourceLoaderCBP.java:39)
    at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(SourceFile:79)
    at com.zeroturnaround.javarebel.vu.a(SourceFile:376)
    at com.zeroturnaround.javarebel.vu.a(SourceFile:365)
    at com.zeroturnaround.javarebel.vu.a(SourceFile:322)
    at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(SourceFile:35)
    at com.zeroturnaround.javarebel.tg.transform(SourceFile:107)
    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:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:264)
    at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:153)
    at org.springframework.core.io.support.SpringFactoriesLoader.loadFactories(SpringFactoriesLoader.java:101)
    at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.<init>(ConfigFileApplicationListener.java:319)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:213)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:196)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:183)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:169)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
    at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
    at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
    at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:351)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:317)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234)
    at com.tianshen.tgame.FastGameServer.main(FastGameServer.java:45)
    Caused by: compile error: no such field: profile
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.fieldAccess(SourceFile:845)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atFieldRead(SourceFile:803)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atMember(SourceFile:988)
    at org.zeroturnaround.bundled.javassist.compiler.JvstTypeChecker.atMember(SourceFile:66)
    at org.zeroturnaround.bundled.javassist.compiler.ast.Member.accept(SourceFile:39)
    at org.zeroturnaround.bundled.javassist.compiler.JvstTypeChecker.atMethodArgs(SourceFile:221)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atMethodCallCore(SourceFile:735)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atNewExpr(SourceFile:149)
    at org.zeroturnaround.bundled.javassist.compiler.ast.NewExpr.accept(SourceFile:73)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atVariableAssign(SourceFile:249)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atAssignExpr(SourceFile:218)
    at org.zeroturnaround.bundled.javassist.compiler.ast.AssignExpr.accept(SourceFile:39)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.doTypeCheck(SourceFile:242)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(SourceFile:330)
    at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(SourceFile:50)
    at org.zeroturnaround.bundled.javassist.compiler.Javac.compileStmnt(SourceFile:567)
    at org.zeroturnaround.bundled.javassist.expr.MethodCall.replace(SourceFile:235)
    … 41 more

    2018-03-22 11:43:00 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@b4aac2: org.zeroturnaround.bundled.javassist.CannotCompileException: [source error] cannot find constructor org.springframework.boot.env.OriginTrackedYamlLoader(org.springframework.core.io.Resource,java.lang.String)
    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:79)
    at com.zeroturnaround.javarebel.vu.a(SourceFile:376)
    at com.zeroturnaround.javarebel.vu.a(SourceFile:365)
    at com.zeroturnaround.javarebel.vu.a(SourceFile:322)
    at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(SourceFile:35)
    at com.zeroturnaround.javarebel.tg.transform(SourceFile:107)
    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:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:264)
    at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:153)
    at org.springframework.core.io.support.SpringFactoriesLoader.loadFactories(SpringFactoriesLoader.java:101)
    at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.<init>(ConfigFileApplicationListener.java:319)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:213)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:196)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:183)
    at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:169)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
    at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
    at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
    at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:351)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:317)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234)
    at com.tianshen.tgame.FastGameServer.main(FastGameServer.java:45)
    Caused by: compile error: cannot find constructor org.springframework.boot.env.OriginTrackedYamlLoader(org.springframework.core.io.Resource,java.lang.String)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atMethodCallCore(SourceFile:749)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atNewExpr(SourceFile:149)
    at org.zeroturnaround.bundled.javassist.compiler.ast.NewExpr.accept(SourceFile:73)
    at org.zeroturnaround.bundled.javassist.compiler.TypeChecker.atCallExpr(SourceFile:665)
    at org.zeroturnaround.bundled.javassist.compiler.JvstTypeChecker.atCallExpr(SourceFile:157)
    at org.zeroturnaround.bundled.javassist.compiler.ast.CallExpr.accept(SourceFile:46)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.doTypeCheck(SourceFile:242)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.compileExpr(SourceFile:229)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atReturnStmnt2(SourceFile:615)
    at org.zeroturnaround.bundled.javassist.compiler.JvstCodeGen.atReturnStmnt(SourceFile:424)
    at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(SourceFile:363)
    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)
    … 38 more

    #67369

    Tiit Oja
    Rebel Staff

    Hi,

    Spring Boot released its 2.0.0.RELEASE version just a day after we had released our 7.1.7. version of JRebel. By the time of 7.1.7 release, we were compatible with the 2.0.0.RC2 version of Spring Boot but the 2.0.0.RELEASE version introduced some small nuances that needed correcting – the stack trace you experienced being one of them.
    For now, we have solved these integration problems with the Spring Boot 2.0.0.RELEASE version.
    Should you wish to give it a go, the fixes are available in the nightly build which can be obtained from the following link:
    https://zeroturnaround.com/software/jrebel/download/nightly-build/

    If you don’t wish to use a nightly build then this fix will also be included with the next (2018.1.0) release of JRebel. Estimated release date of that version is at the beginning of April.

    All the best,
    Tiit

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

The forum ‘JRebel Support’ is closed to new topics and replies.