Skip to content

Aliases should handle TypeError in conver_to_type #123

@CarolynRountree

Description

@CarolynRountree

A Python TypeError was thrown when an Alias with an incorrect type had its value converted. This should be handled so it doesn't cause the tool to stop.

The error was thrown when discover domain processed (online)
/JTA/DeterminerCandidateResourceInfoList
Problem invoking WLST - Traceback (innermost last):
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\discover.py", line 452, in ?
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\discover.py", line 429, in main
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\discover.py", line 175, in __discover
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\tool\discover\topology_discoverer.py", line 59, in discover
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\tool\discover\topology_discoverer.py", line 260, in discover_domain_parameters
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\tool\discover\topology_discoverer.py", line 307, in _get_jta
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\tool\discover\discoverer.py", line 87, in _populate_model_parameters
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\tool\util\alias_helper.py", line 34, in get_model_attribute_name_and_value
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\aliases\aliases.py", line 817, in get_model_attribute_name_and_value
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\aliases\alias_utils.py", line 662, in convert_to_type
File "C:\Users\crountre\temp\weblogic-deploy\lib\python\wlsdeploy\aliases\alias_utils.py", line 959, in _create_string_array
TypeError: can't convert javax.management.openmbean.CompositeDataSupport(compositeType=javax.management.openmbean.CompositeType(name=weblogic.management.configuration.DeterminerCandidateResourceInfoVBean,items=((itemName=Determiner,itemType=javax.management.openmbean.SimpleType(name=java.lang.Boolean)),(itemName=DisplayName,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=InternalName,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=ResourceType,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)))),contents={Determiner=false, DisplayName=WebLogic JMS, InternalName=WebLogic_JMS, ResourceType=jms}) to java.lang.String

discoverDomain.log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions