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 57896 - ClassNotFoundException in Test Operation dialog
Summary: ClassNotFoundException in Test Operation dialog
Status: CLOSED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-04-14 15:40 UTC by Lukas Jungmann
Modified: 2006-03-24 12:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
projects (40.72 KB, application/x-compressed)
2005-04-14 15:41 UTC, Lukas Jungmann
Details
messages.log (67.22 KB, text/plain)
2005-04-14 15:42 UTC, Lukas Jungmann
Details
diffs for this fix. (5.71 KB, text/plain)
2005-04-15 01:50 UTC, _ pcw
Details
Test service with complex type containing each primitive type supported by JAXRPC plus some arrays. (15.49 KB, application/x-compressed)
2005-04-15 01:54 UTC, _ pcw
Details
messages.log (31.49 KB, text/plain)
2005-04-15 11:46 UTC, Lukas Jungmann
Details
test operation panel (26.58 KB, image/png)
2005-05-24 10:21 UTC, Petr Blaha
Details
stack trace (3.51 KB, text/plain)
2005-05-24 10:22 UTC, Petr Blaha
Details
thrown exception (2.71 KB, text/plain)
2005-08-03 13:50 UTC, Lukas Jungmann
Details
thrown exception (1.16 KB, text/plain)
2005-08-03 16:31 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-04-14 15:40:31 UTC
[build 200504131930]

- open attached projects
- build all parts of them
- register websvc from Math-EJB module
- invoke test operation on it (in runtime tab)
- expand ComplexNumber node in Test Operation dialog, write some number (int) to
one of the opened fields and press enter

=> ClassNotFoundException
Comment 1 Lukas Jungmann 2005-04-14 15:41:57 UTC
Created attachment 21654 [details]
projects
Comment 2 Lukas Jungmann 2005-04-14 15:42:35 UTC
Created attachment 21655 [details]
messages.log
Comment 3 _ pcw 2005-04-14 21:30:02 UTC
Code was never written to properly handle native types (e.g. int, float, etc.).
Comment 4 _ pcw 2005-04-14 21:53:34 UTC
Same problem occurs for arrays of simple types.  I'm crafting a solution now.
Comment 5 _ pcw 2005-04-15 01:49:36 UTC
Fixed & Integrated.  Both primitive types and arrays of primitive types inside
complex types should work now.
Comment 6 _ pcw 2005-04-15 01:50:19 UTC
Created attachment 21665 [details]
diffs for this fix.
Comment 7 _ pcw 2005-04-15 01:54:32 UTC
Created attachment 21666 [details]
Test service with complex type containing each primitive type supported by JAXRPC plus some arrays.
Comment 8 _ ludo 2005-04-15 03:54:59 UTC
Diff is ok.
Comment 9 Lukas Jungmann 2005-04-15 11:43:22 UTC
Fix is ok for my sample, but for Peter's one i'm getting exception again in
cont. build 20050415-0914
Comment 10 Lukas Jungmann 2005-04-15 11:46:45 UTC
Created attachment 21670 [details]
messages.log
Comment 11 Lukas Jungmann 2005-04-15 12:02:29 UTC
I'm getting this exception in sendBasket operation, showBasket operation works fine.

My steps:
-download & open project
-build & run project
-register websvc
-test its operations

If i'm doing something wrong with your sample, consider this as verified.
Comment 12 _ pcw 2005-04-15 15:47:08 UTC
I wrote sendBasket as a way to check for issues in the results windows.  But I
guess I didn't test it after fixing the problems in enter window.

This is a related bug, in a different area.  The results view does not handle
arrays of native types.
Comment 13 _ pcw 2005-04-15 17:13:00 UTC
Ok, I have a simple fix that safely eliminates the exception.  It does not,
however, allow expansion and browsing of the native array -- I'm still working
on this part, it's not as easy as it sounds :(

But at the minimum, what I've done so far should go into 4.1, otherwise, viewing
any portion of the result of the web service operation is totally blocked.
Comment 14 _ pcw 2005-04-16 01:32:15 UTC
The original bug in this report is fixed.

I filed bug #57953 to represent the ClassCastException that the test case I
attached exposed.  I'm closing this as fixed.  It is already integrated into
both the trunk and 4.1 branch.
Comment 15 Lukas Jungmann 2005-04-18 12:55:10 UTC
v. in release41
Comment 16 Petr Jiricka 2005-04-18 17:06:28 UTC
Ok, changing target milestone to 4.1.
Comment 17 Petr Blaha 2005-05-24 10:19:28 UTC
I was reproduced the issue in Netbeans 4.1 FCS with web service
http://localhost:8080/jaxrpc-HelloWorld/hello. This WS is part of JWSDP 1.5.
Exception and screenshot are attached.
Comment 18 Petr Blaha 2005-05-24 10:21:22 UTC
Created attachment 22278 [details]
test operation panel
Comment 19 Petr Blaha 2005-05-24 10:22:18 UTC
Created attachment 22279 [details]
stack trace
Comment 20 Lukas Jungmann 2005-08-02 09:37:06 UTC
i'm unable to reproduce this in latest builds, marking fixed.
Comment 21 Lukas Jungmann 2005-08-03 13:48:39 UTC
well, it is still reproducible when you have websvc with valuetype which contain
other value type with byte array. But because this is not 100% reproducible, i'm
decreasing priority to P3.
Comment 22 Lukas Jungmann 2005-08-03 13:50:59 UTC
Created attachment 23459 [details]
thrown exception
Comment 23 Lukas Jungmann 2005-08-03 14:05:45 UTC
Please use project attached to issue #61761 (TestOperationDialogTest.zip) for
reproducing this issue.
Comment 24 Lukas Jungmann 2005-08-03 16:30:11 UTC
similar exception is also thrown when using java.util.Calendar as an argument
and return type in websvc opration
Comment 25 Lukas Jungmann 2005-08-03 16:31:07 UTC
Created attachment 23481 [details]
thrown exception
Comment 27 Lukas Jungmann 2006-01-03 11:04:41 UTC
v.