Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8502 Improve Solr JDBC Driver to support SQL Clients like DBVisualizer
  3. SOLR-8631

Throw UnsupportedOperationException for DatabaseMetaDataImpl.getTypeInfo()

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 6.0
    • 6.0
    • SolrJ
    • None

    Description

      Once getSchemas (SOLR-8510) is implemented, DBVisualizer tries to get type information with getDataTypes and fails with a NPE. A short term workaround is to an UnsupportedOperationException instead of returning null.

      2016-02-01 21:27:33.868 FINE   647 [pool-3-thread-4 - E.ᅣチ] RootConnection: DatabaseMetaDataImpl.getTypeInfo()
      2016-02-01 21:27:33.870 FINE   647 [AWT-EventQueue-0 - B.executionFinished] Exception while Connecting
      com.onseven.dbvis.K.B.P: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      	at com.onseven.dbvis.K.B.L.ᅣチ(Z:2680)
      	at com.onseven.dbvis.K.B.L.ᅣチ(Z:1521)
      	at com.onseven.dbvis.K.B.L$3.run(Z:3032)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      	at java.awt.EventQueue.access$500(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.awt.EventQueue$3.run(EventQueue.java:703)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      	at javax.swing.SwingWorker.get(SwingWorker.java:602)
      	at com.onseven.dbvis.K.B.L.ᅣチ(Z:990)
      	... 16 more
      Caused by: java.lang.NullPointerException
      	at com.onseven.dbvis.db.AbstractFacade.getDataTypes(Z:3212)
      	at com.onseven.dbvis.db.AbstractFacade.runConnectionSetup(Z:1260)
      	at com.onseven.dbvis.db.A.I.ᅣᄋ(Z:3512)
      	at com.onseven.dbvis.db.A.B.execute(Z:2933)
      	at com.onseven.dbvis.K.B.Z.ᅣチ(Z:2285)
      	at com.onseven.dbvis.K.B.L.ᅣツ(Z:1374)
      	at com.onseven.dbvis.K.B.L.doInBackground(Z:1521)
      	at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at javax.swing.SwingWorker.run(SwingWorker.java:334)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        1. SOLR-8631.patch
          0.9 kB
          Kevin Risden

        Issue Links

          Activity

            People

              Unassigned Unassigned
              krisden Kevin Risden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: