锘??xml version="1.0" encoding="utf-8" standalone="yes"?>www.av在线播放,末成年女av片一区二区下载,色视频在线观看http://www.aygfsteel.com/hbz0820/zh-cnFri, 20 Jun 2025 01:23:14 GMTFri, 20 Jun 2025 01:23:14 GMT60struts+hibernate欏圭洰debug鎬葷粨http://www.aygfsteel.com/hbz0820/archive/2007/04/13/110467.html姘撮噷鐨勯奔姘撮噷鐨勯奔Fri, 13 Apr 2007 07:51:00 GMThttp://www.aygfsteel.com/hbz0820/archive/2007/04/13/110467.htmlhttp://www.aygfsteel.com/hbz0820/comments/110467.htmlhttp://www.aygfsteel.com/hbz0820/archive/2007/04/13/110467.html#Feedback0http://www.aygfsteel.com/hbz0820/comments/commentRss/110467.htmlhttp://www.aygfsteel.com/hbz0820/services/trackbacks/110467.htmlstruts+hibernate欏圭洰debug鎬葷粨

杞細

javax.servlet.ServletException: Cannot retrieve mapping for action /companyNews

struts-config.xml涓病鏈夊啓鐩稿叧companyNews鐨刟ction.

============================================
鍦╩yeclipse 澧炲姞涓涓猨ar鍖呮椂鍊欙紝鍏堟墦寮欏圭洰properties,閫夋嫨java build path --> libraries -->add external JARs 閫夋嫨鍒伴渶瑕佺殑jar鍖咃紝鍔犲叆鍚庯紝鍙戠幇錛屼粬榪欎釜鍖呭姞杞界殑鏄粷瀵硅礬寰勶紝鑰屾垜浠殑欏圭洰闇瑕乧vs鍏變韓錛屾棤娉?br>
commit鍒癱vs鏈嶅姟鍣ㄣ俶yeclipse鏈変互涓嬫彁紺轟俊鎭細
2 build path entries are missing.

瑙e喅鍔炴硶鏄紝鍏抽棴myeclipse,鐢╪otepad鎵撳紑欏圭洰鐩綍涓嬬殑 .classpath, 鎵嬪姩淇敼鎴愮浉瀵硅礬寰勶紝騫朵笖媯鏌ワ紝鎸囧畾鐨勭浉瀵硅礬寰勪腑鏄惁鐪熸娣誨姞浜唈ar鍖咃紝
鍚姩myeclipse灝卞彲浠ヤ笂浼犳柊娣誨姞鐨刯ar鍖呬簡銆?br>

=============================================
鍦ㄤ嬌鐢╦unit/StrutsTest鏃跺欙紝鎶ラ敊錛?br>java.lang.UnsupportedClassVersionError: junit/framework/TestListener (Unsupported major.minor version 49.0)

鍘熷洜鏄鏋滄槸jdk1.4鐨勮瘽錛屽彧鑳戒嬌鐢╦unit3.8浠ヤ笅鐗堟湰錛屽鏋滄槸浣跨敤jdk1.5鐨勮瘽錛屽繀欏諱嬌鐢╦unit4.0浠ヤ笂鐗堟湰銆?br>





==========================================================

Cannot find ActionMappings or ActionformBeans collection
鍘熷洜鏄細web.xml鏂囦歡涓病鏈夐厤緗畇truts-config.xml鐨勭浉鍏充俊鎭?br>

============================================================

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


緙哄皯jstl鐨勭浉鍏砵ar鍜寃eb.xml閰嶇疆
jstl.jar
<taglib>
  <taglib-uri>
http://java.sun.com/jstl/fmt</taglib-uri>
  <taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/fmt-rt</taglib-uri>
  <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/core</taglib-uri>
  <taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/core-rt</taglib-uri>
  <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/sql</taglib-uri>
  <taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/sql-rt</taglib-uri>
  <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/x</taglib-uri>
  <taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>

<taglib>
  <taglib-uri>
http://java.sun.com/jstl/x-rt</taglib-uri>
  <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>


==========================================================

Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV


standard.jar娌℃湁鏀懼湪lib閲岄潰


===========================================================

鍒涘緩oracle琛ㄧ殑鏃跺欙紝浣跨敤浜嗭紝role鍜宑omment鍏抽敭瀛楋紝寤鴻涓嶈灝嗚繖涓や釜鍏抽敭瀛椾綔涓鴻〃鍚嶅拰瀛楁鍚嶃?br>寤鴻鐢╰oad鎴杙lsql developer鍒涘緩琛紝榪欐牱杞歡浼氭彁紺哄叧閿瓧銆?br>=============================================================

[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 璇硶閿欒錛宬ey璇硶涓簲璇ョ被浼艱繖鏍風殑鍐欐硶 <key column="id">
=============================================================
hibernate3,瀵硅薄涓竴瀵瑰鐨刼ne鏂癸紝蹇呴』鍐檖rivate Set pays=new HashSet();錛屽惁鍒欏寘閿檍ava.lang.NullPointerException 錛?br>鑰宧ibernate2涓璸rivate Set pays;鍗翠笉鎶ラ敊錛?br>
=============================================================
[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 >涓殑璁劇疆搴旇璁劇疆涓簄ot-null="false" 錛岃緗負not-null="true"鍒欐姤浠ヤ笂閿欒
================================================================


org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.xxx.yyy.Company

鍦╯ave鐨勫悓鏃朵篃闇瑕乻ave鍏朵粬鐨勮〃錛岀劧鍚庡啀flush()
=========================================================================

Parse Fatal Error at line 12 column 1

struts-config.xml鏂囦歡琚慨鏀癸紝璇硶閿欒銆傛鏌ヨ娉曘?br>
========================================

org.hibernate.QueryException: could not resolve property: userid of: com.xxx.yyy.Pay

浣跨敤鍒板閿畊serid鐨勬椂鍊欙紝蹇呴』浣跨敤userinfo.userid鏂規硶鎵嶈兘寰楀埌銆?br>
=========================================
javax.naming.NameNotFoundException: Name hibernate_connection_factory is not bound in this Context
鍘熷洜錛歨ibernate鐨勬暟鎹簱鏄犲皠.xml鏂囦歡鏈夐厤緗敊璇紝瀵艱嚧hibernate_connection_factory鏃犳硶緇戝畾鏁版嵁搴撱?br>渚嬪many-to-one璁劇疆浜嗕互鍚庯紝浠嶇劧鍦ㄥ叾涓緗浉鍐茬獊鐨?lt;property>灞炴с?br>
==========================================

[WARN] RequestProcessor - Unhandled Exception thrown: class java.lang.NullPointerException
蹇呴』灝嗕嬌鐢ㄥ埌鐨勫璞ew璧鋒潵銆?br>
============================================
GROUP BY 琛ㄨ揪寮忕殑鏌ヨ蹇呴』婊¤凍濡備笅錛?br>select 瀛愬彞鍚庣殑姣忎竴欏瑰繀闇鍑虹幇鍦╣roup by 瀛愬彞涓紝闄ら潪璇ラ」浣跨敤浜嗚仛闆嗗嚱鏁般?br>
===========================================
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.xxx.yyy.Company

瑕佺駭鑱斾繚瀛橈紝澶氭session.save()
==============================================
java.lang.IllegalArgumentException: id to load is required for loading
鍘熷洜錛?br>
session.load(Company.class,payForm.getCompanyId());
load()鏂規硶絎簩涓弬鏁板繀欏繪槸searlizable,騫朵笖蹇呴』鏄拰鏁版嵁搴撴槧灝勭被鐨勫睘鎬у肩被鍨嬩竴鑷達紝鍗充嬌寮哄埗杞崲閮戒笉琛屻?br>

=============================================
[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]


琛ㄧず浣犵幇鍦ㄦ煡璇㈢殑瀵硅薄鎵鍏寵仈鐨勫璞℃湁闂錛屼竴鑸槸鍥犱負鏁版嵁鐨勯棶棰橈紙璇ュ璞℃墍鍏寵仈鐨勫璞℃壘涓嶅埌錛?鏁版嵁鐨勯敊璇紝褰卞搷浜嗙▼搴忔甯告墽琛屻?br>
========================================================
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 涓儴緗茬殑鏌愪釜鏂囦歡鐨勬嫆緇濊闂獎鍝嶄簡閮ㄧ講銆?br>閲嶅惎鍚庯紝鍘婚櫎tomcat涓儴緗茬殑鏂囦歡銆傞噸鏂板湪eclipse涓緗儴緗層?br>涓轟粈涔堥渶瑕侀噸鍚紵
鍥犱負錛歡oogle desktop杞歡姝e湪瀵規垜閮ㄧ講鐨勪竴涓?00MB澶ф枃浠惰繘琛岀儲寮曪紝閿佸畾浜嗚繖涓ぇ鏂囦歡錛屾垜浼拌google desktop闇瑕佸榪欎釜鏂囦歡绱㈠紩鍗婁釜灝忔椂浠ヤ笂銆傚洜姝わ紝eclipse鏃犳硶瀵硅繃鍘婚儴緗茬殑鏂囦歡錛屽仛鍏堝垹闄ゅ悗閲嶆柊閮ㄧ講鐨勫伐浣溿?br>
===================================================
ERROR LazyInitializationException:19 - could not initialize proxy - the owning Session was closed

org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
瑙e喅鍔炴硶銆?br>cmpy=(CompanyEdit)ss.load(CompanyEdit.class,companyId1);
  Hibernate.initialize(cmpy);//寮哄埗鍒濆鍖朿mpy,鍚﹀垯ss.close()鍚?cmpy灝嗘秷澶?

====================================================
javascript閿欒
琛? 56
瀛楃: 45
閿欒: 鏈粨鏉熺殑瀛楃涓插父閲?br>浠g爜: 0

鏄紪鐮佺殑闂錛佺敤ANSI緙栫爜鍙﹀瓨鍚庡氨濂戒簡銆?br>
====================================================
[WARN] JDBCExceptionReporter - SQL Error: 904, SQLState: 42000
[ERROR] JDBCExceptionReporter - ORA-00904: 鏃犳晥鍒楀悕

[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鏂囦歡涓殑鏌愪釜鍒楀悕鍜屾暟鎹簱涓殑涓嶅悓銆?br>

=======================================================
ConnectionManager - unclosed connection, forgot to call close() on your session?


鍘熷洜錛氭病鏈夊叧闂環ibernate鐨剆ession鐨則ransaction銆傛垨鑰呮病鏈夊叧闂璼ession

=======================================================
[WARN] SellCommentDAO - org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.xxx.yyy.SellComment#7]

鍘熷洜錛氱埗浜插璞★紙one鏂癸級璁劇疆cascade="save-update" 鏃訛紝鐩存帴鍒犻櫎瀛愬璞℃椂錛屼細鎶ラ敊錛?br>澶勭悊鏂規硶錛歴ave淇℃伅闇瑕佺駭鑱旀搷浣滐紝delete鏃跺欎篃瑕佺敤鐩稿悓鐨勫師鐞嗐?br>SellComment sellComment=new SellComment();
sellComment = (SellComment)session.load(SellComment.class,sellCommentId);//鑾峰彇鍎垮瓙瀵硅薄
Long sellInfoId=sellComment.getSellInfo().getSellId();//鑾峰彇鐖朵翰id
SellInfo sellinfo=(SellInfo)session.load(SellInfo.class,sellInfoId);//鑾峰彇鐖朵翰瀵硅薄
sellInfo.getSellComments().remove(sellComment);//鏂粷鐖跺瓙鍏崇郴
sellComment.setSellInfo(null);//鏂粷瀛愮埗鍏崇郴
session.delete(sellComment);//鍒犻櫎鍎垮瓙
session.flush();



]]>
主站蜘蛛池模板: 大化| 泽库县| 禹州市| 筠连县| 曲松县| 马山县| 庆云县| 辉南县| 济宁市| 德州市| 沙湾县| 南和县| 方山县| 云和县| 额尔古纳市| 宁明县| 肇庆市| 邵阳县| 安化县| 东宁县| 泰和县| 深泽县| 周至县| 桃源县| 梅河口市| 葫芦岛市| 中西区| 林芝县| 福建省| 南部县| 怀远县| 绥德县| 鹿泉市| 通州市| 德格县| 金川县| 八宿县| 蒙自县| 江油市| 丽江市| 安龙县|