
Java SE/EE-BUG
Swxctx
喜欢技术、喜欢开源项目及分享。
铭心刻骨,就要一意孤行;越是憧憬,越要风雨兼程;要走多远,才算走进森林_xc。
展开
-
Java-implements方面(The method adduser(user) of type user_dao_pleme must override or implement a supe)
实现接口时报错:The method adduser(user) of type user_dao_pleme must override or implement a supertype method解决办法:1.检查jdk版本,项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compile原创 2016-07-22 23:53:43 · 1423 阅读 · 0 评论 -
SpringMVC-HTTP Status 500 - Servlet.init() for servlet springmvc threw exception
在进行SpringMVC开发时,遇到了如下错误:Springmvc配置文件如下所示:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframe原创 2016-12-12 00:58:18 · 4700 阅读 · 1 评论 -
Spring-org.springframework.beans.factory.BeanNotOfRequiredTypeException
问题:org.springframework.beans.factory.BeanNotOfRequiredTypeException:Bean named 'org.springframework.transaction.interceptor.TransactionInterceptor#0' must be of type [org.aopalliance.aop.Advic原创 2016-11-02 14:59:32 · 327 阅读 · 0 评论 -
使用SessionFactory注意
问题:使用SessionFactory操作数据,不会报错,也无任何警告分析:事务提交方式出错解决:将事务提交方式设置为自动提交 true原创 2016-11-02 01:21:06 · 387 阅读 · 0 评论 -
Spring-注解配置错误(测试错误)
问题:org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [annotation.xml]; nested exception is java.lang.IllegalStateEx原创 2016-10-30 01:55:38 · 980 阅读 · 1 评论 -
Java-List使用泛型出错
错误:The type List is not generic; it cannot be parameterized with arguments 原因:导入的包不正确,应该导入java.util.list而不是java.util.awt.list小错误,小细节。原创 2016-09-03 22:53:10 · 3151 阅读 · 0 评论 -
Struts2-struts.xml之<result>配置错误
原因:action中return的success与struts.xml中配置不一致/output.jsp此处的success需要与action中excute方法返回的一致。这并不是该犯的错误。原创 2016-09-03 22:25:30 · 1088 阅读 · 0 评论 -
Jdbc-Tomcat端口占用
错误:Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. T原创 2016-08-15 20:30:23 · 556 阅读 · 0 评论 -
Hibernate-log4J错误
错误:log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).log4j:WARN Please initialize the log4j system properly. 原因:log4j为日志输出配置,classpath中没有此文件,则会出现此警告。原创 2016-09-12 14:17:12 · 561 阅读 · 0 评论 -
Struts-新建Filter后Tomcat启动错误
新建Filter文件后,配置web.xml以后,启动tomcat出现上述错误。经过查阅后,众说纷纭,经总结,大概有一下几种原因:1 web.xnl配置错误/* 在这里指定url时少了/,这里的/代表当前web应用2 在创建Filter时已经自动创建了url@WebFilter("/MyFilter1")所以不必再进行配置3 Tomcat启动时间配置过低原创 2016-08-31 14:39:09 · 901 阅读 · 0 评论 -
Jsp- 页面传值
问题:HTTP Status 500 - For input string: "3>"type Exception reportmessage For input string: "3>"description The server encountered an internal error that prevented it from fulfilling this原创 2016-08-28 22:07:02 · 433 阅读 · 0 评论 -
Jsp-引包问题-Only a type can be imported. com.sw resolves to a package
问题:Only a type can be imported. com.sw resolves to a package出现:在进行jsp开发时,需要导入自写的java类,在导入包是出现错误解决:最简便的方法:在导入是我们需要完整的导入如下:som.sw为包名,UserBeanCl为类名,完整导入即可原创 2016-08-16 15:46:12 · 3148 阅读 · 0 评论 -
Jsp-sql语句错误
type Exception reportmessage Unable to compile class for JSP: description The server encountered an internal error that prevented it from fulfilling this request.exception org.apache.jasper.Ja原创 2016-08-15 22:26:48 · 703 阅读 · 0 评论 -
Servlet-浏览器访问404
问题:HTTP Status 404 - /WebFirst type Status report message /WebFirst description The requested resource is not available. Apache Tomcat/7.0.70问题出现原因:1 路径错误:浏览器输入路径、web.xml配置路径2 w原创 2016-07-31 19:37:34 · 2119 阅读 · 0 评论 -
Jdbc-Type mismatch: cannot convert from java.sql.ResultSet to com.mysql.jdbc.ResultSet
连接数据库时出现如下错误Type mismatch: cannot convert from java.sql.ResultSet to com.mysql.jdbc.ResultSet解决:导入的包需要一致,需要注意的是有sql.ResultSet包与mysql.ResultSet包,(我们只需要让其一致即可)我们尽量导入sql包,避免出现其他数据库不能连接的问题。原创 2016-08-15 18:00:24 · 6824 阅读 · 0 评论 -
Servlet-运行路径问题
Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path - The superclass "javax.servlet.http.HttpServlet" was not原创 2016-07-30 22:37:41 · 988 阅读 · 0 评论 -
Java-editor does not contain a main type
解决办法:1.打开proprities->Java Build Path窗口,并选择Source界面2.点击 Add Folder,在对话框中选择该类的根级包,后点确定3.之后点击确定,等待工作空间build好以后,该项目如下图所示,即为成功原创 2016-07-19 16:06:34 · 548 阅读 · 0 评论 -
Spring-版本与Jdk版本兼容问题
ERROR [localhost-startStop-1] - Context initialization failedorg.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file如上错误所示,在前面的一篇博客中已经提到过原创 2016-12-14 00:46:21 · 17163 阅读 · 0 评论