Issue 12 in power-matchmaker: Choosing a SQL Server 2005 instance as your data source in a de-duping project throws an NullPointerException

2 views
Skip to first unread message

codesite...@google.com

unread,
Jul 27, 2009, 11:28:03 AM7/27/09
to dqguru...@googlegroups.com
Status: Accepted
Owner: mo.jeff
Labels: Type-Defect Priority-High Milestone-Release0.9.6 OpSys-OSX
Component-Logic

New issue 12 by mo.jeff: Choosing a SQL Server 2005 instance as your data
source in a de-duping project throws an NullPointerException
http://code.google.com/p/power-matchmaker/issues/detail?id=12

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:359)
at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.access$0(SQLObjectChooser.java:272)
at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser$3.itemStateChanged(SQLObjectChooser.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(SQLObjectChooser.java:431)
at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.validate(SQLObjectChooser.java:321)
at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser.access$0(SQLObjectChooser.java:272)
at
ca.sqlpower.matchmaker.swingui.SQLObjectChooser$3.itemStateChanged(SQLObjectChooser.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(ConnectionComboBoxModel.java:114)
at
ca.sqlpower.swingui.ConnectionComboBoxModel.setSelectedItem(ConnectionComboBoxModel.java:73)
at
ca.sqlpower.matchmaker.swingui.ProjectEditor$5.itemStateChanged(ProjectEditor.java: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(ConnectionComboBoxModel.java:114)
at
ca.sqlpower.swingui.ConnectionComboBoxModel.setSelectedItem(ConnectionComboBoxModel.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.java: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:269)
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.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

power-ma...@googlecode.com

unread,
Jan 22, 2010, 11:50:13 AM1/22/10
to dqguru...@googlegroups.com

Comment #1 on issue 12 by mo.j...@gmail.com: Choosing a SQL Server 2005
instance as your data source in a de-duping project throws an
NullPointerException
http://code.google.com/p/power-matchmaker/issues/detail?id=12

Cannot reproduce this as of the latest codebase as of January 22, 2010.

Reply all
Reply to author
Forward
0 new messages