1).数据库时间和本地时间相差八小时
解决方案:将连接池的serverTimezone=UTC 替换成serverTimezone=Asia/Shanghai(Mysql8.0需要指定时区)
2.)web应用程序[book_war_exploded]创建了一个ThreadLocal,其键类型为[javax.faces.context.FacesContext$1](值为[javax.faces.context.FacesContext$1@1af09455]),值类型为[com.sun.faces.config.InitFacesContext](值为[com.sun.faces.config.InitFacesContext@23d98b),但在停止web应用程序时未能将其删除。线程将随着时间的推移而更新,以尝试避免可能的内存泄漏
解决方案:这个问题比较复杂和佛系,先尝试删掉taget 重启idea ,重新部署,更换tomcat,重启电脑等 如果还是出现这个问题,查看配置文件和jar包
3.)javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
解决方案:mysql8.0更换了新驱动默认检验ssl 需要添加 useSSL=false
4.) Public Key Retrieval is not allowed
Caused by: com.mysql.cj.exceptions.CJException: Public Key Retrieval is not allowed at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:124) at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:151) at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:49) at com.mysql.cj.protocol.a.NativeAuthenticationProvider.proceedHandshakeWithPluggableAuthentication(NativeAuthenticationProvider.java:596) at com.mysql.cj.protocol.a.NativeAuthenticationProvider.connect(NativeAuthenticationProvider.java:202) at com.mysql.cj.protocol.a.NativeProtocol.connect(NativeProtocol.java:1449) at com.mysql.cj.NativeSession.connect(NativeSession.java:165) at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:849) ... 91 more
解决方案 :暂未解决 在连接池连接添加 allowPublicKeyRetrieval=true
官方解释
5.)java.lang.NoSuchMethodException
java.lang.NoSuchMethodException: ***.***.***.<init>() java.base/java.lang.Class.getConstructor0(Class.java:3349) java.base/java.lang.Class.getDeclaredConstructor(Class.java:2553) org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:102) org.springframework.web.method.annotation.ModelAttributeMethodProcessor.createAttribute(ModelAttributeMethodProcessor.java:142) org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor.createAttribute(ServletModelAttributeMethodProcessor.java:80) org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:102) org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121) org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:160) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:129) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:652) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:733) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
解决方案:在对应实体类添加一个无参构造方法
Comments | 67 条评论
博客作者 national pharmacies
It’s nearly impossible to find educated people for this topic, but you sound like you know what you’re talking about! Thanks
博客作者 canadian pharmaceutical companies
Hi there! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in exchanging links or maybe guest authoring a blog article or vice-versa? My site goes over a lot of the same subjects as yours and I believe we could greatly benefit from each other. If you happen to be interested feel free to shoot me an e-mail. I look forward to hearing from you! Superb blog by the way!
博客作者 national pharmacies online
For hottest information you have to pay a visit world-wide-web and on web I found this web site as a most excellent site for most recent updates.
博客作者 canadian pharmaceuticals online
Greetings, I do think your site might be having browser compatibility issues. Whenever I look at your blog in Safari, it looks fine however when opening in IE, it’s got some overlapping issues. I just wanted to give you a quick heads up! Apart from that, excellent website!
博客作者 canadian pharmaceuticals online
Wow, this post is fastidious, my sister is analyzing such things, thus I am going to inform her.
博客作者 canadian pharmaceuticals for usa sales
If you want to get much from this piece of writing then you have to apply these techniques to your won blog.
博客作者 national pharmacies
Hmm is anyone else having problems with the pictures on this blog loading? I’m trying to find out if its a problem on my end or if it’s the blog. Any feed-back would be greatly appreciated.
博客作者 pharmacy online
It’s awesome for me to have a site, which is helpful designed for my knowledge. thanks admin
博客作者 canadian pharmaceuticals online safe
Hello, its pleasant post on the topic of media print, we all be familiar with media is a wonderful source of facts.
博客作者 canadian pharmaceutical companies
Good way of describing, and good post to get facts about my presentation subject matter, which i am going to present in institution of higher education.
博客作者 pharmaceuticals online australia
I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme? Excellent work!
博客作者 canada pharmaceuticals
I do not even know the way I stopped up here, but I believed this publish was once great. I don’t recognize who you’re but definitely you are going to a well-known blogger if you aren’t already. Cheers!
博客作者 canadian drugs online pharmacies
I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a great blog like this one these days.
博客作者 canadian pharmaceuticals online shipping
Magnificent beat ! I would like to apprentice at the same time as you amend your web site, how can i subscribe for a weblog website? The account aided me a applicable deal. I were a little bit familiar of this your broadcast offered bright clear concept
博客作者 canada pharmaceuticals
I constantly spent my half an hour to read this webpage’s posts every day along with a cup of coffee.