[teiid-issues] [JBoss JIRA] (TEIID-5047) teiid-jboss-admin throw exception in get vdb

Kylin Soong (JIRA) issues at jboss.org
Fri Sep 1 01:23:00 EDT 2017


Kylin Soong created TEIID-5047:
----------------------------------

             Summary: teiid-jboss-admin throw exception in get vdb
                 Key: TEIID-5047
                 URL: https://issues.jboss.org/browse/TEIID-5047
             Project: Teiid
          Issue Type: Bug
          Components: AdminApi
    Affects Versions: 8.12.12.6_3
         Environment: * 8.12.5.redhat-8
            Reporter: Kylin Soong
            Assignee: Steven Hawkins


The return result have a type attribute
{code}
[standalone at 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)",
{code}

but the VDBMetadataMapper don't consider this, which cause the following exception throw
{code}
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)
{code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the teiid-issues mailing list