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 180214 - IllegalArgumentException: object is not an instance of declaring class
Summary: IllegalArgumentException: object is not an instance of declaring class
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 06:50 UTC by Tomas Danek
Modified: 2010-02-10 21:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 154009


Attachments
stacktrace (2.15 KB, text/plain)
2010-02-03 06:50 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2010-02-03 06:50:14 UTC
Build: NetBeans IDE Dev (Build NB-Core-Build-3952-on-100202)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
musilt2: started platform app - only platform cluster + 2 empty modules




Stacktrace: 
java.lang.IllegalArgumentException: object is not an instance of declaring class
   at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.netbeans.modules.ide.ergonomics.fod.FoDUpdateUnitProvider.isModuleFrom(FoDUpdateUnitProvider.java:209)
   at org.netbeans.modules.ide.ergonomics.fod.FoDUpdateUnitProvider.isPlatformCluster(FoDUpdateUnitProvider.java:197)
Comment 1 Tomas Danek 2010-02-03 06:50:18 UTC
Created attachment 93801 [details]
stacktrace
Comment 2 Tomas Danek 2010-02-03 07:01:48 UTC
at least p2 - 100% reproducible.
Comment 3 Jaroslav Tulach 2010-02-03 11:03:15 UTC
How can you have "only" platform app and have include ergonomics module? That is really strange. How did you get into this state?
Comment 4 Tomas Danek 2010-02-04 03:20:53 UTC
suite was not set in "platform app" mode (see issue #180216).
Comment 5 Jaroslav Tulach 2010-02-10 06:28:33 UTC
ergonomics#9a038bdeaaf2
Comment 6 Quality Engineering 2010-02-10 21:22:25 UTC
Integrated into 'main-golden', will be available in build *201002110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9a038bdeaaf2
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #180214: Rather than using reflection to call Module.getJarFile() it is cleaner to get friend dependency (we anyway have one on startup) and call the method directly