
错误总结
雅静8
有计划,有追求;越努力,越幸运!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Junit报错:java.lang.Exception: No tests found matching
今天使用Junit写测试用例时报错如下:java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=test67], {ExactMatcher:fDisplayName=test67(BiShiTest.java.mainshibaodian1.demo1.Test)], {LeadingIdentifierMa原创 2017-06-22 21:34:10 · 2305 阅读 · 1 评论 -
Spring的配置文件xml中报错:xml文件报错Referenced file contains errors (http://www.springframework.org/schema/cont
今天打开我的ssh项目,突然Spring的xml配置文件中报错:Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.1.xsd). For more information, right click on the message in the Problems View原创 2017-06-25 06:53:51 · 11777 阅读 · 2 评论 -
Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration
今天使用static 修饰的变量时:package com.day7.demo4;public class Pengue { String name; String sex; int love=0;//亲密度 int health=60;//健康值 static final String SEX_MALE = "Q仔"; static final St原创 2017-06-23 17:50:48 · 27291 阅读 · 0 评论 -
he superclass javax.servlet.http.HttpServlet was not found on the Java Build Path
我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path:点击这里查看解决办法,亲自试过,解决啦~~转载 2017-06-12 10:10:04 · 1937 阅读 · 0 评论 -
eclipse中Junit报错总结(1)
eclipse中Junit报错总结(1)今天学习Hibernate用Junit做一个测试时报错如下:TestHibernate2.test (3)initializationError(org.junit.runner.manipulation.Filter)java.lang.Exception: No tests found matching [{ExactMatc原创 2017-02-16 16:25:21 · 9175 阅读 · 0 评论 -
Mysql创建表不成功
今天学习Herbinate时自动在Mysql中创建数据表ORDER时,老是报错创建不成功,当我把表名改为ORDERS时,就可以创建成功啦; 错误原因是:order 是Mysql的关键字,Mysql的关键字不能用作表名,所以创建不成功。原创 2017-02-16 18:36:32 · 2879 阅读 · 0 评论 -
Hibernate Cannot use identity column key generation with <union-subclass> mapping for
今天学习Hibernate报一下错误:org.hibernate.MappingException: Cannot use identity column key generation with <union-subclass> mapping for: hibernateUnionSubClass.Persion at org.hibernate.persister.entity.Unio原创 2017-02-17 19:44:21 · 1596 阅读 · 0 评论 -
Hibernate 使用log4j时报 Class path contains multiple SLF4J bindings.
在Hibernate中使用log4j时jar包冲突了,控制台打印如下:SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/E:/%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%ba%90/%e4%b8%8e%e4%bb%a3%e7%a0%81%e6%9c%89%e5原创 2017-02-20 16:45:22 · 444 阅读 · 0 评论 -
Spring整合Hibernate报错:Error occured processing XML 'org/aopalliance/intercept/MethodInterceptor'
今天Spring4.0整合Hibernate4.2.4时,在Spring的配置文件中报错,如下:Error occured processing XML 'org/aopalliance/intercept/MethodInterceptor'. See Error Log for more details 解决办法:导入aopalliance.jar包,这个包是AOP联盟的API包,里面包含原创 2017-03-01 08:40:32 · 779 阅读 · 0 评论 -
Spring 整合Hibernate 报错Pointcut is malformed: warning no match for this type name: com.ren.spring.hibe
今天Spring整合Hibernate时在Spring的配置文件中报错如下:Pointcut is malformed: warning no match for this type name: com.ren.spring.hibernate.service 我配置切点的代码如下:<aop:config> <aop:pointcut expression="execution原创 2017-03-01 18:32:38 · 3852 阅读 · 1 评论 -
Spring 整合Hibernate报错:Error creating bean with name 'dataSource' defined in class path resource
Spring 整合Hibernate 时报错如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: BeanPostProcessor b原创 2017-03-02 09:16:57 · 6953 阅读 · 1 评论 -
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
今天Spring整合Struts2时,在web.xml中配置了Spring的配置文件启动tomcat的时候老是报错如下:严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.Cla原创 2017-03-05 09:55:26 · 1199 阅读 · 1 评论 -
SSH整合报错
今SSH整合的时候报错如下:三月 16, 2017 10:33:03 上午 org.springframework.orm.hibernate4.HibernateTransactionManager afterPropertiesSet信息: Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIn原创 2017-03-16 11:57:03 · 729 阅读 · 0 评论 -
Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires
Tomcat启动报错:Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.,因为数据库连接错误啦。原创 2017-07-19 18:58:39 · 567 阅读 · 0 评论