获取主键失败,报错如下?

com.jfinal.pub.exception.ExceptionSys: 取得序列号失败: OPUS_DISCUSS_ID

at com.jfinal.pub.sequence.SysId.nextSeq(SysId.java:159)

at com.jfinal.pub.sequence.SysId.getSeq(SysId.java:131)

at com.jfinal.pub.sequence.SysId.getId(SysId.java:59)

at com.zl.singleton.IdGenerator.getOpusDiscussId(IdGenerator.java:531)

at com.zl.ctrl.hall.ArticleController.discuss(ArticleController.java:95)

at sun.reflect.GeneratedMethodAccessor1470.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.jfinal.aop.Invocation.invoke(Invocation.java:73)

at com.zl.jfinal.UserInfoInterceptor.intercept(UserInfoInterceptor.java:35)

at com.jfinal.aop.Invocation.invoke(Invocation.java:67)

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

at com.zl.jfinal.RootPathHandler.handle(RootPathHandler.java:66)

at com.jfinal.ext.handler.UrlSkipHandler.handle(UrlSkipHandler.java:45)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.jasig.cas.client.util.AssertionThreadLocalFilter.doFilter(AssertionThreadLocalFilter.java:54)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter(HttpServletRequestWrapperFilter.java:75)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

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

Caused by: com.jfinal.plugin.activerecord.ActiveRecordException: com.jfinal.pub.exception.ExceptionSys: 系统无法取得序列号(OPUS_DISCUSS_ID)。

at com.jfinal.pub.sequence.SysDb.doInTransaction(SysDb.java:201)

at com.jfinal.pub.sequence.SysDb$$EnhancerByCGLIB$$454d1386.CGLIB$doInTransaction$0(<generated>)

at com.jfinal.pub.sequence.SysDb$$EnhancerByCGLIB$$454d1386$$FastClassByCGLIB$$5bd0fdf3.invoke(<generated>)

at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)

at com.jfinal.aop.Invocation.invoke(Invocation.java:82)

at com.jfinal.aop.Callback.intercept(Callback.java:96)

at com.jfinal.pub.sequence.SysDb$$EnhancerByCGLIB$$454d1386.doInTransaction(<generated>)

at com.jfinal.pub.sequence.SysDb.getSequence(SysDb.java:95)

at com.jfinal.pub.sequence.SysDb$$EnhancerByCGLIB$$454d1386.CGLIB$getSequence$4(<generated>)

at com.jfinal.pub.sequence.SysDb$$EnhancerByCGLIB$$454d1386$$FastClassByCGLIB$$5bd0fdf3.invoke(<generated>)

at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)

at com.jfinal.aop.Invocation.invoke(Invocation.java:82)

at com.jfinal.aop.Callback.intercept(Callback.java:96)

at com.jfinal.pub.sequence.SysDb$$EnhancerByCGLIB$$454d1386.getSequence(<generated>)

at com.jfinal.pub.sequence.SysId.nextSeq(SysId.java:150)

... 40 more

Caused by: com.jfinal.pub.exception.ExceptionSys: 系统无法取得序列号(OPUS_DISCUSS_ID)。

at com.jfinal.pub.sequence.SysDb.doInTransaction(SysDb.java:165)

... 54 more


评论区

热门反馈

扫码入社