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 31489 - Impossible to add registry because of NPE
Summary: Impossible to add registry because of NPE
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: rmi (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P1 blocker (vote)
Assignee: Jan Kovar
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2003-02-26 13:54 UTC by Jiri Skrivanek
Modified: 2003-04-02 11:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (1.66 KB, text/plain)
2003-02-26 13:55 UTC, Jiri Skrivanek
Details
The NoClassDefFoundError. (384 bytes, text/plain)
2003-03-06 14:04 UTC, Marek Fukala
Details
rmi.jar for [release3.5] or [nevada] to verify before commit (831.15 KB, application/octet-stream)
2003-03-26 09:53 UTC, Jan Kovar
Details
diff (699 bytes, patch)
2003-03-27 09:37 UTC, Jan Kovar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2003-02-26 13:54:44 UTC
It is impossible to add RMI registry. To reproduce:

- invoke Add Registry on "RMI Registry" node
- click OK in the dialog => exception is thrown
(see att.)
Comment 1 Jiri Skrivanek 2003-02-26 13:55:15 UTC
Created attachment 9166 [details]
Stack trace
Comment 2 Marek Fukala 2003-03-06 13:58:54 UTC
Only little specification: 
The exception mentioned by Jiri is thrown one times. Then a
ClassNotFoundException (attached) is thrown.
Comment 3 Marek Fukala 2003-03-06 14:04:12 UTC
Created attachment 9293 [details]
The NoClassDefFoundError.
Comment 4 Marek Fukala 2003-03-19 15:12:56 UTC
The bug is in fact a regression. 
The functionality from previous releases is missing.
Comment 5 Jan Kovar 2003-03-25 16:54:45 UTC
Fixed in [maintrunk]. 

Jiri or Marek could you please verify it in next dev build?
I will close it after the fix will be approved for 
[release3.5].
Comment 6 Marek Fukala 2003-03-26 09:46:04 UTC
Verified in netbeans dev build #200303260100.
Comment 7 Jan Kovar 2003-03-26 09:53:26 UTC
Created attachment 9531 [details]
rmi.jar for [release3.5] or [nevada] to verify before commit
Comment 8 Marek Fukala 2003-03-26 10:17:02 UTC
Verified with the attached module jar in netbeans 3.5 build #20030325.

Comment 9 _ ttran 2003-03-26 11:17:43 UTC
please add the diff and ask someone to review the code change.  Don't
forget to post a short notice to reviewers@netbeans.org
Comment 10 Marek Fukala 2003-03-26 12:57:59 UTC
Verified with the attached module jar in S1S Nevada build #030325.
Comment 11 _ ttran 2003-03-27 07:31:20 UTC
I am still waiting for code review
Comment 12 Jan Kovar 2003-03-27 09:37:55 UTC
Created attachment 9555 [details]
diff
Comment 13 Jan Kovar 2003-03-27 09:38:57 UTC
Ales, could you please review the fix?

Thanks.
Comment 14 Jan Kovar 2003-03-27 09:43:41 UTC
Short description of fix:
NPE is thrown because of latest changes in the 
RegistryItem.java as the wrong class is used for getting 
bundle in getBundle
(...) method. 
Fix is very simple and should not have any negative impact 
on the RMI module or any other modules.
Comment 15 akemr 2003-03-27 09:46:17 UTC
Code review: The proposed fix is correct
Comment 16 _ ttran 2003-03-27 12:56:31 UTC
approved for release35 by release coordinator
Comment 17 Jan Kovar 2003-03-28 08:40:20 UTC
Closing
Comment 18 Marek Fukala 2003-04-02 11:59:51 UTC
Verified in Nevada 030331 build.