[JBoss JIRA] (JBIDE-11229) JAX-RS validation problem marked as Error instead of Warning - Edge Case
by Ron Ratovsky (JIRA)
Ron Ratovsky created JBIDE-11229:
------------------------------------
Summary: JAX-RS validation problem marked as Error instead of Warning - Edge Case
Key: JBIDE-11229
URL: https://issues.jboss.org/browse/JBIDE-11229
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.3.0.Beta1
Environment: Win7 64bit
Eclipse 3.7.2 64bit
JBoss JAX-RS Tools 1.2.2.v20120306-1559-H77-Beta1 org.jboss.tools.ws.jaxrs.feature.feature.group JBoss by Red Hat
JBoss Maven Integration 1.3.0.v20120307-0425-H80-Beta1 org.jboss.tools.maven.feature.feature.group JBoss by Red Hat
JBoss Maven JAX-RS Configurator 1.3.0.v20120307-0425-H80-Beta1 org.jboss.tools.maven.jaxrs.feature.feature.group JBoss by Red Hat
JBoss WebServices Tools 1.2.2.v20120306-1559-H77-Beta1 org.jboss.tools.ws.feature.feature.group JBoss by Red Hat
Reporter: Ron Ratovsky
Assignee: Brian Fitzpatrick
Following JBIDE-11070's fix and some extra code in our project, there's an edge-case that wasn't covered by the previous fix.
Unfortunately, I can't point out to exactly what's causing the issue, but I can possibly guide to it.
Take the following code sample:
@Path("/foo/{param1}/bar")
public class FooRestService {
@PUT
@Path("{param2}")
public Response update(@Context HttpServletRequest requestContext, Bar bar, @PathParam("{param2}") String param2) throws Exception { ... }
}
This code will generate the following error:
Description Resource Path Location Type
Invalid @PathParam value: expected '[param1, param2]' FooRestService.java /path/to/class line XX JAX-RS Problem
I imagine this is due to the following possible reasons:
1. There's a {param} on the class's @Path annotation (first time we have it).
2. There's more than one {param} that's supposed to be included in the method signature.
3. A combination of the two above reasons.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] (JBIDE-11196) Pressing "Restore Default" button on "CDI (Context and Dependency Injection) Settings" Project Properties page throws JavaNullPointer exception
by Denis Golovin (JIRA)
Denis Golovin created JBIDE-11196:
-------------------------------------
Summary: Pressing "Restore Default" button on "CDI (Context and Dependency Injection) Settings" Project Properties page throws JavaNullPointer exception
Key: JBIDE-11196
URL: https://issues.jboss.org/browse/JBIDE-11196
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI
Affects Versions: 3.3.0.Beta1
Environment: Ubuntu Linux x86_64
Open JDK 1.6.0
EPP For JEE Developers 3.7.1
JBoss Tools Components are installed:
Context and Dependency Injection Tools 1.2.0.v20120302-0255-H54-Beta1 org.jboss.tools.cdi.feature.feature.group JBoss by Red Hat
Hibernate Tools 3.4.0.v20120302-0201-H59-Beta1 org.hibernate.eclipse.feature.feature.group JBoss by Red Hat
JBoss Runtime Seam Detector 1.3.0.v20120305-1713-H72-Beta1 org.jboss.tools.runtime.seam.detector.feature.feature.group JBoss by Red Hat
JBoss Tools Common UI 3.3.0.v20120302-0132-H47-Beta1 org.jboss.tools.common.ui.feature.feature.group JBoss by Red Hat
JBoss Tools JSF 3.3.0.v20120302-0331-H69-Beta1 org.jboss.tools.jsf.feature.feature.group JBoss by Red Hat
JBoss Tools Mobile Browser Simulator 3.3.0.v20120307-0031-H58-Beta1 org.jboss.tools.vpe.browsersim.feature.feature.group JBoss by Red Hat
JBoss Tools RichFaces 3.3.0.v20120302-0331-H69-Beta1 org.jboss.tools.richfaces.feature.feature.group JBoss by Red Hat
Seam Tools 3.3.0.v20120302-2019-H81-Beta1 org.jboss.tools.seam.feature.feature.group JBoss by Red Hat
Reporter: Denis Golovin
Assignee: Alexey Kazakov
Fix For: 3.3.0.Beta1
{code}java.lang.NullPointerException
at org.jboss.tools.cdi.ui.preferences.CDISettingsPreferencePage.performDefaults(CDISettingsPreferencePage.java:124)
at org.eclipse.jface.preference.PreferencePage$1.widgetSelected(PreferencePage.java:267)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
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:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:344)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386){code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years