[
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16464286#comment-16464286
]
Sven Reimers commented on NETBEANS-620:
---------------------------------------
I did a bit of debugging and it seems the culprit is that the SQLProfiling
tries to filter on methods called on subclasses of java.sql.Statement and
java.sql.Connection (see lines 234 and 253 inĀ
org.netbeans.lib.profiler.results.jdbc.JdbcGraphBuilder). Here the problem
starts. For this detection the ClassRepository is queried to check if theClass
is a subclass of Statement or Connection. But the Repository gives a back an
empty list for clazz.getSubclasses() (line 419 in
org.netbeans.lib.profiler.results.jdbc.JdbcGraphBuilder).
So it seems the initialization has failed somehow (this works on Java 8). Any
pointers appreciated. Digging deeper.
> profiling SQL queries doesn't work under JDK 10
> -----------------------------------------------
>
> Key: NETBEANS-620
> URL: https://issues.apache.org/jira/browse/NETBEANS-620
> Project: NetBeans
> Issue Type: Bug
> Components: profiler - Base
> Affects Versions: 9.0
> Environment: I tested under NetBeans 9.0 build 395 with a project
> that uses a Postgres database.
> Reporter: Glenn Holmer
> Priority: Blocker
> Labels: BLOCKER
>
> Profiler's SQL query profiling feature does not work under JDK 10:
> 1) Create or open a project that uses JDBC queries to a database.
> 2) Click the profiler icon in the toolbar.
> 3) In the Profiler button dropdown, select "SQL Queries".
> 4) Click the gear icon at the right of the profiler toolbar and select "All
> queries".
> 5) Click the "Profile" button to start profiling.
> The program runs, but no SQL query data are returned. This works fine under
> JDK 8.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists