JF3.5升级3.6启动Tomcat8.5异常(JDK1.8 64位)


Caused by: net.sf.cglib.core.CodeGenerationException: net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->java.lang.StackOverflowError-->null

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:298)

at net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.newInstance(Enhancer.java:448)

at net.sf.cglib.proxy.Enhancer.nextInstance(Enhancer.java:700)

at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:295)

at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:480)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:305)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:851)

at com.jfinal.aop.Enhancer.enhance(Enhancer.java:40)

at com.jfinal.aop.AopFactory.createObject(AopFactory.java:145)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:62)

at com.jfinal.aop.AopFactory.doInject(AopFactory.java:131)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:63)

at com.jfinal.aop.AopFactory.get(AopFactory.java:26)

at com.jfinal.aop.Aop.get(Aop.java:85)

at com.lejiaInterface.config.model.ZhiFu.<init>(ZhiFu.java:48)

at com.lejiaInterface.config.model.ZhiFu$$EnhancerByCGLIB$$3744be16.<init>(<generated>)

at sun.reflect.GeneratedConstructorAccessor16.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:291)

... 664 more

Caused by: net.sf.cglib.core.CodeGenerationException: net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->java.lang.StackOverflowError-->null

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:298)

at net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.newInstance(Enhancer.java:448)

at net.sf.cglib.proxy.Enhancer.nextInstance(Enhancer.java:700)

at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:295)

at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:480)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:305)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:851)

at com.jfinal.aop.Enhancer.enhance(Enhancer.java:40)

at com.jfinal.aop.AopFactory.createObject(AopFactory.java:145)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:62)

at com.jfinal.aop.AopFactory.doInject(AopFactory.java:131)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:63)

at com.jfinal.aop.AopFactory.get(AopFactory.java:26)

at com.jfinal.aop.Aop.get(Aop.java:85)

at com.lejiaInterface.config.model.ZhiFu.<init>(ZhiFu.java:48)

at com.lejiaInterface.config.model.ZhiFu$$EnhancerByCGLIB$$3744be16.<init>(<generated>)

at sun.reflect.GeneratedConstructorAccessor16.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:291)

... 683 more

Caused by: net.sf.cglib.core.CodeGenerationException: net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->java.lang.StackOverflowError-->null

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:298)

at net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.newInstance(Enhancer.java:448)

at net.sf.cglib.proxy.Enhancer.nextInstance(Enhancer.java:700)

at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:295)

at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:480)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:305)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:851)

at com.jfinal.aop.Enhancer.enhance(Enhancer.java:40)

at com.jfinal.aop.AopFactory.createObject(AopFactory.java:145)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:62)

at com.jfinal.aop.AopFactory.doInject(AopFactory.java:131)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:63)

at com.jfinal.aop.AopFactory.get(AopFactory.java:26)

at com.jfinal.aop.Aop.get(Aop.java:85)

at com.lejiaInterface.config.model.ZhiFu.<init>(ZhiFu.java:48)

at com.lejiaInterface.config.model.ZhiFu$$EnhancerByCGLIB$$3744be16.<init>(<generated>)

at sun.reflect.GeneratedConstructorAccessor16.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:291)

... 702 more

Caused by: net.sf.cglib.core.CodeGenerationException: net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->java.lang.StackOverflowError-->null

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:298)

at net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.newInstance(Enhancer.java:448)

at net.sf.cglib.proxy.Enhancer.nextInstance(Enhancer.java:700)

at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:295)

at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:480)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:305)

at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:851)

at com.jfinal.aop.Enhancer.enhance(Enhancer.java:40)

at com.jfinal.aop.AopFactory.createObject(AopFactory.java:145)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:62)

at com.jfinal.aop.AopFactory.doInject(AopFactory.java:131)

at com.jfinal.aop.AopFactory.doGet(AopFactory.java:63)

at com.jfinal.aop.AopFactory.get(AopFactory.java:26)

at com.jfinal.aop.Aop.get(Aop.java:85)

at com.lejiaInterface.config.model.ZhiFu.<init>(ZhiFu.java:48)

at com.lejiaInterface.config.model.ZhiFu$$EnhancerByCGLIB$$3744be16.<init>(<generated>)

at sun.reflect.GeneratedConstructorAccessor16.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:291)

... 721 more

Caused by: net.sf.cglib.core.CodeGenerationException: net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException-->net.sf.cglib.core.CodeGenerationException



这是整个控制台的输出,循环报这个错误,查不到原因,就换回3.5了,请大神们帮我看一下

评论区

JJfinal

2019-03-12 14:20

ZhiFu.java:48行代码是 @inject xxxServer;

JFinal

2019-03-12 14:27

@JJfinal 其实就是同一个错误,当前线上的代码已经解决了,可以先用上:
1: git clone git@gitee.com:jfinal/jfinal.git
2: cd jfinal
3: 修改 pom.xml , 将其中的 skip 的 false 改为 true 值
4: mvn clean install
5:修改项目中的 jfinal 版本号为 3.7-SNAPSHOT

JJfinal

2019-03-12 15:26

@JFinal 3.7-SNAPSHOT这个包下载不下来 ??

JFinal

2019-03-12 15:28

@JJfinal 前面的 1、2、3、4 步就是将 jfinal 3.7-SNAPSHOT 安装到你本机的方法

JJfinal

2019-03-12 15:31

@JJfinal 我本来是想在官网下载一个3.6的demo,然后把现在的版本代码复制进去,但是代码太多这样就太繁琐了,而且这样还有版本控制的麻烦,现在搞不定这个问题,所以又用3.5了,3.5还是超稳定的,但是3.6有一个非常实用的功能想用, renderjson(...) throw e;可以返回数据的同时回滚事物,不用给用户看一个500错误

JJfinal

2019-03-12 15:34

@JFinal 非常感谢 , 我试试

JJfinal

2019-03-12 16:36

Git 太难用了,现在3.5稳的很 , 懒得换了 坐等3.7

热门反馈

扫码入社