问题集
罗罗的1024
做个幸福的小吃货
展开
-
quartz : IllegalAccessException or Problem instantiating class
问题一java.lang.IllegalAccessException: Class org.quartz.simpl.SimpleJobFactory can not access a member of class com.luo.platform.java.lang.IllegalAccessException: Class org.quartz.simpl.SimpleJobFactory can not access a member of class com.luo.platform.Myjo原创 2021-05-04 20:56:58 · 485 阅读 · 0 评论 -
拼接hql时,新增字段没有出现在构造方法中
问题描述在使用hibernate拼接hql时,新增字段竟然没有出现在构造方法中(下面是简化版,真实情况要复杂的多)//实体类public class Tmd { private String CBh; private Integer NSjzzaqxx; //private String CAjysly;//新加字段 public static final String cTmdConstructorFields = "(CBh,NSjzzaqxx)"; //public static fi原创 2022-04-18 13:24:30 · 573 阅读 · 0 评论 -
记一次线上问题:Unsupported major.minor 52.0
原因总结JDK版本的问题;编译时的jdk和线上的JDK版本不一致怎么解决把编译时的jdk版本号转换成线上的jdk版本确定编译jdk这里我介绍用class文件确定选择某一个class文件用notepad++打开,如果是下面这样,就安装 Hex editor 插件然后按Ctrl+Alt+Shift+H ,便会转换成16进制前8个字节 ca fe ba be 是固定的,挨着后面的4个字节 00 00 是次版本号,次版本号后面的4个字节00 32 是jdk的版本号便可以原创 2021-10-28 14:04:33 · 207 阅读 · 0 评论 -
Git换行符问题
在使用Git进行团队协作开发中,我们往往会忽略换行符的存在,当使用Git在不同的系统上协同开发同一个项目时,就会出现换行符不统一的问题。一、关于CR、LF和CRLF敲下回车键,不同的操作系统保存到文件中的值不同,换行符的表示也不同。二、IDEA设置IDEA设置使用UNIX换行符IDEA的设置File -> Settings -> Editor -> Code StyleLine separator (for new lines) ,选择:Unix and OS X (\n)原创 2021-06-23 22:50:34 · 2446 阅读 · 1 评论 -
Compilation failed: internal java compiler error
java编译报错信息如下:Error:java: Compilation failed: internal java compiler error解决方案原创 2021-06-21 12:49:34 · 199 阅读 · 0 评论 -
layui table org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as exp
报错信息如下org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: " {type: 'numbers'}, {field: 'name', title: 'name'}, {field: 'id', title: 'id'}, {field: 'sex', title: 'sex'}, {field: 'pid', title: 'pid'}解决方案把cols后的[[ ]]变为原创 2021-03-24 19:44:14 · 1121 阅读 · 1 评论 -
nacos config:Could not resolve placeholder ‘info.name‘ in value “${info.name}“
控制台报错如下:Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'info.name' in value "${info.name}" at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178) ~[spring-core-5.2.12.RELEA原创 2021-03-17 11:15:32 · 1004 阅读 · 0 评论 -
ES7的termQuery查询无效,报错:Fielddata is disabled on text fields by default。
在使用termQuery进行查询时,控制台报错如下Caused by: java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=true on [content] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use原创 2021-03-15 16:03:06 · 645 阅读 · 0 评论 -
failed to obtain node locks, tried [[/usr/local/elasticsearch-7.1.1/data/my-application]] with lock
failed to obtain node locks, tried [[/usr/local/elasticsearch-7.1.1/data/my-application]] with lock解决方案elasticsearch进程被占用,杀掉重启即可原创 2021-03-12 00:34:55 · 1694 阅读 · 1 评论 -
ERROR: [1] bootstrap checks failed
查看错误日志[1] bootstrap checks failed[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured[2021-03-11T11:57:48,648][INFO ][o.e原创 2021-03-11 12:32:26 · 1597 阅读 · 0 评论 -
Existing lock /var/run/yum.pid: another copy is running as pid 22873. Another app is currently hold.
Existing lock /var/run/yum.pid: another copy is running as pid 22873.Another app is currently holding the yum lock; waiting for it to exit…解决方案杀掉此进程kill -9 22873原创 2021-03-11 10:23:17 · 353 阅读 · 0 评论 -
Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘Could not find
mysql> show slave status \G;出现了 Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘Could not find first log file name in binary log index file’ 。。。解决方案mysql> stop slave;Query OK, 0 rows affected (0.01 sec)mysql原创 2021-03-09 16:42:29 · 353 阅读 · 0 评论 -
Circular view path [login]: would dispatch back to the current handler URL [XXXX] again
源代码如下@RequestMapping("/success") public String success(){ System.out.println("success~~~~~~~~~~~~~~~~~"); return "success"; }解决方案,修改view和path,让他们不同名@RequestMapping("/loginsuccess") public String success(){ System.out原创 2021-03-01 17:42:57 · 1824 阅读 · 0 评论 -
No space left on device或者Insufficient space
什么是inode和block?inode就是索引节点(index node)的意思,在每一个存储设备被格式化创建文件系统后,所有的文件大致被分为了两部分,分别是inode和block。inode用来存储文件属性信息,其中包括了文件大小,文件的归属者,文件的归属组,权限,类型,修改时间,以及指向文件实体数据(block)的指针。block中存储的就是文件的实际数据,比如说,照片,视频,音频等等。注意:inode当中不包含文件名!一个文件的文件名,存储在上级目录的block中!开始分析No sp原创 2021-03-01 14:34:15 · 1774 阅读 · 0 评论 -
‘spring.shardingsphere.datasource.xxx‘ is not valid
配置文件spring.shardingsphere.datasource.names=master_db,slave_db错误提示Caused by: org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException: Configuration property name 'spring.shardingsphere.datasource.master_db' is not va原创 2021-02-24 14:48:20 · 979 阅读 · 0 评论 -
MP:There is no getter for property named ‘null‘ in ‘class XXX‘异常
在使用主键进行更新或者删除的时候,报下面错误There is no getter for property named ‘null’ in 'class 。。。我的代码如下@Builder@Datapublic class Course implements Serializable { private static final long serialVersionUID = -16929324809307129L; private Long cid; pr原创 2021-02-23 16:54:38 · 944 阅读 · 0 评论 -
java.sql.SQLException: Table name pattern can not be NULL or empty
报错如下Caused by: java.sql.SQLException: Table name pattern can not be NULL or empty. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:545) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513) at com.mysq原创 2021-02-23 15:25:06 · 931 阅读 · 0 评论 -
mysql: Out of range value for column ‘cid‘
很清楚,是越界的问题解决办法,调整cid的大小,我用的是int(11),字段的值超过其可输入的范围了,可以把字段的类型改一下,比如改成bigint(50)等等。那么int类型最大多少呢?对比一下资料就知道了int 占4个字节,一个字节8位,所以int有32位,2的31次方(有一位是符号位)就是int的最大值(2147483647),超过这个值就不能在使用int了,可以使用bigint...原创 2021-02-23 15:14:20 · 253 阅读 · 0 评论 -
springboot创建项目报错404,403
springboot创建项目报如下的错误解决方案1、https://start.spring.io 为 https://start.aliyun.com/2、https://start.spring.io 为 http://start.spring.io原创 2021-02-23 10:44:08 · 322 阅读 · 0 评论 -
Unknown column ‘childs‘ in ‘field list‘
在使用mybatis-plus的过程中,遇到了如下的错误### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'childs' in 'field list'; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'childs' in 'field list'] with root causejava.sql原创 2021-02-08 16:15:33 · 754 阅读 · 1 评论 -
Statement violates GTID consistency: Updates to non-transactional tables
Statement violates GTID consistency: Updates to non-transactional tables,can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables.解决在my.cnf 中将gtid_mode = O.原创 2021-01-28 10:23:29 · 2632 阅读 · 0 评论 -
-bash: wget: command not found
在部署项目环境时,发现报如下错误[root@izbp1gb52c9au4ljt3u7w8z test]# wget http://nginx.org/download/nginx-1.13.7.tar.gz -bash: wget: command not found[root@izbp1gb52c9au4ljt3u7w8z test]#看到了这个错误,我就去安装 wget[root@izbp1gb52c9au4ljt3u7w8z test]# yum -y install wgetLoad原创 2021-01-21 12:13:47 · 336 阅读 · 0 评论 -
chmod: changing permissions of ‘/root/.ssh/authorized_keys’: Operation not permitted
一般,Linux下root用户的权限是最大 (Linux下UID数值越小的用户,权限越大,可以看到最小值为0,即root用户)但是在使用chmod改变文件权限的时候,即使在root用户下,也会遇到operation not permitted的问题。其实chmod的底层实现是chattr命令,用此命的功能更为强大,甚至可以锁定文件,即使root用户也操作不了此文件。然后执行下面的命令查看当前文件属性,可以发现有 i 和 a 两个属性:lsattr authorized_keys说明此时的文件是原创 2021-01-21 11:27:42 · 2284 阅读 · 0 评论 -
SFTP:Directive ‘UseDNS‘ is not allowed
在安装sftp过程中,报错/etc/ssh/sshd_config line 150: Directive 'UseDNS' is not allowed wi解决办法:把自己添加的Subsystem sftp internal-sftpMatch Group sftpChrootDirectory /home/sftpForceCommand internal-sftpAllowTcpForwarding no写在# Example of overridin原创 2021-01-04 12:21:55 · 3053 阅读 · 1 评论 -
Dubbo:Unimplemented for 。。。
报错信息java.lang.IllegalStateException: Failed to register dubbo://192.168.0.101:20880/com.luo.services.ProviderService?accesslog=true&anyhost=true&application=service-provider&delay=-1&deprecated=false&dubbo=2.0.2&dynamic=true&g原创 2020-12-21 17:03:11 · 1291 阅读 · 0 评论 -
Dubbo: java.lang.NoClassDefFoundError: org/apache/curator/framework/recipes/cache/TreeCacheListener
Dubbo: java.lang.NoClassDefFoundError: org/apache/curator/framework/recipes/cache/TreeCacheListenerDubbo报错:java.lang.NoClassDefFoundError: org/apache/curator/framework/recipes/cache/TreeCacheListener解决方案导入依赖<!-- https://mvnrepository.com/artifact/原创 2020-12-21 15:33:08 · 973 阅读 · 0 评论 -
Dubbo:Invalid name=“org.apache.dubbo.config.ApplicationConfig#0“ contains illegal character
报错如下Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-12-18 14:25:21.108 ERROR 2176 --- [ main] o.s.boot.SpringApplication : Application run failedjava.lang.Ill原创 2020-12-18 14:31:17 · 1713 阅读 · 2 评论 -
谷歌浏览器默认打开搜狗问题
找到谷歌的属性把红色部分删掉,只要谷歌就可以啦原创 2020-12-18 10:40:04 · 3170 阅读 · 2 评论 -
HttpServerErrorException$InternalServerError: 500
在做微服务是遇到下列的错误HttpServerErrorException$InternalServerError: 500 :排查了半天,发现一个奇妙的问题,如下 Arttype arttype = restTemplate.getForObject(url, Arttype.class,key); @Nullable public <T> T getForObject(String url, Class<T> responseType, Object...原创 2020-11-15 22:19:48 · 15363 阅读 · 3 评论 -
group by 和 max 的使用细节
group by 和 max()的使用遇到了大坑啦,哎~~数据表sql 语句SELECT ename,job,MAX(sal) FROM empGROUP BY job执行结果发现 max 最大的结果是正确的,但是其余的信息可能是错误的怎么解决呢?SELECT ename,job,MAX(sal) max FROM (SELECT * FROM emp ORDER BY sal DESC) eGROUP BY e.jobORDER BY max desc执行结果如下原创 2020-11-06 10:53:42 · 2053 阅读 · 0 评论 -
Cannot execute request on any known serve
错误信息:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known serve解决方案:加上下面的配置,如果不配置,eureka: client: registerWithEureka: false fetchRegistry: false原因是默认为true,会自动注册和拉取服务 public EurekaClientConfigBea原创 2020-11-05 18:20:53 · 216 阅读 · 0 评论 -
Invalid bound statement (not found)
springboot中mybatis报Invalid bound statement (not found)解决方案在pom中加入 <build> <resources> <resource> <directory>src/main/java</directory> <excludes>原创 2020-11-04 18:03:25 · 189 阅读 · 0 评论 -
maven依赖报红线的问题
示例如下特别的恼火,尝试了很多方法永远都是红色的波浪线结局以失败告终。而我又不想删库,因为懒得下载,以前我还试过换一个版本号(换了就正常),可是这么多的波浪线,我不可能去查每一个版本 吧查阅大量的资料,发现一个很好的解决办法mvn dependency:purge-local-repository使用这个命令就可以解决啦,这个命令会清理pom.xml中的包,并重新下载,但是并不清理不在pom.xml中的依赖包。...原创 2020-11-03 11:41:34 · 981 阅读 · 1 评论 -
解决IDEA中maven无法引进okhttp依赖
刚开始一直无法引进,进过查阅资料<dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>4.9.0</version> </dependency>是这里的问题去掉勾选就可以了...原创 2020-10-30 11:17:52 · 14158 阅读 · 4 评论 -
swagger-ui的404问题
解决方案一如果项目中加了@EnableWebMvc 注解,会影响,得去掉解决方案二如果实现了WebMvcConfigurer,要添加如下代码@Overridepublic void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("swagger-ui.html") .addResourceLocations("classpath:/META-INF/resou原创 2020-10-28 10:59:56 · 763 阅读 · 0 评论 -
Zero date value prohibited
解决方法把数据库里的update_time 时间改成一个准确的时间就可以了!然后确保 每次插入数据 都 用数据库里的 now() ,或者 数据库里设置默认值 为null 等等多种方法,使他不要是 无效的时间格式就ok。在数据库配置文件中增加zeroDateTimeBehavior 属性jdbc:mysql://yourserver:3306/yourdatabase?zeroDateTimeBehavior=convertToNullzeroDateTimeBehavior 属性,当遇到DAT原创 2020-10-23 12:47:03 · 604 阅读 · 0 评论 -
IDEA中spring boot新建webapp无法创建jsp问题
IDEA新建webapp无法创建jsp问题新建webapp2、配置webapp3.创建jsp文件4.访问原创 2020-10-13 11:49:39 · 629 阅读 · 0 评论 -
chainName cannot be null or empty.
錯誤:Caused by: java.lang.NullPointerException: chainName cannot be null or empty.解決方案:chainName为功能表中的每一个功能的url,shiro要求不能为空原创 2020-10-10 12:08:16 · 1277 阅读 · 1 评论 -
如何解决maven无法自动下载jar的问题
以前我的maven版本是3.5系列,IDEA是2018版,什么配置中央仓库,阿里镜像,自动导依赖非常顺利,我换了一台电脑,maven用3.6系列,IEDA是2018版,结果出来问题,始终无法导入依赖。我检查了setting.xml文件,路径是否有错,有无单词不对,检查IDEA是否自动勾选自动导入。最后,我发现是版本冲突。我朋友的IDEA2019完全可以匹配Maven的3.6系列。...原创 2020-08-15 16:24:08 · 611 阅读 · 0 评论