chia7712 commented on pull request #9182:
URL: https://github.com/apache/kafka/pull/9182#issuecomment-674370125


   > Can you please include more detail on how it fails currently? I assume 
it's some kind of deserialization error?
   
   You are right. The root cause is deserialization error. Currently, the type 
of collection used by ```Log4jController#getLoggers ``` (a MBean object) is 
scala collection (```toList.asJava```) rather than java collection. Hence, the 
profiler has to load scala library (scala-library.jar) to deserialize the 
binary to origin scala collection. For example, if I don't add scala library to 
JMC's classpath, JMC fails to deserialize the attribute of 
```Log4jController``` and it shows "N/A" instead.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to