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

NPE when infinispan-hotrod is not set in the server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 11.1.2
    • None
    • None
      1. Open clear workspace
      2. Create some view model
      3. Choose on view table Modeling > Materialized
      4. Fill in any information and choose JDG 7.1
      5. Click on Finish
    • Hide

      Import infinispan-hotrod 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

      Show
      Import infinispan-hotrod 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

    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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkralik@redhat.com Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: