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 163984 - [67cat] IllegalArgumentException at org.netbeans.modules.java.hints.errors.ErrorFixesFakeHint.create
Summary: [67cat] IllegalArgumentException at org.netbeans.modules.java.hints.errors.Er...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL: http://statistics.netbeans.org/except...
Keywords:
: 163983 164754 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-28 22:00 UTC by misterm
Modified: 2009-05-11 13:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 150252


Attachments
stacktrace (6.97 KB, text/plain)
2009-04-28 22:00 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2009-04-28 22:00:11 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments:
misterm: Error thrown while expanding org-netbeans-modules-java-hints/rules/hints/Error Fixes in XML Layer for a module project



Stacktrace: 
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor646.invoke(GeneratedMethodAccessor646.java:0)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:557)
        at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:490)
        at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:375)
Comment 1 misterm 2009-04-28 22:00:28 UTC
Created attachment 81129 [details]
stacktrace
Comment 2 Max Sauer 2009-04-29 14:26:01 UTC
Reassigning, please evaluate.
Comment 3 rmichalsky 2009-05-04 15:49:10 UTC
Caused by IAE at org.netbeans.modules.java.hints.errors.ErrorFixesFakeHint.create(ErrorFixesFakeHint.java:173)
Comment 4 Jan Lahoda 2009-05-04 18:15:21 UTC
The cause for this is, IMO, that an "old" IDE is used to develop "new" version of NB.org sources. A new constant was
added to ErrorFixesFakeHint, and a corresponding entry was added to the layer. But, the old version (from the "old"
development IDE) does not understand the new constant. apisupport.project tries to load the new layer using the old
version of the class (from the "old" development IDE), mixing run time and design time. It is a responsibility of
apisupport.project, IMO, to solve any side-effects of this mixture, including reasonable handling of any exception that
is thrown. Currently, IOException and ClassNotFoundException are ignored, but all exceptions should be ignored in
BadgingSupport.getInstanceLabel, IMO.
Comment 5 Jesse Glick 2009-05-04 18:34:01 UTC
Agreed, this code must be very defensive.
Comment 6 rmichalsky 2009-05-06 09:49:57 UTC
I see, thanks for explanation Honzo.
core-main #ef2931fcdc09
Comment 7 rmichalsky 2009-05-06 10:17:20 UTC
*** Issue 163983 has been marked as a duplicate of this issue. ***
Comment 8 Quality Engineering 2009-05-07 08:04:53 UTC
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ef2931fcdc09
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #163984: ignoring all exceptions when using InstanceCookies from IDE in layer nodes
Comment 9 rmichalsky 2009-05-11 13:43:31 UTC
*** Issue 164754 has been marked as a duplicate of this issue. ***