[
https://issues.jboss.org/browse/TEIID-5047?page=com.atlassian.jira.plugin...
]
Steven Hawkins commented on TEIID-5047:
---------------------------------------
No unit tests work fine with that description. It seems to be an issue at the dmr level.
The ModelNode.get should not be against a PropertyModelValue - as that is just a single
property, not something with children like ObjectModelValue. Getting the properties is
just the first logic to try to get at a child, so it's failing there.
Given that it is domain mode, it could be related to TEIID-4551 TEIID-4546 TEIID-4547
which cleaned up handling of domain mode.
Could you try this with logic based upon the 9.1.2 admin?
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}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)