Matej Kralik created TEIIDDES-3192:
--------------------------------------
Summary: NPE when infinispan-hotrod is not set in the server
Key: TEIIDDES-3192
URL:
https://issues.jboss.org/browse/TEIIDDES-3192
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 11.1.2
Reporter: Matej Kralik
Priority: Critical
Attachments: creationJDG7model.mkv
When I don't have any server in the Teiid Designer or I have imported JDV server
without JDG7 translator (infinispan-hotrod), NPE is thrown after creating JDG7
materialization wizard and JDG7 Source model is not generated. After when I add the
translator to the server
{code:java}
./jboss-cli.sh --connect
--file=../docs/teiid/datasources/infinispan-hotrod-7.1/add-infinispan-hotrod-translator.cli
{code}
and refresh server in the Teiid Designer, Teiid Designer import MXD for JDG and creation
JDG7 source model works. I mentioned this behavior in the
[
TEIIDDES-3174|https://issues.jboss.org/browse/TEIIDDES-3174]
I have also uploaded video to the attachment. (creationJDG7model.mkv)
I understand why this happened. Teiid Designer doesn't have any information about JDG7
MXD. So in my point of view, Teiid Designer *should not allow the user to finish JDG7
creation wizard* and shows the user error or warning that JGD7(infinispan-hotrod) MXD is
no in the Teiid Designer or server and the user has to add (infinispan-hotrod) translator
to the server first.
NPE:
{code:java}
java.lang.NullPointerException
at
org.teiid.designer.transformation.materialization.MaterializedModelManager.setInfinispanConnectionProperties(MaterializedModelManager.java:643)
at
org.teiid.designer.transformation.materialization.MaterializedModelManager.execute(MaterializedModelManager.java:180)
at
org.teiid.designer.transformation.ui.wizards.jdg.MaterializationWizard.execute(MaterializationWizard.java:199)
at
org.teiid.designer.transformation.ui.wizards.jdg.MaterializationWizard.access$1(MaterializationWizard.java:193)
at
org.teiid.designer.transformation.ui.wizards.jdg.MaterializationWizard$2.run(MaterializationWizard.java:165)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)