[ 
https://issues.apache.org/jira/browse/SOLR-8819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15190990#comment-15190990
 ] 

Kevin Risden commented on SOLR-8819:
------------------------------------

Since DatabaseMetaDataImpl.getTables isn't fully implemented, it looks like it 
causes the following errors in DbVisualizer when clicking on the table looking 
icon under the table name. We should probably implement all of the return 
columns for DatabaseMetaDataImpl.getTables instead of just the two currently in 
the patch.

{code}
2016-03-11 08:24:34.821 FINE   870 [pool-3-thread-2 - E.ᅣチ] RootConnection: 
DatabaseMetaDataImpl.getTables("localhost:9983", "test", "%", null)
2016-03-11 08:24:34.843 FINE   870 [ExecutorRunner-pool-2-thread-1 - E.ᅣツ] 
getting column 1 (java.lang.String) 'TABLE_SCHEM' using getString()
2016-03-11 08:24:34.843 FINE   870 [ExecutorRunner-pool-2-thread-1 - E.ᅣツ] 
getting column 2 (java.lang.String) 'TABLE_CATALOG' using getString()
2016-03-11 08:24:34.844 FINE   870 [ExecutorRunner-pool-2-thread-1 - 
Z.processResultSet] Fetched Rows: 1 Columns: 2 Exec: 0.022 Fetch: 0.000 sec
2016-03-11 08:24:34.847 WARN   870 [ExecutorRunner-pool-2-thread-1 - 
C.getValueAt] IndexOutOfBoundsException: row=0 column=2 rowCount=1 columnCount=2
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at com.onseven.dbvis.K.A.C.getValueAt(Z:2606)
        at com.onseven.dbvis.K.B.B.ᅥネ(Z:61)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2413)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:240)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2852)
        at com.onseven.dbvis.n.I.K.execute(Z:659)
        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)
2016-03-11 08:24:34.850 WARN   870 [ExecutorRunner-pool-2-thread-1 - 
C.getValueAt] IndexOutOfBoundsException: row=0 column=3 rowCount=1 columnCount=2
java.lang.IndexOutOfBoundsException: Index: 3, Size: 2
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at com.onseven.dbvis.K.A.C.getValueAt(Z:2606)
        at com.onseven.dbvis.K.B.B.ᅥネ(Z:61)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2413)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:240)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2852)
        at com.onseven.dbvis.n.I.K.execute(Z:659)
        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)
2016-03-11 08:24:34.853 WARN   870 [ExecutorRunner-pool-2-thread-1 - 
C.getValueAt] IndexOutOfBoundsException: row=0 column=4 rowCount=1 columnCount=2
java.lang.IndexOutOfBoundsException: Index: 4, Size: 2
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at com.onseven.dbvis.K.A.C.getValueAt(Z:2606)
        at com.onseven.dbvis.K.B.B.ᅥネ(Z:61)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2413)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:240)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2852)
        at com.onseven.dbvis.n.I.K.execute(Z:659)
        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)
2016-03-11 08:24:34.855 WARN   870 [ExecutorRunner-pool-2-thread-1 - 
C.getValueAt] IndexOutOfBoundsException: row=0 column=3 rowCount=1 columnCount=3
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at com.onseven.dbvis.K.A.C.getValueAt(Z:2606)
        at com.jidesoft.grid.TableModelWrapperImpl.getValueAt(Unknown Source)
        at com.jidesoft.grid.DefaultTableModelWrapper.getValueAt(Unknown Source)
        at com.onseven.dbvis.K.B._.ᅣチ(Z:292)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:679)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:240)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2852)
        at com.onseven.dbvis.n.I.K.execute(Z:659)
        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)
2016-03-11 08:24:34.856 WARN   870 [ExecutorRunner-pool-2-thread-1 - 
C.getValueAt] IndexOutOfBoundsException: row=0 column=4 rowCount=1 columnCount=3
java.lang.IndexOutOfBoundsException: Index: 4, Size: 3
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at com.onseven.dbvis.K.A.C.getValueAt(Z:2606)
        at com.jidesoft.grid.TableModelWrapperImpl.getValueAt(Unknown Source)
        at com.jidesoft.grid.DefaultTableModelWrapper.getValueAt(Unknown Source)
        at com.onseven.dbvis.K.B._.ᅣチ(Z:292)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:679)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:240)
        at com.onseven.dbvis.n.I.K.ᅣチ(Z:2852)
        at com.onseven.dbvis.n.I.K.execute(Z:659)
        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)
{code}

> Implement DatabaseMetaDataImpl.getTables()
> ------------------------------------------
>
>                 Key: SOLR-8819
>                 URL: https://issues.apache.org/jira/browse/SOLR-8819
>             Project: Solr
>          Issue Type: Sub-task
>          Components: SolrJ
>    Affects Versions: master
>            Reporter: Kevin Risden
>         Attachments: SOLR-8819.patch
>
>
> DbVisualizer NPE when clicking on DB References tab. After connecting, NPE if 
> double click on "DB" under connection name then click on References tab.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to