异常问题
云下的你
这个作者很懒,什么都没留下…
展开
-
Linux生成图片时文字乱码
目前博主个人出现这个问题是因为在linux没有对应字体解决方案:1.在windows找到C:\Windows\Fonts目录找到字体文件jSIMHEI.TTF SIMSUN.TTC2.使用命令查找linux中jdk路径which java# /usr/java/jdk1.8.0_162将字体文件复制近/usr/java/jdk1.8.0_162/jre/lib/fonts中,重启项目就可以了...原创 2021-09-06 16:34:23 · 1023 阅读 · 0 评论 -
-bash: /usr/local/maven/apache-maven-3.5.4/bin/mvn: Permission denied
-bash: /usr/local/maven/apache-maven-3.5.4/bin/mvn: Permission denied这种错误是权限问题,只需设置好权限就OK执行:chmod a+x /usr/local/maven/apache-maven-3.5.4/bin/mvn原创 2018-07-29 19:00:28 · 6435 阅读 · 1 评论 -
java.io.IOException: Short read of DER length
需要替换jre\lib\security目录下的两个jar包,US_export_policy.jar和local_policy.jar,从Oracle官方网站查找jce_policy-8.zip直接点击文中附件(包含了JDK1.6,JDK1.7,JDK1.8),替换本地的jre\lib\security目录下这两个JAR包下载...原创 2019-12-16 12:02:39 · 11916 阅读 · 7 评论 -
SEVERE: Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may not be runn
问题在关闭tomcat是提示(./shutdown.sh):SEVERE: Could not contact localhost:8005. Tomcat may not be running.Jul 20, 2018 3:17:45 PM org.apache.catalina.startup.Catalina stopServerSEVERE: Catalina.stop: ...原创 2019-12-09 09:33:39 · 3618 阅读 · 0 评论 -
io.swagger.models.parameters.AbstractSerializableParameter: Illegal DefaultValue for parameter type
在yml中添加logging: level: io.swagger.models.parameters.AbstractSerializableParameter: error原创 2019-11-06 13:58:07 · 2247 阅读 · 2 评论 -
The dependencies of some of the beans in the application context form a cycle:
SpringBoot多数据源启动项目报错:***************************APPLICATION FAILED TO START***************************Description:The dependencies of some of the beans in the application context form a cycle...原创 2019-10-18 17:25:45 · 4672 阅读 · 0 评论 -
SpringBoot+Mybatis启动项目*required a single bean, but 2 were found*
异常问题为controller中存在多个相同的实例***************************APPLICATION FAILED TO START***************************Description:Field sysJobService in com.comet.controller.SysJobController required ...原创 2019-10-18 11:09:09 · 2763 阅读 · 0 评论 -
Caused by: java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory
原有依赖: <!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId>...原创 2019-10-17 16:28:06 · 8212 阅读 · 1 评论 -
Error:java: Compilation failed: internal java compiler error
改为:原创 2019-10-15 17:23:17 · 129 阅读 · 0 评论 -
Diamond types are not supported at language level ‘5‘
同样改为8原创 2019-10-15 14:22:08 · 1551 阅读 · 0 评论 -
Failed to load property source from location 'classpath:/application.yml'
1.可能是项目提交重新下载之后编码格式出问题,一般改为utf-82.可能是文件当中的格式问题,比如空格原创 2018-12-14 09:32:58 · 1841 阅读 · 0 评论 -
gzip: stdin: not in gzip format
异常问题:gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now原因是这个压缩包没有用gzip格式压缩,所以不用加z指令# tar -xvf name.tar.gz...原创 2019-08-21 10:34:05 · 676 阅读 · 0 评论 -
-bash: /etc/profile: line 11: syntax error near unexpected token `$‘{\r‘‘ ‘bash: /etc/profile: line
使用source命令不能生效使用cat -v /etc/profile检查,发现里面大量的Windows下的换行符:解决方法:#cd /etc#dos2unix profile使用dos2unix profile将profile文件从Windows格式文件转换为Unix、Linux格式,然后在执行source profile使之生效查看#echo $PAT...原创 2019-08-21 10:54:57 · 3261 阅读 · 0 评论 -
idea文件红色git提交方法
选中红色文件,点击‘add’,文件变为绿色就可以提交了。原创 2019-09-02 16:59:11 · 8252 阅读 · 3 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
springboot项目启动错误:***************************APPLICATION FAILED TO START*************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embed...原创 2019-09-26 17:34:56 · 236 阅读 · 0 评论 -
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/util/ClassUtils
异常:Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/util/ClassUtils缺少org.springframework.core包<!-- https://mvnrepository.com/artifact/org.springframework/org.sp...原创 2019-08-09 10:57:49 · 23281 阅读 · 0 评论 -
java.lang.IllegalStateException: Failed to load property source from location 'classpath:/applicatio
异常问题:java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'可能是application.yml文件内容格式或层级的问题原创 2019-08-09 09:58:59 · 1326 阅读 · 0 评论 -
Exception in thread "main" java.lang.AbstractMethodError: org.springframework.boot.context.config.Co
Exception in thread "main" java.lang.AbstractMethodError: org.springframework.boot.context.config.ConfigFileApplicationListener.supportsSourceType(Ljava/lang/Class;)Z依赖冲突:spring boot使用以下版本,之前使用的是&...原创 2019-08-09 09:54:05 · 3877 阅读 · 0 评论 -
Caused by: java.net.ConnectException: Connection timed out: connect
spring boot项目整合mybatis时连接数据库报错Caused by: java.net.ConnectException: Connection timed out: connect我的是因为linux上的防火墙及3306端口没开放参考:https://blog.csdn.net/qq_40369944/article/details/85007397 ...原创 2018-12-14 18:05:36 · 14362 阅读 · 0 评论 -
FirewallD is not running
1.执行firewall-cmd --permanent --zone=public --add-port=3306/tcp,提示FirewallD is not running,如下图所示。2.通过systemctl status firewalld查看firewalld状态,发现当前是dead状态,即防火墙未开启。3.通过systemctl start firewalld...原创 2018-12-14 17:42:44 · 4551 阅读 · 0 评论 -
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava
搭建spring cloud,启动时报错:java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V这个是版本兼容原因 <parent> <groupId>org...原创 2018-12-14 09:46:52 · 397 阅读 · 0 评论 -
java.lang.AbstractMethodError
Spring Boot和Spring Cloud启动报错java.lang.AbstractMethodError: org.springframework.boot.context.config.ConfigFileApplicationListener.supportsSourceType(Ljava/lang/Class;)Z这个是版本冲突的原因,改一下版本。如:2.1.1.RE...原创 2018-12-14 09:40:17 · 4584 阅读 · 0 评论 -
Spring Cloud RestTemplate报错:java.lang.IllegalStateException: No instances available for
java.lang.IllegalStateException: No instances available for localhost原:restTemplate.getForObject( uri+"/user/getname",User.class); //uri为得到的地址 如:http://127.0.0.1改:rrestTemplate.getForObject(...原创 2018-12-13 16:42:57 · 10453 阅读 · 7 评论 -
redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect ti
redis连接报错:redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed out开启防火墙(systemctl start firewalld)1.使用命令 firewall-cmd --state查看防火墙状态。得到结果是r...原创 2018-10-25 09:18:14 · 16971 阅读 · 1 评论 -
org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested
redis连接报错Type Exception ReportMessage Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception i...原创 2018-11-19 19:40:42 · 9204 阅读 · 0 评论 -
Element 'dependency' cannot have character [children], because the type's content type is element-on
报错原因:因为是直接从网上拷贝过来粘贴在pom.xml中的可能格式会有冲突把前面的空格都删了,重新排版就行如下原创 2018-11-21 10:07:37 · 17063 阅读 · 33 评论 -
java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).
java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).原因如下:@Select("select count(*) from pro_mac where id like'%#{val}%' or mac like'%#{val}%'")在where id lik...原创 2018-12-15 13:48:12 · 2581 阅读 · 0 评论 -
To display the conditions report re-run your application with 'debug' enabled.
spring boot项目启动报错:To display the conditions report re-run your application with 'debug' enabled.Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could ...原创 2019-01-04 11:36:32 · 4603 阅读 · 1 评论 -
UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environm
解决方法:在配置文件中添加以下配置spring: jmx: enabled: false原创 2019-06-04 18:45:12 · 2302 阅读 · 0 评论 -
ERROR: '对实体 "web_id" 的引用必须以 ';' 分隔符结尾。'
加载界面提示:ERROR: '对实体 "web_id" 的引用必须以 ';' 分隔符结尾。'解决方式:在变量前加上“amp;”即可。错误示例:<script src="https://****.com?id=1277655852&web_id=1277655852" language="JavaScript"></script>修改后:...原创 2019-06-03 18:30:51 · 1316 阅读 · 0 评论 -
SpringCloud Feign报错 Caused by: java.lang.IllegalStateException: Method has too many Body parameters
Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com.hujiang.framework.web.domain.AjaxResult com.hujiang.project.zhgd.client.SystemClient.getSystemPri...原创 2019-05-21 18:13:16 · 2746 阅读 · 0 评论 -
org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
tomcat 能访问界面,但是程序接口一直没有响应。修改server.xml,添加maxHttpHeaderSize="81920" <Connector port="8989" protocol="HTTP/1.1" maxHttpHeaderSize="81920" connectionTimeout="20000" ...原创 2019-05-16 12:23:53 · 12615 阅读 · 0 评论 -
feign.FeignException: status 404 reading GoodsServiceClient#goodsInfo(String)
有可能是 ‘消费者’ 调用 ‘服务提供者’ 的时候路径错误或者参数少了原创 2019-05-07 10:20:49 · 3516 阅读 · 2 评论 -
自己写的接口,调用时传json数据获取不到
//最开始编写的接口是这样的,调用这个接口时一直获取不到数据public Object savePerson( String json){}//后面加上@RequestBody//通过@requestBody可以将请求体中的JSON字符串绑定到相应的bean上,当然,也可以将其分别绑定到对应的字符串上public Object savePerson(@RequestBody Strin...原创 2019-03-31 18:52:15 · 1130 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec
图片压缩在windows下正常,linux服务器报java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec本地开发,jre里有这个包,所以不会报错但是在新的 jdk 版本中,这个类不推荐使用了,使用 ImageIO.write 方法替代// JPEGImageEncoder encoder = ...原创 2019-03-31 18:46:02 · 4099 阅读 · 1 评论 -
com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。
连接sqlserver2005时报这个错,JDK使用的是1.8找到Windows下 java安装路径,以下是本人安装路径C:\software\Java\jdk1.8.0_201\jre\lib\security修改java.security改为去掉 , 3DES_EDE_CBC,启用旧的算法。然后就可以连接了...原创 2019-03-30 15:41:57 · 8766 阅读 · 4 评论 -
ssm不执行sql,不报错且程序接着运行
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'programa.pId != null'. Cause: org.apache.ibatis.ognl.OgnlExcepti...原创 2018-11-01 20:13:20 · 1388 阅读 · 0 评论