hello forum,
win xp pro/sp3; focus version: 1.4.3.2; IBM® Java™ SE Version 6 (from IBM Development Package for Eclipse for 32-bit Windows); Sun JDK 6; ConTest 3.1.0
thanks for making the focus tool available.
i just downloaded focus version 1.4.3.2. i went through the "
Viewing Code Coverage Information" tutorial. from the
FoCuS\samples\codeCovExample\com_ibm_contest\basicBlocks directory, i opened the basic-block coverage model ("
codeCov.model") - which was apparently created from data produced by
ConTest.
then, i executed the "
Reports->Generate->Hierarchy (Drill Down)" menu option; then pressed, "
Create Report"
then focus hurled up the "
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException" stacktrace which i've copied below. unlike in the tutorial that i was following, the "
Drill down decision tree" window DID NOT appear. all i got was the stack trace to standard error (see below). i've tried running focus with both, ibm's sdk 6 and with sun's sdk 6. by that, i mean, i edited focus bat; first to:
C:\development\eclipseDevelopmentPackage\ibm_sdk60\bin\java -ea -classpath c:\development\FoCuS\lib\xml4j.jar;c:\development\FoCuS\lib\focus.jar com.ibm.focus.Focus %1
then to:
C:\development\jdk1.6.0_04\bin\java -ea -classpath c:\development\FoCuS\lib\xml4j.jar;c:\development\FoCuS\lib\focus.jar com.ibm.focus.Focus %1
with both jdks, i got the exact same error (see below).
any ideas what's wrong? thanks in advance for your help?
################################################################################
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\javafreelancer>focus
C:\Documents and Settings\javafreelancer>C:\development\eclipseDevelopmentPackage\ibm_sdk60\bin\java -ea -classpath c:\developm
ent\FoCuS\lib\xml4j.jar;c:\development\FoCuS\lib\focus.jar com.ibm.focus.Focus
FoCuS, version: 1.4.3.2
build: Tue Sep 25 11:43:23 BST 2007
(c) Copyright IBM Corporation (1999, 2007), ALL RIGHTS RESERVED.
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 4
at com.ibm.focus.DrillDownUtils.countOutputs(DrillDownUtils.java:46)
at com.ibm.focus.HierarchicalDrillDown.getTreeRec(HierarchicalDrillDown.java:32)
at com.ibm.focus.HierarchicalDrillDown.getTree(HierarchicalDrillDown.java:26)
at com.ibm.focus.DrillDownDialog.createReport(DrillDownDialog.java:108)
at com.ibm.focus.DrillDownDialog.access$000(DrillDownDialog.java:29)
at com.ibm.focus.DrillDownDialog$1.actionPerformed(DrillDownDialog.java:48)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2008)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2331)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:400)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:255)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:249)
at java.awt.Component.processMouseEvent(Component.java:6054)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3278)
at java.awt.Component.processEvent(Component.java:5819)
at java.awt.Container.processEvent(Container.java:2071)
at java.awt.Component.dispatchEventImpl(Component.java:4426)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Component.dispatchEvent(Component.java:4256)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4335)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3999)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3929)
at java.awt.Container.dispatchEventImpl(Container.java:2115)
at java.awt.Window.dispatchEventImpl(Window.java:2453)
at java.awt.Component.dispatchEvent(Component.java:4256)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:181)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:134)