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 87994 - Webservice test client throws ClassNotFound on method with array of int as input
Summary: Webservice test client throws ClassNotFound on method with array of int as input
Status: CLOSED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 20:18 UTC by Karthikeyan Rajeswaran
Modified: 2007-09-16 23:29 UTC (History)
0 users

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 Karthikeyan Rajeswaran 2006-10-25 20:18:48 UTC
Steps to reproduce:
- Create a webproject and add a webservice to it.
- Add an operation that has int[]  array as parameter. (This cannot be done via
the 'add operation' wizard since the wizard only lets us create parameters of
primitive types. Therefore this step needs to be done manually).
- Build and deploy the project.
- Create another webproject.
- Add a ws client that refers to the ws in the first project.
- Expand the client in the project window and select the operation.
- Right click, select 'test operation' and click submit.

The following exception is thrown:
java.lang.ClassNotFoundException: webservice.java.lang.Integer
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:242)
	at
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.getTypedParameterArray(ReflectionHelper.java:302)
	at
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:418)
	at
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:64)
	at
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$4.run(TestWebServiceMethodDlg.java:385)
	at org.openide.util.Task.run(Task.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)

(The above exception stacktrace occurs in jse8 built on nb41).

The error occurs in both nb41 and nb50. This bug is not relevant for nb55 going
forward, as the 'test operation' menuitem is no longer available in the client
context menu and the testing of a webservice has been moved to service context menu.

Workaround is to create the client using jse109:
- In the client web project, create a servlet.
- In the servlet, use the Call web service facility to invoke the web  service.
Comment 1 Milan Kuchtiak 2007-06-27 17:00:22 UTC
Related to jaxrpc client
Comment 2 bhate 2007-08-23 23:22:09 UTC
This is not valid for nb6.
Comment 3 Karthikeyan Rajeswaran 2007-09-16 23:29:34 UTC
Closing the issue as it is not valid anymore.