posts - 54,  comments - 1,  trackbacks - 0

          下午在試用JDom操作XML時,老是跑出一個異常:

          org.jdom.JDOMException: java.lang.VerifyError: (class: org/jaxen/jdom/DocumentNavigator, method: getTextStringValue signature: (Ljava/lang/Object;)Ljava/lang/String;) Incompatible object argument for function call: (class: org/jaxen/jdom/DocumentNavigator, method: getTextStringValue signature: (Ljava/lang/Object;)Ljava/lang/String;) Incompatible object argument for function call
          查了好久,終于找到下面一段話,指出方向:

           原文截?。?/FONT>

          Now, I tried to find the class TransformServlet... not an easy one to find,
          since we don't
          know the package name... is it org.apache.xml, org.apache.xalan, javax.xml,
          javax.servlet, etc...
          I haven't been able to find it on my system....

          My guess is that you have two copies of this file... but I am not sure
          where...

          I wouldn't suggest replacing a FILE inside a jar... but figuring out which
          jar is causing the conflict
          and seeing if you can (temporarily) remove that conflicting jar to get the
          problem to go away...
           
          原來是因為可能存在多個JDom.jar引起的方法調用不清.再回過頭查下項目的path設置,果然存在另一個jdom.jar(63k),而我的項目下的jdom.jar是150k.原來版本不同,將原來的包覆蓋,再運行,一切正常.
          這么個問題,花了1個多小時,搞死了.
          posted on 2005-08-17 17:05 ZhuJun 閱讀(1529) 評論(0)  編輯  收藏 所屬分類: 開發手記

          蜀中人氏,躬耕于珠海

          <2005年8月>
          31123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          常用鏈接

          留言簿(2)

          隨筆分類(71)

          隨筆檔案(54)

          博客

          文檔

          站點

          論壇

          搜索

          •  

          積分與排名

          • 積分 - 50999
          • 排名 - 976

          最新評論

          閱讀排行榜

          主站蜘蛛池模板: 禹州市| 黄平县| 盐津县| 静乐县| 白银市| 民和| 佳木斯市| 怀柔区| 怀远县| 南宁市| 昌吉市| 手游| 三门县| 怀宁县| 庆元县| 磴口县| 龙江县| 界首市| 安国市| 拜泉县| 翼城县| 疏附县| 佛山市| 土默特左旗| 海原县| 白玉县| 盘山县| 会东县| 大城县| 石渠县| 融水| 高要市| 裕民县| 临江市| 鹤峰县| 青龙| 门头沟区| 汤原县| 衢州市| 万源市| 临高县|