[ 
https://issues.apache.org/jira/browse/ARTEMIS-3858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553363#comment-17553363
 ] 

Erwin Dondorp edited comment on ARTEMIS-3858 at 6/13/22 1:49 AM:
-----------------------------------------------------------------

observation #1:
most likely, the error handler is correctly called, but there is an error in 
that handler itself.
It should have used {{$scope.$ctrl.workspace}} (instead of {{$scope.workspace}})

observation #2:
the error handler is called because api call {{listProducers(java.lang.String, 
int, int)}} actually had a NPE
idem for {{listConsumers(java.lang.String, int, int)}}
the parameters seem harmless, but it seems that that actual value to compare 
with for the session is missing.
{{\{"field":"session","operation":"EQUALS","sortOrder":"asc","sortColumn":"id"},
 1, 10}}


was (Author: erwindon):
observation #1:
most likely, the error handler is correctly called, but there is an error in 
that handler itself.
It should have used {{$scope.$ctrl.workspace}} (instead of {{$scope.workspace}})

observation #2:
the error handler is called because api call {{listProducers(java.lang.String, 
int, int)}} actually had a NPE
idem for {{listConsumers(java.lang.String, int, int)}}
the parameters seem harmless, but it seems that that actual value to compare 
with for the session is missing.
{"field":"session","operation":"EQUALS","sortOrder":"asc","sortColumn":"id"}, 
1, 10

> navigating from session to related consumers/producers gives NPE
> ----------------------------------------------------------------
>
>                 Key: ARTEMIS-3858
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3858
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: 2.22.0
>            Reporter: Erwin Dondorp
>            Priority: Minor
>
> on an Artemis cluster, go to page Sessions.
> then click on the value in either columns "Consumer Count" or "Producer 
> Count".
> see the resulting error message "could not invoke list 
> sessionsjava.lang.NullPointerException : no mapping for value". the resulting 
> consumer/producer table is always empty.
> the browser console shows the error message "Uncaught TypeError: 
> $scope.workspace is undefined"
> I should be able to create a PR for this (but feel free to beat me on that)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to