facebook

REST web services explorer won’t start anymore

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #301649 Reply

    Dirk de Kok
    Member

    hi there,

    after using the REST web services explorer for a month or so with a lot of fun, it now causes problems: just won’t start on any project.

    I have tested several project, but no alas. Nothing when I right-click and select MyEclipse->Test with REST web services explorer.

    Environment:
    MyEclipse 7.5
    Mac OS X 10.5.8

    java sdk 6.0 and 1.5

    any ideas how to fix this?

    =====================
    error message:
    null
    Error
    Fri Aug 21 17:58:51 CEST 2009
    Unhandled event loop exception

    java.lang.NullPointerException
    at com.genuitec.eclipse.ws.jaxws.WEBXMLFile.getJerseyServletPattern(WEBXMLFile.java:259)
    at com.genuitec.eclipse.ws.action.TestRESTWSActionDelegate.run(TestRESTWSActionDelegate.java:38)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    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:193)
    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:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

    #301691 Reply

    support-joy
    Member

    dirkdk,

    Sorry to hear you are running into this issue.
    Can you please send me a sample project (with 2 or 3 files) to test and also the steps to reproduce the issue. You can PM the project or send an e-mail to support@genuitec.com. Please add a note “ATTN: Joy” in the subject line. Also refer the post link in the e-mail.

    #301831 Reply

    Brian Fernandes
    Moderator

    Dirk,

    Sorry for the delayed response. I looked through the code and it is specifically looking for a servlet with the <servlet-class> element set to com.sun.jersey.spi.container.servlet.ServletContainer before proceeding. Since you have commented it out and used the SpringServlet instead, the flow breaks and throws the NPE.

    This is a bug, since using the SpringServlet is a valid use case for sure. I’ve filed this and we should address it in the next ME release.

    In the meanwhile, you can manually open the REST explorer from the toolbar. On the main eclipse toolbar, you should see a button that says “Launch SOAP Web Services Explorer” with a drop down arrow next to it. If you click that, you can launch the REST explorer too. When it starts, you will have to enter the path to your services WADL file, which I believe would be

    http://localhost:8080/TestRest/application.wadl

    Thank you for your patience, I hope this allows you to get on with your testing.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: REST web services explorer won’t start anymore

You must be logged in to post in the forum log in