摆脱org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1中不能被强制转换为字符串 [英] Getting rid of org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 that cannot be casted to String

查看:1304
本文介绍了摆脱org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1中不能被强制转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚运行到Apache常春藤错误 java.lang.ClassCastException:org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1不能被转换为java.lang.String 链接)执行Ant任务时常春藤:配置

I have just run into the Apache Ivy bug java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String (link) when performing Ant task ivy:config

今天上午我试图LibraryFolder ClasspathContainer 插件安装到我的的Eclipse(STS 3.6.1):它安装每次我试图执行时造成上述错误常春藤:获取

This morning I tried to install LibraryFolder ClasspathContainer plugin into my Eclipse (STS 3.6.1): installing it caused the above error every time I tried to perform ivy:retrieve.

更糟糕的是,我试图安装在Eclipse市场和Eclipse IvyDE 插件开始在错误的群众,包括JVM崩溃崩溃。卸载插件都没有解决。我试图用一个新的工作区和一个空的Eclipse安装,但我最终不得不安装我的previous Eclipse插件。

Even worse, I tried to install IvyDE plugin from Eclipse Marketplace and Eclipse started to crash at a multitude of errors, including JVM crash. Uninstalling both plugins didn't fix. I tried with a new workspace and a blank Eclipse installation, but I eventually had to install my previous Eclipse plugins.

我整个上午的时间试图解决的一塌糊涂,但我不得不恢复previous未提交的工作区和Eclipse的安装,所以现在我得到的一切,除了上述错误工作。常春藤工作得很好,直到今天早上。

I spent the entire morning trying to fix the mess but I had to restore the previous uncommitted workspace and Eclipse installation, so now I get everything working except for the above error. Ivy worked fine until this morning.

我的每一个Ant任务在同一个JRE像Eclipse( C同时运行:\\ Program Files文件\\的Java \\ jdk1.7.0_60 \\ jre的\\ BIN \\服务器\\ jvm.dll的 sts.ini ),因为我用了很多的 eclipse.refreshLocal 任务。虽然我可以通过删除/注释 eclipse.refreshLocal 任务运行Ant-艾维在一个标准的JRE的任务解决该问题,我问有一种变通方法来摆脱错误的,也许在工作区中的元数据删除密钥文件。

Every Ant task of mine runs in the same JRE as Eclipse (C:\Program Files\Java\jdk1.7.0_60\jre\bin\server\jvm.dll as per sts.ini) because I use a lot the eclipse.refreshLocal task. While I can workaround the problem by removing/commenting eclipse.refreshLocal task and run Ant-Ivy tasks in a standard JRE, I'm asking if there is a workaround to get rid of the error, perhaps by deleting a key file in the workspace's metadata.

据我可以阅读,常春藤方法传递的对象,从它的名字猜测,是Eclipse配置的一部分。虽然我会等待一个bug修正,我的问题是我怎么调查更多关于这个 org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1 参数性质是什么?

As I can read, an Ivy method is passed an object that, guessing from its name, is part of Eclipse configuration. While I'll be waiting for a bugfix, my question is how do I investigate more about the nature of this org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 parameter?

推荐答案

这看起来与<一个href=\"http://stackoverflow.com/questions/26085045/error-at-building-model-of-new-gradle-project-for-libgdx/26109153#26109153\">Error在建设新摇篮工程模型libgdx - 包括对于摇篮IDE工作的解决办法,所以也许它会为你工作。

This looks related to Error at building model of new Gradle project for libgdx - which includes a workaround that works for Gradle IDE, so maybe it will work for you.

有关Eclipse的bug是 https://bugs.eclipse.org/bugs /show_bug.cgi?id=445122

The relevant Eclipse bug is https://bugs.eclipse.org/bugs/show_bug.cgi?id=445122

[由OP编辑]简化生活有相同的问题,我会张贴链接的内容,并接受人民的答案

to simplify life to people having the same problem I'll post the contents of the link and accept the answer

就以下几行添加到的eclipse.ini

-Dorg.eclipse.swt.browser.IEVersion=10001
-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
-Dosgi.user.area=@user.home
-Dosgi.instance.area.default=null

这篇关于摆脱org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1中不能被强制转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆