
错误
Piper小豆芽
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
simplejavamail : Batch module not found, make sure it is on the classpath
org.simplejavamail.internal.modules.ModuleLoaderException: Batch module not found, make sure it is on the classpath (https://github.com/bbottema/simple-java-mail/tree/develop/modules/batch-module)今天使...原创 2020-03-03 16:27:59 · 1296 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/disk/DiskFileItemFactory
commons-fileupload commons-fileupload 1.2.2 commons-io commons-io 1.3.2原创 2020-01-02 17:16:51 · 2651 阅读 · 3 评论 -
Virtual server server already has a web module live-mix-1.0.2-t230 loaded at / therefore web module
公司用了一个很老的web容器,现在都没人知道我也是第一次用,使用报错,写这个错误答案应该也没有人用,抱着也许有同病相怜的人呢,就写下吧,凑个数。这个错,要把项目domain空间的application清理掉,因为已经有了上个版本的空间了,所以没法创建了,如下。我的项目叫mix,空间在/Users/admin/software/glassfish4/glassfish/domains/dom...原创 2019-12-20 10:17:21 · 503 阅读 · 2 评论 -
IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 5
使用jdbcTemplate查询数据,刚开始如下操作Broker broker = jdbcTemplate.queryForObject( "select id, uname, broker_id brokerId, create_time createTime, deleted from broker where id = 26", Broker.class);我的本...原创 2019-12-13 11:38:35 · 1824 阅读 · 0 评论 -
No archetype found in remote catalog. Defaulting to internal catalog
在远程目录中找不到原型。 默认为内部目录maven新项目创建时候报错因为使用了maven模版构建项目,要从网上获取模版,然后没有找到这个模版或者网络慢,导致获取失败不用太在意,关闭项目重新打开就没事了...原创 2019-12-12 11:06:40 · 11110 阅读 · 0 评论 -
1630 - FUNCTION *** does not exist
bug还原SELECTcount (1)FROMbroker_anchor aWHEREa.deleted = 0mysql报如下错误:1630 - FUNCTION live_test.count does not exist.Check the ‘Function Name Parsing and Resolution’ section in the Reference M...原创 2019-11-22 16:19:33 · 5923 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Parameter 'xxxxx' not found
这是因为mybatis获取数据的时候没有匹配到参数如果是多个参数前面要加上@Param注解int applyRecord(@Param("applyType") Byte applyType, @Param("anchorId") Integer anchorId);...原创 2019-11-12 19:20:45 · 340 阅读 · 0 评论 -
itext生成PDF报错java.io.IOException: The document has no pages
我的原因为document里面没放东西,或者放的东西为空原创 2018-11-01 09:01:34 · 20618 阅读 · 2 评论 -
idea mapper报红解决
原创 2018-11-13 18:15:23 · 4895 阅读 · 0 评论 -
Method has too many Body parameters
使用feign远程调用接口,方法的参数前要加@RequestParam(可以有多个)注解或者@RequestBody(只能有一个)原创 2018-11-12 10:41:15 · 603 阅读 · 0 评论 -
yum-config-manager找不到
今天根据菜鸟教程配置yum库,出现了错误,找不到命令。yum-config-manager: command not found//命令在yum-utils 包yum install yum-utils原创 2018-11-21 15:33:30 · 3980 阅读 · 0 评论 -
jenkins启动报:No such file or directory
新的jenkins服务器,自己配的maven,地址都是对的,就是在下载依赖的时候,报没有文件夹,如下Non-resolvable parent POM for share.project:share-project:1.0.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-pa...原创 2018-11-19 17:18:39 · 11944 阅读 · 0 评论 -
org.apache.ibatis.type.TypeException: Could not resolve type alias ''
我这里错是因为xml文件resultMap类型错了就是这里类找不到原创 2018-11-30 09:46:24 · 3213 阅读 · 0 评论 -
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘‘ in class
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'purchase' in 'class share.pmc.modular.pm.entity.Purchase'报错文件为mapper.xml文件,表面看上去是没有purchase字段没有get方法,但是我看了一下是...原创 2018-12-17 10:23:55 · 4501 阅读 · 0 评论 -
max_allowed_packet
Packet for query is too large (1362 > 1024). You can change this value on the server by setting the max_allowed_packet’ variable原创 2018-12-17 10:54:39 · 560 阅读 · 0 评论 -
码云[email protected]: Permission denied (publickey)
以前我都git也没有问题,最近下载代码,提交总是报错,百度下,大致是这样的报错是因为码云没有你机器的公钥所以,你要生成公钥并配置到码云#生成:ssh-keygen -t rsa -C "gitee.com"# 一直按回车即可生成 ssh key#生成的key在 ~/.ssh/id_rsa.pub 这里#如果是windows机器#在 C:\Users\{你的用户文件夹}\.ssh\ ...原创 2018-12-17 15:00:10 · 5307 阅读 · 0 评论 -
The field file exceeds its maximum permitted size of 20971520 bytes
今天使用spring boot工程,上传文件报错,意思为:上传文件超过限制。The field file exceeds its maximum permitted size of 20971520 bytes.配置上传文件限制不限制大小: -1单位:MB,KB#1.4 版本之前multipart.maxFileSize = 1024MBmultipart.maxRequest...原创 2018-12-28 10:42:28 · 4914 阅读 · 0 评论 -
Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
将启动类放到了java目录下了,你需要在java下面建包,把启动类放进去第二是,你使用@ComponentScan指定包名原创 2018-12-28 18:12:15 · 383 阅读 · 0 评论 -
Truncated incorrect DOUBLE value
我建议你重新打开查询页面!原创 2019-01-11 15:34:51 · 849 阅读 · 0 评论 -
All elements are null
checkEngName方法,这样写用resultMap会引发All elements are null异常修改原创 2019-01-07 12:48:57 · 4815 阅读 · 0 评论 -
mysql设置不区分表名大小写
问题描述最近使用spring boot启动项目,因为改动了mysql连接地址到B库,新的mysql库和以前的A库拥有相同的表,但是启动报错,意思是:找不到test.USER_INFO表,有意思的问题来了问题分析问题在mapper映射文件查询使用的是大写的USER_INFO名字,但是数据库不论是B库还是A库都是小写的user_info表,为什么A库启动可以呢?既然问题不在程序上,那就...原创 2018-07-06 11:36:20 · 813 阅读 · 0 评论 -
经过zuul上传文件乱码
比如你的文件服务这样上传:http://127.0.0.1:7008/file/upload经过网关是这样:http://127.0.0.1:7004/file-system/file/upload那么解决方案为:http://127.0.0.1:7004/zuul/file-system/file/upload不要怀疑,加上zuul试试...原创 2018-10-17 15:43:46 · 622 阅读 · 0 评论 -
Non-terminating decimal expansion; no exact representable decimal result
使用BigDecimal做除法的时候(devide)报错,大致意思是,没有精确的除结果参考https://blog.csdn.net/lopper/article/details/5314686原创 2018-09-30 16:32:21 · 946 阅读 · 0 评论 -
It's likely that neither a Result Type nor a Result Map was specified
看我查询语句,忘了写返回类型了,修改为如下图所示因为我mapper用map接收的,就写为map原创 2018-10-12 18:17:02 · 1887 阅读 · 0 评论 -
无法上传空目录到git仓库
如图所示新建empty目录,点击提交 但是却提示没有更改的项目,无法提交git只会跟踪文件的修改,不会记录目录的修改,所以目录变化,新增修改,删除,只要没有牵扯到文件的变化,都不会提交有时候我们新建了项目,暂时没有文件,先将目录架构提交,这个时候怎么解决呢?只需在empty文件夹下建立.gitkeep(文件名任意)文件,写入如下一段话# Ignore everythi...原创 2018-08-17 15:07:30 · 7215 阅读 · 0 评论 -
Custom runner class Runner should have a public constructor with signature R
使用spring boot编写的测试类,如下图,但是执行会报如题所示的错, 需要改一类名,再者将类移到com.test包里面,重新编译尝试一下原创 2018-08-26 18:30:28 · 3292 阅读 · 5 评论 -
java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0
今天使用feign进行远程调用,被调用方使用@RequestParam接受参数,但是在启动项目的时候报了错Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.===2018-08-13 17:25:37....原创 2018-08-14 17:30:16 · 1590 阅读 · 0 评论 -
has been loaded by xml or sqlprovider
这个错是因为mapper文件中定义了insert,并且xml文件也定义了insert,但是他们不同导致的。原创 2018-07-21 14:46:44 · 9826 阅读 · 3 评论 -
tomcat意外退出 A valid shutdown command was received via the shutdown port. Stopping the Server instance
昨天在公司使用jenkins发布项目,没有成功,今天上午来了,试了一上午,没有成功,下午让别人先别忙了,我专门部署调试这个jenkins项目 公司jenkins在70机器上,部署项目在50机器,部署过程:70机器 从gitlab上下载最新代码70机器 使用maven打包项目,在target目录里产生*.war包70机器 通过ssh将war包传输到50机器,并执行50机器的一个脚本...原创 2018-07-11 16:18:54 · 9332 阅读 · 0 评论 -
mongodb报Write failed with error code 17280 and error message 'WiredTigerIndex::insert: key too large
错误描述最近在使用mongodb的过程中,项目已经上线了但是报了错,这让我很伤心。心情很惆怅。 怎么办呢?身为程序员,不过我的老大人好,没有责怪我。好了,进入正题。 公司日志系统使用kafka发送消息,我这边接受消息存到mongodb里面,但是老大在启动的过程中报了题目上的错,WiredTigerIndex::insert: key too large to index。大致意思是:“键太...原创 2018-06-25 22:58:16 · 4428 阅读 · 0 评论 -
Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller
错误的产生 最近给公司部署mongodb来存储日志,自己再本地测试的好好的,上线后几天,有人反映说所有的日志都是6月20号的,我到后台看一下发现报了下面的错。 Query failed with error code 96 and error message Executor error during find command :: caused by :: errmsg Sort o...原创 2018-06-21 15:41:12 · 2363 阅读 · 0 评论 -
linux系统执行文件报:No such file or directory
别人给了我一个脚本,将脚本上传到服务器可以看到刚上传到服务器没有执行权限执行:chmod +x install.sh这样就可以执行了但是报了一个这样的错使用命令查看文件属性:我新建一个文件查看:发现文件格式不对,在windows使用nodepad++打开,在右下角发现修改为Unix(LF)再上传 就可以了 ...原创 2018-06-20 18:17:59 · 3346 阅读 · 0 评论 -
Invalid character found in method name. HTTP method names must be tokens
今天启动tomcat之后,但是访问接口就报错,27-Aug-2018 12:48:02.094 信息 [http-nio-8080-exec-1] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP requ...原创 2018-08-27 12:53:26 · 566 阅读 · 0 评论 -
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)Vspring boot和spring cloud不兼容原创 2018-08-24 19:20:02 · 1109 阅读 · 0 评论 -
Error:(12, 8) java: 无法访问javax.servlet.ServletException 找不到javax.servlet.ServletException的类文件
Error:(12, 8) java: 无法访问javax.servlet.ServletException 找不到javax.servlet.ServletException的类文件需要添加servlet依赖<dependency> <groupId>javax.servlet</groupId> ...原创 2018-08-29 10:35:39 · 15574 阅读 · 0 评论 -
java.io.IOException: Broken pipe
java.io.IOException: Broken pipe原创 2018-10-12 18:13:01 · 4414 阅读 · 0 评论 -
cannot create temp file for here-document: No space left on device
我在今天进入系统的root用户目录的时候,报错cannot create temp file for here-document: No space left on device设备上没有足够空间找出大文件find / -size +100000原创 2018-10-12 10:20:00 · 852 阅读 · 0 评论 -
jenkins Failed to parse POMs
ERROR: Failed to parse POMsjava.nio.file.FileSystemException: /root/.jenkins/workspace/share-pmc/share-pmc-app/target/share-pmc-app.war -> /root/.jenkins/jobs/share-pmc/modules/share.pmc$share-pmc...原创 2018-10-12 09:53:45 · 7974 阅读 · 0 评论 -
Error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed w
在spring boot项目中,启动报以下错误Error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean...原创 2018-09-07 16:36:13 · 3318 阅读 · 0 评论 -
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environ
启动服务org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed while singletons of this fac...原创 2018-09-07 16:07:58 · 297 阅读 · 0 评论