[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-05-08 Thread Sven Reimers (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16467347#comment-16467347
 ] 

Sven Reimers commented on NETBEANS-620:
---

Is the PR merged?

> 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
>Assignee: Sven Reimers
>Priority: Blocker
>  Labels: BLOCKER, pull-request-available
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-05-08 Thread Geertjan Wielenga (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16467249#comment-16467249
 ] 

Geertjan Wielenga commented on NETBEANS-620:


Can this issue be closed?

> 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
>Assignee: Sven Reimers
>Priority: Blocker
>  Labels: BLOCKER, pull-request-available
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-05-04 Thread Sven Reimers (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16464326#comment-16464326
 ] 

Sven Reimers commented on NETBEANS-620:
---

Further details. It seems that the problem is that in JdbcGraphBuilder line 417
{code:java}
ClassRepository.lookupClass(STATEMENT_INTERFACE, 0){code}
is called but the original detected super interface for the loaded subclass was 
in
{code:java}
ClassRepository.lookupClass(STATEMENT_INTERFACE, 2){code}
So it seems that with 10 (or 9 did not try this out) there is not only 
classLoaderId 0 but in my sample at least up to id 2 ..

Anyone able to explain? Will keep digging.

> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-05-04 Thread Sven Reimers (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-05-02 Thread Laszlo Kishalmi (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-05-02 Thread Glenn Holmer (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16460943#comment-16460943
 ] 

Glenn Holmer commented on NETBEANS-620:
---

BLOCKER status should be restored unless you can prove that the WeakPairMap is 
the cause.

> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-620) profiling SQL queries doesn't work under JDK 10

2018-04-08 Thread Glenn Holmer (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16429781#comment-16429781
 ] 

Glenn Holmer commented on NETBEANS-620:
---

The following appears in the output window:
Illegal reflective access by
org.netbeans.lib.profiler.server.ClassLoaderManager to method
java.lang.ClassLoader.findLoadedClass(java.lang.String)

> 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: Major
>
> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists