SQLPower / power-matchmaker

Automatically exported from code.google.com/p/power-matchmaker
GNU General Public License v3.0
2 stars 7 forks source link

Choosing a SQL Server 2005 instance as your data source in a de-duping project throws an NullPointerException #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a datasource for a SQL Server 2005 instance
2. Create a new de-duping project
3. In the 'Data Source' combo box, choose the SQL Server 2005 instance

What is the expected output? What do you see instead?
I expected no errors. Instead, a NullPointerException is thrown.
It's worth noting that the Source Table combobox still gets populated and
is usable. But if you continue on selecting your source and results table,
and then click 'Save', a similar NullPointerException gets thrown (form the
same line of code in SQLTable).

Is there an error stacktrace? If so, please paste it below.
java.lang.NullPointerException
    at
com.microsoft.sqlserver.jdbc.SQLServerStatement.clearColumnsValues(Unknown
Source)
    at com.microsoft.sqlserver.jdbc.SQLServerResultSet.cancelUpdates(Unknown
Source)
    at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(Unknown Source)
    at
ca.sqlpower.sqlobject.SQLTable.fetchTablesForTableContainer(SQLTable.java:1570)
    at ca.sqlpower.sqlobject.SQLCatalog.populateImpl(SQLCatalog.java:171)
    at ca.sqlpower.sqlobject.SQLObject.populate(SQLObject.java:249)
    at ca.sqlpower.sqlobject.SQLCatalog.isSchemaContainer(SQLCatalog.java:252)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.validate(SQLObjectChooser.java:3
59)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.access$0(SQLObjectChooser.java:2
72)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser$3.itemStateChanged(SQLObjectChoo
ser.java:251)
    at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1162)
    at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1219)
    at javax.swing.JComboBox.contentsChanged(JComboBox.java:1266)
    at
javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    at
javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:126)
    at javax.swing.JComboBox.addItem(JComboBox.java:690)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.setComboBoxStateAndItem(SQLObjec
tChooser.java:431)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.validate(SQLObjectChooser.java:3
21)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.access$0(SQLObjectChooser.java:2
72)
    at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser$3.itemStateChanged(SQLObjectChoo
ser.java:251)
    at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1162)
    at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1210)
    at javax.swing.JComboBox.contentsChanged(JComboBox.java:1266)
    at
ca.sqlpower.swingui.ConnectionComboBoxModel.fireContentChangedEvent(ConnectionCo
mboBoxModel.java:114)
    at
ca.sqlpower.swingui.ConnectionComboBoxModel.setSelectedItem(ConnectionComboBoxMo
del.java:73)
    at
ca.sqlpower.matchmaker.swingui.ProjectEditor$5.itemStateChanged(ProjectEditor.ja
va:162)
    at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1162)
    at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1210)
    at javax.swing.JComboBox.contentsChanged(JComboBox.java:1266)
    at
ca.sqlpower.swingui.ConnectionComboBoxModel.fireContentChangedEvent(ConnectionCo
mboBoxModel.java:114)
    at
ca.sqlpower.swingui.ConnectionComboBoxModel.setSelectedItem(ConnectionComboBoxMo
del.java:73)
    at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
    at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
    at
javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.jav
a:808)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
    at java.awt.Component.processMouseEvent(Component.java:5602)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at
javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:
476)
    at java.awt.Component.processEvent(Component.java:5367)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4068)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    at java.awt.Container.dispatchEventImpl(Container.java:2054)
    at java.awt.Window.dispatchEventImpl(Window.java:1801)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
69)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mo.j...@gmail.com on 27 Jul 2009 at 3:27

GoogleCodeExporter commented 9 years ago
Cannot reproduce this as of the latest codebase as of January 22, 2010.

Original comment by mo.j...@gmail.com on 22 Jan 2010 at 4:49