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

(Flat file importer - fixed length) Defining a column with length of zero generates Unhandled event loop exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.7.1, 7.8
    • 7.6, 7.7
    • Import/Export, Modeling
    • None
    • Hide

      Use File Source (Flat) importer to import the attached fixed-length file.
      Data starts in row 2, clear column data
      With the cursor in the 0th position (start position and length are both zero), click the Add button
      If you're watching the Error view, you will see the exception appear.

      Show
      Use File Source (Flat) importer to import the attached fixed-length file. Data starts in row 2, clear column data With the cursor in the 0th position (start position and length are both zero), click the Add button If you're watching the Error view, you will see the exception appear.

    Description

      If the user accidently attempts to add a column with a length of zero, they generate an exception. A warning that the length must be > zero would be friendlier.

      eclipse.buildId=unknown
      java.version=1.6.0_26
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments: -product com.jboss.jbds.product.product
      Command-line arguments: -os linux -ws gtk -arch x86_64 -product com.jboss.jbds.product.product

      Error
      Fri Apr 13 09:31:08 CDT 2012
      Unhandled event loop exception

      java.lang.IllegalArgumentException: width is zero or less
      at com.metamatrix.core.util.CoreArgCheck.isPositive(CoreArgCheck.java:88)
      at com.metamatrix.modeler.transformation.ui.wizards.file.TeiidColumnInfo.<init>(TeiidColumnInfo.java:112)
      at com.metamatrix.modeler.transformation.ui.wizards.file.TeiidMetadataImportOptionsPage.createColumn(TeiidMetadataImportOptionsPage.java:1177)
      at com.metamatrix.modeler.transformation.ui.wizards.file.TeiidMetadataImportOptionsPage.access$6(TeiidMetadataImportOptionsPage.java:1171)
      at com.metamatrix.modeler.transformation.ui.wizards.file.TeiidMetadataImportOptionsPage$18.widgetSelected(TeiidMetadataImportOptionsPage.java:861)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      at org.eclipse.jface.window.Window.open(Window.java:801)
      at org.eclipse.ui.internal.handlers.WizardHandler$Import.executeHandler(WizardHandler.java:150)
      at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:277)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
      at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
      at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
      at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)
      at org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:97)
      at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

      Attachments

        Activity

          People

            parichar@redhat.com Paul Richardson
            pnittel_jira Paul Nittel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: