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.
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)
Created attachment 81129 [details] stacktrace
Reassigning, please evaluate.
Caused by IAE at org.netbeans.modules.java.hints.errors.ErrorFixesFakeHint.create(ErrorFixesFakeHint.java:173)
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.
Agreed, this code must be very defensive.
I see, thanks for explanation Honzo. core-main #ef2931fcdc09
*** Issue 163983 has been marked as a duplicate of this issue. ***
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
*** Issue 164754 has been marked as a duplicate of this issue. ***