java.lang.ArithmeticException: / by zero
GoogleCodeExporter opened this issue · comments
check.jsp failed with this error:
java.lang.ArithmeticException: / by zero
org.oostethys.model.impl.ObservationNetcdf.getIndex(ObservationNetcdf.java:831)
org.oostethys.model.impl.ObservationNetcdf.getValue(ObservationNetcdf.java:817)
org.oostethys.model.impl.ObservationNetcdf.process(ObservationNetcdf.java:456)
org.oostethys.sos.Netcdf2sos100.processSystem(Netcdf2sos100.java:441)
org.oostethys.sos.Netcdf2sos100.doComponents(Netcdf2sos100.java:162)
org.oostethys.sos.Netcdf2sos100.doComponents(Netcdf2sos100.java:163)
org.oostethys.sos.Netcdf2sos100.doComponents(Netcdf2sos100.java:163)
org.oostethys.sos.Netcdf2sos100.process(Netcdf2sos100.java:333)
org.oostethys.sos.Netcdf2sos100.processForTest(Netcdf2sos100.java:295)
...
The steps to get to this error were:
1. Built WAR file from sources as of today @ around 10am PDT and using the
attached oostethys.xml config file. The relevant part is:
<nc:oostethys-netcdf
>
<nc:fileURL>http://dods.mbari.org/cgi-bin/nph-nc/data/ssdsdata/deployments/m0/cu
rrent_netCDFs/hourlyM0.nc</nc:fileURL>
<nc:variables>
<nc:variable shortName="HR_TIME_ADCP"
uri="urn:ogc:phenomenon:time:iso8601" dimension="time"/>
<nc:variable shortName="latitude"
uri="urn:ogc:phenomenon:longitude:wgs84" dimension="latitude"/>
<nc:variable shortName="latitude"
uri="urn:ogc:phenomenon:latitude:wgs84" dimension="latitude"/>
<nc:variable shortName="HR_DEPTH_ADCP"
uri="http://mmisw.org/ont/cf/parameter/depth" dimension="depth"/>
</nc:variables>
</nc:oostethys-netcdf>
So, this is using
http://dods.mbari.org/cgi-bin/nph-nc/data/ssdsdata/deployments/m0/current_netCDF
s/hourlyM0.nc.html
Is there anything wrong with my config file?
In any case, the error reporting should be improved so users can better
understand the potential configuration problem.
Original issue reported on code.google.com by caru...@gmail.com
on 29 Apr 2009 at 7:08
Attachments:
Hi Carlos,
Problem is you don't have a dimension "longitude" defined.
I added a request to add checking and to provide a better error message
http://code.google.com/p/oostethys/issues/detail?id=20
Original comment by ber...@gmail.com
on 29 Apr 2009 at 8:09
- Added labels: Priority-Medium
- Removed labels: Priority-High
oops, sorry for the typo in my config. I just fixed it, but I'm still getting
the
same error.
The config now contains:
<nc:variable shortName="HR_TIME_ADCP" uri="urn:ogc:phenomenon:time:iso8601"
dimension="time"/>
<nc:variable shortName="longitude" uri="urn:ogc:phenomenon:longitude:wgs84"
dimension="longitude"/>
<nc:variable shortName="latitude" uri="urn:ogc:phenomenon:latitude:wgs84"
dimension="latitude"/>
<nc:variable shortName="HR_DEPTH_ADCP"
uri="http://mmisw.org/ont/cf/parameter/depth"
dimension="depth"/>
Do those 4 variables fulfill the requirement you describe in issue #20 ?
Original comment by caru...@gmail.com
on 29 Apr 2009 at 8:26
verify that this has been solved
Original comment by ber...@gmail.com
on 27 May 2009 at 6:28
- Changed state: Fixed
I verified this several days ago.
Original comment by caru...@gmail.com
on 5 Jun 2009 at 6:15
- Changed state: Verified