Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-205-on-20180202)
Updates: Updates available
Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
Runtime: Java(TM) SE Runtime Environment 9.0.4+11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\devProduct Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-205-on-20180202) Updates: Updates available Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11 Runtime: Java(TM) SE Runtime Environment 9.0.4+11 System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
Description
When profiling SQL queries I get the following exception consistently:
java.lang.ClassCastException: java.lang.Short cannot be cast to java.lang.String at org.netbeans.lib.profiler.server.ProfilerRuntimeCPU.getParSize(ProfilerRuntimeCPU.java:684) at org.netbeans.lib.profiler.server.ProfilerRuntimeCPU.writeParametersEvent(ProfilerRuntimeCPU.java:459) at org.netbeans.lib.profiler.server.ProfilerRuntimeCPUFullInstr.markerMethodEntry(ProfilerRuntimeCPUFullInstr.java:92) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.setShort(HikariProxyPreparedStatement.java) at com.querydsl.sql.types.ShortType.setValue(ShortType.java:50) at com.querydsl.sql.types.ShortType.setValue(ShortType.java:27) at com.querydsl.sql.Configuration.set(Configuration.java:239) at com.querydsl.sql.AbstractSQLQuery.set(AbstractSQLQuery.java:210) at com.querydsl.sql.AbstractSQLQuery.setParameters(AbstractSQLQuery.java:584) at com.querydsl.sql.AbstractSQLQuery.iterateSingle(AbstractSQLQuery.java:365) at com.querydsl.sql.AbstractSQLQuery.iterate(AbstractSQLQuery.java:342) at com.querydsl.sql.ProjectableSQLQuery.fetchOne(ProjectableSQLQuery.java:397) at com.holdmyspot.pyramid.database.row.CurrencyPairRow.getByCurrencies(CurrencyPairRow.java:132) at com.holdmyspot.pyramid.database.row.CurrencyPairRow.insertIfMissing(CurrencyPairRow.java:191) at com.holdmyspot.pyramid.server.Main$SaveToDatabase.getCurrencyPairRow(Main.java:242) at com.holdmyspot.pyramid.server.Main$SaveToDatabase.lambda$onOrder$2(Main.java:154) at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
This is thrown inside the application being profiled as opposed to showing up in an IDE pop-up.
Attachments
Issue Links
- links to