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

Pentaho BI Platform Tracking | Kurtis Cruzada | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Load the metadata.xmi from pentaho-solutions/steel-wheels. Expand the Business Model group. Select a Model. Click on the model in the Graphical View. Notice that the application locks up. Here is the error that is seen in the console. 2009-04-09 14:49:52.482 java_swt[10951:10b] Apple AWT Java VM was loaded on first thread -- can't start AWT. Exception in thread "main" 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:1822) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1509) at java.awt.Toolkit.<clinit>(Toolkit.java:1530) at java.awt.Rectangle.<clinit>(Rectangle.java:93) at org.pentaho.pms.ui.MetaEditorGraph$4.mouseDown(MetaEditorGraph.java:275) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954) at org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:842) at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3576) ^CKCs-MacBookPro:metadata-editor kcruzada$ ./metaeditor.sh INFO 09-04 14:51:21,522 - Using "/tmp/vfs_cache" as temporary files store. ERROR 09-04 14:51:23,243 - Pentaho Metadata Editor - Unable to load query : org.pentaho.pms.core.exception.PentahoMetadataException: MQLQuery.ERROR_0009 - model BV_MODEL_1 not found Unable to find kettle engine jar file to set build date. (ignored)

    Pentaho BI Platform Tracking | 8 years ago | Kurtis Cruzada
    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
  2. 0

    Load the metadata.xmi from pentaho-solutions/steel-wheels. Expand the Business Model group. Select a Model. Click on the model in the Graphical View. Notice that the application locks up. Here is the error that is seen in the console. 2009-04-09 14:49:52.482 java_swt[10951:10b] Apple AWT Java VM was loaded on first thread -- can't start AWT. Exception in thread "main" 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:1822) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1509) at java.awt.Toolkit.<clinit>(Toolkit.java:1530) at java.awt.Rectangle.<clinit>(Rectangle.java:93) at org.pentaho.pms.ui.MetaEditorGraph$4.mouseDown(MetaEditorGraph.java:275) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954) at org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:842) at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3576) ^CKCs-MacBookPro:metadata-editor kcruzada$ ./metaeditor.sh INFO 09-04 14:51:21,522 - Using "/tmp/vfs_cache" as temporary files store. ERROR 09-04 14:51:23,243 - Pentaho Metadata Editor - Unable to load query : org.pentaho.pms.core.exception.PentahoMetadataException: MQLQuery.ERROR_0009 - model BV_MODEL_1 not found Unable to find kettle engine jar file to set build date. (ignored)

    Pentaho BI Platform Tracking | 8 years ago | Kurtis Cruzada
    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

    Root Cause Analysis

    1. 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()
    2. Java RT
      Rectangle.<clinit>
      1. java.lang.ClassLoader$NativeLibrary.load(Native Method)
      2. java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
      3. java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
      4. java.lang.Runtime.loadLibrary0(Runtime.java:822)
      5. java.lang.System.loadLibrary(System.java:993)
      6. sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
      9. java.awt.Toolkit.<clinit>(Toolkit.java:1530)
      10. java.awt.Rectangle.<clinit>(Rectangle.java:93)
      10 frames
    3. org.pentaho.pms
      MetaEditorGraph$4.mouseDown
      1. org.pentaho.pms.ui.MetaEditorGraph$4.mouseDown(MetaEditorGraph.java:275)
      1 frame
    4. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504)
      6. org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)
      7. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350)
      8. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954)
      8 frames
    5. org.pentaho.pms
      MetaEditor.main
      1. org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:842)
      2. org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3576)
      2 frames