jFinal小程序出错,麻烦帮忙看看是什么原因?

/api/miniProgram/updateUserInfo

net.sf.cglib.core.CodeGenerationException: java.lang.NoSuchMethodException-->com.jfinal.wxaapp.api.WxaUserApi$$EnhancerByCGLIB$$31846551.CGLIB$SET_THREAD_CALLBACKS([Lnet.sf.cglib.proxy.Callback;)

at net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.<init>(Enhancer.java:423)

at net.sf.cglib.proxy.Enhancer.wrapCachedClass(Enhancer.java:709)

at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:94)

at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)

at net.sf.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at net.sf.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)

at net.sf.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)

at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)

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

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:32)

at com.jfinal.aop.Duang.duang(Duang.java:28)

at com.th.controller.MiniProgramController.<init>(MiniProgramController.java:30)

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

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

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

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

at java.lang.Class.newInstance(Class.java:442)

at com.jfinal.core.ControllerFactory.getController(ControllerFactory.java:25)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:73)

at com.th.controller.ResourceHandler.handle(ResourceHandler.java:29)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:73)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

at org.eclipse.jetty.server.Server.handle(Server.java:365)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)

at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)

at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.NoSuchMethodException: com.jfinal.wxaapp.api.WxaUserApi$$EnhancerByCGLIB$$31846551.CGLIB$SET_THREAD_CALLBACKS([Lnet.sf.cglib.proxy.Callback;)

at java.lang.Class.getDeclaredMethod(Class.java:2130)

at net.sf.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:809)

at net.sf.cglib.proxy.Enhancer.access$000(Enhancer.java:63)

at net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.<init>(Enhancer.java:414)

... 47 more


评论区

JFinal

2018-10-01 22:30

小程序没必要 enhance,去掉之

热门反馈

扫码入社