Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5047

teiid-jboss-admin throw exception in get vdb

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Major Major
    • None
    • 8.12.12.6_3
    • AdminApi
    • None

      The return result have a type attribute

      [standalone@localhost:9999 /] /subsystem=teiid:get-vdb(vdb-name=A1_DG_EPDM,vdb-version=1)
      {
          "outcome" => "success",
          "result" => {
              "type" => OBJECT,
              "vdb-name" => "A1_DG_EPDM",
              "connection-type" => "BY_VERSION",
              "status" => "LOADING",
              "vdb-version" => 1,
              "vdb-description" => "A1 EPDM 大港(10.76.32.26)",
      

      but the VDBMetadataMapper don't consider this, which cause the following exception throw

      Exception in thread "main" java.lang.IllegalArgumentException
      	at org.jboss.dmr.ModelValue.getChild(ModelValue.java:112)
      	at org.jboss.dmr.PropertyModelValue.getChild(PropertyModelValue.java:117)
      	at org.jboss.dmr.ModelNode.get(ModelNode.java:856)
      	at org.teiid.adminapi.jboss.VDBMetadataMapper.unwrap(VDBMetadataMapper.java:169)
      	at org.teiid.adminapi.jboss.VDBMetadataMapper.unwrap(VDBMetadataMapper.java:61)
      	at com.cnpc.datavirt.admin.impl.AdminImpl.getList(AdminImpl.java:172)
      	at com.cnpc.datavirt.admin.impl.AdminImpl.getDomainAwareList(AdminImpl.java:157)
      	at com.cnpc.datavirt.admin.impl.AdminImpl.getVDB(AdminImpl.java:112)
      	at com.cnpc.datavirt.admin.sample.Sample.main(Sample.java:13)
      

              rhn-engineering-shawkins Steven Hawkins
              kylinsoong.1214@gmail.com Kylin Soong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: