`

eclipse-rcp-helios-SR2 进行插件开发的时候新建扩展点保存报错

阅读更多

eclipse-rcp-helios-SR2 进行插件开发的时候新建扩展点保存报错

 

提示Save All Failed

 

An exception stack trace is not available.

 

 

详细信息是

org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
at org.eclipse.text.edits.TextEdit.internalSetParent(TextEdit.java:750)
at org.eclipse.text.edits.TextEdit.internalAdd(TextEdit.java:783)
at org.eclipse.text.edits.TextEdit.addChild(TextEdit.java:335)
at org.eclipse.pde.internal.ui.editor.context.InputContext.insert(InputContext.java:251)
at org.eclipse.pde.internal.ui.editor.context.InputContext.flushModel(InputContext.java:222)
at org.eclipse.pde.internal.ui.editor.context.XMLInputContext.flushModel(XMLInputContext.java:464)
at org.eclipse.pde.internal.ui.editor.context.InputContext.doSave(InputContext.java:187)
at org.eclipse.pde.internal.ui.editor.context.InputContextManager.save(InputContextManager.java:78)
at org.eclipse.pde.internal.ui.editor.PDEFormEditor.doSave(PDEFormEditor.java:350)
at org.eclipse.ui.internal.DefaultSaveable.doSave(DefaultSaveable.java:54)
at org.eclipse.ui.Saveable.doSave(Saveable.java:214)
at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:349)
at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.java:1239)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:285)
at org.eclipse.ui.internal.EditorManager.saveAll(EditorManager.java:1249)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1181)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.saveAllEditors(Workbench.java:1130)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1048)
at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:1032)
at org.eclipse.ui.internal.Workbench$25.run(Workbench.java:1276)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1274)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1246)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:731)
at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:710)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:832)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:830)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:741)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:687)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:98)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1665)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4164)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

 

 

解决方法:

可能的问题是eclipse的运行最大内存设置的太小了,更改eclipse.ini

 

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.rcp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx768m

 这样就没有问题了。有的时候

 

默认的情况下

一下两个位置都是256m会导致eclipse启动不起来

--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m

 可以减少这个值到128m就可以。

0
0
分享到:
评论

相关推荐

    eclipse-rcp-2022-06-R-linux-gtk-x86_64.tar.gz

    Eclipse IDE for RCP and RAP Developers(eclipse-rcp-2022-06-R-linux-gtk-x86_64.tar.gz) 适用于Linux x86_64: A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client ...

    eclipse-rcp-juno-SR2-win32-x86_64.zip

    综上所述,"eclipse-rcp-juno-SR2-win32-x86_64.zip"是一个用于开发Windows 64位系统桌面应用程序的Eclipse RCP环境,包含丰富的开发工具和强大的插件支持,为开发者提供了一个高效、可扩展的平台。

    eclipse-rcp-2022-06-R-win32-x86_64.zip

    Eclipse IDE for RCP and RAP Developers(eclipse-rcp-2022-06-R-win32-x86_64.zip) 适用于Windows x86_64: A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client ...

    eclipse-rcp-indigo-SR2-win32-x86_64

    在"eclipse-rcp-indigo-SR2-win32-x86_64"压缩包中,"eclipse"文件夹包含了运行Eclipse RCP应用所需的全部资源,包括JRE(Java Runtime Environment)、Eclipse插件、工作台配置、启动脚本等。用户可以通过运行...

    eclipse-java-luna-SR2-win32-x86_64工具

    Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse 附带了一个标准的插件集,包括Java开发工具(Java Development...

    Eclipse-RCP概述

    - **全球市场**:据估计,全球约有超过三百家公司在进行 Eclipse 相关的开发工作,约有超过十万人从事 Eclipse 开发,基于 Eclipse 开发的项目数量超过两万个。 - **国内市场**:在中国,大约有几十家公司在进行 ...

    eclipse-RCP-3.1.1-win32.zip

    它基于Eclipse IDE,提供了丰富的插件系统和可扩展性,使得开发人员可以利用已有的Eclipse插件或创建自己的插件来构建应用程序。RCP应用程序通常由多个插件组成,每个插件负责应用程序的不同方面,如用户界面、业务...

    eclipse-rcp-kepler-SR2-win32-x86_64.zip

    这个“eclipse-rcp-kepler-SR2-win32-x86_64.zip”文件是Eclipse RCP的一个特定版本,适用于Windows操作系统,且是64位架构。Kepler是Eclipse IDE的第四个主要版本,发布于2013年,而SR2代表Service Release 2,是该...

    eclipse-rcp-2022-06-R-macosx-cocoa-x86_64.dmg

    Eclipse IDE for RCP and RAP Developers(eclipse-rcp-2022-06-R-macosx-cocoa-x86_64.dmg) 适用于macOS x86_64: A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client ...

    eclipse-rcp-luna-SR2-win32-x86_64.zip

    开源工具 把下载的jar文件放到eclipse的plugins目录下面,重启eclipse, 执行下面的操作【Window】-》【Open Perspective】-》【Other】选择APT透视图。

    eclipse-rcp-2022-06-R-linux-gtk-aarch64.tar.gz

    Eclipse IDE for RCP and RAP Developers(eclipse-rcp-2022-06-R-linux-gtk-aarch64.tar.gz) 适用于Linux aarch64: A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client ...

    eclipse-rcp-2023-12-R-linux-gtk-x86-64.tar.gz

    eclipse-rcp-2023-12-R-linux-gtk-x86_64.tar.gz 适用于Linux x86_64位系统

    eclipse-rcp-photon-RC3-win32-x86_641(含SVN及兼容低版本插件)

    总之,"eclipse-rcp-photon-RC3-win32-x86_64"是一个功能强大的开发环境,包含SVN支持和对旧插件的兼容性,适用于Windows 64位系统的Java开发者,尤其适合那些需要进行版本控制和团队协作的项目。

    Eclipse Rcp

    最后,Eclipse RCP的发展带来了Java桌面应用程序开发的新希望,它允许开发者利用Eclipse的强大功能和成熟的插件生态,来构建功能丰富、外观一致的客户端应用,同时避免了大量重复的界面开发工作。Eclipse RCP的应用...

    Eclipse+RCP.zip

    本资料包包含两份PDF文档,分别为"Eclipse4-RCP-Tutorial.pdf"和"Eclipse RCP入门.pdf",它们将帮助初学者深入理解并掌握Eclipse RCP的开发。 1. **Eclipse RCP基础**: - Eclipse RCP是Eclipse平台的一部分,它...

    eclipse-rcp-2022-06-R-macosx-cocoa-aarch64.dmg

    Eclipse IDE for RCP and RAP Developers(eclipse-rcp-2022-06-R-macosx-cocoa-aarch64.dmg) 适用于macOS aarch64: A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client ...

    Eclipse-RCP培训教程

    Eclipse-RCP培训,Eclipse-RCP拥有强大的插件热插拔和管理能力,拥有B/S的业务简单扩充性,部署简易性,客户端瘦小性等特点,又拥有C/S的用户界面表现丰富,客户端单机运行,拥有一定运算能力等特点

    eclipse-rcp-2023-09-R-linux-gtk-x86-64.tar.gz

    总的来说,“eclipse-rcp-2023-09-R-linux-gtk-x86_64.tar.gz”为Linux开发人员提供了一个强大、可扩展且适应性强的桌面应用程序开发平台。无论你是新手还是经验丰富的开发者,Eclipse RCP都能够帮助你高效地创建高...

    eclipse-rcp-3.6.1-6.13.el6.i686.rpm

    eclipse-rcp-3.6.1-6.13.el6.i686.rpm

    eclipse-rcp-galileo-SR2-win32.zip

    Eclipse For RCP and RAP Developers开发包主要针对开发Eclipse插件,Eclipse RCP(富客户端应用程序),RAP(富客户端ajax应用程序)的程序员,还包含CVS、Mylyn和xml编辑器,EGit分布式版本控制等插件。...

Global site tag (gtag.js) - Google Analytics