This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NullPointerException at org.netbeans.modules.websvc.rest.editor.AsynchronousGenerator.invoke | ||
---|---|---|---|
Product: | webservices | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | REST | Assignee: | David Konecny <dkonecny> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | marfous, phejl, pjiricka |
Priority: | P1 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 200629 |
Attachments: | stacktrace |
Description
Jiri Skrivanek
2013-05-14 10:02:08 UTC
Created attachment 134411 [details]
stacktrace
This Code Insert is meant to be triggered only on method declaration or more specifically only on class method name. And the method must be a REST producer method. If those conditions are met then the code insert converts the method into asynchronous one. The fix is simple and save. I also changed the code so that Code Insert now does show up only on method names and nowhere else. If selected method is not REST producer method then error is shown in status bar saying "Only REST method is subject to convert". While testing it I discovered a problem which I filed as issue 229754. 76b555d3f89a Btw. I just noticed that there are two ways to turn method into async one: via Insert Code and also via hint in editor gutter. I wonder if we need both. Integrated into 'main-golden', will be available in build *201305152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/76b555d3f89a User: David Konecny <dkonecny@netbeans.org> Log: #229708 - NullPointerException at org.netbeans.modules.websvc.rest.editor.AsynchronousGenerator.invoke Verified in NetBeans IDE Dev (Build 201305152300). The patch seems to be ok. Transplanted to 7.3.1: http://hg.netbeans.org/releases/rev/d3d2d0fc6caf Integrated into 'releases', will be available in build *201305162200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/d3d2d0fc6caf User: David Konecny <dkonecny@netbeans.org> Log: #229708 - NullPointerException at org.netbeans.modules.websvc.rest.editor.AsynchronousGenerator.invoke *** Bug 225840 has been marked as a duplicate of this bug. *** |