java.lang.reflect.InvocationTargetException
关于这个错误我之前也遇到过,是因为apache担供的axis2的eclipse插件Axis2_Codegen_Wizard少包造成的,你打开 plugin.xml,看 <runtime>结点,首先看library指向的jar包是不是都存在,不存在的可以从axis2组件中找,里面有的,然后加上 backport-util-concurrent-3.1.jar和geronimo-stax-api_1.0_spec-1.0.1.jar这两上包(如果没有的话),最后 eclipe -clean就ok 了
1) Shutdown eclipse
2) Copying the "backport-util-concurrent-3.1.jar" from "$AXIS2_HOME/lib/" to "$ECLIPSE_HOME/plugins/Axis2_Codegen_Wizard_1.3.0/lib/"
3) Adding the following into the "runtime" element "$ECLIPSE_HOME/plugins/Axis2_Codegen_Wizard_1.3.0/plugin.xml" :
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
4) In "$ECLIPSE_HOME/plugins/Axis2_Codegen_Wizard_1.3.0/plugin.xml" changing the version attribute of the "plugin" element from "1.3.0" to "1.4.0". This results still in the same exception. But leave it.
5) Now changing the version also in the plugin's folder name from "Axis2_Codegen_Wizard_1.3.0" to "Axis2_Codegen_Wizard_1.4.0".
6) Start eclipse and try the plugin
--------------------------------------------------------------
1.在axis2的lib里找到backport-util-concurrent-3.1.jar,
2.将里面的edu目录解压缩出来,
3.用winrar打开eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\lib\axis2-1.4.jar
4.把edu添加进去
重启eclipse.
有人说把backport-util-concurrent-3.1.jar拷到eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\lib下,
再编辑plugin.xml添加
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
若问题仍存在, 尝试改变Eclipse 使用的 JRE, 换成 JAVA 6
- 使用 JRE 1.6 启动 Eclipse 后, 若仍有问题, 试着加入 -clean 参数启动 Eclipse, 清除 osig cache:
- (在 cmd运行模式下到eclipse安装目录下启动eclipse,使用下面带参数语句)
- eclipse.exe -vm " C:\Program Files\Java\jre1.6.0_01\bin\java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M
这是刚在网上找的一个解决方法,最终问题解决了!!!!!!!!!!!!!!1
解决方法是执行(在 cmd运行模式下到eclipse安装目录下启动eclipse,使用下面带参数语句)
- eclipse.exe -vm " C:\Program Files\Java\jre1.6.0_01\bin\java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M
我想此语句把ECLIPSE的一些历史信息给清除了,所以再加上前面的相关知识最终搞定。
PS。以上提供 的方法均是来源于网络,在此感谢各位原作者。
没有合适的资源?快使用搜索试试~ 我知道了~
myeclipse axis2 java.lang.reflect.InvocationTargetException问题解决
共1个文件
txt:1个
4星 · 超过85%的资源 需积分: 50 16 下载量 59 浏览量
2011-12-16
15:38:29
上传
评论
收藏 1KB RAR 举报
温馨提示
java.lang.reflect.InvocationTargetException 妥善解决!
资源推荐
资源详情
资源评论
收起资源包目录
一个困扰我的异常java.lang.reflect.InvocationTargetException.rar (1个子文件)
一个困扰我的异常java.lang.reflect.InvocationTargetException.txt 2KB
共 1 条
- 1
资源评论
- flywithme82014-04-24很好的文档,帮我解决问题了
傲慢的小蜗牛
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功