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
查了好久,终于找到下面一段话,指出方向:

 原文截取:

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 阅读(1508) 评论(0)  编辑  收藏 所属分类: 开发手记

只有注册用户登录后才能发表评论。


网站导航:
 

蜀中人氏,躬耕于珠海

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

常用链接

留言簿(2)

随笔分类(71)

随笔档案(54)

博客

文档

站点

论坛

搜索

  •  

积分与排名

  • 积分 - 50261
  • 排名 - 981

最新评论

阅读排行榜