]
Steven Hawkins commented on TEIID-5047:
---------------------------------------
What specifically is the admin version and what dmr version is it using? It appears that
there is some custom stuff above it.
This does not appear to be happening in the arquillian tests even though type is included
in the attributes.
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@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}