[
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461497#comment-16461497
]
Laszlo Kishalmi commented on NETBEANS-620:
------------------------------------------
The IDE log says when profiling a Java 10 APP:
{{*** Profiler warning (Wed May 02 11:33:10 PDT 2018): class
java/sql/Statement, ldr = 0 not found anywhere}}
{{*** Profiler warning (Wed May 02 11:33:10 PDT 2018): class
java/sql/Connection, ldr = 0 not found anywhere}}
This could be that Java 9+ might need the module name as well, or simply the
new security mechanisms does not allow this query to be performed.
{{The Java 10 application with profiler says on boot (sterting with
--illegal-access=warn):}}{{WARNING: Illegal reflective access by
org.netbeans.lib.profiler.server.ClassLoaderManager to method
java.lang.ClassLoader.findLoadedClass(java.lang.String)}}
{{WARNING: Illegal reflective access by
org.netbeans.lib.profiler.server.ClassLoaderManager to method
java.lang.ClassLoader.findBootstrapClass(java.lang.String)}}
I hope this helps.
> 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
> Fix For: 9.0
>
>
> 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