Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Errors while integrating CDT wit RCP app(NullPointerExceptions and SWTException )
Errors while integrating CDT wit RCP app [message #552530] Thu, 12 August 2010 14:18 Go to next message
vrush Mising nameFriend
Messages: 51
Registered: July 2009
Location: Pune
Member
Hi,

I'm trying to bundle CDT along with my RCP app. RCP app runs perfectly fine when executed through IDE but fails when executed as product i.e. it throws null pointers and SWT exceptions and so on which I don't see when i run my RCP app through IDE.
As far as the RCP app is concerned, it works fine in both the cases, executed using ide or as product. But when executed as a product, CDT never works. Even if right click in Project Explorer throws SWT and NullPointer exceptions.

I have tried following things,
- handled dependencies
- validated
- have not made any change in CDT code

And here is the stack trace,



org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3527)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3174)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 27)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at com.apm.vhp.mamba.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.NullPointerException
at org.eclipse.cdt.ui.CElementSorter.compare(CElementSorter.jav a:271)
at org.eclipse.ui.navigator.CommonViewerSorter.compare(CommonVi ewerSorter.java:140)
at org.eclipse.jface.viewers.TreePathViewerSorter$1.compare(Tre ePathViewerSorter.java:105)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.sort(Arrays.java:1210)
at org.eclipse.jface.viewers.TreePathViewerSorter.sort(TreePath ViewerSorter.java:103)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:620)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:801)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:778)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:644)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:749)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1492)
at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:833)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1476)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1422)
at org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:403)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1383)
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1469)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1664)
at org.eclipse.ui.internal.navigator.resources.actions.WorkingS etActionProvider.setWorkingSet(WorkingSetActionProvider.java :308)
at org.eclipse.ui.internal.navigator.resources.actions.WorkingS etActionProvider$3.propertyChange(WorkingSetActionProvider.j ava:223)
at org.eclipse.ui.internal.navigator.extensions.ExtensionStateM odel.firePropertyChangeEvent(ExtensionStateModel.java:135)
at org.eclipse.ui.internal.navigator.extensions.ExtensionStateM odel.setBooleanProperty(ExtensionStateModel.java:90)
at org.eclipse.ui.internal.navigator.resources.actions.WorkingS etActionProvider$4.run(WorkingSetActionProvider.java:344)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
... 23 more


Am I missing anything here?
Please provide some pointers. Stuck badly. Any help would be great.

Thanks in advance,
Vrushali.
Re: Errors while integrating CDT wit RCP app [message #552570 is a reply to message #552530] Thu, 12 August 2010 16:23 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
I would look at the CDT source code and figure out why they are having an NPE there.

Maybe post this on the CDT newsgroup.

It could be that they are doing something to depend on the ProjectExplorer which it likely not present in your RCP app.

One open would be just to create the ProjectExplorer in your RCP app. You can look at the code and configuration in org.eclipse.ui.navigator.resources (in fact if you just include the plugin you should just get it).


Previous Topic:Help with the Project Explorer View
Next Topic:[Databinding] Dynamic UI
Goto Forum:
  


Current Time: Wed Dec 01 21:34:56 GMT 2021

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

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

Back to the top