JavaMelody : datasource / SQL not captured anymore

30 views
Skip to first unread message

Desguin Loïc

unread,
Mar 4, 2024, 6:22:18 AMMar 4
to javamelody
Hello,

Java melody is not capturing anymore the SQL traffic : we used it for several years to monitor an production application based on embedded Tomcat without having this kind of problem.

There was no error in the log but after putting Java melody logged in debug I had the following error : 
DEBUG 2024-02-27 11:52:25,861 [main] [][] net.bull.javamelody                                                    [] - rebinding datasource java:comp/env/jdbc/<datasource> failed, skipping it
javax.naming.OperationNotSupportedException: Context is read only
at org.apache.naming.NamingContext.checkWritable(NamingContext.java:1004) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.NamingContext.bind(NamingContext.java:923) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.NamingContext.rebind(NamingContext.java:230) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.NamingContext.rebind(NamingContext.java:246) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.SelectorContext.rebind(SelectorContext.java:237) ~[tomcat-embed-core-9.0.83.jar:9.0.83]

But it's didn't give much detailed on the reason of this error.

Best Regards

Loïc

evernat

unread,
Mar 4, 2024, 6:30:51 AMMar 4
to javamelody
Bonjour Loïc,

It is fixed since javamelody 1.92.0. Please upgrade javamelody.

Latest javamelody release is 1.98.0 for Java EE such as Tomcat 9 and it is 2.1.0 for Jakarta EE such as Tomcat 10.

bye,
Emeric
Reply all
Reply to author
Forward
0 new messages