Opened 13 years ago

Closed 13 years ago

#186 closed defect (fixed)

Bug in FaultSections

Reported by: timothy.dawson@… Owned by: Kevin Milner
Priority: major Milestone:
Component: fault DB Version:
Keywords: FaultSections Cc:


Steps to reproduce: Kevin: There is a bug in the Fault Sections application. I was trying to edit the Fault Model and when I hit the "Update Model" button, I got an error message something like "....SQL command not properly ended". The bigger issue is that the application seems to overwrite the existing fault model so that it goes back to having none of the faults selected. Now I can't event tell which faults where originally in model F2.1 because it saved everything as unselected.

Other info: (PLEASE FILL IN)

Application: FaultSections?
Version: 1.0.2
Bulid Type: nightly


	at org.opensha.refFaultParamDb.dao.db.FaultModelDB_DAO.getFaultSectionIdList(
	at org.opensha.refFaultParamDb.gui.addEdit.faultModel.AddEditFaultModel.getFaultSectionIdList(
	at org.opensha.refFaultParamDb.gui.addEdit.faultModel.AddEditFaultModel.setFaultSectionsBasedOnFaultModel(
	at org.opensha.refFaultParamDb.gui.addEdit.faultModel.AddEditFaultModel.parameterChange(
	at org.opensha.commons.param.Parameter.firePropertyChange(
	at org.opensha.commons.param.Parameter.setValue(
	at org.opensha.commons.param.editor.ParameterEditor.setValue(
	at org.opensha.commons.param.editor.ConstrainedStringParameterEditor.itemStateChanged(
	at javax.swing.JComboBox.fireItemStateChanged(
	at javax.swing.JComboBox.selectedItemChanged(
	at javax.swing.JComboBox.contentsChanged(
	at javax.swing.AbstractListModel.fireContentsChanged(
	at javax.swing.DefaultComboBoxModel.setSelectedItem(
	at javax.swing.JComboBox.setSelectedItem(
	at javax.swing.JComboBox.setSelectedIndex(
	at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$000(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Change History (2)

comment:1 Changed 13 years ago by Kevin Milner

Tim, thanks for the bug report. I'm working on it right now.

Ned: Was this database migrated from MySQL to Oracle at some point? The code for updating fault models uses MySQL syntax that isn't compatible with Oracle. It was either never used/tested previously, or applied to an old (MySQL) version of the database. I'm in the process of updating it.

comment:2 Changed 13 years ago by Kevin Milner

Resolution: fixed
Status: newclosed


I've fixed this particular bug, I also re-populated the DB for FM 2.1 (including the new 2011 one you created) with the values from the old UCERF2 database.

Your application should update next time you launch it, if it doesn't (no download bar appears), re-launch it from this address:


Note: See TracTickets for help on using tickets.