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.

Bug 140289 - Cannot test ws operation
Summary: Cannot test ws operation
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Manager (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-07-16 13:21 UTC by Lukas Jungmann
Modified: 2008-07-22 17:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-07-16 13:21:34 UTC
(javaee ide configuration)

-goto ws manager
-expand ie. stikerion/email verify service node
-invoke Test Operation action on the validateEmail node

=> java.lang.IllegalArgumentException: Could not get javaMethod for operation
org.netbeans.modules.websvc.saas.model.WsdlSaasMethod@aece47
	at org.netbeans.modules.websvc.saas.ui.actions.TestMethodAction.performAction(TestMethodAction.java:91)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
	at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:77)
...
Comment 1 Peter Liu 2008-07-17 22:31:24 UTC
It looks like we need to include jaxws in the websvccommon1 cluster in order for the test web service functionality to
work in any ide configuration in which the websvc manager shows up.
Comment 2 Lukas Jungmann 2008-07-17 22:51:03 UTC
I don't think that's a good idea. Including JAX-WS lib in PHP distro will increase its size by another 1,5-2,5 MB (size
of uncompressed jaxws library is ~3MB) and small download size is really important for PHP distro (it should not get
over ~20MB).

Cannot we just remove the test action from the node if jaxws library is not present or at least ask user to get required
modules from the UC? It's there only for WSDL based services anyway...
Comment 3 Lukas Jungmann 2008-07-17 23:02:45 UTC
or another possibility would by to rely on JAX-WS in JDK and only if a user will be running on JDK 5 ask him to get the
library from UC or switch to JDK 6 or newer
Comment 4 Petr Pisl 2008-07-18 08:48:01 UTC
Jungi is right. For PHP IDE is also important the download size. I would prefer different solution than extend the ide
with JAX-WS lib. The IDE has to be able run with JRE, this is another condition. 
Comment 5 Ayub Khan 2008-07-21 16:43:44 UTC
Fixed, see http://hg.netbeans.org/main/rev/816e6cd5b633

Note:

I got this error while testing the action described in this issue, I think is not related to this issue

Class javax/xml/bind/attachment/AttachmentMarshaller violates loader constraints
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:675)
...
java.lang.reflect.Method.invoke(Method.java:585)
org.netbeans.modules.websvc.saas.ui.wizards.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:736)
org.netbeans.modules.websvc.saas.ui.wizards.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:705)
java.lang.Thread.run(Thread.java:613)
Comment 6 Lukas Jungmann 2008-07-22 17:40:22 UTC
yes, that's something different, filed as issue 141205.

This one is verified