[INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.bc.ceres.compiler.CodeCompilerTest code = package com.bc.ceres.jai.opimage.exprc; import static java.lang.Math.*; import com.bc.ceres.compiler.Band; import com.bc.ceres.compiler.Function; import com.bc.ceres.compiler.Product; public class TestFunction implements Function { private final double[] ab2; private final double[] ab1; public TestFunction(Product p) { ab2 = p.getBand("b2").getSamples(); ab1 = p.getBand("b1").getSamples(); } public double eval(int _index) { final double b2 = ab2[_index]; final double b1 = ab1[_index]; return 0.5 * (b1 + b2); } } [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.1 s <<< FAILURE! - in com.bc.ceres.compiler.CodeCompilerTest [ERROR] testIt(com.bc.ceres.compiler.CodeCompilerTest) Time elapsed: 0.069 s <<< ERROR! java.lang.NullPointerException at com.bc.ceres.compiler.CodeCompilerTest.testIt(CodeCompilerTest.java:80) [INFO] Running com.bc.ceres.compiler.CodeMapperTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.compiler.CodeMapperTest [INFO] Running com.bc.ceres.jai.operator.ExpressionDescriptorTest Error: One factory fails for the operation "Expression" Occurs in: javax.media.jai.ThreadSafeOperationRegistry java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.media.jai.FactoryCache.invoke(Unknown Source) at javax.media.jai.OperationRegistry.invokeFactory(Unknown Source) at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(Unknown Source) at javax.media.jai.registry.RIFRegistry.create(Unknown Source) at javax.media.jai.RenderedOp.createInstance(Unknown Source) at javax.media.jai.RenderedOp.createRendering(Unknown Source) at javax.media.jai.RenderedOp.getWidth(Unknown Source) at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDestinationImage(ExpressionDescriptorTest.java:178) at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDescriptor(ExpressionDescriptorTest.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) Caused by: java.lang.NullPointerException at com.bc.ceres.compiler.CodeCompiler.performCompilerTask(CodeCompiler.java:67) at com.bc.ceres.compiler.CodeCompiler.compile(CodeCompiler.java:53) at com.bc.ceres.jai.opimage.ExpressionCRIF.create(ExpressionCRIF.java:94) at com.bc.ceres.jai.opimage.ExpressionCRIF.create(ExpressionCRIF.java:78) ... 42 more [ERROR] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.47 s <<< FAILURE! - in com.bc.ceres.jai.operator.ExpressionDescriptorTest [ERROR] testDescriptor(com.bc.ceres.jai.operator.ExpressionDescriptorTest) Time elapsed: 0.138 s <<< ERROR! javax.media.jai.util.ImagingException: All factories fail for the operation "Expression" at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDestinationImage(ExpressionDescriptorTest.java:178) at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDescriptor(ExpressionDescriptorTest.java:88) Caused by: java.lang.reflect.InvocationTargetException at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDestinationImage(ExpressionDescriptorTest.java:178) at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDescriptor(ExpressionDescriptorTest.java:88) Caused by: java.lang.NullPointerException at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDestinationImage(ExpressionDescriptorTest.java:178) at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testDescriptor(ExpressionDescriptorTest.java:88) [ERROR] testCRIF(com.bc.ceres.jai.operator.ExpressionDescriptorTest) Time elapsed: 0 s <<< ERROR! java.lang.NullPointerException at com.bc.ceres.jai.operator.ExpressionDescriptorTest.testCRIF(ExpressionDescriptorTest.java:106) [INFO] Running com.bc.ceres.jai.operator.GeneralFilterDescriptorTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.jai.operator.GeneralFilterDescriptorTest [INFO] Running com.bc.ceres.jai.operator.PaintDescriptorTest [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.jai.operator.PaintDescriptorTest [INFO] Running com.bc.ceres.jai.operator.ReinterpretDescriptorTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.jai.operator.ReinterpretDescriptorTest [INFO] Running com.bc.ceres.jai.operator.XmlDescriptorTest Error: Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode. Occurs in: com.sun.media.jai.mlib.MediaLibAccessor com.sun.media.jai.mlib.MediaLibLoadException [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 s - in com.bc.ceres.jai.operator.XmlDescriptorTest [INFO] Running com.bc.ceres.jai.opimage.DFTConvolveRIFTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.jai.opimage.DFTConvolveRIFTest [INFO] Running com.bc.ceres.jai.opimage.ExpressionCodeGeneratorTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 s - in com.bc.ceres.jai.opimage.ExpressionCodeGeneratorTest [INFO] Running com.bc.ceres.jai.opimage.ReinterpretOpImageTest Long Tests disabled. Set VM param -Denable.long.tests=true to enable. [WARNING] Tests run: 11, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s - in com.bc.ceres.jai.opimage.ReinterpretOpImageTest [INFO] Running com.bc.ceres.jai.tilecache.SwappingTileCacheTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.jai.tilecache.SwappingTileCacheTest [INFO] Running com.bc.ceres.jai.TileTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.bc.ceres.jai.TileTest [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] CodeCompilerTest.testIt:80 » NullPointer [ERROR] ExpressionDescriptorTest.testCRIF:106 » NullPointer [ERROR] ExpressionDescriptorTest.testDescriptor:88->testDestinationImage:178 » Imaging [INFO] [ERROR] Tests run: 36, Failures: 0, Errors: 3, Skipped: 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] SNAP Engine Project 9.0.0-SNAPSHOT ................. SUCCESS [ 0.998 s] [INFO] SNAP Test Utils 9.0.0-SNAPSHOT ..................... SUCCESS [ 7.090 s] [INFO] Ceres Runtime Library 9.0.0-SNAPSHOT ............... SUCCESS [ 16.760 s] [INFO] Ceres Binding 9.0.0-SNAPSHOT ....................... SUCCESS [ 7.057 s] [INFO] Ceres JAI Library 9.0.0-SNAPSHOT ................... FAILURE [ 11.289 s] [INFO] Ceres GLayer Library 9.0.0-SNAPSHOT ................ SKIPPED [INFO] Ceres User Interface Library 9.0.0-SNAPSHOT ........ SKIPPED [INFO] Ceres Binary I/O Library 9.0.0-SNAPSHOT ............ SKIPPED [INFO] Ceres Metadata handling Library 9.0.0-SNAPSHOT ..... SKIPPED [INFO] SNAP Runtime 9.0.0-SNAPSHOT ........................ SKIPPED [INFO] SNAP Core Library 9.0.0-SNAPSHOT ................... SKIPPED [INFO] SNAP Graph Processing Framework (GPF) 9.0.0-SNAPSHOT SKIPPED [INFO] SNAP Engine Utilities 9.0.0-SNAPSHOT ............... SKIPPED [INFO] SNAP Remote Products Repository 9.0.0-SNAPSHOT ..... SKIPPED [INFO] SNAP Product Library v2 9.0.0-SNAPSHOT ............. SKIPPED [INFO] HDF Library 2.7.1 .................................. SKIPPED [INFO] OpenJpeg Library 9.0.0-SNAPSHOT .................... SKIPPED [INFO] SNAP ArcInfo Binary Grid Reader 9.0.0-SNAPSHOT ..... SKIPPED [INFO] SNAP GeoTIFF Product Reader/Writer 9.0.0-SNAPSHOT .. SKIPPED [INFO] SNAP GeoTIFF/BigTIFF Product Reader 9.0.0-SNAPSHOT . SKIPPED [INFO] SNAP NetCDF Product Reader/Writer 9.0.0-SNAPSHOT ... SKIPPED [INFO] SNAP Envisat Product Reader 9.0.0-SNAPSHOT ......... SKIPPED [INFO] NASA Blue Marble Worldmap 9.0.0-SNAPSHOT ........... SKIPPED [INFO] SNAP Level-3 Binning Processor (GPF) 9.0.0-SNAPSHOT SKIPPED [INFO] SNAP Classification 9.0.0-SNAPSHOT ................. SKIPPED [INFO] SNAP Cluster Analysis 9.0.0-SNAPSHOT ............... SKIPPED [INFO] SNAP Change Detection 9.0.0-SNAPSHOT ............... SKIPPED [INFO] SNAP Collocation Operator 9.0.0-SNAPSHOT ........... SKIPPED [INFO] SNAP CSV Product Reader/Writer 9.0.0-SNAPSHOT ...... SKIPPED [INFO] SNAP Digital Elevation Models 9.0.0-SNAPSHOT ....... SKIPPED [INFO] SNAP ENVI Product Reader 9.0.0-SNAPSHOT ............ SKIPPED [INFO] JP2 Reader 9.0.0-SNAPSHOT .......................... SKIPPED [INFO] GETASSE30 DEM 9.0.0-SNAPSHOT ....................... SKIPPED [INFO] HDF5 Product Writer 9.0.0-SNAPSHOT ................. SKIPPED [INFO] SNAP Land Cover 9.0.0-SNAPSHOT ..................... SKIPPED [INFO] SNAP NDVI Processor 9.0.0-SNAPSHOT ................. SKIPPED [INFO] SNAP Product Conversion Tool 9.0.0-SNAPSHOT ........ SKIPPED [INFO] SNAP PGX Product Reader 9.0.0-SNAPSHOT ............. SKIPPED [INFO] SNAP Pixel Extraction Tool 9.0.0-SNAPSHOT .......... SKIPPED [INFO] SNAP Python Interface 9.0.0-SNAPSHOT ............... SKIPPED [INFO] SNAP Raster Operators 9.0.0-SNAPSHOT ............... SKIPPED [INFO] SNAP Statistics Operator 9.0.0-SNAPSHOT ............ SKIPPED [INFO] SNAP Temporal Percentile Operator 9.0.0-SNAPSHOT ... SKIPPED [INFO] SNAP Spectral Unmixing Tool 9.0.0-SNAPSHOT ......... SKIPPED [INFO] SNAP Virtual File Systems 9.0.0-SNAPSHOT ........... SKIPPED [INFO] SNAP Watermask Operator 9.0.0-SNAPSHOT ............. SKIPPED [INFO] ESA GlobCover Worldmap 9.0.0-SNAPSHOT .............. SKIPPED [INFO] SNAP Smart Configurator 9.0.0-SNAPSHOT ............. SKIPPED [INFO] SNAP Standalone Tool Adapter 9.0.0-SNAPSHOT ........ SKIPPED [INFO] SNAP Remote Execution 9.0.0-SNAPSHOT ............... SKIPPED [INFO] SNAP Engine Kit Module 9.0.0-SNAPSHOT .............. SKIPPED [INFO] SNAP Raw, tiled pyramid product I/O (experimental) 9.0.0-SNAPSHOT SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 45.045 s [INFO] Finished at: 2021-03-22T10:23:37+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project ceres-jai: There are test failures. [ERROR] [ERROR] Please refer to C:\Program Files (x86)\snap_master\snap-engine\ceres-jai\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :ceres-jai