Eric Francis created NETBEANS-3318:
--------------------------------------

             Summary: NoClassDefFoundError: java/sql/Date when trying to 
profile sql queries
                 Key: NETBEANS-3318
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3318
             Project: NetBeans
          Issue Type: Bug
          Components: profiler - Engine
    Affects Versions: 11.1
            Reporter: Eric Francis


I'm trying to profile an application running in Tomcat 7.0.91 using Java 11 
(11.0.4).  When I attach the profiler to the application and certain sql 
queries are run I end up with a stacktrace like the following:

 
{code}
java.lang.NoClassDefFoundError: java/sql/Date
         
org.netbeans.lib.profiler.server.ProfilerRuntimeCPU.converToString(ProfilerRuntimeCPU.java:768)
         
org.netbeans.lib.profiler.server.ProfilerRuntimeCPU.addParameter(ProfilerRuntimeCPU.java:663)
         
org.apache.commons.dbcp2.DelegatingPreparedStatement.setDate(DelegatingPreparedStatement.java:378)
         io.tekniq.jdbc.TqConnectionExtKt.applyParams(TqConnectionExt.kt:80)
... <snip additional lines of application code>{code}
 

A similar issue was reported in VisualVM: 
https://github.com/oracle/visualvm/issues/123.  They fixed it for the GraalVM 
profiler, but it looks like the same fix needs to be made in Netbeans code: 
https://github.com/apache/netbeans/blob/master/profiler/lib.profiler/src/org/netbeans/lib/profiler/server/ProfilerRuntimeCPU.java#L761

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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

Reply via email to