Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with a CommonNavigator in a Product (RCP)...
Problem with a CommonNavigator in a Product (RCP)... [message #448857] Fri, 05 May 2006 10:42 Go to next message
Eclipse UserFriend
Hi! Thanks for spending your time for helping me.
I have the followind problem. I made a View which is extension of
org.eclipse.ui.navigation.viewer. My viewer works fine when it's ran as
Eclipse Application, however when I try to run it as Product I see the
following stack trace :

org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
at
org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:66)
at
org.eclipse.ui.internal.navigator.CommonNavigatorManager.ini t(CommonNavigatorManager.java:120)
at
org.eclipse.ui.internal.navigator.CommonNavigatorManager.<init >(CommonNavigatorManager.java:88)
at
org.eclipse.ui.navigator.CommonNavigator.createCommonManager (CommonNavigator.java:441)
at
org.eclipse.ui.navigator.CommonNavigator.createPartControl(C ommonNavigator.java:170)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:332)
at
org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:197)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActi ve(WorkbenchPage.java:3842)
at
org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2871)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1932)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2857)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1665)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 650)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1529 )
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1473)
at
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:702)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.disy_bg.dais.megatrans.product.Application.run(Applicati on.java:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

I wonder why the argument is null and how can I set it?
Thanks in advance

Nenko
Re: Problem with a CommonNavigator in a Product (RCP)... [message #448924 is a reply to message #448857] Sun, 07 May 2006 21:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: notthat.jdiminic.gmail.com

Nenko Tabakov wrote:
> Hi! Thanks for spending your time for helping me.
> I have the followind problem. I made a View which is extension of
> org.eclipse.ui.navigation.viewer. My viewer works fine when it's ran as
> Eclipse Application, however when I try to run it as Product I see the
> following stack trace :
>
> org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
> at
> org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:66)
>
> at
> org.eclipse.ui.internal.navigator.CommonNavigatorManager.ini t(CommonNavigatorManager.java:120)
>
> at
> org.eclipse.ui.internal.navigator.CommonNavigatorManager.<init >(CommonNavigatorManager.java:88)
>
> at
> org.eclipse.ui.navigator.CommonNavigator.createCommonManager (CommonNavigator.java:441)
>
> at
> org.eclipse.ui.navigator.CommonNavigator.createPartControl(C ommonNavigator.java:170)
>
> at
> org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:332)
>
> at
> org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:197)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
>
> at
> org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActi ve(WorkbenchPage.java:3842)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2871)
> at
> org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1932)
>
> at
> org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2857)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1665)
> at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 650)
> at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1529 )
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1473)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:702)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> com.disy_bg.dais.megatrans.product.Application.run(Applicati on.java:18)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> I wonder why the argument is null and how can I set it?
> Thanks in advance
>
> Nenko
>
Can you send me the entire code for common navigator, i am really
interested, and maybe i even discover the problem.
Re: Problem with a CommonNavigator in a Product (RCP)... [message #449040 is a reply to message #448924] Tue, 09 May 2006 06:29 Go to previous messageGo to next message
Eclipse UserFriend
CommonNavigator is a part of the Eclipse UI. It resides in
org.eclipse.ui.navigator plug-in. The class where the Assert fails is
org.eclipse.ui.internal.navigator.CommonNavigatorManager
Re: Problem with a CommonNavigator in a Product (RCP)... [message #449573 is a reply to message #448857] Mon, 15 May 2006 22:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Nenko,

This defect has been fixed in the latest Eclipse Platform build. I
suggest trying your scenario again on Eclipse 3.2RC4.

The bug is doc'd under https://bugs.eclipse.org/bugs/show_bug.cgi?id=138149.

HTH,

-MDE.

Nenko Tabakov wrote:
> Hi! Thanks for spending your time for helping me.
> I have the followind problem. I made a View which is extension of
> org.eclipse.ui.navigation.viewer. My viewer works fine when it's ran as
> Eclipse Application, however when I try to run it as Product I see the
> following stack trace :
>
> org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
> at
> org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:66)
>
> at
> org.eclipse.ui.internal.navigator.CommonNavigatorManager.ini t(CommonNavigatorManager.java:120)
>
> at
> org.eclipse.ui.internal.navigator.CommonNavigatorManager.<init >(CommonNavigatorManager.java:88)
>
> at
> org.eclipse.ui.navigator.CommonNavigator.createCommonManager (CommonNavigator.java:441)
>
> at
> org.eclipse.ui.navigator.CommonNavigator.createPartControl(C ommonNavigator.java:170)
>
> at
> org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:332)
>
> at
> org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:197)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
>
> at
> org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActi ve(WorkbenchPage.java:3842)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2871)
> at
> org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1932)
>
> at
> org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2857)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1665)
> at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1 650)
> at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1529 )
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1473)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:183)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:702)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> com.disy_bg.dais.megatrans.product.Application.run(Applicati on.java:18)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> I wonder why the argument is null and how can I set it?
> Thanks in advance
>
> Nenko
>
Re: Problem with a CommonNavigator in a Product (RCP)... [message #449587 is a reply to message #449573] Tue, 16 May 2006 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the advise. I saw that the block, where the assertNotNull(...)
fails, now is surrounded by if statement, however now I have another
problem. My Viewer can't find the Label and Content Provider, which reside
in org.eclipse.ui.navigator.resources.
Nenko
Re: Problem with a CommonNavigator in a Product (RCP)... [message #449830 is a reply to message #449587] Sat, 20 May 2006 17:49 Go to previous message
Eclipse UserFriend
Hi Nenko,

If you're trying to use the Resource extension in an RCP app, you will
need org.eclipse.ui.navigator.resources as part of your RCP app, and its
dependencies. Otherwise, if you're just trying to use the
Common Navigator framework, you do not need this plugin.

-MDE.

Nenko Tabakov wrote:
> Thanks for the advise. I saw that the block, where the
> assertNotNull(...) fails, now is surrounded by if statement, however now
> I have another problem. My Viewer can't find the Label and Content
> Provider, which reside in org.eclipse.ui.navigator.resources.
> Nenko
>
>
Previous Topic:RCP product export for Mac x86/ppc
Next Topic:Edit TreeObject element name in a treeView
Goto Forum:
  


Current Time: Sat Aug 30 23:53:08 EDT 2025

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

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

Back to the top