Details
-
Bug
-
Resolution: Won't Do
-
Critical
-
None
-
11.1.2
-
None
-
None
-
- Open clear workspace
- Create some view model
- Choose on view table Modeling > Materialized
- Fill in any information and choose JDG 7.1
- Click on Finish
-
Description
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
./jboss-cli.sh --connect --file=../docs/teiid/datasources/infinispan-hotrod-7.1/add-infinispan-hotrod-translator.cli
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
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:
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)