IGWiki Main Page

Ricerca pagine
Guida ricerche




IGSuiteHow to locate where a JavaCode exception was thrown (Bozza)
  Modifica PaginaWiki ViewStorico paginaProprietàGet PdfCalcTranslatorVisualizza il documento in formato stampabile.PreferitesPosso Aiutarti

When you receive some exception trace (see JSup Application properties - Options) from JavaCode you can find where the JavaCode that thrown the exception is located:

  • Identify the exception trace from the Output window or from the standard output file.
  • Identify the line that is referred to a $jsup$_????_funcs class (in the example below it is the first line of the trace, but it is not always so easy...):
at $jsup$_win1_funcs.$win1$_f27($jsup$_win1_funcs.java:210)

  • The number at the end of the line (210) tell you the line number.
  • The part of the class name (replaced by ???? above) tell you which is the container of the script that thrown the exception; for example:
    • domain0: the exception was thrown in a Shared domain script. Go to menu File / Application properties / Edit SHARED code / JavaCode common.
    • domain1: the exception was thrown in a User domain script. Go to menu File / Application properties / Edit USER code / JavaCode common.
    • winXX: means that the exception was thrown by a script or an animation located in the window with id = XX. If you don't know which is that window (because more than a window is currently displayed or because you are performing an "a posteriori" analysis of a log) then you can find the ID of window in the Window property dialog or by viewing the content of the file win000XX.jw in the application directory (the name of the window is on the second line of that file). When you have opened that window in the Graphic editor go to menu Window / Window properties / JavaCode


In the tab found above you have to click the View translated Java with line number button.
In the window that will appear scroll to the line number 210 (in the example) and see which is the code.

The comment at the beginning of the function tells you that the code correspond to the JavaCode of the Action animation of the graphic object whose path is //prova/#65/Button 'Error Test button' #0 /img/JSup/debug_navigation_window.png
prova is the name of window, #65 is the automatic name given to the binder that contain the button named Error Test button where the Action animation is located.
You can use the navigation window ( toolbar button or Ctrl+N keys) to locate and select the graphic object.


Nome: JSup Locate JavaCode exception location - Revisione: 0 - Autore: Alessandro Forlani (15.09.2009) - Modificata da: Alessandro Forlani (16.09.2009) - Categoria: JSup - Scadenza: 15.09.2010 - Permessi di visualizzazione: Tutti indistintamente - Permessi di modifica: Solo al proprietario - Copyright © Administrator All right reserved

Need account? Non hai un account?
Login
Password
Secure connection

Documenti correlati
   

Ultimi documenti modificati
   
getrss

Documenti recenti
   
    Nessuna corrispondenza trovata