Closed nhandwerk closed 7 months ago
Hello, I ran a quick test and I'm having a hard time reproducing the error that your seeing. I did a cursory google search of the java.lang.NoSuchMethodError
and found that it's possible that there is a version mismatch between the compile time and runtime dependancies. Is it possible that you have another version of the jar file hanging around somewhere that's causing the error?
Versions impacted by the bug
v5.x
What went wrong?
When calling the following line NetcdfFormatWriter.createNetNetcdfX a no such method would occur. It happened if called using "createNewNetcdf3" :
NetcdfFormatWriter.Builder nc4builder = NetcdfFormatWriter.createNewNetcdf3("temp.nc");
or with "createNewNetcdf4"
NetcdfFormatWriter.Builder nc4builder = NetcdfFormatWriter.createNewNetcdf4(NetcdfFileFormat.NETCDF4, "temp.nc", null);
Below are the relevant imports called:
The jar file that is in my lib directory is: netcdfAll-5.5.3,jar which I downloaded from here https://downloads.unidata.ucar.edu/netcdf-java/
Current build is using Ant but have also build using Maven and ran into the same issue.
Relevant stack trace
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed? Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct