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 186568 - AssertionError at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerHarness.ideButtonActionPerformed
Summary: AssertionError at org.netbeans.modules.apisupport.project.ui.platform.NbPlatf...
Status: RESOLVED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 186569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-23 18:30 UTC by emiddio
Modified: 2010-05-26 07:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 161139


Attachments
stacktrace (5.71 KB, text/plain)
2010-05-23 18:30 UTC, emiddio
Details
believe may be related issue -- jpeg (289.52 KB, image/jpeg)
2010-05-24 19:56 UTC, emiddio
Details
shows cannot remove invalid platform (269.23 KB, image/jpeg)
2010-05-24 20:01 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2010-05-23 18:30:30 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-5214-on-100521)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
emiddio: cannot add netbeans platform; experimenting with options; cannot create netbeans module project




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerHarness.ideButtonActionPerformed(NbPlatformCustomizerHarness.java:265)
   at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerHarness.access$000(NbPlatformCustomizerHarness.java:63)
   at org.netbeans.modules.apisupport.project.ui.platform.NbPlatformCustomizerHarness$1.actionPerformed(NbPlatformCustomizerHarness.java:121)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
Comment 1 emiddio 2010-05-23 18:30:34 UTC
Created attachment 99359 [details]
stacktrace
Comment 2 Jesse Glick 2010-05-24 17:19:08 UTC
I'm afraid I just don't see how this could happen. Do you know of any way to reproduce with a new NB installation?
Comment 3 Jesse Glick 2010-05-24 17:24:57 UTC
*** Bug 186569 has been marked as a duplicate of this bug. ***
Comment 4 emiddio 2010-05-24 19:54:54 UTC
problems remain -- after running nb68 and seeing how a platform should appear after being added, i added a platform to nb dev version.

but it still has problems -- but is not generating exceptions.

see attached jpeg -- i think its related somehow ???
Comment 5 emiddio 2010-05-24 19:56:24 UTC
Created attachment 99407 [details]
believe may be related issue -- jpeg
Comment 6 emiddio 2010-05-24 19:57:23 UTC
also in tools/netbeans platforms -- the invalid platform cannot be removed.
Comment 7 emiddio 2010-05-24 20:01:51 UTC
Created attachment 99408 [details]
shows cannot remove invalid platform
Comment 8 Jesse Glick 2010-05-24 20:14:25 UTC
Seems like critical modules, such as NB platform or harness, are installed in C:\Users\emiddio\.netbeans, rather than in the NB installation directory (subdirs 'platform' and 'harness') as you would expect. I am not sure how they got there, but this is likely your problem. Try deleting your user directory (make a backup first).

I will try to improve console logging in core-main #a1280939dc0c to make these things easier to diagnose.
Comment 9 emiddio 2010-05-24 20:25:04 UTC
should it be ok to rename .netbeans/dev dir to 6.8; then with today's
nbdev build -- do an import from the 6.8 dir ?

thanks
Comment 10 Jesse Glick 2010-05-24 20:53:40 UTC
May work.
Comment 11 Quality Engineering 2010-05-26 07:21:39 UTC
Integrated into 'main-golden', will be available in build *201005260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a1280939dc0c
User: Jesse Glick <jglick@netbeans.org>
Log: Avoiding ErrorManager, and improving diagnosis for #186568.