浏览器F12监控请求:
返回如下错误:
[
{
"p": [
{
"errorTitle": "cosmic-lp-elJiYfsl:kd.bos.license.service.LicenseServiceImpl cannot be cast to kd.bos.license.api.ICoreLicenseService",
"errorInfo": "\r\nKey: getConfig\r\nTraceId:d8280307c03800a\r\nInstance:cosmic-lp-elJiYfsl-1693354805\r\n发生时间:Wed Apr 05 19:28:24 CST 2023\r\n===================================================\r\n调用堆栈:\r\njava.lang.ClassCastException: kd.bos.license.service.LicenseServiceImpl cannot be cast to kd.bos.license.api.ICoreLicenseService\r\n\tat kd.bos.form.FormConfig.getProductModeType(FormConfig.java:299)\r\n\tat kd.bos.form.FormConfig.createPlugin(FormConfig.java:249)\r\n\tat kd.bos.form.FormShowParameter.createClientConfig(FormShowParameter.java:826)\r\n\tat kd.bos.mvc.FormConfigFactory.createConfigInCurrentAppService(FormConfigFactory.java:182)\r\n\tat kd.bos.mservice.form.FormServiceImpl.createConfig(FormServiceImpl.java:1567)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat kd.bos.service.DispatchServiceImpl.invoke(DispatchServiceImpl.java:48)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat kd.bos.mservice.rpc.dubbo.debug.LocalDebugProxy$1.lambda$invoke$0(LocalDebugProxy.java:61)\r\n\tat kd.bos.mservice.rpc.dubbo.debug.DubboDebugUtil.invoke(DubboDebugUtil.java:46)\r\n\tat kd.bos.mservice.rpc.dubbo.debug.LocalDebugProxy$1.invoke(LocalDebugProxy.java:58)\r\n\tat com.sun.proxy.$Proxy55.invoke(Unknown Source)\r\n\tat kd.bos.servicehelper.DispatchServiceHelper.invokeBOSService(DispatchServiceHelper.java:102)\r\n\tat kd.bos.mvc.FormConfigFactory.createConfig(FormConfigFactory.java:157)\r\n\tat kd.bos.mvc.FormConfigFactory.createConfig(FormConfigFactory.java:131)\r\n\tat kd.bos.mservice.form.FormServiceImpl.getConfig(FormServiceImpl.java:255)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat kd.bos.service.DispatchServiceImpl.invoke(DispatchServiceImpl.java:48)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat kd.bos.mservice.rpc.dubbo.debug.LocalDebugProxy$1.lambda$invoke$0(LocalDebugProxy.java:61)\r\n\tat kd.bos.mservice.rpc.dubbo.debug.DubboDebugUtil.invoke(DubboDebugUtil.java:46)\r\n\tat kd.bos.mservice.rpc.dubbo.debug.LocalDebugProxy$1.invoke(LocalDebugProxy.java:58)\r\n\tat com.sun.proxy.$Proxy55.invoke(Unknown Source)\r\n\tat kd.bos.web.DispatchServiceHelper.invokeBOSServiceByAppId(DispatchServiceHelper.java:93)\r\n\tat kd.bos.web.actions.FormAction.getConfig(FormAction.java:96)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat kd.bos.actiondispatcher.Invoker.invoke(Invoker.java:23)\r\n\tat kd.bos.actiondispatcher.ActionFilter.doFilter(ActionFilter.java:169)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.cage.controller.CageActionFilter.doFilter(CageActionFilter.java:23)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.ext.hr.web.filter.HrUserContextFilter.doFilter(HrUserContextFilter.java:39)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.login.filter.LoginFilter.doFilter(LoginFilter.java:725)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.ext.hr.web.filter.HrLoginFilter.doFilter(HrLoginFilter.java:173)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.ext.hr.web.filter.SafeUriFilter.doFilter(SafeUriFilter.java:59)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.metric.instruments.servlet.MetricFilter.doFilter(MetricFilter.java:95)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.trace.instrument.web.TraceFilter.generateTraceId(TraceFilter.java:139)\r\n\tat kd.bos.trace.instrument.web.TraceFilter.doFilter(TraceFilter.java:103)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.framework.filter.ThreadLifeCycleFilter.doFilter(ThreadLifeCycleFilter.java:36)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.mservice.circuitbreaker.filter.web.CircuitbreakerFilter.lambda$doFilter$0(CircuitbreakerFilter.java:50)\r\n\tat kd.bos.mservice.circuitbreaker.noop.NoopCircuitbreaker.call(NoopCircuitbreaker.java:43)\r\n\tat kd.bos.mservice.circuitbreaker.filter.web.CircuitbreakerFilter.doFilter(CircuitbreakerFilter.java:49)\r\n\tat kd.bos.service.web.filter.KFilterConfig$2.doFilter(KFilterConfig.java:278)\r\n\tat kd.bos.service.web.filter.KDCommonFilter$2.doFilter(KDCommonFilter.java:75)\r\n\tat kd.bos.service.web.filter.KDCommonFilter.doFilter(KDCommonFilter.java:103)\r\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\r\n\tat org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)\r\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:516)\r\n\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)\r\n\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)\r\n\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)\r\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)\r\n\tat java.lang.Thread.run(Thread.java:750)\r\n\r\n"
}
],
"a": "showErrMsg"
}
]
这种情况一般都是jar或者静态资源引起的,解决方案2种:
第一种:删除掉本地所有jar和静态资源文件,idea里苍穹助手插件重新更新项目;
第二种:idea里重新用苍穹助手新建个项目;