Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Exception generated on OS X
Exception generated on OS X [message #84012] Sun, 24 September 2006 07:31 Go to next message
Eclipse User
Originally posted by: s_gutz.ca.ibm.com

While trying to generate a bar chart I get the following exception on OS
X. Any ideas what I need to do. I'm not sure why BIRT is even trying
to start AWT in an SWT application.



2006-09-24 07:26:56.127 java[17875] Apple AWT Java VM was loaded on
first thread -- can't start AWT.
Sep 24, 2006 7:26:56 AM
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask run
SEVERE: Error happened while running the report.
java.lang.InternalError: Can't start the AWT because Java was started on
the first thread. Make sure StartOnFirstThread is not specified in your
application's Info.plist or on the command line
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction. java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.image.ColorModel.loadLibraries(ColorModel.java:188)
at java.awt.image.ColorModel.<clinit>(ColorModel.java:196)
at java.awt.image.BufferedImage.<clinit>(BufferedImage.java:212)
at
org.eclipse.birt.chart.device.swing.SwingDisplayServer.<init >(SwingDisplayServer.java:77)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:787)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.birt.core.framework.eclipse.EclipseConfiguration Element.createExecutableExtension(EclipseConfigurationElemen t.java:35)
at
org.eclipse.birt.chart.util.PluginSettings.getPluginXmlObjec t(PluginSettings.java:853)
at
org.eclipse.birt.chart.util.PluginSettings.getDisplayServer( PluginSettings.java:488)
at
org.eclipse.birt.chart.device.swing.SwingRendererImpl.<init >(SwingRendererImpl.java:121)
at
org.eclipse.birt.chart.device.image.JavaxImageIOWriter.<init >(JavaxImageIOWriter.java:104)
at
org.eclipse.birt.chart.device.image.JpegRendererImpl.<init>(JpegRendererImpl.java:21)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:787)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.birt.core.framework.eclipse.EclipseConfiguration Element.createExecutableExtension(EclipseConfigurationElemen t.java:35)
at
org.eclipse.birt.chart.util.PluginSettings.getPluginXmlObjec t(PluginSettings.java:853)
at
org.eclipse.birt.chart.util.PluginSettings.getDevice(PluginS ettings.java:407)
at
org.eclipse.birt.chart.reportitem.ChartReportItemPresentatio nImpl.onRowSets(ChartReportItemPresentationImpl.java:407)
at
org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.processExtendedContent(LocalizedContentVisitor.java: 591)
at
org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.visitForeign(LocalizedContentVisitor.java:347)
at
org.eclipse.birt.report.engine.content.impl.ForeignContent.a ccept(ForeignContent.java:52)
at
org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.localize(LocalizedContentVisitor.java:107)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:38)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:123)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:81)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:80)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
Re: Exception generated on OS X [message #84031 is a reply to message #84012] Mon, 25 September 2006 07:13 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Steve,
Is this an issue with TPTP reporting or specific to BIRT? If the
latter, please post to the BIRT newsgroup. However, Hyades/TPTP does not
appear in the stack trace.

Paul
"Steve Gutz" <s_gutz@ca.ibm.com> wrote in message
news:ef5qa3$qab$1@utils.eclipse.org...
> While trying to generate a bar chart I get the following exception on OS
> X. Any ideas what I need to do. I'm not sure why BIRT is even trying to
> start AWT in an SWT application.
>
>
>
> 2006-09-24 07:26:56.127 java[17875] Apple AWT Java VM was loaded on first
> thread -- can't start AWT.
> Sep 24, 2006 7:26:56 AM
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask run
> SEVERE: Error happened while running the report.
> java.lang.InternalError: Can't start the AWT because Java was started on
> the first thread. Make sure StartOnFirstThread is not specified in your
> application's Info.plist or on the command line
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
> at sun.security.action.LoadLibraryAction.run(LoadLibraryAction. java:50)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.image.ColorModel.loadLibraries(ColorModel.java:188)
> at java.awt.image.ColorModel.<clinit>(ColorModel.java:196)
> at java.awt.image.BufferedImage.<clinit>(BufferedImage.java:212)
> at
> org.eclipse.birt.chart.device.swing.SwingDisplayServer.<init >(SwingDisplayServer.java:77)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
> at java.lang.Class.newInstance0(Class.java:308)
> at java.lang.Class.newInstance(Class.java:261)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:787)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.eclipse.birt.core.framework.eclipse.EclipseConfiguration Element.createExecutableExtension(EclipseConfigurationElemen t.java:35)
> at
> org.eclipse.birt.chart.util.PluginSettings.getPluginXmlObjec t(PluginSettings.java:853)
> at
> org.eclipse.birt.chart.util.PluginSettings.getDisplayServer( PluginSettings.java:488)
> at
> org.eclipse.birt.chart.device.swing.SwingRendererImpl.<init >(SwingRendererImpl.java:121)
> at
> org.eclipse.birt.chart.device.image.JavaxImageIOWriter.<init >(JavaxImageIOWriter.java:104)
> at
> org.eclipse.birt.chart.device.image.JpegRendererImpl.<init>(JpegRendererImpl.java:21)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
> at java.lang.Class.newInstance0(Class.java:308)
> at java.lang.Class.newInstance(Class.java:261)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:787)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.eclipse.birt.core.framework.eclipse.EclipseConfiguration Element.createExecutableExtension(EclipseConfigurationElemen t.java:35)
> at
> org.eclipse.birt.chart.util.PluginSettings.getPluginXmlObjec t(PluginSettings.java:853)
> at
> org.eclipse.birt.chart.util.PluginSettings.getDevice(PluginS ettings.java:407)
> at
> org.eclipse.birt.chart.reportitem.ChartReportItemPresentatio nImpl.onRowSets(ChartReportItemPresentationImpl.java:407)
> at
> org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.processExtendedContent(LocalizedContentVisitor.java: 591)
> at
> org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.visitForeign(LocalizedContentVisitor.java:347)
> at
> org.eclipse.birt.report.engine.content.impl.ForeignContent.a ccept(ForeignContent.java:52)
> at
> org.eclipse.birt.report.engine.presentation.LocalizedContent Visitor.localize(LocalizedContentVisitor.java:107)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:38)
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:123)
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:81)
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:80)
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
Previous Topic:Optional fields in GLA
Next Topic:TPTP junit test output redirection
Goto Forum:
  


Current Time: Thu Apr 24 01:27:16 EDT 2014

Powered by FUDForum. Page generated in 0.02826 seconds