You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
Caused by: java.lang.NullPointerException
at org.stagemonitor.jdbc.StagemonitorJdbcEventListener$MetaData.access$000(StagemonitorJdbcEventListener.java:117)
at org.stagemonitor.jdbc.StagemonitorJdbcEventListener.onAfterAnyExecute(StagemonitorJdbcEventListener.java:141)
Add stagemonitor.profiler.jdbc.collectSql=false to the configuration
The StagemonitorJdbcEventListener#onAfterAnyExecute method attempts to access information from dataSourceUrlMap, but that map is only populated when stagemonitor is active and the CorePlugin has been initialized (see StagemonitorJdbcEventListener#onConnectionWrapped).
Stagemonitor being inactive should supersede the stagemonitor.profiler.jdbc.collectSql setting to ensure that StagemonitorJdbcEventListener#onAfterAnyExecute only executes when it has all the necessary data to do so. If stagemonitor is disabled, it should not be necessary to disable individual plugins.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Stack-trace of the exception:
Caused by: java.lang.NullPointerException
at org.stagemonitor.jdbc.StagemonitorJdbcEventListener$MetaData.access$000(StagemonitorJdbcEventListener.java:117)
at org.stagemonitor.jdbc.StagemonitorJdbcEventListener.onAfterAnyExecute(StagemonitorJdbcEventListener.java:141)
Configuration that is causing the issue:
stagemonitor.applicationName=OurApplicationName
stagemonitor.active=false
stagemonitor.web.widget.enabled=false
stagemonitor.profiler.active=false
stagemonitor.instanceName=OurInstanceName
stagemonitor.instrument.include=com.packageone, com.packagetwo
Current workaround:
Add stagemonitor.profiler.jdbc.collectSql=false to the configuration
The StagemonitorJdbcEventListener#onAfterAnyExecute method attempts to access information from dataSourceUrlMap, but that map is only populated when stagemonitor is active and the CorePlugin has been initialized (see StagemonitorJdbcEventListener#onConnectionWrapped).
Stagemonitor being inactive should supersede the stagemonitor.profiler.jdbc.collectSql setting to ensure that StagemonitorJdbcEventListener#onAfterAnyExecute only executes when it has all the necessary data to do so. If stagemonitor is disabled, it should not be necessary to disable individual plugins.
The text was updated successfully, but these errors were encountered: