This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 229692 - Locale.setDefault(Locale.ROOT) crashes engine startup
Summary: Locale.setDefault(Locale.ROOT) crashes engine startup
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: 2.3.0 RC2   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard: obsolete
Keywords:
Depends on: 232636
Blocks:
  Show dependency tree
 
Reported: 2008-04-30 14:34 EDT by Samuel Santos CLA
Modified: 2009-07-07 01:14 EDT (History)
1 user (show)

See Also:


Attachments
Stack trace log (1.05 MB, application/octet-stream)
2008-04-30 14:34 EDT, Samuel Santos CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Santos CLA 2008-04-30 14:34:36 EDT
Created attachment 98238 [details]
Stack trace log

When executing Platform.startup(config) the platform enters in an infinite loop.
The stacktrace looks like (see the attachment for more):

org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.registry.osgi.Activator.start() of bundle org.eclipse.equinox.registry.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018)
[ ... ]
Caused by: java.lang.StackOverflowError
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization$EmptyResouceBundle.isEmpty(ManifestLocalization.java:216)
[ ... ]
and more and more...

This was caused by an invocation to Locale.setDefault(Locale.ROOT) in my context listener.

This was posted in Eclipse NewsPortal - eclipse.birt: http://www.eclipse.org/newsportal/article.php?id=27536&group=eclipse.birt#27536

This happens at least with BIRT 2.1.x, 2.2.x, and 2.3.x
Comment 1 Wei Yan CLA 2008-05-20 04:02:19 EDT
resolved by 232636