![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误记录并解决
本专栏记录了一些日常出现过的错误,分析原因并给出解决方案。
小猿备忘录
作者博文多实战文章,喜欢的小伙伴可以关注一下。
展开
-
【问题解决】zookeeper找不到创建节点信息
问题描述:应用服务用到了zookeeper,在启动时找不到创建节点数据。报错信息:错误原因:sh zkCli.sh使用默认ip与默认端口打开终端,而搭建的zookeeper集群做了配置,则再默认的终端下执行create命令创建数据节点的数据并未到集群节点数据中,而引用连接的是zookeeper的集群地址,导致连接节点的数据找不到报错。解决方法...原创 2022-07-01 10:41:02 · 1516 阅读 · 1 评论 -
【问题解决】nginx页面访问报403
问题描述:该问题是在服务端搭建nginx时出现,作者使用自建用户“oss”搭建nginx后,因为oss用户一些地址因权限问题受限,所以使用sudo 用root启动nginx,发现在前端页面访问nginx默认页,报403的错误。报错详情:问题原因:nginx的工作用户与启动用户不一致,导致实际在工作用户下的路径权限无法被使用,从而在nginx访问该路径时出现403访问权限问题。解决方案:在nginx配置文件中指定工作用户。...原创 2022-07-01 10:38:14 · 1730 阅读 · 0 评论 -
【问题解决】nginx自建用户下启动失败
问题描述:配置nginx工作用户未成功报错。报错详情:报错原因:oss用户为自建用户,并非在默认的用户组下,导致nginx启动后不能正常找到默认用户组下的该用户。解决方法:原创 2022-07-01 10:36:18 · 1407 阅读 · 0 评论 -
【问题解决】tkmybatis insertList方法报错
问题描述在使用tkmybatis的批量插入方式时报错报错详情org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: java.sql.SQLException: Field 'id' doesn't have a default value### The error may involve ....insertList-Inline报错原因tkmybatis的i原创 2022-03-05 17:08:40 · 1641 阅读 · 0 评论 -
【问题解决】maven外部第三方jar引入问题
报错信息:Failed to execute goal on project xxx: Could not resolve dependencies for project xxx: Could not find artifact com.aspose:aspose-words:jar:15.8.0 in aliyun (http://maven.aliyun.com/nexus/content/groups/public)问题描述:项目中有个word文档转pdf的需求,作者放弃了jacob选用了as原创 2021-08-05 08:41:01 · 7334 阅读 · 0 评论 -
【问题解决】GitLab version mismatch
问题描述:gitlab数据备份恢复的时候需要两台机器上的gitlab的版本一致,否则就会报这个错误。报错信息:问题解决:(1)确认两个服务器的的版本信息。# 查看A服务器gitlab版本信息root@4df3d06b9448:/# gitlab-rake gitlab:env:infoSystem informationSystem: Current User: git...GitLab informationVersion: 12.2.1...GitLab Shell...原创 2021-06-07 19:12:59 · 2339 阅读 · 0 评论 -
【问题解决】*.jar中没有主清单属性
问题描述:问题发生在java模块之间启动类移动的过程中,启动类从原来的A模块转移到B模块,导致B模块的jar包内容不全,导致在linux环境下使用java -jar命令启动报错。自己机器的开发环境不会出这种情况。问题原因:启动类所在项目模块pom文件中缺少maven插件(或插件配置有问题),导致install后jar包内容缺失。解决方法:将maven插件配置放入启动类所在的项目模块下。 <build> <plugins> <plug原创 2021-03-12 08:17:14 · 1158 阅读 · 0 评论 -
【问题解决】安装mysql8.0报错:Access denied for user ‘root‘@‘localhost‘
报错信息:E:\developsoftware\mysql-8.0.13-winx64\bin>mysql -uroot -pEnter password: ******ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)E:\developsoftware\mys...原创 2018-12-04 18:18:59 · 10611 阅读 · 15 评论 -
【问题解决】property [elasticsearch.version] is missing for plugin [head]
报错信息:[2019-09-28T11:41:25,169][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: property [elasticsearch.version] is missing f原创 2020-11-15 21:39:23 · 2257 阅读 · 0 评论 -
【问题解决】java.sql.SQLException: null, message from server: “Host ‘xxx.xx.xx.xxx‘ is blocked because of
某台服务器项目连接不上mysqljava.sql.SQLException: null, message from server: "Host 'xxx.xx.xx.xxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'" at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)原创 2020-11-15 21:38:00 · 2959 阅读 · 0 评论 -
【问题解决】Data source rejected establishment of connection, message from server: “Too many connections“
问题描述:详细报错信息如下java.sql.SQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"2020/8/15 下午8:18:19 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)co原创 2020-08-18 22:01:16 · 4318 阅读 · 0 评论 -
【问题解决】stat /var/lib/docker/tmp/docker-builder258037372/xx/xx/xx/default.conf: no such file or direct
问题描述:该问题是在构建vue项目镜像的过程中出现的,详细报错如下ADD failed: stat /var/lib/docker/tmp/docker-builder258037372/xx/xx/xx/default.conf: no such file or directory错误原因:出现这个问题的根本原因在要ADD源文件没有加载到上下文context中,或者加入的路径不对。使用docker build命令构建镜像的时候Dockerfile中ADD命令后的源文件取的是当前路径下的,比如def原创 2020-07-24 20:19:37 · 5412 阅读 · 0 评论 -
【问题解决】Access denied for user ‘root‘@‘localhost‘
报错信息:E:\developsoftware\mysql-8.0.13-winx64\bin>mysql -uroot -pEnter password: ******ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)E:\developsoftware\mysql-8.0.13-winx64\bin>mysql -urootERROR 1045 (28000): Ac原创 2020-07-10 17:22:16 · 1388 阅读 · 0 评论 -
【问题解决】package docker-ce-3:19.03.11-3.el7.x86_64 requires containerd.io 大于等于1.2.2-3 but none of..
问题: package docker-ce-3:19.03.11-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed错误描述:centos8在安装docker时执行如下命令报错# 安装最新版本Docker Engine和containerd[root@master ~]# sudo yum -y install docker-ce docker-ce-cli co.原创 2020-06-17 22:04:15 · 9850 阅读 · 3 评论 -
【问题解决】org.crazycake.shiro.exception.SerializationException
org.apache.shiro.session.UnknownSessionException: org.crazycake.shiro.exception.SerializationException: serialize error, object=org.apache.shiro.session.mgt.SimpleSession,id=login_token_059abe24-c...原创 2020-04-28 17:53:32 · 4058 阅读 · 4 评论 -
【问题解决】java.lang.NoSuchMethodError: redis.clients.jedis.ScanResult.getStringCursor()...
问题描述:java.lang.NoSuchMethodError: redis.clients.jedis.ScanResult.getStringCursor()Ljava/lang/String; at org.crazycake.shiro.BaseRedisManager.keys(BaseRedisManager.java:148) ~[shiro-redis-3.1.0.jar...原创 2020-04-22 08:30:33 · 5290 阅读 · 1 评论 -
【问题解决】Excel无法打开文件xxx.xlsx,因为文件格式或文件扩展名无效。请确定文件未损坏,并且文件扩展名与文件的格式匹配。
问题描述:使用esaypoi导出后缀为xlsx的Excel文件后,用wps可以打开,用office Excel工具打不开,报错如下:问题原因:后缀为.xlsx如果使用office工具打开原创 2020-04-15 20:51:05 · 22773 阅读 · 0 评论 -
【问题解决】Field xxxMapper in xxxImpl required a bean of type 'xxxMapper' that could not be found.
问题描述:springboot整合mybatis时出现问题,详细报错如下Description:Field studentMapper in com.yuhua.springbootmybatisplus.system.service.impl.StudentServiceImpl required a bean of type 'com.yuhua.springbootmybatisp...原创 2020-04-15 08:20:41 · 4840 阅读 · 1 评论 -
【问题解决】org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): xxx
错误描述:在springboot整合mybatis多数据源配置时碰到,无效的绑定状态错误,即为mapper接口与mapper.xml绑定无效。详细报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.yuhua.springbootmybatisplus.system.m...原创 2020-04-15 08:21:01 · 662 阅读 · 0 评论 -
【问题解决】.gitignore文件配置不生效
问题描述:在创建完项目上传至GitHub过程中,配置的.gitignore文件未生效问题解决#删除缓存huadembp:alive huayu$ git rm -r --cached .rm '.DS_Store'rm '.gitignore'rm '.idea/.gitignore'rm '.idea/compiler.xml'rm '.idea/misc.xml'rm ...原创 2020-03-25 22:00:16 · 542 阅读 · 0 评论 -
【错误解决】SELECT list is not in GROUP BY clause and contains nonaggregated column
错误描述:问题出现在本人在搭建项目开发环境的时候,新安装的mysql-2.7.29默认开启了only_full_group_by模式,导致group by相关语句报错。解决方法:在mysql的my.cnf配置文件中加入如下配置既可解决:sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIV...原创 2020-03-01 15:24:03 · 1951 阅读 · 1 评论 -
【错误解决】Error:(77, 29) java: -source 1.5 中不支持 diamond 运算符 (请使用 -source 7 或更高版本以启用 diamond 运算符)
错误描述:idea编译项目时出错。解决方法:针对这个问题,网上可以搜到两种解决方法,第二种:MacOS在idea中:Preferences中直接搜索Compiler定位位置,WindowsOS在idea的Setting中搜索Compiler定位。将Target bytecode version调到高版本。第二种:在pom中加入如下配置 <build>...原创 2020-02-29 16:08:35 · 492 阅读 · 0 评论 -
【错误解决】pane is dead
错误描述:在安装centos8的过程中碰到的错误错误原因 :镜像位置错误解决方法:虚拟机->设置->CD/DVD->选择你下载的光盘镜像按照上面的步骤设置完后,再正常的进行centos8的安装就可以了。 另外在安装过程中可能出现虚拟机安装屏幕显示不全的问题,比如碰到“开始安装”按钮被遮住,用Tab键切换就可以。...原创 2019-12-12 21:51:34 · 6704 阅读 · 0 评论 -
window.parent.xxx is not a function
报错信息:VM22801:319 Uncaught TypeError: window.parent.productAdvancedQuery1 is not a function at Object.click (eval at <anonymous> (jquery.min.js:2), <anonymous>:319:35) at HTMLDi...原创 2019-12-09 21:27:02 · 8349 阅读 · 0 评论 -
【报错解决】/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled
错误信息 ://查看mysql状态[root@master ~]# systemctl status mysqld● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: fa...原创 2019-11-02 21:28:29 · 39227 阅读 · 0 评论 -
centos7桥接模式配置网络ping不通外网的问题
问题描述:centos7用桥接模式搭局域网服务器,在虚拟机搭建完毕后上不了外网(nat模式不受影响)。经过多次查验网络文件的配置发现都正确,主机与虚拟机互相能ping通(不通则需要关闭物理机与虚拟机的防火墙),然而虚拟机依旧ping不通www.baidu.com。这个问题困扰我一上午,最后发现是因为公司对机器设备有上网权限的认证,桥接模式下虚拟机网络与物理机用的同一个网卡,但是虚拟机与物理机的ma...原创 2019-08-13 15:51:26 · 9274 阅读 · 10 评论 -
【问题解决】This application has no explicit mapping for /error, so you are seeing this as a fallback.
完整报错如下:Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Mon Nov 19 10:43:58 CST 2018There was an unexpected error (type=Not Found,...原创 2018-11-19 13:55:10 · 45298 阅读 · 10 评论 -
Failed to connect to gitlab port 80: Connection refused
问题描述:在搭建完gitlab服务器后,idea中输入http协议的克隆地址准备克隆的时候发现报了以下错误。为了排除是idea设置问题,我又采取命令行的形式去clone了一下同样报这个错误问题解决:1.确定端口服务是否正常看看这个端口服务到底通没通,通过telnet端口发现真的不通C:\Users\Lenovo>telnet 172.16.11.244 80正...原创 2019-08-23 08:57:05 · 26628 阅读 · 2 评论 -
There is no getter for property named 'type' in 'class java.lang.String'
错误信息:大体意思是说“type”这个参数没有getterorg.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'type' in 'class java.lang.String' at org.apache.ibatis.reflection.Reflector.ge...原创 2018-12-18 16:25:54 · 4225 阅读 · 2 评论 -
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile...
报错信息: 这是在maven打包时候报的一个错误。[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project myproject_web: Compilation failure: Compi...原创 2018-12-10 21:12:50 · 1056 阅读 · 0 评论 -
The service already exists! The current server installed:
报错信息:重新安装mysql的时候出现的提示E:\developsoftware\mysql-8.0.13-winx64\bin>mysqld installThe service already exists!The current server installed: E:\MySql\bin\mysqld MySQL报错原因:以前机器上装过mysql没有卸载干净。解决方...原创 2018-12-05 19:56:08 · 23126 阅读 · 14 评论 -
Error creating bean with name 'fastJsonpResponseBodyAdvice' defined in URL xxx
错误信息: 不满足依赖构造参数Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fastJsonpResponseBodyAdvice' defined in URL [jar:file:xxx/FastJsonpRespon...原创 2018-11-28 17:05:04 · 2716 阅读 · 1 评论 -
【问题解决】...ibatis.binding.BindingException: Mapper method 'xxx.insert' has an unsupported return type
报错信息: 大概得意思是说xxxinsert方法得返回值不支持。org.apache.ibatis.binding.BindingException: Mapper method 'com.jd.mapper.UploadPartMapper.insert' has an unsupported return type: class com.jd.entity.UploadPartDTO ...原创 2018-11-28 12:55:11 · 2196 阅读 · 0 评论 -
Caused by: java.net.ConnectException: Connection refused: connect
报错信息: Caused by: java.net.ConnectException: Connection refused: connect at java.base/java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.base/java.net.DualStackPlainSocketImpl.socke...原创 2018-12-04 17:15:22 · 10245 阅读 · 0 评论 -
【问题解决】An illegal reflective access operation has occurred Establishing SSL connection without
警告信息:WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/yuhua5/.m2/repository/org/spri...原创 2018-11-21 22:43:41 · 14251 阅读 · 0 评论 -
SpringBoot 多模块项目(module)Service自动注入(@Autowired)空指针错误解决
报错信息:这个我是截了上一部分,为了省空间下部分我就用...代替了。java.lang.NullPointerException at com.jd.impl.UploadServiceImpl.uploadBlock(UploadServiceImpl.java:39) at com.jd.test.TestController.testFileUploadMethod(TestCo...原创 2018-11-21 20:49:20 · 6727 阅读 · 2 评论 -
Authentication failed for错误解决
出现这种问题可能有以下几点:1)git的密码输入错误(本质),当然在知道用户名密码的情况下都输错的低级错误那就不说了。2)git的密码修改后而及时修改为新的密码,导致出错。3)git的账户被锁定。这个也是本人出错的原因,这儿跟大家分享一下解决方法。首先,先查看有没有设置全局变量以及配置的全局变量对不对,如果不对的话就重新设置一下。查询用户信息:git config --list...原创 2018-09-29 18:06:10 · 111361 阅读 · 1 评论 -
Exception in thread "main" java.lang.IndexOutOfBoundsException: Source does not fit in dest
报错信息:Exception in thread "main" java.lang.IndexOutOfBoundsException: Source does not fit in dest报错原因:目的list必须至少要与源list等长。(目的List可以比源List长度长)解决: 它这里指的长度是List里的size()方法值,我们都知道new ArrayList()初始化的时...原创 2018-09-03 15:26:04 · 5920 阅读 · 0 评论 -
objc[22601]: Class JavaLaunchHelper is implemented 错误
报错信息: 意思是这个JavaLaunchHelper类被实现了两次。Class JavaLaunchHelper is implemented in both/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java (0x1066164c0) and/Library/Java/JavaVirtua...原创 2018-08-29 19:42:52 · 900 阅读 · 0 评论 -
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more ....
报错信息: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 serverTi...原创 2018-12-11 20:19:40 · 280 阅读 · 0 评论