
Java项目异常
心歌技术
认知迭代命运
展开
-
sun.security.validator.ValidatorException: PKIX path building failed
PKIX的全称为Public-Key Infrastructure (X.509),通过wiki百科我们可以知道X.509是一种证书的标准,这种标准用在很多网络协议,比如TLS/SSL。而TLS/SSL是HTTPS协议的标准(HTTPS比HTTP多的部分就在于TLS/SSL)。通俗的讲,PKIX path building failed 出现的原因是因为自己的Java环境没有相关网站的证书而导致的。解决该问题的思路是要么添加证书要么选择忽略证书校验,本文分别介绍okhttp,curl,wget和中忽略原创 2021-09-14 19:21:31 · 5286 阅读 · 0 评论 -
java.security.InvalidKeyException: IOException : algid parse error, not a sequence
问题:读取私钥时报错:KeyFactory keyFactory = KeyFactory.getInstance("RSA");PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(Base64.decodeBase64(privateKeyPEM));错误原因 :私钥格式错误,错误的privateKey是通过openssl生成的私钥,默认pkcs1格式(将文件中去掉私钥头-----BEGIN RSA PRIVATE KEY-----和私原创 2021-09-07 17:11:13 · 7360 阅读 · 3 评论 -
The Bean Validation API is on the classpath but no implementation could be found
***************************APPLICATION FAILED TO START***************************Description:The Bean Validation API is on the classpath but no implementation could be foundAction:Add an implementation, such as Hibernate Validator, to the classp.原创 2021-06-24 17:07:59 · 808 阅读 · 0 评论 -
com.alibaba.fastjson.JSONException: can‘t create non-static inner class instance.
com.alibaba.fastjson.JSONException: can't create non-static inner class instance. at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.createInstance(JavaBeanDeserializer.java:218) at com.alibaba.fastjson.parser.deserializer.JavaBeanDe...原创 2021-06-24 10:08:35 · 1311 阅读 · 0 评论 -
com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED
RabbitMQ使用测试默认账号密码访问提示认证失败2021-06-10 17:26:18.535 WARN 51596 --- [3)-172.29.224.1] o.s.b.a.amqp.RabbitHealthIndicator : Rabbit health check failedorg.springframework.amqp.AmqpAuthenticationException: com.rabbitmq.client.AuthenticationFailureEx.原创 2021-06-10 17:43:15 · 1675 阅读 · 0 评论 -
IDEA中启动maven项目报错,程序包lombok.extern.slf4j不存在
其实不是项目本身或者maven本身的问题,而是开发工具所导致。intelliJ 构建和运行时会不知道仓库的位置或者不知道仓库中jar包的位置,勾选 Delegate IDE build/run actions to Maven即可,该配置含义:将 intelliJ idea中项目构建和运行操作交给Maven;在不勾选的情况下对项目的构建和运行是 intelliJ idea 去做的,就可能导致构建和运行时无法找到maven仓库中的相关jar包,勾选后在对项目进行构建和运行等操作直接交给了maven。原创 2021-06-08 12:29:29 · 7760 阅读 · 3 评论 -
java.io.EOFException: Unexpected EOF read on the socket
java.io.EOFException: Unexpected EOF read on the socket at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:722) at org.apache.coyote.http11.Http11InputBuffer.access$300(Http11InputBuffer.java:40) at org.apache.coyote.htt...原创 2021-05-24 17:23:45 · 2367 阅读 · 0 评论 -
java.lang.ClassNotFoundException: com/sun/tools/internal/xjc/api/XJC
对接某webservice项目时报错java.lang.IllegalStateException: Unable to create schema compiler at org.apache.cxf.common.jaxb.JAXBUtils.createSchemaCompilerWithDefaultAllocator(JAXBUtils.java:733) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createSch.原创 2021-05-04 17:11:03 · 1743 阅读 · 0 评论 -
java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is
java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone val.原创 2021-04-06 10:05:08 · 341 阅读 · 1 评论 -
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to th.原创 2021-04-01 15:30:08 · 203 阅读 · 0 评论