简体   繁体   English

WSO2 Developer Studio 2.1.0(以前为Carbon Studio)插件导致Eclipse挂起

[英]WSO2 Developer Studio 2.1.0 (previously Carbon Studio) plug-in causes Eclipse load to hang

I am trying to install the new WSO2 Developer Studio 2.1.0 into Eclipse. 我正在尝试将新的WSO2 Developer Studio 2.1.0安装到Eclipse中。 It appeared to install successfully, but when I try to start Eclipse it hangs forever (eg > 30 minutes) with the message “Loading Workbench”. 它似乎已成功安装,但是当我尝试启动Eclipse时,它会永久挂起(例如,> 30分钟),并显示消息“正在加载工作台”。 On one attempt (after leaving it for maybe 45 minutes), it actually got as far as bringing up the Eclipse main window, but it hung there with the message “Marketplace DND Initialization”. 一次尝试(离开它大约45分钟之后)实际上达到了打开Eclipse主窗口的目的,但是它挂着消息“ Marketplace DND Initialization”。 The Eclipse process is steadily using about 25% of my CPU. Eclipse进程稳定地使用了大约25%的CPU。

There is an error in my Eclipse workspace/.metadata/.log file: 我的Eclipse工作区/.metadata/.log文件中存在错误:
!ENTRY org.eclipse.ui.navigator 4 0 2012-10-17 11:20:18.303 !ENTRY org.eclipse.ui.navigator 4 0 2012-10-17 11:20:18.303
!MESSAGE An extension already exists with id "org.eclipse.ui.navigator.resourceContent". !MESSAGE扩展名已经存在,标识为“ org.eclipse.ui.navigator.resourceContent”。
This appears about 20 times per attempt to load Eclipse, all in the first few seconds after initiating the load. 在启动加载后的最初几秒钟内,每次尝试加载Eclipse都会出现大约20次。

I followed the WSO2 Developer Studio installation guide (http://dist.wso2.org/products/developer-studio/2.1.0/docs/install_guide.html). 我遵循了WSO2 Developer Studio安装指南(http://dist.wso2.org/products/developer-studio/2.1.0/docs/install_guide.html)。 I was unclear about the prerequisites. 我不清楚先决条件。 It says “Eclipse WTP 3.1.0 or higher”, but that appears to be from old Eclipse versions (Galileo), so I didn't worry about it. 它说“ Eclipse WTP 3.1.0或更高版本”,但这似乎来自旧的Eclipse版本(Galileo),因此我不必担心。 My Eclipse About screen says WTP 1.0. 我的Eclipse About屏幕上显示WTP 1.0。 The other prerequisite was for Carbon Server. 另一个前提条件是使用Carbon Server。 I am already running latest BPS server (beta), which includes Carbon, so I didn't worry about it. 我已经在运行最新的BPS服务器(测试版),其中包括Carbon,因此我不必担心。 Just to be sure, I later installed the latest stand-alone “Carbon Server”, but that didn't help any. 可以肯定的是,我后来安装了最新的独立“ Carbon Server”,但这没有任何帮助。

I also tried increasing memory settings in eclipse.ini by 50% (to XXMaxPermSize: 384, -Xmx768m) from the default. 我还尝试将eclipse.ini中的内存设置从默认值增加50%(至XXMaxPermSize:384,-Xmx768m)。 No help. 没有帮助

Here is my system: 这是我的系统:
MS-Windows 7 Enterprise on a 64-bit laptop 64位笔记本电脑上的MS-Windows 7 Enterprise
Java 1.6 Java 1.6
Eclipse IDE for Java EE Developers, Indigo 3.7, 32-bit. 适用于Java EE开发人员的Eclipse IDE,Indigo 3.7,32位。 Version 1.4.0.20110615-0550 版本1.4.0.20110615-0550
(relevant) Eclipse features: (相关)Eclipse功能:
WTP Version: 1.0.0.v201104180000-797B1CcNBHGC_DRAwXT3B WTP版本:1.0.0.v201104180000-797B1CcNBHGC_DRAwXT3B
Subclipse 1.6.x Subclipse 1.6.x
Aptana Studio 3.0.4 MS Windows x86 “Eclipse plug-in version”. Aptana Studio 3.0.4 MS Windows x86“ Eclipse插件版本”。 Version: 3.0.4.201108101432-7E37B7HFEHCdSHSV5R_IyJetqA_B 版本:3.0.4.201108101432-7E37B7HFEHCdSHSV5R_IyJetqA_B
CollabNet Merge Client 2.2.4 CollabNet合并客户端2.2.4

Any help would be appreciated. 任何帮助,将不胜感激。

Hi I faced the same problem especially with nested WSO2 projects / multi module Maven projects. 嗨,我遇到了同样的问题,特别是在嵌套的WSO2项目/多模块Maven项目中。 A little change on my Eclipse Project Explorer Settings solved the problem for me. 我对Eclipse Project Explorer设置进行了一些更改,为我解决了这个问题。

What I have done: 我做了什么:

  1. Open View Customization menu on Eclipse Project Exlporer (the triangle in menu bar of the view) 在Eclipse Project Exlporer上打开“视图定制”菜单(视图菜单栏中的三角形)
  2. Clicked "Customize View..." 点击“自定义视图...”
  3. Unchecked "Hide WSO2 Registry Resource Conflict Items" and "Hide nested projects" 未选中的“隐藏WSO2注册表资源冲突项”和“隐藏嵌套项目”
  4. Apply by clicking "OK" 点击“确定”进行申请

As a result all nested folders will be shown in a flat layout (as usual from m2e-Integration for multimodule Maven projects) but the IDE is now faster and less cpu consuming and doesn't freeze on save anymore. 结果,所有嵌套的文件夹都将以平面布局显示(与m2e-Integration的多模块Maven项目一样),但是IDE现在更快,CPU消耗更少,并且不再冻结保存。

My Environement looks like: 我的环境看起来像:

  • OS: Windows 7 64bit 操作系统:Windows 7 64bit
  • Eclipse Indigo Service Release 2 (Build: 20120216-1857) Eclipse Indigo Service Release 2(内部版本:20120216-1857)
  • Eclipse WTP 3.40 Eclipse WTP 3.40
  • Java JDK 1.6.0_31 (32-bit) Java JDK 1.6.0_31(32位)
  • WSO2 Developer Studio 2.1.0 WSO2开发人员工作室2.1.0
  • M2E-Integration 1.2.0.20120903-1050 M2E集成1.2.0.20120903-1050
  • M2E-WTP 0.17.0.20121108-1856 M2E-WTP 0.17.0.20121108-1856

Hope it helps 希望能帮助到你

Edit: Sorry I forgot to mention that I had to go through the steps from Harshana first after a fresh installation of WSO2 Developer Studio 2.1.0. 编辑:抱歉,我忘了提一下,在全新安装WSO2 Developer Studio 2.1.0之后,我必须先经过Harshana的步骤。 My JVM is parameterized with -Xms512m -Xmx1384m. 我的JVM使用-Xms512m -Xmx1384m参数化。

Can you try to clean your System Temp folder before starting the Eclipse instance and see whether there is an improvement? 您是否可以在启动Eclipse实例之前尝试清理System Temp文件夹,看看是否有所改进?

And please use a fresh Eclipse workspace after installing Developer Studio. 并且,在安装Developer Studio之后,请使用新的Eclipse工作区。

We have seen this behavior couple of times in the past and above 2 procedures and increased memory helped to resolve the issue. 在过去的2个步骤和以上两个过程中,我们已经多次看到此行为,并且增加的内存有助于解决该问题。

Hope this helps! 希望这可以帮助!

Thanks and Regards, 谢谢并恭祝安康,

Harshana Harshana

Developer studio 3.5 beta 2 is released. 开发人员工作室3.5 beta 2已发布。 It improved with lot of bug fixes. 改进了许多错误。 http://devamanthrils.wordpress.com/2014/01/14/developer-studio-3-5-0-beta-2-released/ http://devamanthrils.wordpress.com/2014/01/14/developer-studio-3-5-0-beta-2-released/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM