Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to get netcdf #49

Closed
jkburges opened this issue Oct 19, 2015 · 0 comments
Closed

Error when trying to get netcdf #49

jkburges opened this issue Oct 19, 2015 · 0 comments
Labels

Comments

@jkburges
Copy link
Contributor

An exception occurs when trying to generate a NetCDF under certain conditions.

Steps to reproduce
From the command line:

  1. cd src/extension/ncdfgenerator
  2. mvn exec:java -Dexec.mainClass=au.org.emii.ncdfgenerator.Main -Dexec.args="-d jdbc:postgresql://dbprod.emii.org.au:5432/harvest?loginTimeout=1000&ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory -u HERE_BE_USER -p HERE_BE_PASSWORD -P anmn_ts -s anmn_ts"

Note that the same thing happens from the context of the WPS process, which can be triggered equivalently from the portal.

What happens
After a minute or two:

Write exception java.lang.IllegalArgumentException: dimension length must be > 0 :0 at ucar.nc2.NetcdfFileWriteable.addDimension(NetcdfFileWriteable.java:247) at au.org.emii.ncdfgenerator.DimensionImpl.define(DimensionImpl.java:26) at au.org.emii.ncdfgenerator.NcdfEncoder.writeNext(NcdfEncoder.java:188) at au.org.emii.ncdfgenerator.Main.main(Main.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) at java.lang.Thread.run(Thread.java:745)

What should happen
A valid zip of NetCDF files is produced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants