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 234364 - AssertionError: should not be called from EQ
Summary: AssertionError: should not be called from EQ
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 08:46 UTC by Martin Kozeny
Modified: 2013-08-22 04:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203033


Attachments
stacktrace (1.75 KB, text/plain)
2013-08-14 08:46 UTC, Martin Kozeny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kozeny 2013-08-14 08:46:19 UTC
Build: NetBeans IDE Dev (Build 20130809-00cb032bfc0c)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
mkozeny: Problem invoking MavenPlatformJarProvider.getPlatformJars() from event dispatch thread when changing locale in InternationalizationResourceBundleBrandingPanel. Control on invoking from EDT could be possibly removed...




Stacktrace: 
java.lang.AssertionError: should not be called from EQ
   at org.netbeans.modules.maven.apisupport.MavenPlatformJarProvider.getPlatformJars(MavenPlatformJarProvider.java:87)
   at org.netbeans.modules.apisupport.project.ui.branding.InternationalizationResourceBundleBrandingPanel.prepareTree(InternationalizationResourceBundleBrandingPanel.java:263)
   at org.netbeans.modules.apisupport.project.ui.branding.InternationalizationResourceBundleBrandingPanel.access$200(InternationalizationResourceBundleBrandingPanel.java:108)
   at org.netbeans.modules.apisupport.project.ui.branding.InternationalizationResourceBundleBrandingPanel$7$1$1.run(InternationalizationResourceBundleBrandingPanel.java:851)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
Comment 1 Martin Kozeny 2013-08-14 08:46:20 UTC
Created attachment 138673 [details]
stacktrace
Comment 2 Milos Kleint 2013-08-19 13:00:27 UTC
the assert is there because the call can be fairly costly (slow) in some cases.

org.netbeans.modules.apisupport.project.ui.branding.InternationalizationResourceBundleBrandingPanel should makes sure to call the method outside of AWT thread
Comment 3 Martin Kozeny 2013-08-20 07:56:54 UTC
https://hg.netbeans.org/core-main/rev/fa35770ac336
Comment 4 Quality Engineering 2013-08-22 04:32:32 UTC
Integrated into 'main-silver', will be available in build *201308212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fa35770ac336
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #234364: Loading of platform jars is invoked outside AWT thread.