You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2020/08/15 08:50:48 UTC

[GitHub] [kafka] chia7712 commented on pull request #9182: KAFKA-10403 Replace scala collection by java collection in generating…

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:
users@infra.apache.org