org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
[ERROR] XMLHelper - Error parsing XML: XML InputStream(18) Attribute name "column" associated with an element type "key" must be followed by the ‘ = ‘ character. [ERROR] Configuration - Could not configure datastore from input stream <org.dom4j.DocumentException: Error on line 18 of document : Attribute name "column" associated with an element type "key"
must be followed by the ‘ = ‘ character. Nested exception: Attribute name "column" associated with an element type "key" must be followed by the ‘ = ‘ character.>org.dom4j.DocumentException: Error
on line 18 of document : Attribute name "column" associated with an element type "key" must be followed by the ‘ = ‘ character. Nested exception: Attribute name "column" associated with an element
type "key" must be followed by the ‘ = ‘ character.
xml 語(yǔ)法錯誤,key語(yǔ)法中應該類(lèi)似這樣的寫(xiě)法 <key column="id"> ============================================================= hibernate3,對象中一對多的one方,必須寫(xiě)private Set pays=new HashSet();,否則包錯java.lang.NullPointerException , 而hibernate2中private Set pays;卻不報錯;
============================================================= [DEBUG] AbstractSaveEventListener - generated identifier: 1, using strategy: org.hibernate.id.IncrementGenerator org.hibernate.PropertyValueException: not-null property references a null or transient value: com.xxx.yyy.company at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
<many to one >中的設置應該設置為not-null="false" ,設置為not-null="true"則報以上錯誤 ================================================================
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.xxx.yyy.Company
org.hibernate.QueryException: could not resolve property: userid of: com.xxx.yyy.Pay
使用到外鍵userid的時(shí)候,必須使用userinfo.userid方法才能得到。
========================================= javax.naming.NameNotFoundException: Name hibernate_connection_factory is not bound in this Context 原因:hibernate的數據庫映射.xml文件有配置錯誤,導致hibernate_connection_factory無(wú)法綁定數據庫。 例如many-to-one設置了以后,仍然在其中設置相沖突的<property>屬性。
==========================================
[WARN] RequestProcessor - Unhandled Exception thrown: class java.lang.NullPointerException 必須將使用到的對象new起來(lái)。
============================================ GROUP BY 表達式的查詢(xún)必須滿(mǎn)足如下: select 子句后的每一項必需出現在group by 子句中,除非該項使用了聚集函數。
=========================================== org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.xxx.yyy.Company
要級聯(lián)保存,多次session.save() ============================================== java.lang.IllegalArgumentException: id to load is required for loading 原因:
============================================= [INFO] DefaultLoadEventListener - Error performing load command <org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xxx.yyy.Company#0]
>org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xxx.yyy.Company#0]
======================================================== eclipse 3.1,myeclipse 4錯誤 Deployment is out of date due to changes in the underlying project contents . You‘ll need to mannally ‘Redeploy‘ the project to update the deployed archive. 原因 tomcat 中部署的某個(gè)文件的拒絕訪(fǎng)問(wèn)影響了部署。 重啟后,去除tomcat中部署的文件。重新在eclipse中設置部署。 為什么需要重啟? 因為:google desktop軟件正在對我部署的一個(gè)300MB大文件進(jìn)行索引,鎖定了這個(gè)大文件,我估計google desktop需要對這個(gè)文件索引半個(gè)小時(shí)以上。因此,eclipse無(wú)法對過(guò)去部署的文件,做先刪除后重新部署的工作。
=================================================== ERROR LazyInitializationException:19 - could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed 解決辦法。 cmpy=(CompanyEdit)ss.load(CompanyEdit.class,companyId1); Hibernate.initialize(cmpy);//強制初始化cmpy,否則ss.close()后,cmpy將消失.
[INFO] DefaultLoadEventListener - Error performing load command <org.hibernate.exception.SQLGrammarException: could not load an entity: [com.xxx.yyy.Sellinfo#1]
>org.hibernate.exception.SQLGrammarException: could not load an entity: [com.xxx.yyy.Sellinfo#1]
***.hbm.xml文件中的某個(gè)列名和數據庫中的不同。
======================================================= ConnectionManager - unclosed connection, forgot to call close() on your session?
======================================================= [WARN] SellCommentDAO - org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.xxx.yyy.SellComment#7]