Null Pointer trying to create new Web Service Client

This topic contains 7 replies, has 2 voices, and was last updated by  crooksb 1 week, 6 days ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #603864 Reply

    crooksb
    Participant

    I am trying to create a new web service client and whenever I select it I get a null pointer error How do I fix this. I have a new wsdl I need to create the client for and it won’t do it.

    From the log.

    !ENTRY org.eclipse.jface 4 2 2018-11-28 07:07:22.686
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ws.xfire.wizards.WebSphereServerHelper.getBlueServerList(WebSphereServerHelper.java:87)
    at com.genuitec.eclipse.ws.xfire.wizards.WebSphereServerHelper.fillServerCombo(WebSphereServerHelper.java:65)
    at com.genuitec.eclipse.ws.xfire.wizards.WebSphereServerHelper.doFillIntoGrid(WebSphereServerHelper.java:48)
    at com.genuitec.eclipse.ws.xfire.wizards.NewBlueWSScenarioWizardPage.createTargetServerComposite(NewBlueWSScenarioWizardPage.java:281)
    at com.genuitec.eclipse.ws.xfire.wizards.NewBlueWSScenarioWizardPage.createControl(NewBlueWSScenarioWizardPage.java:192)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:176)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:682)
    at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1122)
    at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1175)
    at org.eclipse.jface.wizard.WizardDialog.lambda$3(WizardDialog.java:1163)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:71)
    at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1163)
    at org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advanceToNextPageOrFinish(NewWizardSelectionPage.java:71)
    at org.eclipse.ui.internal.dialogs.NewWizardNewPage.lambda$0(NewWizardNewPage.java:348)
    at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:830)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
    at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:827)
    at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1512)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1257)
    at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
    at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:247)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:306)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
    at org.eclipse.jface.window.Window.open(Window.java:794)
    at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:269)
    at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:93)
    at jdk.internal.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:161)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:204)
    at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:393)
    at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:151)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
    at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1170)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1059)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:597)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1471)

    #603925 Reply

    support-swapna
    Moderator

    Crooks,

    Sorry that you are seeing this problem.

    1. Are you seeing the exception when you are selecting the New>Other>Web Services>New Web Service Client for your java project?

    2. Can you please clarify if your project’s Java version is 9 or 10? We have a known issue with some of our WebService generation code when the project’s java version is 9 and above. As a workaround, please check if you can generate the client for a Java 8 or below project.

    3. From the stacktrace it looks like there is a problem picking up the configured Websphere servers. Can you please let us know which version of Websphere is configured in the Servers view?

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #603942 Reply

    crooksb
    Participant

    1. Yes that is what I am trying to do.
    2. The project is set up to use Java 6, I did create a new project using java 7 and that did not work either.
    3. I do not have a websphere server set up on my local machine, all our application are installed onto a server that uses websphere 7.0. I have never had to have a server set up before.

    Barb

    #603945 Reply

    support-swapna
    Moderator

    Barb,

    Thank you for the details. I could not replicate the problem at my end with the latest MyEclipse 2018.9.0.

    1. Can you please let us know your MyEclipse version details from Help > About MyEclipse section? If possible, please send us the zipped project to help us replicate the problem at our end.

    2. Also share with us the screenshot of the IDE at the point where the exception is logged to help us get a visual.

    3. Can you please switch to a new workspace and check if the problem persists. If yes, then send us the complete workspace log by clicking on the icon for ‘Export Log’ in the Error Log view, save it a .txt and attach it.

    –Swapna
    Genuitec Support

    #603948 Reply

    crooksb
    Participant

    Version CL 2018.9.0 Build 16.0.0-20180903

    When I created a new workspace it worked. Not ideal since I am really trying to update a current client with a new wsdl, but I can deal with it.

    #604037 Reply

    support-swapna
    Moderator

    Barb,

    I have filed a bug for the dev team to investigate the NPE. They will get back to you in case they need more information.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #604261 Reply

    support-swapna
    Moderator

    Barb,

    On further investigation, it looks like the problem is with a non existent server being registered in the servers.xml that is located in your workspace dir/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml.

    Shut down the IDE and then edit the servers.xml, look for the non existent websphere entry, delete it, save the file and restart the IDE and check if you can create the new Web Service Client successfully. Before editing the servers.xml, please take a backup so you can revert back in case it doesn’t help.

    If you are still seeing the issue, please share with us the workspace log file again to help us investigate further.

    Please let us know how you get on with this workaround.

    –Swapna
    Genuitec Support

    #604285 Reply

    crooksb
    Participant

    All I had to do was change the java version that is loaded on install from 10 to 8 and everything started working again. Thank you for your help.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Null Pointer trying to create new Web Service Client