Eclipse RCP 中的间歇性 java.lang.LinkageError - Equinox
我正在使用 Equinox 执行环境开发一个项目,并且使用 cxf-dosgi-ri-singlebundle-distribution CXF 包。我正在 Eclipse RCP (galileo) 中运行我的测试。当我第一次使用新添加的 CXF 包启动该程序时,一切正常。但在第二次尝试时,我在 cxf-dosgi-ri-singlebundle-distribution 包中遇到了 java.lang.LinkageError 。我添加了一些临时的“使用”指令,问题就消失了。但在随后的启动中,LinkageError又出现了!所以我再次修改(使用 touch manifest.mf!!!)清单,程序正确启动。 要点是,当且仅当我“触摸”cxf-dosgi-ri-singlebundle-distribution 的清单文件时,Eclipse 才能正确启动捆绑包。 有人从未遇到过类似的问题吗?
非常感谢, 马泰奥
I'm developing a project with Equinox execution environment and I'm using the cxf-dosgi-ri-singlebundle-distribution CXF bundle. I'm running my tests within Eclipse RCP (galileo). When I started the program for the first time with the newly added CXF bundle everything worked fine. But at the second try I got a java.lang.LinkageError in cxf-dosgi-ri-singlebundle-distribution bundle. I added some ad hoc "uses" directives, and the problem diappeared. But at the subsequent start the LinkageError was there again! So I modify again (with touch manifest.mf !!!) the manifest and the program started correctly.
The point is that Eclipse is able to correctly start the bundles if and only if I "touch" the manifest file of cxf-dosgi-ri-singlebundle-distribution.
Does anyone have never experienced a similar issue?
Thank you very much,
matteo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
致相关人员:我完全删除并从头开始重新创建了 Eclipse 工作区,并将 cxf-dosgi-ri-singlebundle-distribution 升级到了新的可用版本(我使用的是 v 1.1,后来升级到了 v 1.2)。问题消失了。
To Whom It May Concern: I completely removed and recreated from scratch the eclipse workspace and I upgraded the cxf-dosgi-ri-singlebundle-distribution to a newly available version (I was using v 1.1 and I upgraded to v 1.2). The problem disappeared.