Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-2278

Investigate NullPointerExceptions while running Biojava App

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Story Points:
      1.5
    • Sprint:
      Spring 4 : 2 Mar to 13 Mar, Spring 5 : 16 Mar to 27 Mar, Spring 6 : 30 Mar to Apr 10

      Description

      When the Biojava App is installed, Null Pointer exceptions are observed. We need to investigate the cause and fix them.

        Attachments

          Issue Links

            Activity

            shamika Shamika Gajanan Kulkarni (Inactive) created issue -
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Field Original Value New Value
            Epic Link IGBF-1908 [ 17998 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Link This issue relates to IGBF-2264 [ IGBF-2264 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Shamika Gajanan Kulkarni [ shamika ]
            Hide
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment -

            Prutha Kulkarni and me were working on this today. A NullPointerException occurred on Mac (Prutha's pc) as well. We were able to fix it by using 'fileChooser.CANCEL_OPTION' and fileChooser.APPROVE_OPTION to handle the cases when a file is not selected and a file is selected respectively.
            But these solutions did not work for Windows. The exceptions occurring for Windows are attached for this ticket. We will continue working on this.
            Prof. [~aloraine]

            Show
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - Prutha Kulkarni and me were working on this today. A NullPointerException occurred on Mac (Prutha's pc) as well. We were able to fix it by using 'fileChooser.CANCEL_OPTION' and fileChooser.APPROVE_OPTION to handle the cases when a file is not selected and a file is selected respectively. But these solutions did not work for Windows. The exceptions occurring for Windows are attached for this ticket. We will continue working on this. Prof. [~aloraine]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Attachment Error logs [ 14681 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Attachment Error logs [ 14681 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Attachment Error logs.txt [ 14682 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Attachment Error logs.txt [ 14682 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Attachment Error logs.txt [ 14683 ]
            nfreese Nowlan Freese made changes -
            Sprint Spring 4 : 2 Mar to 13 Mar [ 89 ] Spring 4 : 2 Mar to 13 Mar, Spring 5 : 16 Mar to 27 Mar [ 89, 90 ]
            nfreese Nowlan Freese made changes -
            Rank Ranked higher
            Hide
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment -

            Prutha Kulkarni and me have tried many options as follows:
            1) We tried to debug the code using Logger
            2) We tried to use try and catch to catch the NullPointerException
            3) We tried creating a new app from scratch to replicate biojava-2bit-reader and while doing this, we tried to use an alternative FileChooser which was already implemented in genometry module.
            After trying the above steps, we still were not able to fix it and are having a doubt whether the exceptions occur on my system. So, we are asking others to check it on their systems as well and are waiting for their response.

            Show
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - Prutha Kulkarni and me have tried many options as follows: 1) We tried to debug the code using Logger 2) We tried to use try and catch to catch the NullPointerException 3) We tried creating a new app from scratch to replicate biojava-2bit-reader and while doing this, we tried to use an alternative FileChooser which was already implemented in genometry module. After trying the above steps, we still were not able to fix it and are having a doubt whether the exceptions occur on my system. So, we are asking others to check it on their systems as well and are waiting for their response.
            Hide
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment -

            Pawan Bole and Srishti Tiwari tried installing and running this app on their laptops. Srishti Tiwari did not get repeated NPEs while Pawan Bole saw the repeated NPEs behaviour.

            Show
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - Pawan Bole and Srishti Tiwari tried installing and running this app on their laptops. Srishti Tiwari did not get repeated NPEs while Pawan Bole saw the repeated NPEs behaviour.
            Hide
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - - edited

            I have pushed the changes including 'fileChooser.CANCEL_OPTION' and ' fileChooser.APPROVE_OPTION' on Wednesday.
            https://bitbucket.org/skulka2710/shamika-2bit-reader/branch/IGBF-2278#diff

            The NullPointerExceptions occur when we try to open a dialog box using FileChooser, and get an absolute path for the file chosen. If no file is chosen, a NullPointerException occurred. This was fixed using the above two options. However, we are unable to find a fix for the other repeated NPEs occurring due to dialog box using FileChooser as of now. Due to repeatedly occurring NPEs (on Windows), we need to restart the IGB to make it work normally.

            Show
            shamika Shamika Gajanan Kulkarni (Inactive) added a comment - - edited I have pushed the changes including 'fileChooser.CANCEL_OPTION' and ' fileChooser.APPROVE_OPTION' on Wednesday. https://bitbucket.org/skulka2710/shamika-2bit-reader/branch/IGBF-2278#diff The NullPointerExceptions occur when we try to open a dialog box using FileChooser, and get an absolute path for the file chosen. If no file is chosen, a NullPointerException occurred. This was fixed using the above two options. However, we are unable to find a fix for the other repeated NPEs occurring due to dialog box using FileChooser as of now. Due to repeatedly occurring NPEs (on Windows), we need to restart the IGB to make it work normally.
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            shamika Shamika Gajanan Kulkarni (Inactive) made changes -
            Assignee Shamika Gajanan Kulkarni [ shamika ]
            nfreese Nowlan Freese made changes -
            Sprint Spring 4 : 2 Mar to 13 Mar, Spring 5 : 16 Mar to 27 Mar [ 89, 90 ] Spring 4 : 2 Mar to 13 Mar, Spring 5 : 16 Mar to 27 Mar, Spring 6 : 30 Mar to Apr 10 [ 89, 90, 91 ]
            nfreese Nowlan Freese made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Summary Investigate and Fix NullPointerExceptions while running Biojava App Investigate NullPointerExceptions while running Biojava App
            ann.loraine Ann Loraine made changes -
            Link This issue relates to IGBF-2327 [ IGBF-2327 ]
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            ann.loraine Ann Loraine made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Thank you Shamika Gajanan Kulkarni for investigating.

            I will take a look next. Am creating a new ticket to capture that task and moving this to Done.

            Show
            ann.loraine Ann Loraine added a comment - Thank you Shamika Gajanan Kulkarni for investigating. I will take a look next. Am creating a new ticket to capture that task and moving this to Done.

              People

              • Assignee:
                Unassigned
                Reporter:
                shamika Shamika Gajanan Kulkarni (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: