Error in gpt.command for mosaic in Mac OS


#1

Greetings,

Recently, I used the gpt tool to mosaic data from SeaDAS L2 products, however, an exception was thrown. The command was: /seadas/seadas-7.4/bin/gpt.command T2015001023000_gpt.xml -t T2015001023000_mosaic.h5 -f ‘HDF5’ T2015001023000_QKM.L2_LAC_OC. Same option does works in Linux via gpt.sh, but it failed in Mac OS. The exception was:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.converters.collections.TreeMapConverter (file:/seadas/seadas-7.4/lib/xstream-1.4.2.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.converters.collections.TreeMapConverter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.lang.IllegalArgumentException: org.geotools.styling.StyleFactory is not an ImageIO SPI class
_ at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:722)_
_ at java.desktop/javax.imageio.spi.ServiceRegistry.(ServiceRegistry.java:117)_
_ at org.geotools.factory.FactoryRegistry.(FactoryRegistry.java:154)_
_ at org.geotools.factory.FactoryCreator.(FactoryCreator.java:90)_
_ at org.geotools.factory.CommonFactoryFinder.getServiceRegistry(CommonFactoryFinder.java:78)_
_ at org.geotools.factory.CommonFactoryFinder.lookup(CommonFactoryFinder.java:315)_
_ at org.geotools.factory.CommonFactoryFinder.getFilterFactory(CommonFactoryFinder.java:286)_
_ at org.geotools.feature.AttributeTypeBuilder.(AttributeTypeBuilder.java:192)_
_ at org.geotools.feature.AttributeTypeBuilder.(AttributeTypeBuilder.java:199)_
_ at org.geotools.feature.simple.SimpleFeatureTypeBuilder.(SimpleFeatureTypeBuilder.java:189)_
_ at org.geotools.feature.simple.SimpleFeatureTypeBuilder.(SimpleFeatureTypeBuilder.java:179)_
_ at org.esa.beam.framework.datamodel.Placemark.createPointFeatureType(Placemark.java:428)_
_ at org.esa.beam.framework.datamodel.Placemark.createPinFeatureType(Placemark.java:412)_
_ at org.esa.beam.framework.datamodel.Product.createPinGroup(Product.java:1262)_
_ at org.esa.beam.framework.datamodel.Product.(Product.java:252)_
_ at org.esa.beam.framework.datamodel.Product.(Product.java:221)_
_ at org.esa.beam.framework.datamodel.Product.(Product.java:206)_
_ at gov.nasa.gsfc.seadas.dataio.L2FileReader.createProduct(L2FileReader.java:100)_
_ at gov.nasa.gsfc.seadas.dataio.SeadasProductReader.readProductNodesImpl(SeadasProductReader.java:170)_
_ at org.esa.beam.framework.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:173)_
_ at org.esa.beam.gpf.operators.standard.ReadOp.initialize(ReadOp.java:77)_
_ at org.esa.beam.framework.gpf.internal.OperatorContext.initializeOperator(OperatorContext.java:457)_
_ at org.esa.beam.framework.gpf.internal.OperatorContext.getTargetProduct(OperatorContext.java:236)_
_ at org.esa.beam.framework.gpf.Operator.getTargetProduct(Operator.java:323)_
_ at org.esa.beam.framework.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:74)_
_ at org.esa.beam.framework.gpf.graph.GraphContext.initNodeContext(GraphContext.java:195)_
_ at org.esa.beam.framework.gpf.graph.GraphContext.initNodeContext(GraphContext.java:178)_
_ at org.esa.beam.framework.gpf.graph.GraphContext.initNodeContext(GraphContext.java:178)_
_ at org.esa.beam.framework.gpf.graph.GraphContext.initOutput(GraphContext.java:162)_
_ at org.esa.beam.framework.gpf.graph.GraphContext.(GraphContext.java:91)_
_ at org.esa.beam.framework.gpf.graph.GraphContext.(GraphContext.java:64)_
_ at org.esa.beam.framework.gpf.graph.GraphProcessor.executeGraph(GraphProcessor.java:124)_
_ at org.esa.beam.framework.gpf.main.DefaultCommandLineContext.executeGraph(DefaultCommandLineContext.java:84)_
_ at org.esa.beam.framework.gpf.main.CommandLineTool.executeGraph(CommandLineTool.java:508)_
_ at org.esa.beam.framework.gpf.main.CommandLineTool.runGraph(CommandLineTool.java:356)_
_ at org.esa.beam.framework.gpf.main.CommandLineTool.runGraphOrOperator(CommandLineTool.java:249)_
_ at org.esa.beam.framework.gpf.main.CommandLineTool.run(CommandLineTool.java:150)_
_ at org.esa.beam.framework.gpf.main.CommandLineTool.run(CommandLineTool.java:122)_
_ at org.esa.beam.framework.gpf.main.GPT.run(GPT.java:54)_
_ at org.esa.beam.framework.gpf.main.GPT.main(GPT.java:34)_
_ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)_
_ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)_
_ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)_
_ at java.base/java.lang.reflect.Method.invoke(Method.java:564)_
_ at com.bc.ceres.launcher.Launcher.launch(Launcher.java:154)_
_ at com.bc.ceres.launcher.Launcher.main(Launcher.java:56)_

Error: org.geotools.styling.StyleFactory is not an ImageIO SPI class

Xml file and L2 file were attached, coud someone give me some suggestions?

Regards,
Zhigang

T2015001023000_gpt.xml (6.4 KB)
T2015001023000_QKM.L2_LAC_OC (2.9 MB)


#2

As you are using SeaDAS you should ask in the SeaDAS Forum.
SeaDAS is still using BEAM and BEAM is not maintained anymore.
Even in BEAM I haven’t seen such an error. So it might be SeaDAS specific.


#3

Thank you, Marco. I will send this problem to seadas.