Version: 12.0.0-dev-126
Build #: 28274
Build Date: 2012-Jul-23 01:28:24 PM
1. Open 2 query windows to a Server and open Help--> View Log --> Console Tab
2. Execute separate queries in both the query windows like
In window A
-----------
select top 50 * from orders
In window B
-----------
select top 100 * from orders
3. Hit Ctrl+Shift+K to open Results Compare or take it from Tools --> Compare Tools --> Results Compare
The results are displayed, but you get an exception in the Console as below
java.lang.ClassCastException: \\...\\ .\\हिñçêČάй語简�?한\\.xâ¡’êƒê‡‚⢛ if cannot be cast to java.lang.Number
at com.jidesoft.treemap.AbstractTreeMapModel.doColors(Unknown Source)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(Unknown Source)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
|
92 KB
java.lang.ClassCastException: com.aquafold.datastudio.tools.diff.ResultsDiffValue cannot be cast to java.lang.Number
at com.jidesoft.treemap.AbstractTreeMapModel.doColors(AbstractTreeMapModel.java:995)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(AbstractTreeMapModel.java:1163)
Here is the stack trace:
java.lang.ClassCastException: com.aquafold.datastudio.tools.diff.ResultsDiffValue cannot be cast to java.lang.Number
at com.jidesoft.treemap.AbstractTreeMapModel.doColors(AbstractTreeMapModel.java:995)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(AbstractTreeMapModel.java:1163)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(AbstractTreeMapModel.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
This problem has something to do with the Treemap object created in the ResultsetTablePaneView. We had treemap feature implemented in Grid and Pivot Grid, but disabled it in 12.0; where 'disabled' only disabled the treemap button but the treemap object is still created. When a Result Compare is performed, ResultsDiffPanel will create a ResultsetTablePaneView object as well (i.e. a treemap object is created). The treemap object will spawn a thread which is the root cause of the problem.
For the time being, we worked around this problem by comment out the creation of the treemap object. We need to revisit this issue in the later release after treemap feature is enabled (also mentioned this in the source of ResultsetTablePaneView). It seems that the ResultsDiffPanel should not create a treemap object via the ResultsetTableView/ResultsetTablePaneView.
Here is the stack trace:
java.lang.ClassCastException: com.aquafold.datastudio.tools.diff.ResultsDiffValue cannot be cast to java.lang.Number
at com.jidesoft.treemap.AbstractTreeMapModel.doColors(AbstractTreeMapModel.java:995)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(AbstractTreeMapModel.java:1163)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(AbstractTreeMapModel.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
This problem has something to do with the Treemap object created in the ResultsetTablePaneView. We had treemap feature implemented in Grid and Pivot Grid, but disabled it in 12.0; where 'disabled' only disabled the treemap button but the treemap object is still created. When a Result Compare is performed, ResultsDiffPanel will create a ResultsetTablePaneView object as well (i.e. a treemap object is created). The treemap object will spawn a thread which is the root cause of the problem.
For the time being, we worked around this problem by comment out the creation of the treemap object. We need to revisit this issue in the later release after treemap feature is enabled (also mentioned this in the source of ResultsetTablePaneView). It seems that the ResultsDiffPanel should not create a treemap object via the ResultsetTableView/ResultsetTablePaneView.
Issue #7273 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build trunk/28347 |
No time estimate |
1 issue link |
relates to #8387
Issue #8387Query Panel: Pivot Grid - memory leak |
java.lang.ClassCastException: com.aquafold.datastudio.tools.diff.ResultsDiffValue cannot be cast to java.lang.Number
at com.jidesoft.treemap.AbstractTreeMapModel.doColors(AbstractTreeMapModel.java:995)
at com.jidesoft.treemap.AbstractTreeMapModel$Worker.call(AbstractTreeMapModel.java:1163)