12 Replies Latest reply on Apr 15, 2009 9:34 AM by blafond

    Error in model

      I've installed Teiid Designer and imported a Derby database into a model. I created a VDB and added the model to it. Although the model itself does not indicate any errors, the VDB has the following error associated with the model:

      "Missing model import to resource http://www.metamatrix.com/metamodels/SimpleDatatypes-instance"

      Help?

        • 1. Re: Error in model
          blafond

          Please check in your Designer's Model Explorer to see if the import exists under the model you created on import. If it does not exist, you can right-click the model and select Modeling > Update Imports which should add the import to the model. Then open the VDB in an editor and "Synchronize" the model which replaces the old version and re-indexes the new one.

          Column datatypes like timestamp & bigdecimal are simple datatypes. You can view the datatypes list by opening Metadata > Simple Datatypes Hiearchy view. The simple datatypes are labeled like xs:string, or xs:decimal, or xs:token.

          If this solves your immediate problem, we'll need to log a JIRA bug issue.

          Barry LaFond
          Teiid Designer Project Lead

          • 2. Re: Error in model

            I already did check for the import and run the Update Imports task, with no success.

            I'll check the Metadata view when I can.

            Question: Is that still a valid Namespace URL? I know the MetaMatrix Designer is a stickler for resolving namespaces and it's safe to assume that the Teiid Designer would be too.

            • 3. Re: Error in model
              blafond

              So the following import is NOT in your import declarations?

              http://www.metamatrix.com/metamodels/SimpleDatatypes-instance

              Answer: The namespace URL above is still the valid namespace. The XMI model is actually in org.teiid.designer.sdt plugin as builtInDataTypes.xmi.

              • 4. Re: Error in model

                My apologies for the confusion.

                The import is in the declarations, so that's not the problem.

                I ran the Update Imports task several times. It wasn't successful in solving the problem.

                • 5. Re: Error in model
                  blafond

                  I have your error reproduced as we speak. I can now debug and fix. I'll keep you posted.

                  • 6. Re: Error in model

                    Any news?

                    I'd like to do some more playing with the Designer, but not being able to query the models is kind of a drag. :-)

                    • 7. Re: Error in model
                      blafond

                      JIRA was logged (TEIIDDES-131). Should be fixed by planned 6.0.0 release this Friday (4/3/09).

                      BTW.. you can still query models via the "Preview Data" action. See: http://docs.jboss.org/teiid/designer/6.0/user-guide/intro-chapter.html#intro-testing-your-models

                      • 8. Re: Error in model
                        blafond

                        Error has been located and fixed. Will be included in 6.0.0 release which did not happen Friday but should be available this week.

                        • 9. Re: Error in model

                          Serendipitious. I was just going to post how Friday's update hadn't fixed the problem. ;-)

                          I will await the next release.

                          Question: when it arrives, do I just run the software update again, or do I need to remove the existing Designer plug-in first?

                          If the latter, how do you recommend I do so?

                          • 10. Re: Error in model

                            Has version 6.0 been released yet?

                            • 11. Re: Error in model

                              Any update on the ETA for the fixed release?

                              • 12. Re: Error in model
                                blafond

                                Official 6.0.0 Teiid Designer release has been delayed. There were some integration issues with Eclipse, Designer and Teiid embedded that was preventing updates through VDB's from the Designer. We've been stumbling over lots of class-loading issues but we're progressing. The best estimate is next week (4/20 - 4/24)