Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-402

ClassCastException at org.netbeans.lib.profiler.server.ProfilerRuntimeCPU.getParSize()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • profiler - Base

    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

          Activity

            People

              cowwoc Gili
              cowwoc Gili
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m