[计算机软件及应用]Jaa 异常.doc
《[计算机软件及应用]Jaa 异常.doc》由会员分享,可在线阅读,更多相关《[计算机软件及应用]Jaa 异常.doc(36页珍藏版)》请在三一办公上搜索。
1、 JAVA常见问题集粹文件编号:TSPI-GF-01版本号:1.0编 制:陈炯日 期:2010-1-20审 核:日 期:批 准:日 期:第0页文件修订记录时间作者主要修订内容2010.01陈炯编制Java 常见异常集粹目 录1Caused by: line 1:188: expecting CLOSE, found null12ClassNotFoundException: org.hibernate.hql.ast.HqlToken13com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 数据库表标
2、识符.列名 in field list14createSQLQueryis not valid without active transaction15ERROR 1129 (00000): Host XXXXXX is blocked because of many connection errors; unblock with mysqladmin flush-hosts26Exception loading sessions from persistent storage27Hibernate 映射配置文件中outer-join随便配置里会出现heap space异常28Hibernat
3、e运行时表列名加上下划线29IOException while loading persisted sessions: java.io.EOFException310java.io.CharConversionException: Not an ISO 8859-1 character: xx311java.io.IOException: response already committed312java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to
4、org.apache.AnnotationProcessor313java.lang.IllegalArgumentException:Parameter XX does not exist as a named parameter in HQL语句414java.lang.IllegalStateException: getAttribute: Session already invalidated415java.lang.IllegalStateException: BeanFactory not initialized or already closed - call refresh b
5、efore accessing beans via the ApplicationContext516java.lang.IllegalStateException: getOutputStream() has already been called for this response517java.lang.IllegalStateException: getWriter() has already been called for this response618java.lang.NoClassDefFoundError:org/objectweb/asm/Type619java.lang
6、.NoSuchMethodError: antlr.collections.AST.getLine()I720java.lang.NoSuchMethodError:org.hibernate.hql.antlr.HqlBaseParser.recover(Lantlr/RecognitionException;Lantlr/collections/impl/BitSet;)V721java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V722java.lang.OutOfMemoryError: Java heap spa
7、ce723java.lang.OutOfMemoryError: PermGen space824java.lang.StackOverflowError925java.lang.UnsupportedClassVersionError: Bad version number in .class file1026java.lang.UnsupportedClassVersionError:Unsupported major.minor version 51.01027.SocketException: Connection reset by peer: socket write error10
8、28.SocketException:Unexpected end of file from server1129java.sql.SQLException: Connections could not be acquired from the underlying database!1130java.util.ConcurrentModificationException1331javax.naming.NameNotFoundException: Name jdbc is not bound in this Context1632javax.servlet.ServletException
9、: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered1733javax.servlet.ServletException: java.lang.NoSuchFieldError: deferredExpression1734Lock wait timeou exceeded try restarting transaction1835no persistent classes found for query class1836org.apach
10、e.struts2.json.JSONWriter can not access a member of *1937org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class for connect URL null2038org.hibernate.AnnotationException:OneToOne or ManyToOne oncom.greatwe.mup.dangeroussource.entity.DangeroussourceEntity.restreeCd2239org
11、.hibernate.AnnotationException: Unable to create unique key constraint (DRILLINGDATE, ORGNAME, EMERGENCYCD) on table T_EMERGENCY_DRILLING: EMERGENCYCD not found2240org.hibernate.AssertionFailure: possible nonthreadsafe access to session2241org.hibernate.exception.JDBCConnectionException: could not e
12、xecute query2342org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():2543org.hibernate.LazyInitializationException: failed to lazily initialize a collection of2544org.hibernate.LazyInitializationException: could not initialize proxy - no
13、Session2545org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed2646org.hibernate.HibernateException: CGLIB Enhancement failed2747org.hibernate.HibernateException: createQuery is not valid without active transaction2748org.hibernate.HibernateException:
14、 Illegal attempt to associate a collection with two open sessions2749org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: T_HAZARD_MAIN, for columns: org.hibernate.mapping.Column(dangeroussourceDtlEntity)2850org.hibernate.MappingException: Repeated column in mapping
15、 for entity2851org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations)2852org.hibernate.QueryException:Unabletoresolvepath3053org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row co
16、unt: 0 expected: 13054org.hibernate.TransactionException: Transaction not successfully started3055org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing:*3156org.objectweb.asm.ClassVisitor.visit3157transaction completed o
17、n session with on_close connection release mode; be sure to close the session to release JDBC resources3158User defined class com.sun.faces.application.WebappLifecycleListener is not a listener, as it does not implement the correct interface(s).32321 Caused by: line 1:188: expecting CLOSE, found nul
18、l解决方法:hql语句少了一个),hibernate在转换的时候报错。2 ClassNotFoundException: org.hibernate.hql.ast.HqlToken分析:weblogic.jar中已经有了一个antlr.jar的版本,导致应用中hibernate3.jar中用到的antlr.jar不能找到,导致异常。解决方法:在hibernate.properties上,或是在spring的conext xml中,加上一个属性hibernate.query.factory_class,值为org.hibernate.hql.classic.ClassicQuery Trans
19、latorFactory。或者在hibernate.cfg.xml文件中加上org.hibernate.hql.classic.ClassicQueryTranslatorFa ctory如果是Spring配置Hibernate则在bean配置中添加org.hibernate.hql.classic.ClassicQuery TranslatorFactory3 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 数据库表标识符.列名 in field list分析:先检查数据库相应的数据库表中是否
20、存在这个列名的列。解决方法:在相应的数据库表中添加这一列。4 createSQLQueryis not valid without active transaction 解决方法:如果使用hibernate的getCurrentSession()获得session对象,对查询语句也需要开启事务,不然就会抛出如上异常!5 ERROR 1129 (00000): Host XXXXXX is blocked because of many connection errors; unblock with mysqladmin flush-hosts分析:这说明mysqld已经得到了大量(max_co
21、nnect_errors)的机“hostname”的在中途被中断了的连接请求。在 max_connect_errors次失败请求后,mysqld认为数据库出错了,并且阻止该站点进一步的连接,直到有人执行命令 mysqladmin flush-hosts。解决方法:重启数据库或调整它:set global max_connect_errors=1000。6 Exception loading sessions from persistent storage分析:保存在硬盘上的session数据读取失败。解决方法:将work((例如:tomcat6.0.35workCatalinalocalhos
22、t)下面的文件清空,主要是*.ser文件,或者只是删除掉session.ser亦可。7 Hibernate 映射配置文件中outer-join随便配置里会出现heap space异常解决方法:Outer-join为false时可以配置lazy为true,表示需要时才加裁。8 Hibernate运行时表列名加上下划线解决方法:如果对AnnotationSessionFactoryBean配置了如下属性就会对相应的数据表列名称加上下划线。9 IOException while loading persisted sessions: java.io.EOFException分析:tomcat对保存硬
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机软件及应用 计算机软件及应用Jaa 异常 计算机软件 应用 Jaa
文档标签
- 计算机软件及应用SKETCHUP
- 计算机软件及应用
- 计算机软件及应用CAXA上机指导
- 计算机软件及应用Mathematica
- 计算机软件及应用Jaa
- 计算机软件及应用Lifekeeper
- 计算机软件及应用DELPHI
- 计算机软件及应用SSIS
- 计算机软件及应用Primavera
- 计算机软件及应用ZigBee协议栈TI
- 计算机软件及应用图像预处理技术概述
- 计算机软件及应用安卓经典游戏推荐
- 超八操作手册0401计算机软件及应用it计算机专业资料33
- 计算机软件及应用A3Windows
- 计算机软件及应用Oracle
- 计算机软件及应用第2章
- 计算机软件及应用PGP教程
- 计算机软件及应用热泵运行规程第一版
- 计算机软件及应用CorelDRAW
- 计算机软件可靠性和可维护性管理
链接地址:https://www.31ppt.com/p-4561554.html