Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-3160

IllegalArgumentException occurs when calling UDF in Expression Builder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 11.1.1
    • 11.0.1
    • Transformations
    • None
    • Hide

      1. Create UDF which defines the category as "simple".
      2. Open Transformation Editor for View Model
      3. Select Expression Builder
      4. choose Function and Category "simple"
      5. IllegalArgumentException occur on Error Log pane.

      I attached a reproducer.zip.
      It includes the project that defined UDF and View model.
      The UDF category name is "simple".
      You will be ablet to try those step with the project.

      Show
      1. Create UDF which defines the category as "simple". 2. Open Transformation Editor for View Model 3. Select Expression Builder 4. choose Function and Category "simple" 5. IllegalArgumentException occur on Error Log pane. I attached a reproducer.zip. It includes the project that defined UDF and View model. The UDF category name is "simple". You will be ablet to try those step with the project.
    • Workaround Exists
    • Hide

      call UDF manually in transformation editor.

      Show
      call UDF manually in transformation editor.

      UDF functions can not be chosen from Expression Builder.
      After select the UDF's category, IllegalArgumentException occurred.
      And the UDF functions are not shown as the pull down list of Function.

      - Unhandled event loop exception
      java.lang.IllegalArgumentException: Expected argument to be non-null but got null
      	at org.teiid.core.designer.util.CoreArgCheck.isNotNull(CoreArgCheck.java:142)
      	at org.teiid.core.designer.util.CoreArgCheck.isNotNull(CoreArgCheck.java:128)
      	at org.teiid.query.ui.builder.model.FunctionEditorModel.setFunctionName(FunctionEditorModel.java:338)
      	at org.teiid.designer.transformation.ui.builder.expression.FunctionEditor.handleFunctionSelected(FunctionEditor.java:267)
      	at org.teiid.designer.transformation.ui.builder.expression.FunctionEditor$2.widgetSelected(FunctionEditor.java:144)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5227)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4561)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4151)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
      	at org.eclipse.jface.window.Window.open(Window.java:794)
      	at org.teiid.designer.transformation.ui.editors.sqleditor.SqlEditorPanel.showExpressionBuilder(SqlEditorPanel.java:1205)
      	at org.teiid.designer.transformation.ui.editors.sqleditor.SqlEditorPanelWrapper.showExpressionBuilder(SqlEditorPanelWrapper.java:123)
      	at org.teiid.designer.transformation.ui.editors.sqleditor.actions.LaunchExpressionBuilder.doRun(LaunchExpressionBuilder.java:50)
      	at org.teiid.designer.ui.common.actions.AbstractAction$1.run(AbstractAction.java:544)
      	at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4536)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4154)
      	at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)
      	at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)
      	at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)
      	at org.teiid.designer.ui.common.actions.AbstractAction.run(AbstractAction.java:547)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
      	at org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:436)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5227)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4561)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4151)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      

              blafond Barry LaFond
              rhn-support-hdaicho Hiroki Daicho (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: