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

Teiid Connection Importer: IllegalArgumentException after obtaining the DDL from server

    XMLWordPrintable

Details

    Description

      Import using Teiid Connection sometimes fails with the following error message after getting the DDL from server and clicking Next:

       Error encountered while importing the DDL: "java.lang.IllegalArgumentException: Expected argument to be non-null but got null"
      

      Stacktrace:

      !ENTRY org.teiid.designer.ddl.importer.ui 4 0 2015-03-23 14:58:16.966
      !MESSAGE Error encountered while importing the DDL: "java.lang.IllegalArgumentException: Expected argument to be non-null but got null"
      !STACK 0
      java.lang.Exception: java.lang.IllegalArgumentException: Expected argument to be non-null but got null
              at org.teiid.core.designer.util.OperationUtil.perform(OperationUtil.java:54)
              at org.teiid.designer.ddl.importer.DdlImporter.importDdl(DdlImporter.java:101)
              at org.teiid.designer.ddl.importer.ui.DdlImportDifferencesPage$1.run(DdlImportDifferencesPage.java:225)
              at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
      Caused by: 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.designer.core.ModelEditorImpl.getModelName(ModelEditorImpl.java:4971)
              at org.teiid.designer.relational.model.RelationalReferenceFactory.createRelationalModel(RelationalReferenceFactory.java:65)
              at org.teiid.designer.ddl.importer.DdlImporter.importDdl(DdlImporter.java:188)
              at org.teiid.designer.ddl.importer.DdlImporter$1.tryToDo(DdlImporter.java:117)
              at org.teiid.core.designer.util.OperationUtil.perform(OperationUtil.java:41)
              ... 3 more
      

      (02:50:28 PM) blafond: I'll need a stack trace to figure it out
      (02:50:35 PM) blafond: check Designer's Error Log view?
      (02:50:39 PM) asmigala: the weird thing is, it sometimes works for the same data source
      (02:50:42 PM) asmigala: ok, hang on a sec
      (02:50:53 PM) asmigala: so this is not something we know about?
      (02:51:34 PM) blafond: not as a reproduceable bug.

      ...

      (02:59:47 PM) asmigala: also, when I copy the DDL, save it to a file and then use the DDL importer, it works correctlu
      03:05:15 PM) blafond: I think it's a threading/timing issue. The RelationalReferenceFactory is assuming that the new EMF Model already created. Looks like it's still in the process "sometimes" and ends up failing.
      (03:05:45 PM) blafond: I noticed that we don't save the model right after we create it. Maybe that could fix the issue.
      (03:06:05 PM) blafond: Please log a JIRA/BZ and include all of this conversation
      (03:06:59 PM) asmigala: yes, that makes sense, I generally don't see it when stepping through the test

      Attachments

        Issue Links

          Activity

            People

              blafond Barry LaFond
              asmigala@redhat.com Andrej Smigala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: