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

NPE when attempting to finish REST import

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • Komodo
    • 9.0
    • Web Services Support
    • None
    • Hide

      1) Import -> Web Service Source >> Source and View Model (REST)
      2) New Connection profile using "Web Services Data Source (REST)" profile type
      3) Name profile "Sample Posts REST"
      4) Use Connection URL value "http://jsonplaceholder.typicode.com/users"
      5) Response Type set to "JSON"
      6) Add parameter with:
      a) Name set to "id"
      b) Type set to "URI"
      c) Default Value set to "1"
      7) Source Model Definition "Location" field set to "projectname/sources"
      8) Source Model Definition "Name" field set to "USERS_SM"
      9) View Model Definition "Location" field set to "projectname/views"
      10) View Model Definition "Name" field set to "ViewModel.xml"
      11) View Model Definition "New View Procedure Name" set to "USERS"
      12) Add response elements: id, phone, username, website, address/geo/lng, address/geo/lat, address/zipcode, address/street, address/suite, address/city, email, company/name
      13) Change name of lng and lat to "geo_long" and "geo_lat", respectively
      14) Change "Date Type" value for id to "integer"
      15) Change "Data Type" value for geo_long and geo_lat to "double"
      16) Rename company/name to "company_name"
      17) Move name up to 2nd column (2nd row from top).
      18) Click Finish
      19) Observe "Error creating view model ViewModel.xmi" with error text "Failed to execute runnable (org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException))"

      Show
      1) Import -> Web Service Source >> Source and View Model (REST) 2) New Connection profile using "Web Services Data Source (REST)" profile type 3) Name profile "Sample Posts REST" 4) Use Connection URL value "http://jsonplaceholder.typicode.com/users" 5) Response Type set to "JSON" 6) Add parameter with: a) Name set to "id" b) Type set to "URI" c) Default Value set to "1" 7) Source Model Definition "Location" field set to "projectname/sources" 8) Source Model Definition "Name" field set to "USERS_SM" 9) View Model Definition "Location" field set to "projectname/views" 10) View Model Definition "Name" field set to "ViewModel.xml" 11) View Model Definition "New View Procedure Name" set to "USERS" 12) Add response elements: id, phone, username, website, address/geo/lng, address/geo/lat, address/zipcode, address/street, address/suite, address/city, email, company/name 13) Change name of lng and lat to "geo_long" and "geo_lat", respectively 14) Change "Date Type" value for id to "integer" 15) Change "Data Type" value for geo_long and geo_lat to "double" 16) Rename company/name to "company_name" 17) Move name up to 2nd column (2nd row from top). 18) Click Finish 19) Observe "Error creating view model ViewModel.xmi" with error text "Failed to execute runnable (org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException))"

      Popup dialog when finishing REST import wizard with content:
      "Error creating view model ViewModel.xmi" with error text "Failed to execute runnable (org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException))"

              rhn-engineering-tejones Edwin Jones
              rhn-support-mshirley Marc Shirley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: