The Artima Developer Community
Sponsored Link

SuiteRunner Forum
Interaction SuiteRunner & LF5 causing Exceptions?

2 replies on 1 page. Most recent reply: Sep 29, 2005 2:57 AM by Sascha Lorahn

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Steve Dyson

Posts: 9
Nickname: stevedyson
Registered: Mar, 2003

Interaction SuiteRunner & LF5 causing Exceptions? Posted: Oct 28, 2003 8:07 AM
Reply to this message Reply
Advertisement
I am testing out some code using SuiteRunner in conjunction with LogFactor5. Most of the time (approx 90% of runs) the test runs without incident and I get the following displayed on the DOS invocation window

C:\TracsCC\BaseController4v0>call Test-ParamData
Test-ParamData.bat
==================
------------------ Test-ParamData.bat Finished ------------------------


The remaining 10% of the time I get an exception that seems to be generated after the SuiteRunner window is displayed but just before or as the LogFactor5 window is displayed. Here are 2 such messages

C:\TracsCC\BaseController4v0>call Test-ParamData
Test-ParamData.bat
==================

java.lang.ArrayIndexOutOf BoundsException: 2 >= 2
at java.util.Vector.elementAt(Vector.java:431)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java: 230)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesChanged(VariableHeightLayou tCache.java:412)
at javax.swing.plaf.basic.BasicTreeUI$TreeModelHandler.treeNodesChanged(BasicTreeU I.java:2419)
at javax.swing.tree.DefaultTreeModel.fireTreeNodesChanged(DefaultTreeModel.java:46 6)
at javax.swing.tree.DefaultTreeModel.nodesChanged(DefaultTreeModel.java:328)
at javax.swing.tree.DefaultTreeModel.nodeChanged(DefaultTreeModel.java:261)
at org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel$1.run(Catego ryExplorerModel.java:316)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java: 201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:15 1)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.ArrayI ndexOutOfBoundsException: 3 >= 1
at java.util.Vector.elementAt(Vector.java:431)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java: 230)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesChanged(VariableHeightLayou tCache.java:412)
at javax.swing.plaf.basic.BasicTreeUI$TreeModelHandler.treeNodesChanged(BasicTreeU I.java:2419)
at javax.swing.tree.DefaultTreeModel.fireTreeNodesChanged(DefaultTreeModel.java:46 6)
at javax.swing.tree.DefaultTreeModel.nodesChanged(DefaultTreeModel.java:328)
at javax.swing.tree.DefaultTreeModel.nodeChanged(DefaultTreeModel.java:261)
at org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel$1.run(Catego ryExplorerModel.java:316)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java: 201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:15 1)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
---------------- -- Test-ParamData.bat Finished ------------------------


...And...

C:\TracsCC\BaseController4v0>call Test-ParamData
Test-ParamData.bat
==================
java.lang.ArrayIndexOutOfB oundsException: 1 >= 1
at java.util.Vector.elementAt(Vector.java:431)
at javax.swing.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java: 230)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesChanged(VariableHeightLayou tCache.java:412)
at javax.swing.plaf.basic.BasicTreeUI$TreeModelHandler.treeNodesChanged(BasicTreeU I.java:2419)
at javax.swing.tree.DefaultTreeModel.fireTreeNodesChanged(DefaultTreeModel.java:46 6)
at javax.swing.tree.DefaultTreeModel.nodesChanged(DefaultTreeModel.java:328)
at javax.swing.tree.DefaultTreeModel.nodeChanged(DefaultTreeModel.java:261)
at org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerModel$1.run(Catego ryExplorerModel.java:316)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java: 201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:15 1)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
---------------- -- Test-ParamData.bat Finished ------------------------


So far, in addition to the above, I have received the following exceptions:
ArrayIndexOutOfBoundsException: node has no children
ArrayIndexOutOfBoundsException: 4 >= 1
ArrayIndexOutOfBoundsException: 2 >= 2
EmptyStackException

Can I safely ignore these exceptions.


Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Interaction SuiteRunner & LF5 causing Exceptions? Posted: Oct 29, 2003 6:10 AM
Reply to this message Reply
You mention that "get an exception that seems to be generated after the SuiteRunner window is displayed but just before or as the LogFactor5 window is displayed."

It may be that the two GUIs are colliding in some manner.

Try running SuiteRunner using the other reporters such as the file (-f) or standard output (-o) reporters instead of the GUI (-g) reporter. If the exceptions persist then it is, most likely, something to do with LogFactor5.

If the exceptions disappear entirely, then it may be the case that the GUI reporter in SuiteRunner may not be cleaning up properly after itself.

Forgive my ignorance but I know nothing about LogFactor5 so I cannot try this out myself and I'm a bit busy (aren't we all?) to figure out LogFactor5. Try my suggestion and let us know what happens.

Adam

Sascha Lorahn

Posts: 1
Nickname: saschalora
Registered: Sep, 2005

Re: Interaction SuiteRunner & LF5 causing Exceptions? Posted: Sep 29, 2005 2:57 AM
Reply to this message Reply
This Exception could be invoked by a method of java.util.Vector, depending on your library version. During works on a treeview with the latest release, i got this and another errormessage as a result, too. Make sure to read the sources carefully ...

Flat View: This topic has 2 replies on 1 page
Topic: Reloading Test Classes in GUI Previous Topic   Next Topic Topic: XMLReporter hangs during interactive session

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use