Opened 7 years ago
Last modified 7 years ago
#513 new defect
Bug in GCIM_HazardCurve
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | sha | Version: | |
Keywords: | GCIM_HazardCurve | Cc: |
Description
Steps to reproduce: Open GCIM calculator, select NZ 2012 ERF and bug report appears.
Other info: As before, will attach full error log to this bug report (amended below). Not sure if my PC/ Windows/ Java config is causing the error. I had previously received the error on my Macbook also, but haven't tried this build yet on the Mac.
Application: GCIM_HazardCurve
Version: 1.3.1
Bulid Type: Development
Java Version: 1.8.0_71 (Oracle Corporation)
Operating System: Windows 7 (arch: x86, version: 6.1)
Exception:
java.lang.ExceptionInInitializerError at scratch.stirling.NewZealandERF_2012.<clinit>(NewZealandERF_2012.java:39) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.opensha.sha.earthquake.ERF_Ref.instance(ERF_Ref.java:242) at org.opensha.sha.gui.beans.ERF_GuiBean.getERFInstance(ERF_GuiBean.java:153) at org.opensha.sha.gui.beans.ERF_GuiBean.parameterChange(ERF_GuiBean.java:496) at org.opensha.commons.param.AbstractParameter.firePropertyChange(AbstractParameter.java:386) at org.opensha.commons.param.AbstractParameter.setValue(AbstractParameter.java:210) at org.opensha.commons.param.editor.AbstractParameterEditor.setValue(AbstractParameterEditor.java:75) at org.opensha.commons.param.editor.impl.ConstrainedStringParameterEditor.itemStateChanged(ConstrainedStringParameterEditor.java:99) at javax.swing.JComboBox.fireItemStateChanged(Unknown Source) at javax.swing.JComboBox.selectedItemChanged(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source) at javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source) at javax.swing.JComboBox.setSelectedItem(Unknown Source) at javax.swing.JComboBox.setSelectedIndex(Unknown Source) at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: resource data\FUN1111.DAT relative to scratch.stirling.NewZealandParser not found. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) at com.google.common.io.Resources.getResource(Resources.java:209) at scratch.stirling.NewZealandParser.initFaults(NewZealandParser.java:93) at scratch.stirling.NewZealandParser.<clinit>(NewZealandParser.java:50) ... 53 more
Note: See
TracTickets for help on using
tickets.
OK looks like there were 2 bugs in the implementation, one with a data file being missing, and one that caused it to fail on Windows machines. Can you try again with this one?
http://opensha.usc.edu/apps/opensha/GCIM_HazardCurve/nightly/GCIM_HazardCurve-1.3.1-11263-2016_02_29.jar