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

Query Editor: NullPointerException error appears after clicking on "MQL" button.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: Master, 5.4.0 GA, 6.0.0 GA, 6.1.0.1 GA
    • Fix Version/s: 7.1.0 GA
    • Component/s: None
    • Labels:
    • Story Points:
      0
    • 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.
    • Sprint Team:
      Tatooine (Maint)
    • Operating System/s:
      Ubuntu 12.x (64-bit), Windows 7 (64-bit)
    • Steps to Reproduce:
      Hide
      1. Start BI Server. Start Metadata-Editor. Create new domain.
      2. Create a new connection (e.g. connection to Hypersonic) and import a few tables.
      3. Create new Model that based on previous created connection. Create new Business Table and add Business view (right click on "Business View" -> select "Manage Categories" and select your business table).
      4. Click "Query Editor" button on toolbar. Add at least 1 column from "Categories / Columns" to "Selected Columns" section.
      5. Click "MQL" button.
        Actual Result: nothing happens. See log in terminal - NullPonterException appears.
        Log you can find in attachments.
      Show
      Start BI Server. Start Metadata-Editor. Create new domain. Create a new connection (e.g. connection to Hypersonic) and import a few tables. Create new Model that based on previous created connection. Create new Business Table and add Business view (right click on "Business View" -> select "Manage Categories" and select your business table). Click "Query Editor" button on toolbar. Add at least 1 column from "Categories / Columns" to "Selected Columns" section. Click "MQL" button. Actual Result: nothing happens. See log in terminal - NullPonterException appears. Log you can find in attachments.

      Description

      User can't open MQL query in "Query Editor" dialog - NullPointerException appears in terminal (console).

      java.lang.NullPointerException
      	at org.dom4j.DocumentHelper.getEncoding(DocumentHelper.java:292)
      	at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:273)
      	at org.pentaho.pms.ui.QueryBuilderDialog.viewMql(QueryBuilderDialog.java:479)
      	at org.pentaho.pms.ui.QueryBuilderDialog.access$400(QueryBuilderDialog.java:68)
      	at org.pentaho.pms.ui.QueryBuilderDialog$5.widgetSelected(QueryBuilderDialog.java:209)
      	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.eclipse.jface.window.Window.runEventLoop(Window.java:820)
      	at org.eclipse.jface.window.Window.open(Window.java:796)
      	at org.pentaho.pms.ui.MetaEditor.testQR(MetaEditor.java:3818)
      	at org.pentaho.pms.ui.MetaEditor$42.widgetSelected(MetaEditor.java:1280)
      	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:859)
      	at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3648)
      	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.commons.launcher.Launcher.main(Launcher.java:92)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Aliaksei_Simkin Aliaksei Simkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: