Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » org.eclipse.core.runtime.AssertionFailedException(org.eclipse.core.runtime.AssertionFailedException)
org.eclipse.core.runtime.AssertionFailedException [message #911309] Tue, 11 September 2012 10:30 Go to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
!SESSION 2012-09-11 15:40:45.009 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product ESC_Configurator_Tool.product
Command-line arguments: -product ESC_Configurator_Tool.product -data C:\escconfiguratortool/../runtime-ESCConfiguratorTool.product -dev file:C:/escconfiguratortool/.metadata/.plugins/org.eclipse.pde.core/ESC Configurator Tool.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-09-11 15:40:48.937
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-09-11 15:40:48.938
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-09-11 15:40:48.939
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon

!ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2012-09-11 15:40:49.946
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72)
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1249)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at esc_configurator_tool.Application.start(Application.java:20)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.ui.application.ActionBarAdvisor.register(ActionBarAdvisor.java:191)
at esc_configurator_tool.ApplicationActionBarAdvisor.makeActions(ApplicationActionBarAdvisor.java:77)
at org.eclipse.ui.application.ActionBarAdvisor.fillActionBars(ActionBarAdvisor.java:148)
at org.eclipse.ui.internal.WorkbenchWindow.fillActionBars(WorkbenchWindow.java:2050)
at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:523)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 53 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-09-11 15:40:49.975
!MESSAGE Exception occurred while rendering: org.eclipse.e4.ui.model.application.ui.basic.impl.TrimmedWindowImpl@22a7c7 (elementId: IDEWindow, tags: [topLevel], contributorURI: platform:/plugin/org.eclipse.ui.workbench) (widget: Shell {MSI's ESC Configuration Generator in RCP}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer@1ead524, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null, context: TrimmedWindowImpl (IDEWindow) Context, variables: [], x: -2147483648, y: -2147483648, width: 1024, height: 768)
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72)
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1249)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at esc_configurator_tool.Application.start(Application.java:20)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.ui.application.ActionBarAdvisor.register(ActionBarAdvisor.java:191)
at esc_configurator_tool.ApplicationActionBarAdvisor.makeActions(ApplicationActionBarAdvisor.java:77)
at org.eclipse.ui.application.ActionBarAdvisor.fillActionBars(ActionBarAdvisor.java:148)
at org.eclipse.ui.internal.WorkbenchWindow.fillActionBars(WorkbenchWindow.java:2050)
at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:523)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 53 more
Re: org.eclipse.core.runtime.AssertionFailedException [message #911340 is a reply to message #911309] Tue, 11 September 2012 12:21 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

is the o.e.e4.ui.workbench.addons.swt included in your running config and dependencies?
Re: org.eclipse.core.runtime.AssertionFailedException [message #911645 is a reply to message #911340] Wed, 12 September 2012 03:21 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please o.e.e4.ui.workbench.addons.swt plug-in addded in product-> Dependencies
and Run->Run Configurations- Plug-ins o.e.e4.ui.workbench.addons.swt already selected default

Tool.Product ->open Launch the application/product same error.
Please kindly help me.
Re: org.eclipse.core.runtime.AssertionFailedException [message #911797 is a reply to message #911645] Wed, 12 September 2012 10:40 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

null argument:Action must not have null id

Means that there is something that needs an ID but it is not provided. Most likely a command.
Re: org.eclipse.core.runtime.AssertionFailedException [message #912168 is a reply to message #911797] Thu, 13 September 2012 04:23 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please Tool.product ->Overview- ID:ESC_Configurator_Tool
ESC_Configurator_Tool.jar plug-in already included in the product dependencies.

org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id -

same error like earlier so please kindly help me.
Re: org.eclipse.core.runtime.AssertionFailedException [message #912172 is a reply to message #911797] Thu, 13 September 2012 04:31 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Tool.product ->Overview- ID:ESC_Configurator_Tool
ESC_Configurator_Tool.jar plug-in already included in the product dependencies.

org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id -

same error like earlier above posted so please kindly help me.
Re: org.eclipse.core.runtime.AssertionFailedException [message #912338 is a reply to message #912172] Thu, 13 September 2012 11:28 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please kindly help, It's not yet fixed and I debug the app also.
org.eclipse.e4.ui.workbench.swt plug-in also included in the product.

!ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2012-09-13 14:29:12.093
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
Re: org.eclipse.core.runtime.AssertionFailedException [message #912567 is a reply to message #912338] Thu, 13 September 2012 19:26 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Attach your Application.e4xmi here
Re: org.eclipse.core.runtime.AssertionFailedException [message #912715 is a reply to message #912567] Fri, 14 September 2012 03:36 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please I am not using Application.e4xmi.
My application eclipse RCP,Juno ide.
Please meta-inf->manifest.mf Plug-in.xml file attached.
tool.product I added all the required dependencies,tool.product-> launch app

org.eclipse.e4.ui.workbench.swt".
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id

  • Attachment: plug-in.txt
    (Size: 1.59KB, Downloaded 175 times)
Re: org.eclipse.core.runtime.AssertionFailedException [message #912846 is a reply to message #912715] Fri, 14 September 2012 09:28 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Dear Sopot Cela,

Please kindly help me how to solve it the error and If need I will send required plug-ins in the product as well as applications plug-ins.
Re: org.eclipse.core.runtime.AssertionFailedException [message #912856 is a reply to message #912846] Fri, 14 September 2012 09:40 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Are you porting an existing 3.x application from a prior release to Juno? Did you change something and got this error?
Re: org.eclipse.core.runtime.AssertionFailedException [message #915311 is a reply to message #912856] Mon, 17 September 2012 03:26 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please I architect/design the esc configurator tool application and Earlier I run the re structuring of rcp very fine after that got the error org.eclipse.ui.viwes.properties. I added few plug-ins in the product dependency.
defined, added ID:-product in the overview of the tool.product.

Eclipse for RCP and RAP Developers
Version: Juno Release
Build id: 20120614-1722

Please kindly help me.



Re: org.eclipse.core.runtime.AssertionFailedException [message #915839 is a reply to message #915311] Tue, 18 September 2012 04:03 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please I developed application Juno,earlier run the product fine.something plug-ins added and got this error,still error not yet fixed.
Existing application developed in Eclipse SDK,Version: 3.7.1,Build id: M20110909-1335 but in that application not used eclipse rcp.

Please kindly how to run my product.
Re: org.eclipse.core.runtime.AssertionFailedException [message #915875 is a reply to message #912338] Tue, 18 September 2012 06:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5422
Registered: July 2009
Senior Member
Your action does not have an ID which has to have, maybe Eclipse 4 is
more strict here than 3.x.

I've already replied to you on the RCP-Forum.

Tom

Am 13.09.12 13:28, schrieb RP Mar:
> Please kindly help, It's not yet fixed and I debug the app also.
> org.eclipse.e4.ui.workbench.swt plug-in also included in the product.
>
> !ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2012-09-13 14:29:12.093
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.e4.ui.workbench.swt".
> !STACK 0
> org.eclipse.e4.core.di.InjectionException:
> org.eclipse.core.runtime.AssertionFailedException: null argument:Action
> must not have null id
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
>
Re: org.eclipse.core.runtime.AssertionFailedException [message #921346 is a reply to message #915875] Mon, 24 September 2012 03:22 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
I debug the application and where exactly the problem.How to find out the problem please.

org.eclipse.e4.ui.workbench.sw

org.eclipse.e4.core.di.InjectionException: org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not have null id
Re: org.eclipse.core.runtime.AssertionFailedException [message #921473 is a reply to message #921346] Mon, 24 September 2012 06:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5422
Registered: July 2009
Senior Member
the problem code is at

at
esc_configurator_tool.ApplicationActionBarAdvisor.makeActions(ApplicationActionBarAdvisor.java:77)



So what is your code there?

Tom

Am 24.09.12 05:22, schrieb RP Mar:
> I debug the application and where exactly the problem.How to find out
> the problem please.
>
> org.eclipse.e4.ui.workbench.sw
>
> org.eclipse.e4.core.di.InjectionException:
> org.eclipse.core.runtime.AssertionFailedException: null argument:Action
> must not have null id
Re: org.eclipse.core.runtime.AssertionFailedException [message #921588 is a reply to message #921473] Mon, 24 September 2012 08:49 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
protected void makeActions(IWorkbenchWindow window) {
exitAction = ActionFactory.QUIT.create(window);
register(exitAction);

// aboutAction = ActionFactory.ABOUT.create(window);
aboutAction = new AboutToolAction(window);
aboutAction.setText("About Configuration Tool");
aboutAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.HELP));
register(aboutAction);

userAction = new UserAction(window);
userAction.setText("User Manual");
userAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.USERMANUAL));
register(userAction);

newWindowAction = new newWindowAction("New File", window);
newWindowAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.CREATE));
register(newWindowAction);

newFormAction = new CreateFormAction("New Form", window);
newFormAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.ADDFORM));
register(newFormAction);

generateFormAction = new GenerateFormAction(window);
generateFormAction.setText("Generate");
generateFormAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.EXECUTING));
// register(generateFormAction);

saveFormAction = new SaveFormAction(window);
saveFormAction.setText("Save");
saveFormAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.SAVE));

runCodeWarrier = new LaunchCodeWarrier(window);
runCodeWarrier.setText("Compile");
runCodeWarrier.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.CODEWARRIOR));

runBootloader = new BootCodeAction(window);
runBootloader.setText("Open BootLoader Code");
runBootloader.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.BOOTFILE));

sbGenerate = new GenerateSBFile();
sbGenerate.setText("Create sb File");
sbGenerate.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.SBCREATION));

addParameter = new AddParamAction("Create New Parameter",window);
addParameter.setText("Add Parameter");
addParameter.setToolTipText("Add New Parameter");
addParameter.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.ADDPARAM));
register(addParameter);
// super.makeActions(window);

newLogo = new MSILogoAction("Logo", window);
newLogo.setText("Logo");
newLogo.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.MSILOGO));
register(newLogo);


}

Re: org.eclipse.core.runtime.AssertionFailedException [message #921662 is a reply to message #921588] Mon, 24 September 2012 10:10 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
exitAction = ActionFactory.QUIT.create(window);
register(exitAction);

// aboutAction = ActionFactory.ABOUT.create(window);
aboutAction = new AboutToolAction(window);
aboutAction.setText("About Configuration Tool");
aboutAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.HELP));
register(aboutAction);

userAction = new UserAction(window);
userAction.setText("User Manual");
userAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.USERMANUAL));
register(userAction);

newWindowAction = new newWindowAction("New File", window);
newWindowAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.CREATE));
register(newWindowAction);
-----------
after this control going to Assert.class ->

public static void isNotNull(Object object, String message) {
if (object == null)
throw new AssertionFailedException("null argument:" + message); //$NON-NLS-1$
}


-------------
this below code is not executed....

newFormAction = new CreateFormAction("New Form", window);
newFormAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.ADDFORM));
register(newFormAction);

generateFormAction = new GenerateFormAction(window);
generateFormAction.setText("Generate");
generateFormAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.EXECUTING));
// register(generateFormAction);

saveFormAction = new SaveFormAction(window);
saveFormAction.setText("Save");
saveFormAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.SAVE));

runCodeWarrier = new LaunchCodeWarrier(window);
runCodeWarrier.setText("Compile");
runCodeWarrier.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.CODEWARRIOR));

runBootloader = new BootCodeAction(window);
runBootloader.setText("Open BootLoader Code");
runBootloader.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.BOOTFILE));

sbGenerate = new GenerateSBFile();
sbGenerate.setText("Create sb File");
sbGenerate.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.SBCREATION));

addParameter = new AddParamAction("Create New Parameter",window);
addParameter.setText("Add Parameter");
addParameter.setToolTipText("Add New Parameter");
addParameter.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.ADDPARAM));
register(addParameter);
// super.makeActions(window);

newLogo = new MSILogoAction("Logo", window);
newLogo.setText("Logo");
newLogo.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage, IImageKeys.MSILOGO));
register(newLogo);
Re: org.eclipse.core.runtime.AssertionFailedException [message #921761 is a reply to message #921662] Mon, 24 September 2012 11:55 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5422
Registered: July 2009
Senior Member
Am 24.09.12 12:10, schrieb RP Mar:
> exitAction = ActionFactory.QUIT.create(window);
> register(exitAction);
>
> // aboutAction = ActionFactory.ABOUT.create(window);
> aboutAction = new AboutToolAction(window);
> aboutAction.setText("About Configuration Tool");
>
> aboutAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage,
> IImageKeys.HELP));
> register(aboutAction);
>
> userAction = new UserAction(window);
> userAction.setText("User Manual");
>
> userAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage,
> IImageKeys.USERMANUAL));
> register(userAction);
>
> newWindowAction = new newWindowAction("New File", window);
>
> newWindowAction.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(IXMLKeys.ToolPackage,
> IImageKeys.CREATE));
> register(newWindowAction);
> -----------


So how does the newWindowAction-class (what a strange classname!) look
like? It looks like you are NOT setting an ID for it!

So when you call register it checks the id and throws the exception.
Like I said maybe 3.x was not that picky here but 4.x requires you to
set the ID (because internally it use commands).

Tom
Re: org.eclipse.core.runtime.AssertionFailedException [message #922534 is a reply to message #921761] Tue, 25 September 2012 05:09 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
!ENTRY org.eclipse.jface 4 0 2012-09-25 10:15:52.580
!MESSAGE The command ("esc_configurator_tool.createForm.createForm") is undefined
!STACK 0
java.lang.Exception
at org.eclipse.jface.action.ExternalActionManager$CommandCallback.isActive(ExternalActionManager.java:370)
at org.eclipse.jface.action.ActionContributionItem.isCommandActive(ActionContributionItem.java:647)
at org.eclipse.jface.action.ActionContributionItem.isVisible(ActionContributionItem.java:703)
at org.eclipse.ui.internal.WorkbenchWindow.fill(WorkbenchWindow.java:894)
at org.eclipse.ui.internal.WorkbenchWindow.fill(WorkbenchWindow.java:872)
at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72)
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1249)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at esc_configurator_tool.Application.start(Application.java:20)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

!ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2012-09-25 10:25:17.996
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
!STACK 0
java.lang.NullPointerException
at esc_configurator_tool.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:35)
at org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1214)
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1261)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at esc_configurator_tool.Application.start(Application.java:20)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-09-25 10:25:18.013
!MESSAGE Exception occurred while rendering: org.eclipse.e4.ui.model.application.ui.basic.impl.TrimmedWindowImpl@10eb04b (elementId: IDEWindow, tags: [topLevel], contributorURI: platform:/plugin/org.eclipse.ui.workbench) (widget: Shell {MSI's ESC Configuration Generator in RCP}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer@b33a25, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null, context: TrimmedWindowImpl (IDEWindow) Context, variables: [], x: 75, y: 75, width: 1024, height: 768)
!STACK 0
java.lang.NullPointerException
at esc_configurator_tool.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:35)
at org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1214)
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1261)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
at org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at esc_configurator_tool.Application.start(Application.java:20)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Re: org.eclipse.core.runtime.AssertionFailedException [message #922568 is a reply to message #922534] Tue, 25 September 2012 05:55 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5422
Registered: July 2009
Senior Member
You are only dumping stacks but not asking a question? I think the
exceptions are selfexplainatory.

a) looks like you don't have a command with the ID
'esc_configurator_tool.createForm.createForm'
b) You have a null-access in your postWindowOpen

Tom

Am 25.09.12 07:09, schrieb RP Mar:
> !ENTRY org.eclipse.jface 4 0 2012-09-25 10:15:52.580
> !MESSAGE The command ("esc_configurator_tool.createForm.createForm") is
> undefined
> !STACK 0
> java.lang.Exception
> at
> org.eclipse.jface.action.ExternalActionManager$CommandCallback.isActive(ExternalActionManager.java:370)
>
> at
> org.eclipse.jface.action.ActionContributionItem.isCommandActive(ActionContributionItem.java:647)
>
> at
> org.eclipse.jface.action.ActionContributionItem.isVisible(ActionContributionItem.java:703)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.fill(WorkbenchWindow.java:894)
> at
> org.eclipse.ui.internal.WorkbenchWindow.fill(WorkbenchWindow.java:872)
> at
> org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:555)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81)
> at
> org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72)
>
> at
> org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1249)
>
> at
> org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
> at
> org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
> at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
> at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
> at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
> at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
> at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
> at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at esc_configurator_tool.Application.start(Application.java:20)
> 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:353)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
> !ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2012-09-25 10:25:17.996
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.e4.ui.workbench.swt".
> !STACK 0
> java.lang.NullPointerException
> at
> esc_configurator_tool.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:35)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1214)
>
> at
> org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1261)
>
> at
> org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
> at
> org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
> at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
> at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
> at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
> at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
> at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
> at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at esc_configurator_tool.Application.start(Application.java:20)
> 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:353)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
> !ENTRY org.eclipse.e4.ui.workbench 4 0 2012-09-25 10:25:18.013
> !MESSAGE Exception occurred while rendering:
> mailto:org.eclipse.e4.ui.model.application.ui.basic.impl.TrimmedWindowImpl@10eb04b
> (elementId: IDEWindow, tags: [topLevel], contributorURI:
> platform:/plugin/org.eclipse.ui.workbench) (widget: Shell {MSI's ESC
> Configuration Generator in RCP}, renderer:
> mailto:org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer@b33a25,
> toBeRendered: true, onTop: false, visible: true, containerData: null,
> accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null,
> context: TrimmedWindowImpl (IDEWindow) Context, variables: [], x: 75, y:
> 75, width: 1024, height: 768)
> !STACK 0
> java.lang.NullPointerException
> at
> esc_configurator_tool.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:35)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1214)
>
> at
> org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1261)
>
> at
> org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1221)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.updateActiveShell(WorkbenchSourceProvider.java:924)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider.getCurrentState(WorkbenchSourceProvider.java:133)
>
> at
> org.eclipse.ui.internal.services.WorkbenchSourceProvider$6.handleEvent(WorkbenchSourceProvider.java:684)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
> at
> org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1664)
> at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2145)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4525)
> at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
> at
> org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
> at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
> at org.eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
> at org.eclipse.swt.widgets.Decorations.bringToTop(Decorations.java:231)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1217)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.postProcess(WBWRenderer.java:710)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at esc_configurator_tool.Application.start(Application.java:20)
> 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:353)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
Re: org.eclipse.core.runtime.AssertionFailedException [message #922748 is a reply to message #922568] Tue, 25 September 2012 09:41 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Dear Tom,

Application GUI working very fine and need to view explorer view,property view ,view.

Thank you very much.
Re: org.eclipse.core.runtime.AssertionFailedException [message #937849 is a reply to message #922748] Tue, 09 October 2012 10:18 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Dear Tom,
Please kindly help me reg my Views...

I have a view in that it contains a treeviewer, Failed to create the part's controls.

I'm working with eclipse, it's an RCP application,Juno

java.lang.NullPointerException
at esc_configurator_tool.FileNameMockModel.FileDatNamesList(FileNameMockModel.java:56)
at esc_configurator_tool.FileNameMockModel.getCategories(FileNameMockModel.java:21)
at esc_configurator_tool.FileNameContentProvider.getElements(FileNameContentProvider.java:24)
-----------
ExplorerView.java

public void createPartControl(Composite parent) {
// TODO Auto-generated method stub
viewer = new TreeViewer(parent);
makeAction();
}

private void makeAction() {
viewer.setContentProvider(new FileNameContentProvider());
viewer.setLabelProvider(new FileNameLabelProvider());
FileNameMockModel fileNames = ObjectFactory.commonObject.getFileNameObject();
viewer.setInput(fileNames);
getSite().setSelectionProvider(viewer);
IWorkbenchPage page = Workbench.getInstance().getActiveWorkbenchWindow().getActivePage();
try {
page.showView(View.ID);
} catch (PartInitException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

final MenuManager mgr = new MenuManager();

.....................................................
FileNameMockModel.java

public List<String> FileDatNamesList(){
List<String> datFilname = new ArrayList<String>();

File folder = new File(Constants.INSTANCE.getDirectory());
File[] listOfFiles = folder.listFiles();

for (int i = 0; i < listOfFiles.length; i++) {
if (listOfFiles[i].isFile()) {
datFilname.add(listOfFiles[i].getName());
}
}
return datFilname;
}
Re: org.eclipse.core.runtime.AssertionFailedException [message #937878 is a reply to message #937849] Tue, 09 October 2012 10:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5422
Registered: July 2009
Senior Member
You have an NPE in your own code how should we help more than pointing
this out to you?

Tom
Am 09.10.12 12:18, schrieb RP Mar:
> Dear Tom,
> Please kindly help me reg my Views...
>
> I have a view in that it contains a treeviewer, Failed to create the
> part's controls.
>
> I'm working with eclipse, it's an RCP application,Juno
> java.lang.NullPointerException
> at
> esc_configurator_tool.FileNameMockModel.FileDatNamesList(FileNameMockModel.java:56)
>
> at
> esc_configurator_tool.FileNameMockModel.getCategories(FileNameMockModel.java:21)
>
> at
> esc_configurator_tool.FileNameContentProvider.getElements(FileNameContentProvider.java:24)
>
> -----------
> ExplorerView.java
>
> public void createPartControl(Composite parent) {
> // TODO Auto-generated method stub
> viewer = new TreeViewer(parent);
> makeAction(); }
>
> private void makeAction() {
> viewer.setContentProvider(new FileNameContentProvider());
> viewer.setLabelProvider(new FileNameLabelProvider());
> FileNameMockModel fileNames =
> ObjectFactory.commonObject.getFileNameObject();
> viewer.setInput(fileNames);
> getSite().setSelectionProvider(viewer);
> IWorkbenchPage page =
> Workbench.getInstance().getActiveWorkbenchWindow().getActivePage();
> try {
> page.showView(View.ID);
> } catch (PartInitException e1) {
> // TODO Auto-generated catch block
> e1.printStackTrace();
> }
> final MenuManager mgr = new MenuManager();
>
> ....................................................
> FileNameMockModel.java
>
> public List<String> FileDatNamesList(){
> List<String> datFilname = new ArrayList<String>();
>
> File folder = new File(Constants.INSTANCE.getDirectory());
> File[] listOfFiles = folder.listFiles();
>
> for (int i = 0; i < listOfFiles.length; i++) {
> if (listOfFiles[i].isFile()) {
> datFilname.add(listOfFiles[i].getName()); }
> }
> return datFilname;
> }
Re: org.eclipse.core.runtime.AssertionFailedException [message #937942 is a reply to message #937878] Tue, 09 October 2012 11:57 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Again do not duplicate posts, http://www.eclipse.org/forums/index.php/t/396350/
Re: org.eclipse.core.runtime.AssertionFailedException [message #938664 is a reply to message #937942] Wed, 10 October 2012 03:46 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Thank you.Please kindly I need to solve errors and run the application with all views will be visible.
Re: org.eclipse.core.runtime.AssertionFailedException [message #938828 is a reply to message #938664] Wed, 10 October 2012 07:31 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please kindly I debug the application and kindly help me how to solve this plz...

In the below makeAction method control going to Compatibility.java class ->
protected boolean CreatePartControl(final IworkbenchPartlegacypart,Composite parent){

here getting NPE.

}

private void makeAction() {
viewer.setContentProvider(new FileNameContentProvider());
viewer.setLabelProvider(new FileNameLabelProvider());
FileNameMockModel fileNames = ObjectFactory.commonObject.getFileNameObject();
viewer.setInput(fileNames);

getSite().setSelectionProvider(viewer);
IWorkbenchPage page = Workbench.getInstance().getActiveWorkbenchWindow().getActivePage();
try {
page.showView(View.ID);
} catch (PartInitException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

Re: org.eclipse.core.runtime.AssertionFailedException [message #939038 is a reply to message #938828] Wed, 10 October 2012 11:21 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Dear Tom,

Please I tried a lot to figure out the prob please kindly help me.
Re: org.eclipse.core.runtime.AssertionFailedException [message #939843 is a reply to message #939038] Thu, 11 October 2012 04:54 Go to previous messageGo to next message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Dear Tom,

Please my 3 views are not added while running my application, I added in the Perspective implements IPerspectiveFactory also. Failed to create part's control NPE also not yet solved please kindly hlep me.earlier some application developed on 3.x and I am implementing eclipse rcp,Eclipse for RCP and RAP Developers,Version: Juno Release
Re: org.eclipse.core.runtime.AssertionFailedException [message #940162 is a reply to message #911309] Thu, 11 October 2012 11:20 Go to previous message
RP Mar is currently offline RP Mar
Messages: 68
Registered: August 2012
Member
Please I created text messages in my View it is visible but treeviewer not visible.Failed to create the Part's control. Please kindly help me.
Previous Topic:(Announce) Jeeeyul's Eclipse Theme - Chrome supports Juno SR1 fully now.
Next Topic:Part actionbar contributor
Goto Forum:
  


Current Time: Fri Oct 24 18:20:11 GMT 2014

Powered by FUDForum. Page generated in 0.05130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software