]
Andrej Šmigala closed TEIIDDES-2456.
------------------------------------
Labels: verified_jbdsis-8.0.2.CR3 (was: )
Resolution: Done
Teiid Connection Importer: IllegalArgumentException after obtaining
the DDL from server
---------------------------------------------------------------------------------------
Key: TEIIDDES-2456
URL:
https://issues.jboss.org/browse/TEIIDDES-2456
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export, Teiid Integration
Affects Versions: 9.0.1
Reporter: Andrej Šmigala
Assignee: Barry LaFond
Labels: verified_jbdsis-8.0.2.CR3
Fix For: 9.1, 8.6.2 Beta1, 9.0.2, 8.6.2
Attachments: screenshot.png
Import using Teiid Connection sometimes fails with the following error message after
getting the DDL from server and clicking Next:
{code}
Error encountered while importing the DDL: "java.lang.IllegalArgumentException:
Expected argument to be non-null but got null"
{code}
Stacktrace:
{code}
!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
{code}
(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