필터 지우기
필터 지우기

Unable to resolve the name 'com.mathw​orks.messa​ging.utili​ties.Crede​ntials'.

조회 수: 2 (최근 30일)
Mohammad Koosha
Mohammad Koosha 2023년 5월 8일
답변: SANKALP DEV 2023년 9월 12일
Hi,
I am trying to use rabbitmq in matlab based on the library below.
To install the library I runned the "startup" file in the MATLAB folder and everything was fine.
But when using it in R2022a matlab according to the tutorial below:
https://mathworks-ref-arch.github.io/matlab-rabbitmq/MATLABInterface.html
especifically the code is:
"
c = rabbitmq.ConnectorProperties;
"
I encounter the following error:
******
Unable to resolve the name 'com.mathworks.messaging.utilities.Credentials'.
Error in rabbitmq.Credentials (line 27)
obj.Handle = com.mathworks.messaging.utilities.Credentials();
Error in rabbitmq.ConnectorProperties (line 58)
options.credentials = rabbitmq.Credentials
Error in Test3 (line 5)
c = rabbitmq.ConnectorProperties;
******
Can anyone please tell what the problem is and how can it get resolved?
Thanks

답변 (1개)

SANKALP DEV
SANKALP DEV 2023년 9월 12일
Hi Mohammad,
I understand that you've encountered an error while trying to install 'RabbitMQ,' specifically the error message regarding the inability to resolve the name 'com.mathworks.messaging.utilities.Credentials' in MATLAB. This error seems to stem from an issue related to the 'rabbitmq.Credentials' class within MATLAB, especially when attempting to create an instance of this class.
It's worth noting that the 'RabbitMQ' MATLAB toolbox is designed to work smoothly with MATLAB versions R2019a and newer. Therefore, it's possible that the error you're facing is related to a path problem.
To resolve this issue, please ensure that the RabbitMQ Toolbox is correctly added to your MATLAB path. You can utilize the 'addpath' function to include the toolbox in your path if it hasn't been added automatically. Alternatively, you can access the 'Set Path' option in the toolstrip by navigating to MATLAB > HOME > Set Path and specify the correct path where the toolbox is installed.
If the above steps do not resolve the issue, you can opt to install the toolbox directly from MATLAB's 'Add-Ons' section and subsequently set the appropriate path as mentioned earlier (MATLAB > HOME > Add-Ons).
I hope these suggestions prove helpful in resolving your 'RabbitMQ' installation error.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by