
exception
exception
你就像甜甜的益达
世界上所有的不公平都是由于当事人能力不足造成的!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OS=Windows and the assembly descriptor contains a *nix-specific root-relative-reference (starting wi
错误已经说得很明白了assembly 包含一个linux的文件路径,在mac或者linux中是不报错的.在windows中是报如上错;方案一推荐,使用${file.separator}代替:File.separator 是系统默认的文件分隔符号。原创 2022-09-16 10:33:40 · 1732 阅读 · 0 评论 -
OS=Windows and the assembly descriptor contains a (starting with slash) /
【代码】OS=Windows and the assembly descriptor contains a (starting with slash) /原创 2022-09-07 13:41:48 · 271 阅读 · 0 评论 -
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})不起作用
项目中不需要数据库,发现mac上面只用这一个注解就行了:@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})但是在windows上面还会报错.windows上面要改成:@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfigura原创 2022-03-17 11:14:55 · 1293 阅读 · 0 评论 -
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
更新了一下jar包:jackson版本:2.10.2gson版本:2.8.6项目启动报错但是不影响使用,项目能够正常运行,不知道为什么: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97) at原创 2020-07-10 17:43:49 · 2787 阅读 · 0 评论 -
o.s.web.servlet.PageNotFound - No mapping for GET /sw.js
今天在测试项目的时候发现,项目一直报错:然后打开浏览器查看:发现会一直请求/sw.js,使用postman不会.怀疑是谷歌json展示插件(使json以格式展示):试了一下,不是那个插件,不知道哪个插件…有知道的说下....原创 2020-01-05 18:08:47 · 5975 阅读 · 2 评论 -
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
碰到一个奇怪的错:shiro登录成功后,又不知道哪里执行了重定向,然后报错,response已经提交了,不能进行sendRedirect方法了…明天再看看扫描原因,知道的大神留言告知一下java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed at or...原创 2019-11-18 20:55:38 · 538 阅读 · 0 评论 -
Could not load [java.util.stream.Collectors]. The following stack trace is thrown for debugging purp
今天特别奇怪,一直报错.:然后把修改的退回去…终于定位到了java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [java.util.stream.Collectors]. The following stack...原创 2020-08-11 11:23:26 · 14876 阅读 · 1 评论 -
SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the
报错:叫我们删除log4j-over-slf4j.jar,选中项目然后搜索对应的包,然后排除即可,我这边已经排除了,就ok了ctrl+F搜索哦!原创 2019-06-23 19:15:57 · 3165 阅读 · 2 评论 -
com.fasterxml.jackson.databind.exc.MismatchedInputException:
jackson解析的时候报错:发现加了@AllArgsConstructor注解就报错,解决:去掉@AllArgsConstructor注解…最好不用lombok的其他注解,会出现未知问题.原创 2019-06-23 20:43:54 · 12933 阅读 · 3 评论 -
TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not w
报错:查看最近的提交记录,发现一个哥们提交了一个包,冲突了:于是将spring-orm包排除…解决…原创 2019-06-24 15:40:46 · 413 阅读 · 0 评论 -
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of typeavailable
文章目录场景:找不到的类测试难受场景:今天在跑单侧的时候,一直报找不到类,但是正常启动时没问题的.我这里找不到类是指在启动的时候注入失败.spring容器中没有那个类.找不到的类首先,基本的扫描就不必多说了,但是正常跑能够找到类,单侧就找不到?然后查看对应的类,发现,类里面写了一个@Test方法…测试将这个方法删除在测试一波,启动成功,找到对应的类.再随便在一个类上加个@Test...原创 2019-08-05 12:52:50 · 1288 阅读 · 0 评论 -
Process finished with exit code 0
springboot启动就出现Process finished with exit code 0就GG了.表示正常关闭了…问题是我还没启动啊.就结束了.然后百度一下,都没有很好的结果:然后自己琢磨了一下,我当时的日志使用的是logback,然后项目依赖时间长了有点乱了,然后就把logback的日志删除掉,重新配置.然后就可以了,很大一部分是因为日志导致的,日志没有地方输出就直接挂了....原创 2019-09-11 11:32:06 · 2714 阅读 · 0 评论 -
error Type referred to is not an annotation type
项目报错:如下Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: com$mr$annotation$RedisCache at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpressio...原创 2019-09-11 11:36:21 · 20663 阅读 · 2 评论 -
Caused by: java.lang.NoClassDefFoundError: org/apache/curator/framework/CuratorFrameworkFactory
springboot整合dubbo,apache的报错:添加依赖: <dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-recipes</artifactId> <...原创 2019-06-21 12:56:25 · 13577 阅读 · 0 评论 -
LoggerFactory is not a Logback LoggerContext but Logback is on the classpath
启动springboot报错,然后将仓库里面日志包删除,启动又好了,原创 2019-06-20 10:17:00 · 2761 阅读 · 0 评论 -
nested exception is java.lang.NoClassDefFoundError: org/aspectj/util/Partial
没有开启切面 <aop:aspectj-autoproxy />项目需要引入, <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> ...原创 2019-05-16 11:58:47 · 2717 阅读 · 0 评论 -
nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.view.json.Json
配置springmvc的时候总是报这个错误:Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.view.json.MappingJacksonJsonView] for bean with nam...原创 2019-04-23 09:35:55 · 5522 阅读 · 0 评论 -
tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
在配置日志文件的时候slf4j和logback的时候报错,版本问题:Caused by: java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory at org.slf4j.LoggerFac...原创 2019-04-28 10:39:00 · 1642 阅读 · 0 评论 -
Saxon cannot write a DOMResult unless saxon9-dom.jar is on the classpath
启动项目报错:Caused by: Unable to load jar:file:/G:/apache-tomcat-7.0.77/webapps/pen-portal/WEB-INF/lib/struts2-core-2.3.32.jar!/struts-default.xml - Class: net.sf.saxon.event.SerializerFactoryFile: Seria...原创 2019-04-24 09:37:33 · 863 阅读 · 0 评论 -
Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition
使用hibernate的封装的create方法报错如下:org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/...原创 2019-04-29 08:51:44 · 578 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
缺少一个 jar 包,该 jar 包为:jackson-databind依赖引入地址见:http://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.9.5转:https://blog.youkuaiyun.com/qq_33811662/article/details/80601854...转载 2019-05-05 13:39:26 · 4338 阅读 · 2 评论 -
java.lang.NoSuchMethodError: java.util.Map.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/la
lombok错误:这是报的错:java.lang.NoSuchMethodError: java.util.Map.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; at lombok.core.CleanupRegistry.registerTask(CleanupRegistry.java:55) ...原创 2019-05-08 17:26:48 · 2915 阅读 · 0 评论 -
Method org/apache/commons/dbcp/DelegatingResultSet.isClosed()Z is abstract
项目配置的连接池org.apache.commons.dbcp.BasicDataSource然后网上说是dbcp包版本跟common-pool版本冲突导致的,然后我就找commons-pool依赖,如图结果是dbcp包里面引入的commons-pool包,没办法,只能将连接池换掉,换成c3p0或者druid连接池了…配置很简单,引入包把对应的dataSource换掉就好了…...原创 2019-05-07 09:46:56 · 3760 阅读 · 0 评论 -
It's likely that neither a Result Type nor a Result Map was specified
在测试的时候不小心把返回类型删除了,原创 2019-05-07 10:15:26 · 1414 阅读 · 0 评论 -
Executor.query(org.apache.ibatis.mapping.MappedStatement, java.lang.Object, org.apache.ibatis.sessi
在使用mybatis拦截器的时候报错.Executor.query(org.apache.ibatis.mapping.MappedStatement, java.lang.Object, org.apache.ibatis.session.RowBounds, org.apache.ibatis.session.ResultHandler)发现Executor导入的是util.curren...原创 2019-02-13 14:20:51 · 2182 阅读 · 4 评论 -
java.lang.NoClassDefFoundError: Could not initialize class com.github.pagehelper.util.MetaObjectUtil
使用mybatis的分页插件出现错误=-=,百度好长时间,发现MetaObject这个类,在高版本删除了=-=,所以把版本换一下就好了.<!-- 出现错误的版本--> <mybatis-version>3.2.6</mybatis-version> <mybatis.spring-version>1.2.2</mybatis.spr...原创 2019-02-15 14:12:04 · 4165 阅读 · 0 评论 -
mybatiste报错java.lang.ClassCastException
今天在使用mybatis的时候,报错:以为是同一个类,然后各种百度,感觉是底层使用的类加载器问题,研究好久,百度有个是这么说的https://blog.youkuaiyun.com/qq_30059235/article/details/77851061但是我改了,还是不行,然后抽根烟冷静一下,回来一看发现有两个类,原来我复制了一份到自包里面,唉,不细心,碰到这种问题一定要仔细检查两个类,类型转换异常一...原创 2019-05-07 11:23:20 · 2600 阅读 · 1 评论 -
org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer;
mybatis报错:java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer; at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleE...原创 2019-05-16 11:52:07 · 513 阅读 · 0 评论 -
# There is insufficient memory for the Java Runtime Environment to continue.
项目启动报错: There is insufficient memory for the Java Runtime Environment tocontinue.翻译过来就是没有足够的内存来继续Java运行时环境。内存不足,建议加内存哦...原创 2019-03-28 00:04:00 · 4565 阅读 · 0 评论