Thanks for the confirmation. [On-list so others can see.]
Kind regards, Ben. On 07/09/17 15:26, Gabriella Turek wrote:
Thanx a bunch Ben, that works great! gaby On 7/09/17, 15:14, "Ben Caradoc-Davies" <[email protected]> wrote: Gaby, please keep discussions on list. The Nc4Iosp warning comes from the NetCDF-Java library (we use 4.6.6): https://github.com/Unidata/thredds/blob/v4.6.6/netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java#L179 The name of the logger is "serverStartup": https://github.com/Unidata/thredds/blob/v4.6.6/netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java#L81 Because this is a warning, you should be able to silence it by changing the level for this logger in your application to error or fatal or off. For example, for log4j, use one of these lines: log4j.logger.serverStartup = ERROR log4j.logger.serverStartup = FATAL log4j.logger.serverStartup = OFF See the log4j manual for details: http://logging.apache.org/log4j/1.2/manual.html Kind regards, Ben. On 07/09/17 14:14, Gabriella Turek wrote: > Thank you be, will ignore missing file warning and expect it to disappear when we update the release. > As for the other warning here it is: > > 2017-09-07 14:08:14 WARN serverStartup:179 - Nc4Iosp: NetCDF-4 C library not present (jna_path='/usr/local/lib/', libname='netcdf'). > java.lang.UnsatisfiedLinkError: Unable to load library 'netcdf': Native library (darwin/libnetcdf.dylib) not found in resource path[.......]) > at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271) > at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398) > at com.sun.jna.Library$Handler.<init>(Library.java:147) > at com.sun.jna.Native.loadLibrary(Native.java:412) > at com.sun.jna.Native.loadLibrary(Native.java:391) > at ucar.nc2.jni.netcdf.Nc4Iosp.load(Nc4Iosp.java:172) > at ucar.nc2.jni.netcdf.Nc4Iosp.isClibraryPresent(Nc4Iosp.java:196) > at org.geotools.imageio.netcdf.utilities.NetCDFUtilities.<clinit>(NetCDFUtilities.java:398) > at org.geotools.imageio.netcdf.NetCDFImageReaderSpi.<clinit>(NetCDFImageReaderSpi.java:122) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at java.lang.Class.newInstance(Class.java:442) > at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380) > at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) > at java.util.ServiceLoader$1.next(ServiceLoader.java:480) > at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:210) > at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138) > at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159) > at javax.imageio.ImageIO.<clinit>(ImageIO.java:66) > at riskscape.newui.icons.UIResources.getBufferedImage(UIResources.java:43) > at riskscape.newui.components.RiskScapeFlashScreen.<init>(RiskScapeFlashScreen.java:28) > at riskscape.newui.RiskScape.main(RiskScape.java:220) > > > > > > On 7/09/17, 13:24, "Ben Caradoc-Davies" <[email protected]> wrote: > > On 07/09/17 12:50, Gabriella Turek wrote: > > We are using geotools 17.2. We have a warning that says: > > java.lang.ClassNotFoundException: org.geotools.data.wfs.v1_0_0.xml.WFSSchema > > What jar file is this found in? > > Not in any jar file, hence the warning. The missing file is mentioned in > a services file in gt-wfs-ng. This is fixed in 18-beta and 17.3 > (unreleased): > > [GEOT-5795] WARNING: java.lang.ClassNotFoundException: > org.geotools.data.wfs.v1_0_0.xml.WFSSchema > https://osgeo-org.atlassian.net/browse/GEOT-5795 > > > Also we keep getting a long warning about missing NetCDF native libraries which is OK, we just want to suppress the warning from showing up in the console. Any ideas? > > What is the full warning text? You should be able to adjust your logging > configuration to silence that logger. > > Kind regards, > > -- > Ben Caradoc-Davies <[email protected]> > Director > Transient Software Limited <http://transient.nz/> > New Zealand > > > > Dr Gabriella Turek > Senior Software Engineer > > +64-4-386-0819 | 301 Evans Bay Parade, Greta Point, Wellington | www.niwa.co.nz<http://www.niwa.co.nz> > [NIWA]<http://www.niwa.co.nz> > To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems. > > > > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand Dr Gabriella Turek Senior Software Engineer +64-4-386-0819 | 301 Evans Bay Parade, Greta Point, Wellington | www.niwa.co.nz<http://www.niwa.co.nz> [NIWA]<http://www.niwa.co.nz> To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems.
-- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
