java.lang.NullPointerException

Pentaho BI Platform Tracking | Antonina Doudkina | 2 years ago
  1. 0

    When creating a query in Query Builder while in Metadata Editor application, mql file with saved query is not opened back for editing if conditions were specified. Query example: <?xml version="1.0" encoding="UTF-8"?><mql><domain_type>relational</domain_type><domain_id>Hive2_Kerb_domain</domain_id><model_id>BV_MODEL_1</model_id><model_name>Model Hive2 Kerb</model_name><options><disable_distinct>false</disable_distinct><limit>-1</limit></options><selections><selection><view>Cust_Sales_98</view><column>BC_CUSTOMER_CUSTOMER_ID</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_CUSTOMER_FULLNAME</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_SALES_FACT_DEC_1998_STORE_SALES</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_SALES_FACT_DEC_1998_STORE_COST</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_SALES_FACT_DEC_1998_UNIT_SALES</column><aggregation>none</aggregation></selection></selections><constraints><constraint><operator>AND</operator><condition>[Cust_Sales_98.BC_SALES_FACT_DEC_1998_UNIT_SALES] &lt;2</condition></constraint></constraints><orders/></mql> Error trace: java.lang.NullPointerException at org.pentaho.commons.metadata.mqleditor.editor.service.util.MQLEditorServiceCWMDelegate.convertModelToThin(MQLEditorServiceCWMDelegate.java:578) at org.pentaho.commons.metadata.mqleditor.editor.OldSwtMqlEditor.setMqlQuery(OldSwtMqlEditor.java:160) at org.pentaho.pms.ui.QueryBuilderDialog.openQuery(QueryBuilderDialog.java:446) at org.pentaho.pms.ui.QueryBuilderDialog.access$100(QueryBuilderDialog.java:68) at org.pentaho.pms.ui.QueryBuilderDialog$2.widgetSelected(QueryBuilderDialog.java:178) 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:3812) at org.pentaho.pms.ui.MetaEditor$42.widgetSelected(MetaEditor.java:1273) 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:854) at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3640) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:151)

    Pentaho BI Platform Tracking | 2 years ago | Antonina Doudkina
    java.lang.NullPointerException
  2. 0

    When creating a query in Query Builder while in Metadata Editor application, mql file with saved query is not opened back for editing if conditions were specified. Query example: {code:xml} <?xml version="1.0" encoding="UTF-8"?><mql><domain_type>relational</domain_type><domain_id>Hive2_Kerb_domain</domain_id><model_id>BV_MODEL_1</model_id><model_name>Model Hive2 Kerb</model_name><options><disable_distinct>false</disable_distinct><limit>-1</limit></options><selections><selection><view>Cust_Sales_98</view><column>BC_CUSTOMER_CUSTOMER_ID</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_CUSTOMER_FULLNAME</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_SALES_FACT_DEC_1998_STORE_SALES</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_SALES_FACT_DEC_1998_STORE_COST</column><aggregation>none</aggregation></selection><selection><view>Cust_Sales_98</view><column>BC_SALES_FACT_DEC_1998_UNIT_SALES</column><aggregation>none</aggregation></selection></selections><constraints><constraint><operator>AND</operator><condition>[Cust_Sales_98.BC_SALES_FACT_DEC_1998_UNIT_SALES] &lt;2</condition></constraint></constraints><orders/></mql> {code} Error trace: {noformat} java.lang.NullPointerException at org.pentaho.commons.metadata.mqleditor.editor.service.util.MQLEditorServiceCWMDelegate.convertModelToThin(MQLEditorServiceCWMDelegate.java:578) at org.pentaho.commons.metadata.mqleditor.editor.OldSwtMqlEditor.setMqlQuery(OldSwtMqlEditor.java:160) at org.pentaho.pms.ui.QueryBuilderDialog.openQuery(QueryBuilderDialog.java:446) at org.pentaho.pms.ui.QueryBuilderDialog.access$100(QueryBuilderDialog.java:68) at org.pentaho.pms.ui.QueryBuilderDialog$2.widgetSelected(QueryBuilderDialog.java:178) 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:3812) at org.pentaho.pms.ui.MetaEditor$42.widgetSelected(MetaEditor.java:1273) 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:854) at org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3640) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:151){noformat}

    Pentaho BI Platform Tracking | 2 years ago | Antonina Doudkina
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.commons.metadata.mqleditor.editor.service.util.MQLEditorServiceCWMDelegate.convertModelToThin()
    2. org.pentaho.commons
      OldSwtMqlEditor.setMqlQuery
      1. org.pentaho.commons.metadata.mqleditor.editor.service.util.MQLEditorServiceCWMDelegate.convertModelToThin(MQLEditorServiceCWMDelegate.java:578)
      2. org.pentaho.commons.metadata.mqleditor.editor.OldSwtMqlEditor.setMqlQuery(OldSwtMqlEditor.java:160)
      2 frames
    3. org.pentaho.pms
      QueryBuilderDialog$2.widgetSelected
      1. org.pentaho.pms.ui.QueryBuilderDialog.openQuery(QueryBuilderDialog.java:446)
      2. org.pentaho.pms.ui.QueryBuilderDialog.access$100(QueryBuilderDialog.java:68)
      3. org.pentaho.pms.ui.QueryBuilderDialog$2.widgetSelected(QueryBuilderDialog.java:178)
      3 frames
    4. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      5 frames
    5. JFace
      Window.open
      1. org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
      2. org.eclipse.jface.window.Window.open(Window.java:796)
      2 frames
    6. org.pentaho.pms
      MetaEditor$42.widgetSelected
      1. org.pentaho.pms.ui.MetaEditor.testQR(MetaEditor.java:3812)
      2. org.pentaho.pms.ui.MetaEditor$42.widgetSelected(MetaEditor.java:1273)
      2 frames
    7. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      5 frames
    8. org.pentaho.pms
      MetaEditor.main
      1. org.pentaho.pms.ui.MetaEditor.readAndDispatch(MetaEditor.java:854)
      2. org.pentaho.pms.ui.MetaEditor.main(MetaEditor.java:3640)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames