bug记录
雨润泽林
最好的学习方法是分享
展开
-
【Bug】Unable to make field private final int java.time.LocalDate.year accessible
在使用这段代码时,会出现如下异常。原创 2023-10-11 10:46:08 · 4850 阅读 · 0 评论 -
记录在搭建Jenkins时,所遇到的坑,以及解决方案
在使用Jenkins时,时间上会出现时区问题。系统管理-脚本命令行-粘贴脚本-点击运行。原创 2023-10-08 19:14:00 · 1374 阅读 · 0 评论 -
Docker踩坑记录
本文主要记录在安装docker中遇到的一些问题原创 2022-12-28 01:04:12 · 6169 阅读 · 1 评论 -
GoLand奔溃之后,文件目录变灰色,如何解决?
场景解决方案 删除idea文件后,重新打开项目,即可解决问题原创 2022-04-01 23:20:27 · 5149 阅读 · 0 评论 -
missing go.sum entry for module providing package
1、启动报错信息:xxxxx missing go.sum entry for module providing package xxxxxxxx解决方案:go mod tidy2、go mod tidy安装依赖时,报错连接超时:dial tcp 172.217.160.113:443: i/o timeout解决方案:代理没有配置好,这里注意看看自己的编译器是否也有配置代理,如果在自己的编译器(例如:GoLang)的Terminal执行命令,需要重启export GOPROXY=h原创 2022-03-24 00:29:20 · 6675 阅读 · 0 评论 -
解决MacBook无法读写移动硬盘的问题
首先,使用命令diskutil list,查看你电脑硬盘的信息:/dev/disk4 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *2.0 TB disk4 1: Windows_NTFS 胡原创 2021-07-30 19:10:37 · 2831 阅读 · 0 评论 -
remote: HTTP Basic: Access denied fatal: Authentication failed
异常信息:$ git clone http://gitlab.xxxxxx.gitCloning into 'demo'...remote: HTTP Basic: Access deniedfatal: Authentication failed for 'http://gitlab.xxx 由于最近密码到期了,使用git命令一直出现上述报错,挺烦人的。解决方案: 打开【控制面板】->【凭据管理器/管理你的凭据】->【windows凭据】->【普通凭据】->找到原创 2021-07-30 18:03:31 · 915 阅读 · 0 评论 -
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on
报错信息:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project demo: There are test failures.Please refer to D:\project\demo\target\surefire-reports for the individual test results.Please refer to dump原创 2021-07-21 10:24:06 · 1280 阅读 · 1 评论 -
Unable to load class named
报错信息:Exception in thread “main” io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtBuilder] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Cl原创 2021-07-02 00:46:55 · 4912 阅读 · 0 评论 -
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
报错信息:Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.解决方法:<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</art原创 2021-07-02 00:36:23 · 1060 阅读 · 0 评论 -
The signing key‘s size is 1024 bits which is not secure enough for the RS256 algorithm.
场景: 最近在对接JWT中的RS256加密api,但是第三方给的私钥里面长度只有1024,由于JWT从0.10.0开始公私钥长度最低只能是2048,导致无法使用第三方的私钥进行加密。经过一番折腾,我改动了里面的源码,把jar包放到自己公司的私服。报错信息:"The signing key's size is 1024 bits which is not secure enough for the RS256 algorithm. The JWT JWA Specification (RFC 751原创 2021-06-30 01:44:28 · 3973 阅读 · 0 评论 -
killall: 未找到命令
报错信息:killall: 未找到命令解决方案:[root@localhost local]# yum install psmisc原创 2021-06-29 00:17:17 · 2287 阅读 · 0 评论 -
make: *** 没有指明目标并且找不到 makefile。
报错信息:make: *** 没有指明目标并且找不到 makefile。解决方案: 你缺少一些依赖库,把下面这几个都安装一下,就可以解决问题。[root@localhost keepalived-2.2.2]# yum -y install make[root@localhost keepalived-2.2.2]# yum install gcc-c++[root@localhost keepalived-2.2.2]# yum install -y pcre pcre-devel[ro原创 2021-06-28 23:35:50 · 15549 阅读 · 4 评论 -
configure: error: no acceptable C compiler found in $PATH
报错信息:[root@localhost keepalived-2.2.2]# ./configure --prefix=/usr/local/keepalived --sysconf=/etcchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bi原创 2021-06-28 23:25:36 · 292 阅读 · 0 评论 -
在mysql创建function时,报#1064
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near在mysql创建function时,总是报下面的错误#1064 – You have an error in your SQL syntax; check the manual that corresponds to your原创 2021-05-25 19:41:32 · 1007 阅读 · 0 评论 -
对接支付宝支付,沙箱环境提示:支付存在钓鱼风险!防钓鱼网站的方法
项目场景:对接支付宝支付,沙箱环境提示:支付存在钓鱼风险!防钓鱼网站的方法问题描述:对接中遇到的问题: 原因分析:提示:浏览器的锅解决方案: 关闭所有窗口,只打开那个支付页面窗口就可以...原创 2021-05-08 23:23:38 · 15554 阅读 · 5 评论 -
解决:Invalid bound statement (not found)
解决:Invalid bound statement (not found)解决方案:1.Mapper.java接口和Mapper.xml的id是否一致;2.Mapper.java接口和Mapper.xml的namespace是否一致;3.去除xml文件中的中文注释;4.配置问题,是否将application.yml中mybatis-plus配置成mybatisapplication.yml# mybatis 配置mybatis-plus: type-aliases-package: c原创 2021-05-03 22:47:22 · 789 阅读 · 0 评论 -
org.junit.runners.model.InvalidTestClassError异常解决
org.junit.runners.model.InvalidTestClassError异常解决在使用单元测试时,发现如下异常,请看后面的解决方案。报错信息:4月 24, 2021 7:42:30 下午 org.junit.vintage.engine.descriptor.RunnerTestDescriptor warnAboutUnfilterableRunner警告: Runner org.junit.internal.runners.ErrorReportingRunner (used原创 2021-04-24 19:46:51 · 6272 阅读 · 0 评论 -
javax.net.ssl.SSLException异常处理方式
最近在整合springboot时遇到以下的错误。报错如下:EXCEPTION STACK TRACE:** BEGIN NESTED EXCEPTION ** javax.net.ssl.SSLExceptionMESSAGE: closing inbound before receiving peer's close_notifySTACKTRACE:javax.net.ssl.SSLException: closing inbound before receiving pee原创 2021-04-24 15:32:54 · 5541 阅读 · 0 评论 -
maven - Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
maven下载源码报错信息:java.lang.RuntimeException: Cannot reconnect. at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java原创 2021-02-07 09:27:34 · 5468 阅读 · 17 评论 -
spring boot 解决Error running ‘Application‘: Command line is too long.
报错信息:Error running 'Application': Command line is too long. Shorten command line for Application or also for Spring Boot default configuration.解决方案: 进入Edit Configurations->选中Application->Environment->Shorten command line->选择JAR manifest如图原创 2021-02-03 14:48:58 · 317 阅读 · 0 评论 -
cached in the local repository的解决办法
maven打包过程中,会经常遇到cwas cached in the local repository, resolution will not be reattempted until the update interval of nexus这种异常,原因是本地下载某jar失败,下次重新打包时,就会出现上面那个提示,解决办法如下: 把本地仓库里对应的jar包删除(即删除*.lastUpdated文件),重新打包,就可以解决问题了。...原创 2020-08-27 10:07:32 · 5241 阅读 · 0 评论 -
maven使用命令将jar包deploy到Nexus
命令:➜ mvn deploy:deploy-file -DgroupId=net.sourceforge.cpdetector -DartifactId=cpdetector -Dversion=1.0.7 -Dpackaging=jar -Dfile=/Users/lcp/Downloads/cpdetector-1.0.7.jar -Durl=http://192.168.2.4:18888/repository/thirdparty/ -DrepositoryId=releases说明:原创 2020-06-17 19:39:25 · 405 阅读 · 0 评论 -
use dubbo version 2.5.7 is now destroyed! Can not invoke any more
异常报错:com.alibaba.dubbo.rpc.RpcException: Rpc cluster invoker for interface com.xxx.WithdrawFacade on consumer 10.0.0.1 use dubbo version 2.5.7 is now destroyed! Can not invoke any more.问题分析: 生产者的服务器内存不足导致的异常报错.解决方案: 干掉其他无用的进程,或者加内存....原创 2020-06-11 15:35:59 · 3857 阅读 · 0 评论 -
One of the two will be used. Which one is undefined.
启动main方法,遇到如下报错信息:objc[95202]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/bin/java (0x1074014c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/jre/lib/libinstrument原创 2020-06-10 15:26:05 · 766 阅读 · 0 评论 -
maven install 提示:Process terminated
报错如图:解决方案:打开idea,Preferences界面(可以用快捷键Ctrl+,或command+,),找到maven,重新设置User setting file配置就可以了,其实就是找不到setting.xml文件。前人踩坑,后人避坑!给一些初学者一些解决方案吧!...原创 2020-06-09 16:43:18 · 10817 阅读 · 6 评论 -
fastjson又双叒叕出安全漏洞了
近日,阿里云应急响应中心监测到fastjson爆发新的反序列化远程代码执行漏洞,黑客利用漏洞,可绕过autoType限制,直接远程执行任意命令攻击服务器,风险极大。1. 漏洞描述 fastjson采用黑白名单的方法来防御反序列化漏洞,导致当黑客不断发掘新的反序列化Gadgets类时,在autoType关闭的情况下仍然可能可以绕过黑白名单防御机制,造成远程命令执行漏洞。经研究,该漏洞利用门槛较低,可绕过autoType限制,风险影响较大。阿里云应急响应中心提醒fastjson用户尽快采取安全措施阻止转载 2020-06-03 13:58:39 · 1356 阅读 · 0 评论 -
cron表达:周一至周五每天早上9点40执行定时任务(BUG记录)
今天周五,发现线上环境定时任务没有执行,我之前的表达式是这样的:0 40 9 ? * 1-5这个表达式其实是有问题的,可以从源码CronExpression中发现,它里面有这样的一个枚举:dayMap.put("SUN", 1);//星期日dayMap.put("MON", 2);//星期一dayMap.put("TUE", 3);//星期二dayMap.put("WED", 4);//星期三dayMap.put("THU", 5);//星期四dayMap.put("FRI", 6);//星原创 2020-05-22 15:56:52 · 20885 阅读 · 2 评论 -
使用JD-GUI反编译报// INTERNAL ERROR //错误
什么都别说了,换一个工具(Luyten)吧;下载地址:https://github.com/deathmarine/Luyten/releases很强~~欢迎关注我的微信公众号,里面有很多干货,各种面试题原创 2020-05-13 14:41:26 · 1006 阅读 · 1 评论 -
idea:properties in parent definition are prohibited提示报错
<parent> <artifactId>demo</artifactId> <groupId>com.app</groupId> <version>${demo.parent.pom.version}</version></parent>maven 配置父pom文件时,idea提示这...原创 2020-03-20 10:16:58 · 27811 阅读 · 12 评论 -
zookeeper异常奔溃分析
网络情况:内存情况:磁盘使用情况:cpu使用情况:故障分析思路(故障时间Wed Feb 26 21:28:24 2020,zookeeper版本号3.4.11):1、查看网络、内存、磁盘、cpu等情况;2、查询是否有人执行了kill命令(排查人为操作);3、查看jvm启动参数,找到ErrorFile对应的错误文件以及dump日志文件;主要是通过以上方式排查问题: 首先,...原创 2020-03-05 01:23:21 · 2053 阅读 · 0 评论 -
安装brew命令遇到坑
安装brew遇到如下报错信息:ruby brew_install.rb Warning: The Ruby Homebrew installer is now deprecated and has been rewritten inBash...原创 2020-03-05 00:58:13 · 5791 阅读 · 2 评论 -
Mac express全局安装后 command not found
Mac express全局安装后 command not found异常信息:express command not found我mac电脑上安装了express 和express-generator之后,依然会出现如上 找不到命令的异常信息,真是气死人。后来,仔细观察,发现安装express-generator之后会输出一串信息,如下:lcpMacBook-Pro:~ lc$ npm...原创 2019-12-17 19:32:16 · 1153 阅读 · 0 评论 -
autoreconf: command not found
autoreconf: command not found安装步骤1、下载autoconf、libtool、automake下载链接:见我的下载库2、解压并安装对应的包解压命令:tar -zxvf xxxxxxx.tar.gz安装步骤:先sudo ./configure --prefix=/usr/local/autotools-bin,然后make,最后sudo make insta...原创 2019-12-08 22:54:23 · 10115 阅读 · 0 评论 -
使用SonarLint连接SonarQube提示
异常提示:Analyzers Not LoadedThe following plugins do not meet the required minimum versions, please upgrade them in SonarQube:javascript(installed:3.2.0.5506,minimum:4.0.0.5862),java(installed:4.15...原创 2019-10-21 20:52:15 · 3099 阅读 · 0 评论 -
Eclipse Memory Analyzer:使用-data参数异常的解决方案
启动Eclipse Memory Analyzer(即MAT)程序报如下异常:eclipse.buildId=unknownjava.version=1.8.0_141java.vendor=Oracle CorporationBootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=zh_CNFramework argumen...原创 2019-10-17 16:45:14 · 828 阅读 · 0 评论 -
eclipse查看jar源码
第一步:下载JAD , 1.5.8版本的jad在 http://www.softpedia.com/progDownload/JAD-Download-85911.html 将展开后的jad.exe放到某个目录,例如 c:/jad/jad.exe第二步:下载JADClipse插件http://sourceforge.net/projects/jadclipse/file原创 2016-04-27 11:47:09 · 415 阅读 · 0 评论 -
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of its
在用Eclipse IDE for Java EE Developers进行maven项目的开发时,报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of;解决方法:1、查看windows -> Preferences -> maven 的set原创 2016-05-25 10:42:33 · 539 阅读 · 0 评论 -
Plug-in "net.sourceforge.jode" was unable to instantiate class "net.sourcefo
处理方法:删除或者修改文件夹名字 eclipse > plugins > net.sourceforge.jode_1.0.5然后重启eclipse。原创 2016-05-05 11:30:47 · 3499 阅读 · 2 评论 -
ORA-01722:无效数字
我在使用PL/SQL插入一条数据时,总是报(ORA-01722:无效数字),挺反感的,后来发现,原来是类型错误;insert into T_PROPERTIES_CONFIG (ID,PROP_NAME,PROP_VALUE,DIST_CODE,CREATE_TM,MODIFY_TM,PROP_NOTE,STATUS)VALUES ('20160615','URL_RSA_ROOT','/r原创 2016-06-15 18:18:17 · 6306 阅读 · 0 评论