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

Incorrect URL format generates a null pointer exception

    Details

      Description

      Under Preferences within the data sources tab, a null pointer exception is generated when adding or editing a source with an incorrect URL format, such as just "http" (with no colon or slashes).

      See the comment below for the exception.

        Attachments

          Activity

          Hide
          mason Mason Meyer (Inactive) added a comment -

          12:54:55.715 ERROR c.a.genometry.thread.CThreadWorker - null
          java.lang.NullPointerException: null
          at com.lorainelab.quickload.util.QuickloadUtils.isValidRequest(QuickloadUtils.java:183) ~[na:na]
          at com.lorainelab.quickload.util.QuickloadUtils.getInputStream(QuickloadUtils.java:203) ~[na:na]
          at com.lorainelab.quickload.util.QuickloadUtils.loadSupportedGenomeVersionInfo(QuickloadUtils.java:100) ~[na:na]
          at com.lorainelab.quickload.QuickloadDataProvider.populateSupportedGenomeVersionInfo(QuickloadDataProvider.java:93) ~[na:na]
          at com.lorainelab.quickload.QuickloadDataProvider.initialize(QuickloadDataProvider.java:71) ~[na:na]
          at com.affymetrix.igb.general.DataProviderManager.initializeDataProvider(DataProviderManager.java:241) ~[na:na]
          at com.affymetrix.igb.general.DataProviderManager.addDataProvider(DataProviderManager.java:234) ~[na:na]
          at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:297) ~[na:na]
          at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:276) ~[na:na]
          at com.affymetrix.genometry.thread.CThreadWorker.doInBackground(CThreadWorker.java:73) ~[na:na]
          at javax.swing.SwingWorker$1.call(Unknown Source) [na:1.8.0_40]
          at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_40]
          at javax.swing.SwingWorker.run(Unknown Source) [na:1.8.0_40]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_40]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_40]
          at java.lang.Thread.run(Unknown Source) [na:1.8.0_40]
          12:54:55.789 ERROR c.a.igb.prefs.AddDataProvider - java.lang.NullPointerException
          java.util.concurrent.ExecutionException: java.lang.NullPointerException
          at java.util.concurrent.FutureTask.report(Unknown Source) ~[na:1.8.0_40]
          at java.util.concurrent.FutureTask.get(Unknown Source) ~[na:1.8.0_40]
          at javax.swing.SwingWorker.get(Unknown Source) ~[na:1.8.0_40]
          at com.affymetrix.igb.prefs.AddDataProvider$5.finished(AddDataProvider.java:311) ~[na:na]
          at com.affymetrix.genometry.thread.CThreadWorker.done(CThreadWorker.java:51) [genometry-8.4.0.jar:na]
          at javax.swing.SwingWorker$5.run(Unknown Source) [na:1.8.0_40]
          at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source) [na:1.8.0_40]
          at sun.swing.AccumulativeRunnable.run(Unknown Source) [na:1.8.0_40]
          at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source) [na:1.8.0_40]
          at javax.swing.Timer.fireActionPerformed(Unknown Source) [na:1.8.0_40]
          at javax.swing.Timer$DoPostEvent.run(Unknown Source) [na:1.8.0_40]
          at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.8.0_40]
          at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.8.0_40]
          at java.awt.EventQueue.access$500(Unknown Source) [na:1.8.0_40]
          at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_40]
          at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_40]
          at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_40]
          at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.8.0_40]
          at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.8.0_40]
          at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.8.0_40]
          at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.8.0_40]
          at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.8.0_40]
          at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_40]
          at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_40]
          at java.awt.EventDispatchThread.run(Unknown Source) [na:1.8.0_40]
          Caused by: java.lang.NullPointerException: null
          at com.lorainelab.quickload.util.QuickloadUtils.isValidRequest(QuickloadUtils.java:183) ~[na:na]
          at com.lorainelab.quickload.util.QuickloadUtils.getInputStream(QuickloadUtils.java:203) ~[na:na]
          at com.lorainelab.quickload.util.QuickloadUtils.loadSupportedGenomeVersionInfo(QuickloadUtils.java:100) ~[na:na]
          at com.lorainelab.quickload.QuickloadDataProvider.populateSupportedGenomeVersionInfo(QuickloadDataProvider.java:93) ~[na:na]
          at com.lorainelab.quickload.QuickloadDataProvider.initialize(QuickloadDataProvider.java:71) ~[na:na]
          at com.affymetrix.igb.general.DataProviderManager.initializeDataProvider(DataProviderManager.java:241) ~[na:na]
          at com.affymetrix.igb.general.DataProviderManager.addDataProvider(DataProviderManager.java:234) ~[na:na]
          at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:297) ~[na:na]
          at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:276) ~[na:na]
          at com.affymetrix.genometry.thread.CThreadWorker.doInBackground(CThreadWorker.java:73) [genometry-8.4.0.jar:na]
          at javax.swing.SwingWorker$1.call(Unknown Source) ~[na:1.8.0_40]
          at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.8.0_40]
          at javax.swing.SwingWorker.run(Unknown Source) ~[na:1.8.0_40]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_40]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_40]
          at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_40]

          Show
          mason Mason Meyer (Inactive) added a comment - 12:54:55.715 ERROR c.a.genometry.thread.CThreadWorker - null java.lang.NullPointerException: null at com.lorainelab.quickload.util.QuickloadUtils.isValidRequest(QuickloadUtils.java:183) ~ [na:na] at com.lorainelab.quickload.util.QuickloadUtils.getInputStream(QuickloadUtils.java:203) ~ [na:na] at com.lorainelab.quickload.util.QuickloadUtils.loadSupportedGenomeVersionInfo(QuickloadUtils.java:100) ~ [na:na] at com.lorainelab.quickload.QuickloadDataProvider.populateSupportedGenomeVersionInfo(QuickloadDataProvider.java:93) ~ [na:na] at com.lorainelab.quickload.QuickloadDataProvider.initialize(QuickloadDataProvider.java:71) ~ [na:na] at com.affymetrix.igb.general.DataProviderManager.initializeDataProvider(DataProviderManager.java:241) ~ [na:na] at com.affymetrix.igb.general.DataProviderManager.addDataProvider(DataProviderManager.java:234) ~ [na:na] at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:297) ~ [na:na] at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:276) ~ [na:na] at com.affymetrix.genometry.thread.CThreadWorker.doInBackground(CThreadWorker.java:73) ~ [na:na] at javax.swing.SwingWorker$1.call(Unknown Source) [na:1.8.0_40] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_40] at javax.swing.SwingWorker.run(Unknown Source) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_40] at java.lang.Thread.run(Unknown Source) [na:1.8.0_40] 12:54:55.789 ERROR c.a.igb.prefs.AddDataProvider - java.lang.NullPointerException java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(Unknown Source) ~ [na:1.8.0_40] at java.util.concurrent.FutureTask.get(Unknown Source) ~ [na:1.8.0_40] at javax.swing.SwingWorker.get(Unknown Source) ~ [na:1.8.0_40] at com.affymetrix.igb.prefs.AddDataProvider$5.finished(AddDataProvider.java:311) ~ [na:na] at com.affymetrix.genometry.thread.CThreadWorker.done(CThreadWorker.java:51) [genometry-8.4.0.jar:na] at javax.swing.SwingWorker$5.run(Unknown Source) [na:1.8.0_40] at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source) [na:1.8.0_40] at sun.swing.AccumulativeRunnable.run(Unknown Source) [na:1.8.0_40] at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source) [na:1.8.0_40] at javax.swing.Timer.fireActionPerformed(Unknown Source) [na:1.8.0_40] at javax.swing.Timer$DoPostEvent.run(Unknown Source) [na:1.8.0_40] at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.8.0_40] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.8.0_40] at java.awt.EventQueue.access$500(Unknown Source) [na:1.8.0_40] at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_40] at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_40] at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_40] at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.8.0_40] at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.8.0_40] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.8.0_40] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.8.0_40] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.8.0_40] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_40] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_40] at java.awt.EventDispatchThread.run(Unknown Source) [na:1.8.0_40] Caused by: java.lang.NullPointerException: null at com.lorainelab.quickload.util.QuickloadUtils.isValidRequest(QuickloadUtils.java:183) ~ [na:na] at com.lorainelab.quickload.util.QuickloadUtils.getInputStream(QuickloadUtils.java:203) ~ [na:na] at com.lorainelab.quickload.util.QuickloadUtils.loadSupportedGenomeVersionInfo(QuickloadUtils.java:100) ~ [na:na] at com.lorainelab.quickload.QuickloadDataProvider.populateSupportedGenomeVersionInfo(QuickloadDataProvider.java:93) ~ [na:na] at com.lorainelab.quickload.QuickloadDataProvider.initialize(QuickloadDataProvider.java:71) ~ [na:na] at com.affymetrix.igb.general.DataProviderManager.initializeDataProvider(DataProviderManager.java:241) ~ [na:na] at com.affymetrix.igb.general.DataProviderManager.addDataProvider(DataProviderManager.java:234) ~ [na:na] at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:297) ~ [na:na] at com.affymetrix.igb.prefs.AddDataProvider$5.runInBackground(AddDataProvider.java:276) ~ [na:na] at com.affymetrix.genometry.thread.CThreadWorker.doInBackground(CThreadWorker.java:73) [genometry-8.4.0.jar:na] at javax.swing.SwingWorker$1.call(Unknown Source) ~ [na:1.8.0_40] at java.util.concurrent.FutureTask.run(Unknown Source) ~ [na:1.8.0_40] at javax.swing.SwingWorker.run(Unknown Source) ~ [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~ [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~ [na:1.8.0_40] at java.lang.Thread.run(Unknown Source) ~ [na:1.8.0_40]
          Hide
          tmall Tarun Mall (Inactive) added a comment -

          The problem is fixed. Have to discuss basic validation for URL to add.

          Show
          tmall Tarun Mall (Inactive) added a comment - The problem is fixed. Have to discuss basic validation for URL to add.
          Hide
          mason Mason Meyer (Inactive) added a comment -

          Created IGBF-669 to address Tarun's comment above. Otherwise, my testing verifies that this issue has been resolved so it will now be closed.

          Show
          mason Mason Meyer (Inactive) added a comment - Created IGBF-669 to address Tarun's comment above. Otherwise, my testing verifies that this issue has been resolved so it will now be closed.

            People

            • Assignee:
              mason Mason Meyer (Inactive)
              Reporter:
              mason Mason Meyer (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: