Exception
54454hhj
这个作者很懒,什么都没留下…
展开
-
I/O exception (java.net.SocketException) caught when processing request: Connect
异常信息:org.apache.http.conn.HttpHostConnectException: Connection to http://xxx.xxxx.com refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOp...原创 2013-03-01 17:25:53 · 3061 阅读 · 0 评论 -
java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 5
java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 5 原因(占位符?顺序设置错误):ps1.setString(1, mobile2);ps1.setString(2, mobile2);ps1.setString(3, mobile2);ps1.setLong(4, user_id);ps1.setLong(4, id); ...原创 2012-08-13 15:05:26 · 2284 阅读 · 0 评论 -
java.net.SocketException: Software caused connection abort: recv failed
客户端和服务端建立tcp的短连接,每次客户端发送一次请求, 服务端响应后关闭与客户端的连接。如果客户端在服务端关闭连接后,没有释放连接,继续试图发送请求或者接收响应,这个时候就会出错。 总结产生原因,在服务端/客户端单方面关闭连接的情况下,另一方依然以为tcp连接仍然建立,试图读取对方的响应数据,导致出现Software caused connection a...原创 2013-05-16 18:23:16 · 129 阅读 · 0 评论 -
Hibernate使用hsqldb报错:A pre-9.0 client attempted to connect. We rejected them.
1、Hibernate中的配置信息为:<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/h...原创 2012-12-08 16:24:00 · 140 阅读 · 0 评论 -
ORA-01000: maximum open cursors exceeded
for(int i =0;i<2000;i++){ stmt = con.createStatement(); String sql = "insert into yw_mobile(msgid,user_mobile,message_content,send_time,user_id,user_name) values('"+i+"','150******','测试短信',s...原创 2012-09-08 00:43:25 · 81 阅读 · 0 评论 -
Remember that ordinal parameters are 1-based!
String hql = "from CoreUser cu where exists (select 1 from CoreRelation cr where cu.userId = cr.kidId and cr.parentId =?)";return this.basicDAO.findByQuery(hql, userId);Query query = this.basic...原创 2013-01-23 14:05:26 · 74 阅读 · 0 评论 -
java.io.FileNotFoundException: E:\temp (拒绝访问)
java.io.FileNotFoundException: E:\tmp (拒绝访问。) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(U...原创 2013-02-22 22:40:28 · 1258 阅读 · 0 评论 -
java.lang.InstantiationException: at java.lang.Class.newInstance(Unknown Source)
Class cla = Class.forName("com.sxit.Object01");Object01 o2 = (Object01) cla.newInstance();//此处抛出异常 异常信息:java.lang.InstantiationException: com.sxit.Object01 at java.lang.Class.newInstance0(Unk...原创 2013-02-23 20:50:21 · 1915 阅读 · 0 评论 -
java.lang.CloneNotSupportedException:at java.lang.Object.clone(Native Method)
Object01 o3 = (Object01) o2.clone(); 异常信息:java.lang.CloneNotSupportedException: com.sxit.Object01 at java.lang.Object.clone(Native Method) at com.sxit.Object01.main(Object01.java:63) 原因:类...原创 2013-02-23 20:56:06 · 977 阅读 · 0 评论 -
PreparedStatement连续赋值未关闭:ORA-01000: maximum open cursors exceeded
问题代码:for循环中调用一个方法,方法大致如下:preparedstatement ps = null;String sql1 = ".....";ps= connection.preparestatement(sql1);ps.executequery();String sql2 = "......";ps= connection.preparestate...原创 2013-02-27 09:31:35 · 436 阅读 · 0 评论 -
createQuery is not valid without active transaction
去掉<prop key="hibernate.current_session_context_class">thread</prop> If you use LocalSessionFactoryBean, you don't need to declare hibernate.current_session_context_class=thread, Sprin...原创 2013-05-04 01:12:00 · 94 阅读 · 0 评论 -
registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it
要么用旧版本的tomcat,要么就在tomcat的server.xml文件中,注释以下监听<!-- Prevent memory leaks due to use of particular java/javax APIs--><Listener className="org.apache.catalina.core.JreMemoryLeakPreventionLi...原创 2013-05-04 00:13:40 · 314 阅读 · 0 评论 -
存储过程异常:ORA-20000: buffer overflow, limit of 10000 bytes
存储过程中用到了dbms_output.put_line()在服务器端输出信息,而serveroutput 的size默认定义为10000 bytes。修改一下size就可以了set serveroutput on 10000原创 2013-03-04 10:55:52 · 465 阅读 · 0 评论 -
strtus ognl.MethodFailedException WARN OgnlValueStack- Error setting expression
升级struts2的版本,升级后出现了struts2 类型转换异问题,不过不影响前台业务。 类型转换异常导致转换方法没有正常返回,fieldError中添加了相应的错误记录,系统打印出该异常,级别为WARN。如想屏蔽加入以下两句重启服务即可,或者把前台action接收的字段改成包装类或者String类型接收。 # Struts OgnlUtil issues unimportan...原创 2013-03-20 21:42:20 · 149 阅读 · 0 评论 -
Hibernate自动建表失败问题(部分表建立成功,部分失败)
原因:实体类中的属性映射的字段名和数据库的关键字冲突了,比如我的Aticle类中有一个password属性,这个就冲突了,还有一个url属性,修改一下就OK了。 ...原创 2013-04-10 20:53:41 · 293 阅读 · 0 评论 -
启动 Eclipse 弹出“Failed to load the JNI shared library...”错误的解决方法!
之前下载到本机的eclipse是64位的,而本机环境变量下的jdk是32位的,所以重新安装一个64位jdk,配置好环境变量即可。 jdk1.5 64位下载地址: http://download.csdn.net/detail/sd090906/4265774 ...原创 2012-11-04 20:06:55 · 170 阅读 · 0 评论 -
Spring配置文件异常:White spaces are required between publicId and systemId
1、问题:Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [Bean3.xml] is invalid; nested exception is org...原创 2012-11-08 00:02:09 · 350 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
1、问题:java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor2、解决方案:1)、缺少aopalliance.jar,引入即可。原创 2012-11-08 17:08:24 · 67 阅读 · 0 评论 -
maximum number of expressions in a list is 1000
Caused by: java.sql.SQLException: ORA-01795: maximum number of expressions in a list is 1000 原因: sql使用了in关键字,in中的元素个数不能大于1000,大于1000则出现以上错误!...原创 2012-08-09 17:58:12 · 256 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/Meta
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.5.6-Final</version></dependency原创 2013-05-03 21:59:13 · 524 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.5</version></dependency> 添加slf4j包,或原创 2013-05-03 22:08:18 · 405 阅读 · 0 评论 -
IOException while loading persisted sessions: java.io.WriteAbortedException:
异常信息:严重: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.xxt.user.bean.FunctionBeanjava.io.WriteAbortedExceptio...原创 2013-02-28 12:29:53 · 252 阅读 · 0 评论