This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Zhenping : Usually you have to compile netcdf 4 library on each platform, you cant move it between machines. Not sure if thats what you did. John > John: > I have a null pointer exception from the netcdf4 library, the following is > the error msg: > > Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library > /tmp/jna1935870281471053873.tmp which might have disabled stack guard. The VM > will try to fix the stack guard now. > It's highly recommended that you fix the library with 'execstack -c > <libfile>', or link it with '-z noexecstack'. > Exception in thread "Thread-0" java.lang.NullPointerException > at ucar.nc2.jni.netcdf.Nc4Iosp.flush(Nc4Iosp.java:2433) > at ucar.nc2.NetcdfFileWriter.flush(NetcdfFileWriter.java:849) > at ucar.nc2.NetcdfFileWriter.close(NetcdfFileWriter.java:858) > at > gov.nasa.grtdat.datainterface.netcdf.output.ABINetCDFWriter.writeData(ABINetCDFWriter.java:153) > at gov.nasa.gratdat.gpaimpl.ABIOutputRunnable.run(ABIOutputRunnable.java:65) > at java.lang.Thread.run(Thread.java:745) > > My question are what is stack guard issue? How to avoid it? I compiled my > java code on one machine, where it seems working. However, when I tried to > install the jar file on another machine, it generates above error msg. Any > help would be greatly appreciated. > > Thanks > Zhenping Li > > Ticket Details =================== Ticket ID: KTU-101437 Department: Support netCDF Java Priority: High Status: Closed