Skip to content

amqx NullPointerException: Cannot invoke "java.lang.Throwable.toString()" because the return value of "java.lang.Throwable.getCause()" is null #558

@jiridanek

Description

@jiridanek

} catch (IllegalAccessException | IllegalArgumentException e) {
throw new DestinationException(
String.format("Unable to access '%s' of '%s' object!", object.getClass(), method.getName()));
} catch (Throwable e) {
logger.debug(e.getCause().toString());
}
return methodPropertyMap;
}

[13:12:00] [FAIL] dtestlib.Test :: [root@10.0.202.30]$ /opt/miniconda3/envs/tn/bin/python3 -u /var/dtests/node_data/clients/cli_wrapper.py  -DDTESTS_PID=5477 -DC_KILLTIME=60 -DC_HANG_ANALYSIS_ENA=0 -DC_CRASH_ANALYSIS_ENA=0 -DC_CRASH_FILE_DELETE_ENA=0  java  -jar /var/dtests/node_data/clients/amqx.jar  queue --host 10.0.202.30:1099 --username admin --password admin --action properties --name 'test_receive_ttl_message_in_half_life' # ecode:254 (exp. True), dur.:1.07 err_cnt:4
[13:12:00] [INFO] dtestlib.Test :: stdout:
  Unable to properties queue: Cannot invoke "java.lang.Throwable.toString()" because the return value of "java.lang.Throwable.getCause()" is null
  java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.toString()" because the return value of "java.lang.Throwable.getCause()" is null
  	at com.redhat.amqx.management.ObjectReader.extractMethodProperty(ObjectReader.java:103)
  	at com.redhat.amqx.management.ObjectReader.getObjectProperties(ObjectReader.java:165)
  	at com.redhat.amqx.management.artemis.AbstractArtemisManager.getDestinationProperties(AbstractArtemisManager.java:180)
  	at com.redhat.amqx.management.artemis.DestinationArtemisManager.getDestinationProperties(DestinationArtemisManager.java:138)
  	at com.redhat.amqx.main.actions.QueueAction.run(QueueAction.java:107)
  	at com.redhat.amqx.main.Main.main(Main.java:52)

Some throwables don't have a cause.

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