jfinal自带启动方式启动报错

使用jfinal自带启动方式启动程序:

image.png

报错如下:

[WARN ] [15:47:26] org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED JFinalFilter: java.lang.RuntimeException: java.lang.IllegalArgumentException

java.lang.RuntimeException: java.lang.IllegalArgumentException

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:170)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:151)

at com.jfinal.aop.InterceptorManager.createControllerInterceptor(InterceptorManager.java:61)

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:75)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:102)

at com.jfinal.core.JFinal.init(JFinal.java:66)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServer.doStart(JettyServer.java:131)

at com.jfinal.server.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:159)

at com.weishop.cfg.JFWebConfig.main(JFWebConfig.java:298)

Caused by: java.lang.IllegalArgumentException

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)

at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)

at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)

at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)

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

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

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

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

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

at com.weishop.interceptor.MemberInterceptor.<init>(MemberInterceptor.java:51)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

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

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

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:164)

... 21 more

[WARN ] [15:47:26] org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext{/,file:/D:/Project/WeiShop/Source/WeiShop/WeiShop/weishop-web/src/main/webapp/}

java.lang.RuntimeException: java.lang.IllegalArgumentException

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:170)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:151)

at com.jfinal.aop.InterceptorManager.createControllerInterceptor(InterceptorManager.java:61)

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:75)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:102)

at com.jfinal.core.JFinal.init(JFinal.java:66)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServer.doStart(JettyServer.java:131)

at com.jfinal.server.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:159)

at com.weishop.cfg.JFWebConfig.main(JFWebConfig.java:298)

Caused by: java.lang.IllegalArgumentException

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)

at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)

at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)

at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)

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

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

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

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

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

at com.weishop.interceptor.MemberInterceptor.<init>(MemberInterceptor.java:51)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

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

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

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:164)

... 21 more

[WARN ] [15:47:26] org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED o.e.j.w.WebAppContext{/,file:/D:/Project/WeiShop/Source/WeiShop/WeiShop/weishop-web/src/main/webapp/}: java.lang.RuntimeException: java.lang.IllegalArgumentException

java.lang.RuntimeException: java.lang.IllegalArgumentException

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:170)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:151)

at com.jfinal.aop.InterceptorManager.createControllerInterceptor(InterceptorManager.java:61)

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:75)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:102)

at com.jfinal.core.JFinal.init(JFinal.java:66)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServer.doStart(JettyServer.java:131)

at com.jfinal.server.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:159)

at com.weishop.cfg.JFWebConfig.main(JFWebConfig.java:298)

Caused by: java.lang.IllegalArgumentException

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)

at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)

at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)

at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)

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

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

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

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

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

at com.weishop.interceptor.MemberInterceptor.<init>(MemberInterceptor.java:51)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

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

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

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:164)

... 21 more

[WARN ] [15:47:26] org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@25d958c6: java.lang.RuntimeException: java.lang.IllegalArgumentException

java.lang.RuntimeException: java.lang.IllegalArgumentException

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:170)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:151)

at com.jfinal.aop.InterceptorManager.createControllerInterceptor(InterceptorManager.java:61)

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:75)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:102)

at com.jfinal.core.JFinal.init(JFinal.java:66)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServer.doStart(JettyServer.java:131)

at com.jfinal.server.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:159)

at com.weishop.cfg.JFWebConfig.main(JFWebConfig.java:298)

Caused by: java.lang.IllegalArgumentException

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)

at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)

at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)

at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)

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

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

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

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

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

at com.weishop.interceptor.MemberInterceptor.<init>(MemberInterceptor.java:51)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

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

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

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:164)

... 21 more

[ERROR] [15:47:26] com.jfinal.kit.LogKit - java.lang.IllegalArgumentException

java.lang.RuntimeException: java.lang.IllegalArgumentException

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:170)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:151)

at com.jfinal.aop.InterceptorManager.createControllerInterceptor(InterceptorManager.java:61)

at com.jfinal.core.ActionMapping.buildActionMapping(ActionMapping.java:75)

at com.jfinal.core.JFinal.initActionMapping(JFinal.java:102)

at com.jfinal.core.JFinal.init(JFinal.java:66)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServer.doStart(JettyServer.java:131)

at com.jfinal.server.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:159)

at com.weishop.cfg.JFWebConfig.main(JFWebConfig.java:298)

Caused by: java.lang.IllegalArgumentException

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.asm.ClassReader.<init>(Unknown Source)

at net.sf.cglib.proxy.BridgeMethodResolver.resolveAll(BridgeMethodResolver.java:61)

at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:911)

at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)

at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)

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

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

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

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

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

at com.weishop.interceptor.MemberInterceptor.<init>(MemberInterceptor.java:51)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

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

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

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at com.jfinal.aop.InterceptorManager.createInterceptor(InterceptorManager.java:164)

... 21 more

使用Eclipse中的jetty插件启动正常,使用tomcat启动也正常。

评论区

objectjava

2017-09-12 19:09

我也遇到了 怎么解决

objectjava

2017-09-13 17:48

参数5去掉也不成

热门反馈

扫码入社