有两个报错
1)
请求该页面出现异常:The host did not accept the connection within timeout of 15000 ms
result
java.lang.NullPointerException
at com.quartz.RoadshowTimer.dotask(RoadshowTimer.java:40)
at com.quartz.RunThread.run(RunThread.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
49) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
24) at java.lang.Thread.run(Thread.java:748)
2)
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested ex
ception is java.lang.NoSuchMethodError: com.sysmanage.user.mapper.DeptUserMapper.findDeptFormByUserid(Ljava/lang/String;)Ljava/util/List; at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl
et.java:1055) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle
t.java:943) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer
vlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java
:898) at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.ja
va:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at com.system.config.XssAndSqlFilter.doFilter(XssAndSqlFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterI
nternal(HttpTraceFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:320) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.
invoke(FilterSecurityInterceptor.java:127) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.
doFilter(FilterSecurityInterceptor.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(
ExceptionTranslationFilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.session.SessionManagementFilter.doFilter(Se
ssionManagementFilter.java:137) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.authentication.AnonymousAuthenticationFilte
r.doFilter(AnonymousAuthenticationFilter.java:111) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.servletapi.SecurityContextHolderAwareReques
tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilt
er(RequestCacheAwareFilter.java:63) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.oauth2.provider.authentication.OAuth2Authentica
tionProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter
(LogoutFilter.java:116) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(
HeaderWriterFilter.java:74) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.context.SecurityContextPersistenceFilter.do
Filter(SecurityContextPersistenceFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.context.request.async.WebAsyncManagerIntegr
ationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:334) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterCha
inProxy.java:215) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
java:178) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Delegati
ngFilterProxy.java:358) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilt
erProxy.java:271) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(Request
ContextFilter.java:100) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormConten
tFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(Hidde
nHttpMethodFilter.java:94) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorP
ageFilter.java:128) at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(Erro
rPageFilter.java:66) at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInter
nal(ErrorPageFilter.java:103) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorP
ageFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.fil
terAndRecordMetrics(WebMvcMetricsFilter.java:114) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doF
ilterInternal(WebMvcMetricsFilter.java:104) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
acterEncodingFilter.java:201) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:201) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:97) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:544) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143
) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogVa
lve.java:698) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:78) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:616)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java
:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtoco
l.java:831) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.jav
a:1629) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:
49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
49) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
24) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.ja
va:61) at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: com.sysmanage.user.mapper.DeptUserMapper.findDe
ptFormByUserid(Ljava/lang/String;)Ljava/util/List; at com.web.assets.service.AssetsapprovalService.getUserList(AssetsapprovalServi
ce.java:306) at com.web.assets.controller.AssetsapprovalController.shenhe(AssetsapprovalCont
roller.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62
) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(Invoc
ableHandlerMethod.java:190) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForReque
st(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandle
rMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerA
dapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:893) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerA
dapter.handleInternal(RequestMappingHandlerAdapter.java:798) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.hand
le(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl
et.java:1040) ... 95 more
20
Java项目在本地可以正常运行但是上传到服务器上会出现报错
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- l759692959 2022-05-13 16:52关注
Caused by: java.lang.NoSuchMethodError:
**com.sysmanage.user.mapper.DeptUserMapper.findDeptFormByUserid(Ljava/lang/String;)Ljava/util/List; **
at com.web.assets.service.AssetsapprovalService.getUserList(AssetsapprovalService.java:306)findDeptFormByUserid报错,既然本地可以正常运行,可能是服务器代码的findDeptFormByUserid部分与本地的代码不一致
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报 编辑记录
悬赏问题
- ¥15 WPF动态创建页面内容
- ¥15 如何对TBSS的结果进行统计学的分析已完成置换检验,如何在最终的TBSS输出结果提取除具体值及如何做进一步相关性分析
- ¥15 SQL数据库操作问题
- ¥100 关于lm339比较电路出现的问题
- ¥15 Matlab安装yalmip和cplex功能安装失败
- ¥15 加装宝马安卓中控改变开机画面
- ¥15 STK安装问题问问大家,这种情况应该怎么办
- ¥15 关于罗技鼠标宏lua文件的问题
- ¥15 halcon ocr mlp 识别问题
- ¥15 已知曲线满足正余弦函数,根据其峰值,还原出整条曲线