Uploaded image for project: 'Pentaho Metadata'
  1. Pentaho Metadata
  2. PMD-569

PME: Exception thrown from MQL Editor when no domains defined

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 3.5.0 GA
    • Fix Version/s: 3.5.0 GA
    • Component/s: MQL Editor
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Launch PME with logging on.
      Click the MQL Query Editor button on toolbar.
      See the following Exception (this does not occur once a domain is defined and saved):

      ERROR 21-08 13:58:50,046 - java.lang.reflect.InvocationTargetException
      Error invoking setter method [setElements] on target: org.pentaho.ui.xul.swt.tags.SwtMenuList@73bc22
      org.pentaho.ui.xul.binding.BindingException: Error invoking setter method [setElements] on target: org.pentaho.ui.xul.sw
      t.tags.SwtMenuList@73bc22
      at org.pentaho.ui.xul.binding.DefaultBinding$1.propertyChange(DefaultBinding.java:247)
      at org.pentaho.ui.xul.binding.DefaultBinding.fireSourceChanged(DefaultBinding.java:188)
      at org.pentaho.commons.metadata.mqleditor.editor.controllers.MainController.createBindings(MainController.java:2
      10)
      at org.pentaho.commons.metadata.mqleditor.editor.controllers.MainController.init(MainController.java:78)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:305)
      at org.pentaho.ui.xul.impl.AbstractXulDomContainer.initialize(AbstractXulDomContainer.java:133)
      at org.pentaho.ui.xul.swt.SwtXulRunner$1.run(SwtXulRunner.java:54)
      at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
      at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
      at org.pentaho.ui.xul.swt.SwtXulRunner.initialize(SwtXulRunner.java:51)
      at org.pentaho.commons.metadata.mqleditor.editor.SwtMqlEditor$1.success(SwtMqlEditor.java:103)
      at org.pentaho.commons.metadata.mqleditor.editor.SwtMqlEditor$1.success(SwtMqlEditor.java:93)
      at org.pentaho.commons.metadata.mqleditor.editor.service.MQLEditorServiceCWMImpl.getMetadataDomains(MQLEditorSer
      viceCWMImpl.java:32)
      at org.pentaho.commons.metadata.mqleditor.editor.SwtMqlEditor.<init>(SwtMqlEditor.java:87)
      at org.pentaho.pms.ui.QueryBuilderDialog.<init>(QueryBuilderDialog.java:105)
      at org.pentaho.pms.ui.MetaEditor.testQR(MetaEditor.java:3713)
      at org.pentaho.pms.ui.MetaEditor$43.widgetSelected(MetaEditor.java:1261)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
      at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      at org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:842)
      at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3577)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.pentaho.ui.xul.binding.DefaultBinding$1.propertyChange(DefaultBinding.java:243)
      ... 27 more
      Caused by: java.lang.RuntimeException: java.lang.NullPointerException
      at org.pentaho.ui.xul.swt.tags.SwtMenuList.extractLabel(SwtMenuList.java:198)
      at org.pentaho.ui.xul.swt.tags.SwtMenuList.setElements(SwtMenuList.java:213)
      ... 32 more
      Caused by: java.lang.NullPointerException
      at org.pentaho.ui.xul.swt.tags.SwtMenuList.extractLabel(SwtMenuList.java:196)
      ... 33 more

      The query editor shouldn't be available if the objects it needs does not exist.

        Attachments

          Activity

            People

            • Assignee:
              jpshedesky Jared Pshedesky (Inactive)
              Reporter:
              gmoran Gretchen Moran (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: