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

NPE when infinispan-hotrod is not set in the server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 11.1.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      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
    • Workaround Description:
      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mkralik Matej Kralik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: