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 116863 - Can't add any Java platform when Java Profiler is installed on top of Base IDE
Summary: Can't add any Java platform when Java Profiler is installed on top of Base IDE
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 17:43 UTC by Alexander Kouznetsov
Modified: 2007-10-04 15:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception on Add Platform (5.42 KB, text/plain)
2007-09-26 17:48 UTC, Alexander Kouznetsov
Details
Exception on Remove platform (5.16 KB, text/plain)
2007-09-26 17:49 UTC, Alexander Kouznetsov
Details
Exceptions (2.61 KB, text/plain)
2007-09-26 19:59 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-09-26 17:43:20 UTC
Product Version: NetBeans IDE Dev (Build 200709260000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Steps to reproduce:
- Install only Base IDE from NetBeans Web & Java EE bundle
- Install Java Profiler module
- Open Tools > Java Platforms
- Press Add Platform or Remove buttons
- RESULT:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at org.netbeans.modules.java.platform.wizard.PlatformInstallIterator.initialize(PlatformInstallIterator.java:159)
        ...

or

java.lang.AssertionError: Illegal number of selected nodes
	at org.netbeans.modules.java.platform.ui.PlatformsCustomizer.removePlatform(PlatformsCustomizer.java:275)
        ...
Comment 1 Alexander Kouznetsov 2007-09-26 17:48:10 UTC
Created attachment 49596 [details]
Exception on Add Platform
Comment 2 Alexander Kouznetsov 2007-09-26 17:49:01 UTC
Created attachment 49597 [details]
Exception on Remove platform
Comment 3 Alexander Kouznetsov 2007-09-26 19:58:31 UTC
Since I believe it is connected, I got the following exceptions during Java module installation.

java.lang.IllegalStateException: Can immediately enable modules [StandardModule:org.netbeans.api.debugger jarFile:
C:\Program Files\NetBeans 6.0 200709260000\ide8\modules\org-netbeans-api-debugger.jar,
StandardModule:org.netbeans.spi.viewmodel jarFile: C:\Program Files\NetBeans 6.0
200709260000\ide8\modules\org-netbeans-spi-viewmodel.jar, StandardModule:org.netbeans.api.debugger.jpda jarFile:
C:\Program Files\NetBeans 6.0 200709260000\java1\modules\org-netbeans-api-debugger-jpda.jar,
StandardModule:org.netbeans.modules.debugger.jpda.ant jarFile: C:\Program Files\NetBeans 6.0
200709260000\java1\modules\org-netbeans-modules-debugger-jpda-ant.jar], but not including
StandardModule:org.netbeans.modules.profiler.freeform jarFile: C:\Documents and
Settings\KAM\.netbeans\dev\modules\org-netbeans-modules-profiler-freeform.jar
	at org.netbeans.ModuleManager.create(ModuleManager.java:485)
        ...

and

org.netbeans.DuplicateException: C:\Documents and
Settings\KAM\.netbeans\dev\modules\org-netbeans-modules-profiler-freeform.jar is a duplicate of C:\Documents and
Settings\KAM\.netbeans\dev\modules\org-netbeans-modules-profiler-freeform.jar
	at org.netbeans.ModuleManager.subCreate(ModuleManager.java:606)
        ...

Please let me know if this should be tracked as separate issue.
Comment 4 Alexander Kouznetsov 2007-09-26 19:59:17 UTC
Created attachment 49607 [details]
Exceptions
Comment 5 J Bachorik 2007-10-01 15:05:36 UTC
There was a missing dependency on the high level Java Kit module
It's fixed now
Comment 6 J Bachorik 2007-10-01 15:05:52 UTC
There was a missing dependency on the high level Java Kit module
It's fixed now
Comment 7 Alexander Kouznetsov 2007-10-04 15:24:12 UTC
Verified with Ruby bundle 20071004