摆脱不能转换为String的org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1 [英] Getting rid of org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 that cannot be casted to String

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

问题描述

我刚刚遇到了Apache Ivy bug java.lang.ClassCastException:org.eclipse.osgi.internal.framework.EquinoxConfiguration $ 1不能转换为java.lang.String (链接)ivy:配置

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):安装它导致上述错误,每次我尝试执行 ivy:retrieve

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 Marketplace安装 IvyDE 插件,Eclipse开始在许多错误中崩溃,包括JVM崩溃。卸载两个插件都没有修复。我尝试使用一个新的工作空间和一个空白的Eclipse安装,但我最终不得不安装我以前的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.

我花了整个早晨尝试解决混乱,但我不得不恢复以前的未提交的工作区和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任务都运行在与Eclipse相同的JRE中( C:\Program Files\Java \jdk1.7.0_60\jre\bin\server\jvm.dll 根据 sts.ini ),因为我使用许多 eclipse.refreshLocal 任务。虽然我可以通过删除/评论 eclipse.refreshLocal 任务在标准JRE中运行Ant-Ivy任务来解决问题,但我是问有一个解决方法来摆脱错误,也许通过删除工作区元数据中的一个密钥文件。

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.

如我所见,Ivy方法传递一个对象,从它的名字猜测,是Eclipse配置的一部分。当我等待错误修复时,我的问题是如何调查更多关于这个 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?

推荐答案

这看起来与建立libgdx新Gradle项目的模型时出错 - 其中包含了适用于Gradle 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

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

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