Forum Discussion

srb's avatar
srb
New Contributor
15 years ago

SoapUI plugin causes Eclipse Galileo SR2 to throw NullPointerException

Hi, I've just installed version 3.5 of the SoapUI plugin into Eclipse Version: 3.5.1, Build id: M20090917-0800.

The eclipse configuration is in the attached config.txt file.


The exception thrown is:


java.lang.NullPointerException
at org.eclipse.ui.internal.navigator.NavigatorContentService.rememberContribution(NavigatorContentService.java:725)
at org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.getElements(SafeDelegateTreeContentProvider.java:97)
at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.getElements(NavigatorContentServiceContentProvider.java:156)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:959)
at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1330)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:390)
at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:636)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:602)
at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2578)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1863)
at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:716)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1838)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1794)
at org.eclipse.ui.navigator.CommonViewer.internalRefresh(CommonViewer.java:566)
at org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredViewer.java:1484)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1392)
at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:402)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1353)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1482)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:548)
at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:358)
at org.eclipse.ui.navigator.CommonViewer.refresh(CommonViewer.java:515)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1414)
at org.eclipse.jface.viewers.StructuredViewer.addFilter(StructuredViewer.java:582)
at org.eclipse.ui.internal.navigator.resources.actions.WorkingSetActionProvider.setWorkingSet(WorkingSetActionProvider.java:280)
at org.eclipse.ui.internal.navigator.resources.actions.WorkingSetActionProvider$3.propertyChange(WorkingSetActionProvider.java:226)
at org.eclipse.ui.internal.navigator.extensions.ExtensionStateModel.firePropertyChangeEvent(ExtensionStateModel.java:135)
at org.eclipse.ui.internal.navigator.extensions.ExtensionStateModel.setBooleanProperty(ExtensionStateModel.java:90)
at org.eclipse.ui.internal.navigator.resources.actions.WorkingSetActionProvider.restoreState(WorkingSetActionProvider.java:318)
at org.eclipse.ui.navigator.NavigatorActionService.initialize(NavigatorActionService.java:372)
at org.eclipse.ui.navigator.NavigatorActionService.getActionProviderInstance(NavigatorActionService.java:355)
at org.eclipse.ui.navigator.NavigatorActionService.fillActionBars(NavigatorActionService.java:253)
at org.eclipse.ui.navigator.CommonNavigatorManager$2.run(CommonNavigatorManager.java:101)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.navigator.CommonNavigatorManager$UpdateActionBarsJob.runInUIThread(CommonNavigatorManager.java:91)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)


I read a previous post that suggested using the -clean option in eclipse.ini would solve the issue - it hasn't. Also, there were no previous version of the SoapUI plugin installed. This behaviour occurs with the same Eclipse configuration installedon two different workstations.


Any help in solving this issue would be much appreciated.

4 Replies

  • srb's avatar
    srb
    New Contributor
    Hi Lars,

    Many thanks for that.

    All the best.
  • srb's avatar
    srb
    New Contributor
    Hi Lars,

    Unfortunately, uninstalling the original version, then installing the nightly buld version of plugin did not fix the issue. I have made sure that the eclipse configuration contains the same jar files as those in the nightly build zip file. I get the same exception when Eclipse starts. Can you tell me what further steps I should take?

    Many thanks,
    srb
  • srb's avatar
    srb
    New Contributor
    Hi Lars,

    I finally got it working 

    For other peoples' interest, here's what I had to do:

    1. Remove the soapUI plugin from eclipse. Choose Help, About Eclipse Platform, then click on installation details and choose "soapUI Feature", then click on the Uninstall button and follow the instructions. At the end, allow Eclipse to restart.
    2. Exit eclipse.
    3. Add the "-clean" option to eclipse.ini in your %ECLIPSE_HOME% directory
    4. Use Windows explorer or a tool of your choice to find and delete the osgi bundle containing soapUI. On my workstation, I deleted the %ECLIPSE_HOME%\configuration\bundles\6 directory tree. You'll find a similarly named directory containing .\cp\lib\soapui-3.5.jar
    5. Delete the com.eviware.soapui_feature_3.5.0 directory in the %ECLIPSE_HOME%\features directory
    6. Delete the com.eviware.soapui.eclipse_3_5_0.jar file in the %ECLIPSE_HOME%\plugins directory
    7. Delete the .log file from .metadata directory in your workspace.
    8. re-start eclipse.
    9. Add the nightly build zip file as an archive update site
    10. Choose Help, Install New Software...
    11. Select the archive update site you just added to work with
    12. Check the checkbox next to "soapUI"
    13. Click on Next and follow the instructions. AT the end, allow Eclipse to restart.
    14. Verify the errors are no longer in the Error Log view
    15. Shutdown Eclipse.
    16. Remove the -clean option from eclipse.ini
    17. Restart Eclipse.

    Et Voila!

    All the best,
    srb