How to find where in my program is the error ?

I use NetBeans and wrote a Java program, it runs fine except it outputs an error message while my program is running, but it doesn't say which line of my program is wrong, the error message looks like this :
=================================================================================
compile-single:
run-single:
Interval_In_Minutes = 1
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 127
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1349)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1292)
at javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:559)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
at javax.swing.JList.getScrollableTracksViewportWidth(JList.java:2706)
at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:786)
at java.awt.Container.layout(Container.java:1432)
at java.awt.Container.doLayout(Container.java:1421)
at java.awt.Container.validateTree(Container.java:1519)
at java.awt.Container.validate(Container.java:1491)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:635)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
BUILD SUCCESSFUL (total time: 6 minutes 54 seconds)
=================================================================================
How can I find out which line of my code caused the error ?
Frank

Yes, it seems it's complaining about some array index out of bounds error, but the line number 127 is definitely not referring to my code, because my code looks like this at around line 127 :
=======================================================================================
122 JPanel Input_File_Panel=new JPanel(A_FlowLayout);
123 Input_File_Panel.setPreferredSize(new Dimension(List_Width+Text_Area_Width+30,50+ScrollPane_Height));
124
125 JPanel Input_File_Path_Panel=new JPanel();
126
127 Input_File_Dir_Button.setPreferredSize(new Dimension(List_Width,20));
128 Input_File_Dir_Button.addActionListener(new ActionListener()
129 {
130 public void actionPerformed(ActionEvent e)
131 {
132 try
========================================================================================
As you can see there is no array involved, usually it would refer to my program's name and point to the line number in it, but it's not doing that here, that's why I can't figure out where in my code went wrong.
Frank

Similar Messages

  • BPM 11g -- How to find where my instance is in the process

    Hi,
    I have a requirement where I need to programatiically query to find out where my instance is in the process flow;,it could be sitting in an Human Interactive step, might well be waiting to be notified or might be excecuting a business service. I am assuming that the TaskQueryService and TaskService API's only deal with the human ineractive. Which API can I use to achieve this?
    Thanks
    Raj
    Edited by: user588394 on 24-Apr-2013 08:50

    948165 wrote:
    Hello,
    When I go to System Administrator > Concurrent > Program > Define I can lookup programs that I should be able to run. Now I want to actually run the process but I cant find figure out what responsability it is under.
    How can I go about finding this?Please see (WHOCANRUN.SQL - List Responsibilities That Can Run a Given Concurrent Program [ID 134036.1]).
    Thanks,
    Hussein

  • How to find where an ipod is without the serial number

    HELP PLZZ

    The serial number will not help.
    If you enabled "find my iPod" in Settings, you can use iCloud. Its location will be determined when it connects to a wireless network, presuming the network's location is also known.

  • How to find where downloads are stored on the tablet

    I have had McAfee anti-virus software downloaded onto my tablet but I am unable to locate the download to install this software.  Where do they reside?

    A virus checker is worthless on a PlayBook. No need for it.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to find who has deleted program

    Hi,
    Some one has delete a report from the system.How can I find the user who has deleted?
    thanks

    Hi ,
    Please refer the threads,
    How to find who deleted my program?
    How to find deleted program
    Best Regards.
    Reward points if it is helpful.

  • How to find out Which SAP programs are affecting Which Z programs?

    Do we have a program/tool that can tell us the following:
    How to find out Which SAP programs are affecting Which Z programs in the entire development server?  
    We have a list of SAP programs and a list of custom u2018zu2019 programs, which ones impact each other?   I know we have a u201Cwhere usedu201D functionality, however that is at the object by object level. 
    We need are looking for something a little larger u2013
    thanks in advance
    Vishnu

    Do we have a program/tool that can tell us the following:
    How to find out Which SAP programs are affecting Which Z programs in the entire development server?  
    We have a list of SAP programs and a list of custom u2018zu2019 programs, which ones impact each other?   I know we have a u201Cwhere usedu201D functionality, however that is at the object by object level. 
    We need are looking for something a little larger u2013
    thanks in advance
    Vishnu

  • I just got the macbook air for christmas and i also got the dr dre headphones so i am trying to enable my soundcheck on my iTunes but i cannot figure out how to find where sound check is located can someone please help!!

    i just got the macbook air for christmas and i also got the dr dre headphones so i am trying to enable my soundcheck on my iTunes but i cannot figure out how to find where sound check is located can someone please help!!

    Go to the iTunes menu > Preferences > Playback.

  • How to find where the below sql is used in database

    Hi all,
    I am tring to find the below SQL in our data base where it is used?
    I had done the checking in all reports manually, But have no luck.
    But i am sure that the below sql is in our data base and having some issue on it.
    Can any one please let me know how to find where the below query is used in our database? I mean in packages/ triggers/ procedures or any where in our database
    Please find the query
    select count(sh.shipment_gid) from SHIPMENT sh, SHIPMENT_TYPE stp, LOCATION ld where (sh.shipment_gid in (select sstop.shipment_gid from SHIPMENT_STOP sstop where (sstop.appointment_delivery > trunc(TO_DATE(:1, :2), :3)) and (sstop.appointment_delivery is not null))) and (sh.is_to_be_held=:"SYS_B_0") and (sh.domain_name=:4) and (sh.insurance_policy_number like :"SYS_B_1") and (sh.perspective=:"SYS_B_2") and (sh.shipment_type_gid=stp.shipment_type_gid) and (sh.dest_location_gid=ld.location_gid(+)) and (stp.shipment_type_xid!=:5) order by ld.location_name, sh.start_time
    Regards,
    Dpk

    There is video demonstration how to import from data dictionary.
    After import you can select from the main menu: View->DDL File Editor menu item to open the DDL dialog and then click on "Generate" button on the dialog. When the DDL is generated you can search in it using "Find" button.
    Ivan

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • How to find hardcoded in ABAP programs

    Dear Experts,
    Please tell me how to find hardcoded in ABAP programs.

    Hi Sam,
    Generally in Abap program hardcoded strings are declared in single quotes '         .
    for ex :
    write : 'Report heading'. " search for  '   in the entire program.
    press FIND button in menu bar and type single quote  '  . and select radio button ' IN MAIN PROGRAM '
    Regards,
    Aby.

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • How to find when index was created in the database.

    Hi,
    Please help me, how to find when index was created in the database. It should give with date and time.
    Thanks... Bakser

    Please help me, how to find when index was created in the database. It should give with date and time.DBA_/ALL/User_objects Created
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(128)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                           DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    select OBJECT_NAME,TIMESTAMP,CREATED  from ALL_OBJECTS where OWNER='OWNERNAME' AND OBJECT_NAME='OBJECT_NAME' AND OBJECT_TYPE='INDEX';Edited by: Anantha on Apr 21, 2009 3:18 PM
    Edited by: Anantha on Apr 21, 2009 3:19 PM

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • How to find out which data control do the page layout components come from?

    hi,
    work in Jdev 11.1.2.3
    After have drag and drop data control into pages designer, how to find out which data control do the page layout component (such as a field in form layout) come from?
    --i cannot find data control related information in the property pallete for the page layout component.
    Regards.

    This information can be found in the page definition file.
    Select the field in the page and then click the binding tab.

  • How to find out if your Mac has the new Virus ?

    How to find out if your Mac has the new Virus, and how to fix it ???

    Helpful Links Regarding Flashback Trojan
    A link to a great User Tip about the trojan: Flashback Trojan User Tip
    A related link in the tip to a checker: Malware Checker Dowload Link
    A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started.
    For now I recommend the User Tip from etressoft to detect and remove:
    Checking for and removing the "Flashback" trojan
    Kaspersky Flashback Trojan Site:Flashback Trojan Detection and Removal
    Also see Apple's article About Flashback malware.

Maybe you are looking for

  • Upload vendor invoice details

    Hi all,      I have a flat file which consists of vendor details (vendor no. address details) and Invoice details (like invoice no., pymt trm, due date, tax id, g/l acc.no. etc). I want to upload these details from spread sheet to SAP could u please

  • Quick time 7.1.6 freezes

    I installed Quick Time 7.1.6 (forgive me, I am a brand new MAC user). About 2 minutes into the video, the video stops, however, the time keeps running as well as the "little glass like figure". When I try and "drag" the figure, the word "unauthorized

  • What is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.

    Hello Gurus, I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection. For example: X=EssVCalculate("Sheetname","Calc_Script name",True) In the above code instead of the *"Calc_Script name"* I w

  • Displaying cover flow on TV

    Hoping someone can help me. I am wondering if there is a way to display "music" information on a TV. IE can you see your album art etc. on the TV so you can see what's playing without having to look at the ipod itself. Any help would be appreciated.

  • Ok thanks but it wont print text at edge of page

    Thanks the scaling was not checked good catch. But when I print to scale it won't print any text near my right border. I have changed paper size to allow it to have more room but it still prints at 36'' wide and cuts off text at right hand side of dr