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

Fix the NoClassDefFoundError and BadRequest errors found while testing UCSC

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 10.1.0
    • Labels:
      None

      Description

      When running UCSCRestSymloaderTest, getting the below error in the log, this isn't an error that fails the test case, but need to be fixed to make the log cleaner:

      java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
      at org.lorainelab.igb.synonymlookup.services.impl.SynonymLookup.loadSynonyms(SynonymLookup.java:73)
      at org.lorainelab.igb.synonymlookup.services.impl.ChromosomeSynonymLookupImpl.<init>(ChromosomeSynonymLookupImpl.java:28)

      and when trying to load a chromosome that's not present for a dataset, UCSC is now throwing a Bad request error, so we have to handle this in the code:

      Sep 20, 2024 2:49:43 PM com.affymetrix.genometry.quickload.QuickLoadSymLoader logException
      SEVERE: Unexpected response status: 400
      org.apache.http.client.ClientProtocolException: Unexpected response status: 400
      at org.lorainelab.igb.ucsc.rest.api.service.utils.ApiResponseHandler.handleResponse(ApiResponseHandler.java:33)

        Attachments

          Activity

          jsirigin Jaya Sravani Sirigineedi created issue -
          jsirigin Jaya Sravani Sirigineedi made changes -
          Field Original Value New Value
          Epic Link IGBF-3129 [ 21675 ]
          jsirigin Jaya Sravani Sirigineedi made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Hide
          jsirigin Jaya Sravani Sirigineedi added a comment - - edited

          Resolved both issues. Fixed the NoClassDefFoundError in the UCSCRestSymloaderTest by adding the required dependencies for the test scope and fixed the Bad request error by updating the code to handle the 400 status response by logging it as a warning message instead of throwing an error. Updated code is present at: https://bitbucket.org/jaya-sravani/integrated-genome-browser/branch/IGBF-3915. Warning message is taken from the response of UCSC API, below is the warning message that gets logged for the scenario where user tries to load a chromosome that's not present for that dataset:

          16:53:20.942 WARN o.l.i.u.r.a.s.u.ApiResponseHandler - Received 400 Bad Request: "can not find specified chrom=chrM in bigBed file URL '/gbdb/hs1/encode/peaks/22Rv1.CTCF.chm13v2.0.bb', track=T2T_Encode_Peaks_22Rv1.CTCF genome=hs1 for endpoint '/getData/track' given hubUrl='/gbdb/hs1/hubs/public/hub.txt'"

          Please review and let me know if there are any issues.

          Show
          jsirigin Jaya Sravani Sirigineedi added a comment - - edited Resolved both issues. Fixed the NoClassDefFoundError in the UCSCRestSymloaderTest by adding the required dependencies for the test scope and fixed the Bad request error by updating the code to handle the 400 status response by logging it as a warning message instead of throwing an error. Updated code is present at: https://bitbucket.org/jaya-sravani/integrated-genome-browser/branch/IGBF-3915 . Warning message is taken from the response of UCSC API, below is the warning message that gets logged for the scenario where user tries to load a chromosome that's not present for that dataset: 16:53:20.942 WARN o.l.i.u.r.a.s.u.ApiResponseHandler - Received 400 Bad Request: "can not find specified chrom=chrM in bigBed file URL '/gbdb/hs1/encode/peaks/22Rv1.CTCF.chm13v2.0.bb', track=T2T_Encode_Peaks_22Rv1.CTCF genome=hs1 for endpoint '/getData/track' given hubUrl='/gbdb/hs1/hubs/public/hub.txt'" Please review and let me know if there are any issues.
          jsirigin Jaya Sravani Sirigineedi made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          jsirigin Jaya Sravani Sirigineedi made changes -
          Assignee Jaya Sravani Sirigineedi [ jsirigin ]
          nfreese Nowlan Freese made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ]
          Hide
          nfreese Nowlan Freese added a comment - - edited

          Code changes look good, and I am no longer seeing the error when building IGB with tests.

          Ready for pull request.

          Show
          nfreese Nowlan Freese added a comment - - edited Code changes look good, and I am no longer seeing the error when building IGB with tests. Ready for pull request.
          nfreese Nowlan Freese made changes -
          Status First Level Review in Progress [ 10301 ] Needs 1st Level Review [ 10005 ]
          nfreese Nowlan Freese made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          nfreese Nowlan Freese made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ] Jaya Sravani Sirigineedi [ jsirigin ]
          Show
          jsirigin Jaya Sravani Sirigineedi added a comment - Raised the pull request: https://bitbucket.org/lorainelab/integrated-genome-browser/pull-requests/1039
          jsirigin Jaya Sravani Sirigineedi made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          jsirigin Jaya Sravani Sirigineedi made changes -
          Assignee Jaya Sravani Sirigineedi [ jsirigin ]
          nfreese Nowlan Freese made changes -
          Fix Version/s 10.1.0 [ 11000 ]
          nfreese Nowlan Freese made changes -
          Assignee Ann Loraine [ aloraine ]
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          PR is merged. New installers are built and deployed to bioviz.org early access section.
          Ready for testing.

          Show
          ann.loraine Ann Loraine added a comment - - edited PR is merged. New installers are built and deployed to bioviz.org early access section. Ready for testing.
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          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 ]
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ]
          nfreese Nowlan Freese made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          Hide
          nfreese Nowlan Freese added a comment -

          Tested on main branch installer on Mac and main branch through terminal on Mac.

          I am no longer seeing the 400 error when loading the T2T annotations for chrM and I am not seeing the error when building IGB with tests.

          Closing ticket.

          Show
          nfreese Nowlan Freese added a comment - Tested on main branch installer on Mac and main branch through terminal on Mac. I am no longer seeing the 400 error when loading the T2T annotations for chrM and I am not seeing the error when building IGB with tests. Closing ticket.
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ] Jaya Sravani Sirigineedi [ jsirigin ]
          nfreese Nowlan Freese made changes -
          Resolution Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

            People

            • Assignee:
              jsirigin Jaya Sravani Sirigineedi
              Reporter:
              jsirigin Jaya Sravani Sirigineedi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: