title: Tosca - Java Exception while running Swing Application (JTree)
body: <p>I am learning tosca and currently we are trying to run a regression test suite for a legacy Java Swing application.</p>
  
  <p>My Test suite contains 4 modules (in <code>JTree</code>) and it is getting failed while clicking a node.</p>
  
  <p>The Error I received on the module is,</p>
  
  <blockquote>
    <p>at.tosca.javaengine.common.exceptions.ControlException: node or
    node-path not found!<br> Detailed information contained in
    'JavaEngineException.txt <br>above message is displayed in Executionlist</p>
  </blockquote>
  
  <p><strong>JavaEngineException.txt</strong></p>
  
  <blockquote>
    <p>22-11-2017 - 17:56:37: IExecWrapperInterface_connectToControl<br>
    at.tosca.javaengine.common.exceptions.ControlNotFoundException: Unable
    to find control Index=3;ClassName(s)=[javax.swing.JTable];. <br><br></p>
    
    <p>at.tosca.javaengine.server.tree.ComponentSearch.getComponent(ComponentSearch.java:218)<br>
    ->at.tosca.javaengine.server.AbstractJavaEngineCore.findComponent(AbstractJavaEngineCore.java:1129)<br>
    ->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControlInternal(AbstractJavaEngineCore.java:936)<br>
    ->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControlInternal(AbstractJavaEngineCore.java:922)<br>
    ->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControl(AbstractJavaEngineCore.java:313)<br>
    ->at.tosca.javaengine.server.JavaEngineCore.access$101(JavaEngineCore.java:25)<br>
    ->at.tosca.javaengine.server.JavaEngineCore$2.runInternal(JavaEngineCore.java:69)<br>
    ->at.tosca.javaengine.server.control.WorkerThread.run(WorkerThread.java:69)<br>
    ->java.lang.Thread.run(Unknown Source)<br>
    ->JNIServer::CallVoidMethod<br>
    ->CJNIServer::CallVoidMethod<br><br></p>
    
    <p>22-11-2017 - 17:58:58: IExecWrapperInterface_setValue<br>
    at.tosca.javaengine.common.exceptions.ControlException: node or
    node-path not found!<br><br></p>
    
    <p>at.tosca.javaengine.server.control.swing.GenericTreeControl.setValueLegacy(GenericTreeControl.java:339)<br>
    ->at.tosca.javaengine.server.control.swing.GenericTreeControl.setValue(GenericTreeControl.java:88)<br>
    ->at.tosca.javaengine.server.AbstractJavaEngineCore.setValueInternal(AbstractJavaEngineCore.java:1195)<br>
    ->at.tosca.javaengine.server.AbstractJavaEngineCore.setValue(AbstractJavaEngineCore.java:686)<br>
    ->at.tosca.javaengine.server.JavaEngineCore.access$401(JavaEngineCore.java:25)<br>
    ->at.tosca.javaengine.server.JavaEngineCore$5.runInternal(JavaEngineCore.java:114)<br>
    ->at.tosca.javaengine.server.control.WorkerThread.run(WorkerThread.java:69)<br>
    ->java.lang.Thread.run(Unknown Source)<br>
    ->JNIServer::CallVoidMethod<br>
    ->CJNIServer::CallVoidMethod<br></p>
  </blockquote>
  
  <p><strong>NOTE</strong> : The same Test suite is working in some other machine and not here. Both are same operating System. </p>