I made a new Pull Request (see https://github.com/hibernate/hibernate-orm/pull/2514 for details) to fix JMX access issues I encountered since 5.3.0.CR2 because of changes done here. This pull request fixes 2 bugs:
- the new CacheableDataStatistics doesn't extend Serializable => an unmarshalling exception is raised because the EntityStatistics interface is not fully serializable (which implies a cryptic "No constructor found" error).
- RMI access of Collection/Entity/NatutralId/QueryStatistics instances was broken because their implementation contained a reference to org.jboss.logging.Logger. => I had to remove trace logs from QueryStatisticsImpl
I also set some magical "serialVerisonUID" number in order to allow RMI access even for Hibernate versions prior to my patch: I took the number generated by the remote invocation classVersionError exception displayed by JConsole to do this trick This means that any "hibernate-core_<version>.jar" built with those fixes allow JConsole to connect to any JMX server backed by any version of Hibernate since 5.3.0.CR2 ! I am new to contributing to Hibernate, so feel free to ask me if anyhting is not clear enough for production-readyness. |