Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 4.8
-
Fix Version/s: 5.0
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu 10.04 (64 Bit)
Sun Java 1.6
(host bcvm07, user gvop)
Description
After installing BEAM with the installer, pconvert fails with the following stack trace:
gvop@bcvm07:~/inst/gv-meris$ /home/gvop/software/0.1/beam-4.8/bin/pconvert.sh -f dim -o ~/eodata/MER_RR__1P/dimap/2008/01/01 ~/eodata/MER_RR__1P/r03/2008/01/01/MER_RR__1PRACR20080101_003446_000026172064_00403_30517_0000.N1
reading file /home/gvop/eodata/MER_RR__1P/r03/2008/01/01/MER_RR__1PRACR20080101_003446_000026172064_00403_30517_0000.N1
org.esa.beam.framework.dataio.ProductReaderPlugIn: Provider org.esa.beam.dataio.modis.ModisProductReaderPlugIn could not be instantiated: java.lang.NoClassDefFoundError: ncsa/hdf/hdflib/HDFException27-Apr-2011 14:25:26 org.esa.beam.util.SystemUtils loadHdf5Lib
WARNING: class org.esa.beam.dataio.hdf5.Hdf5ProductWriterPlugIn: HDF-5 library not available: class java.lang.ClassNotFoundException: ncsa.hdf.hdf5lib.H5
Error: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bc.ceres.launcher.Launcher.launch(Launcher.java:153)
at com.bc.ceres.launcher.Launcher.main(Launcher.java:56)
Caused by: java.lang.NoClassDefFoundError: ucar/nc2/NetcdfFile
at org.esa.beam.dataio.netcdf.NetCdfReaderPlugIn.getDecodeQualification(NetCdfReaderPlugIn.java:61)
at org.esa.beam.framework.dataio.ProductIO.getProductReaderForFile(ProductIO.java:369)
at org.esa.beam.framework.dataio.ProductIO.readProductImpl(ProductIO.java:314)
at org.esa.beam.framework.dataio.ProductIO.readProduct(ProductIO.java:212)
at org.esa.beam.pconvert.PConvertMain.run(PConvertMain.java:475)
at org.esa.beam.pconvert.PConvertMain.main(PConvertMain.java:197)
... 6 more
Caused by: java.lang.ClassNotFoundException: ucar.nc2.NetcdfFile
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 12 more
It turns out that the installer did not install the HDF .so files at all.
gvop@bcvm07:~/inst/gv-meris$ ls /home/gvop/software/0.1/beam-4.8/modules/lib-hdf-2.3/
ls: cannot access /home/gvop/software/0.1/beam-4.8/modules/lib-hdf-2.3/: No such file or directory
gvop@bcvm07:~/inst/gv-meris$ ls /home/gvop/software/0.1/beam-4.8/modules/lib-hdf*
/home/gvop/software/0.1/beam-4.8/modules/lib-hdf-2.3.jar
It may be difficult to determine the right libraries for the operating system. Can you provide a hint (in the installer) that they have to be installed manually and how to do this?
gvop@bcvm07:~/inst/gv-meris$ /home/gvop/software/0.1/beam-4.8/bin/pconvert.sh -f dim -o ~/eodata/MER_RR__1P/dimap/2008/01/01 ~/eodata/MER_RR__1P/r03/2008/01/01/MER_RR__1PRACR20080101_003446_000026172064_00403_30517_0000.N1
reading file /home/gvop/eodata/MER_RR__1P/r03/2008/01/01/MER_RR__1PRACR20080101_003446_000026172064_00403_30517_0000.N1
org.esa.beam.framework.dataio.ProductReaderPlugIn: Provider org.esa.beam.dataio.modis.ModisProductReaderPlugIn could not be instantiated: java.lang.NoClassDefFoundError: ncsa/hdf/hdflib/HDFException27-Apr-2011 14:25:26 org.esa.beam.util.SystemUtils loadHdf5Lib
WARNING: class org.esa.beam.dataio.hdf5.Hdf5ProductWriterPlugIn: HDF-5 library not available: class java.lang.ClassNotFoundException: ncsa.hdf.hdf5lib.H5
Error: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bc.ceres.launcher.Launcher.launch(Launcher.java:153)
at com.bc.ceres.launcher.Launcher.main(Launcher.java:56)
Caused by: java.lang.NoClassDefFoundError: ucar/nc2/NetcdfFile
at org.esa.beam.dataio.netcdf.NetCdfReaderPlugIn.getDecodeQualification(NetCdfReaderPlugIn.java:61)
at org.esa.beam.framework.dataio.ProductIO.getProductReaderForFile(ProductIO.java:369)
at org.esa.beam.framework.dataio.ProductIO.readProductImpl(ProductIO.java:314)
at org.esa.beam.framework.dataio.ProductIO.readProduct(ProductIO.java:212)
at org.esa.beam.pconvert.PConvertMain.run(PConvertMain.java:475)
at org.esa.beam.pconvert.PConvertMain.main(PConvertMain.java:197)
... 6 more
Caused by: java.lang.ClassNotFoundException: ucar.nc2.NetcdfFile
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 12 more
It turns out that the installer did not install the HDF .so files at all.
gvop@bcvm07:~/inst/gv-meris$ ls /home/gvop/software/0.1/beam-4.8/modules/lib-hdf-2.3/
ls: cannot access /home/gvop/software/0.1/beam-4.8/modules/lib-hdf-2.3/: No such file or directory
gvop@bcvm07:~/inst/gv-meris$ ls /home/gvop/software/0.1/beam-4.8/modules/lib-hdf*
/home/gvop/software/0.1/beam-4.8/modules/lib-hdf-2.3.jar
It may be difficult to determine the right libraries for the operating system. Can you provide a hint (in the installer) that they have to be installed manually and how to do this?
Issue Links
- see also
-
BEAM-1279
Add 64-bit HDF libaries for all platforms
-