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

NPE after create JDG7 model without JDG7 (infinispan-hotrod) MXD

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 11.1.1
    • Modeling
    • None
    • Hide
      1. Start JBDS with a new workspace
      2. Import server which doesn't contain JDG7 translator ( infinispan-hotrod )
      3. Check that infinispan-hotrod namespace is not in the Model Extension Registry
      4. Right-click on any table in the view model and choose Materialize
      5. Choose JDG7, fill in any information about primary and staging cache name
      6. Click Finish
      7. Nothing happens and in the error log is the exception
      Show
      Start JBDS with a new workspace Import server which doesn't contain JDG7 translator ( infinispan-hotrod ) Check that infinispan-hotrod namespace is not in the Model Extension Registry Right-click on any table in the view model and choose Materialize Choose JDG7, fill in any information about primary and staging cache name Click Finish Nothing happens and in the error log is the exception

    Description

      When I have a server which doesn't have the translator for JDG7, I am not able to generate JDG7 models because MXD for JDG7 (infinispan-hotrod) is not in the Model Extension Registry in the Teiid Designer. When I fill in all information in the materialization wizard and click finish (screenshot), in the error log is:

      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)
      

      Also, I suppose to add some error or warning to the Materialized wizard that "MXD is not in the Teiid Designer because the server doesn't contain JDG7 translator or the server have never been running and MXD cannot be imported". Also, I mentioned this behavior and error dialog in the second part of my description here TEIIDDES-3174

      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: