ITeye博客

Bug

共 11 篇文章

Cannot change version of project facet Dynamic Web Module to 3.0

在eclipse的工程上选择属性,再选择Project Facets里面中选择Dynamic Web Module ,将2.3修改为3.0,提示如下信息: Cannot change version of project facet Dynamic Web Module to 3.0 解决方法: 在工程目录下有一个.settings文件夹,打开org.eclipse.wst.common.project.facet.core.xml,做如下修改: installed facet="jst.web" version="3.0"

2014-04-29 15:28 · Bug

NoRouteToHostException:No route to host

使用proxool数据库连接池,平常都好好的,今天出现这个异常: 2014-03-19 14:41:05 [ERROR] [org.logicalcobwebs.proxool.Prototyper-sweep] Prototype com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at sun.reflect.Generated…

2014-03-19 16:35 · Bug

javax.servlet.jsp.PageContext cannot be resolved to a type

在编写jsp时,如下代码中的 pageContext 会报一个错误。 <a href=" ${pageContext.request.contextPath } /comm/activate_user">激活用户数</a> 错误: javax.servlet.jsp.PageContext cannot be resolved to a type 原因与解决 :编写时候报错,当时发布到jetty后能正常运行,这是因为jetty中有jsp-api.jar。 所以,解决方法就是将jetty安装目录下的jsp-api.jsp(tomcat中也有)复制到工程的lib目录下。 然后打个空格,重新保存一…

2013-12-19 17:01 · JAVA · Bug · JSP · PageContext

Maven:CompilerException: tools.jar not found: jre7\..\lib\tools.jar

Reference: http://muruga.yoksha.com/maven-fatal-error-compiling-tools-jar-not-found.html Exception: CompilerException: tools.jar not found: jre7\..\lib\tools.jar Condition:在使用Maven打包项目的时候出现这个异常,提示tools没有找到。 解决:**确定你的eclipse在 首选项--》java--》installed JREs里面的jre指向的是JDK而不是JRE,tools.jar是JDK才有的。**当然,你也可以在…

2013-11-26 11:37 · Bug · maven · maven

Parameter index out of range (1 > number of parameters, which is 0).

Exception : Parameter index out of range (1 > number of parameters, which is 0). 在使用jdbc是出现这个错误,原因是在使用占位符(?)的时候,用单引号括起来了,这个问题在拼接复杂sql语句的时候常常出现。 错误:SELECT * FROM doctor WHERE docName = ' ? ' 正确:SELECT * FROM doctor WHERE docName = ?

2013-11-25 16:11 · Bug · JDBC · Parameter index out of range

Android: IllegalStateException: database already closed

last modify:2013-11-18 11:20:36 ***************************************** 打开一个Activity的时候通过SQLite查询一些数据并显示,出现一个异常: IllegalStateException。 stackoverflow: java.lang.IllegalStateException: database /data/data/com***/databases/mobile.db (conn# 0) already closed 这是出错代码: public List<BlackNumber> getList(…

2013-11-18 11:38 · Bug · Android · Android · SQLite · illegalstateexception

奇怪的异常:DEBUG -- CLOSE BY CLIENT STACK TRACE

last modified:2013-10-08 16:34:22 ********************************************** 今天将测试服务器上测试通过的系统发布到线上,刚开始是出现一个 mysql数据连接超时的错误 ,后来修改一下连接池的配置文件问题解决了,但是重新启动服务器确又报了一个新的错误: 2013-10-08 14:51:58 DEBUG [C3P0PooledConnectionPool.java:468] com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.destroyResource() …

2013-10-08 16:53 · Bug · mysql · MySQL · 数据库连接池

MySQL数据库提示:Communications link failure,The last packet successfully received...

Last modified:2013-10-08 14:16:47 ********************************************** web网站使用MySQL数据库,今天突然报以下错误: Communications link failure,The last packet successfully received from the server was *** millisecond ago.The last packet successfully sent to the server was *** millisecond ago。 原因: Mysql服务器…

2013-10-08 14:18 · Bug · mysql · MySQL · 连接超时

ADB server didn't ACK 是怎么回事?安卓虚拟机无法安装App

关于ADB server didn't ACK 的问题,在网上查了很多,重启eclipse,设置环境变量等等。。。最后我重启电脑了。还是没有用,后来在网上一篇 博客 中查到:5037端口被占用的话,也会出现如下提示:ADB server didn't ACK。 按照作者的说法我试了一下,找到了真凶“ 豌豆荚 ”, 主要原因是5037端口被豌豆荚程序占用了,最快的解决方法就是ctrl+alt+delete,进入“启动任务管理器”,将所用过的豌豆荚进程都结束掉。然后,在Devices视图中点击“reset adb”,好了,问题解决了,快run一下试一试。 问题解决过程如下: 点击那个Run按钮后…

2013-08-16 15:50 · Bug · Android · failed to start daemon

springMVC 请求404错误或静态资源无法访问

问题:springMVC 请求404错误或静态资源无法访问。 在web.xml中我们一般这样配置: <!-- 默认所对应的配置文件是WEB-INF下的{servlet-name}-servlet.xml,这里便是:spring3-servlet.xml --> <servlet> <servlet-name>spring3</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </s…

2013-08-13 11:39 · Spring · Bug · Spring · / · 404

MyBatis3使用#{}传递参数值为空

最近做项目的时候遇到一个问题,使用mybatis作为项目的持久层,举一个简单的例子: <select id="getAccountByName" parameterType="String" resultType="Account"> select accountname as accountName, accountpswd as accountPassword, createtime as createTime from account where accountname = #{accountName } </select> 这是在mapper文件中的一段配置,很简单就是通过accou…

2013-08-08 11:29 · Bug · MyBatis3 · MyBatis · null