-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: CI/CD
-
Epic Link:
-
Tags:
-
Story Points:2
org.nuxeo.ecm.platform.pictures.tiles.service.test.TestPictureTilesRestlet.testGetTilesInfoXML
Error Message <?xml version="1.0" encoding="UTF-8"?> <error message="org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map #{mapComponents} -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} -resize #{targetWidth}x#{targetHeight}! #{mapComponents}:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230." class="org.nuxeo.ecm.core.api.NuxeoException"/> Stacktrace java.lang.AssertionError: <?xml version="1.0" encoding="UTF-8"?> <error message="org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map #{mapComponents} -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} -resize #{targetWidth}x#{targetHeight}! #{mapComponents}:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230." class="org.nuxeo.ecm.core.api.NuxeoException"/> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.nuxeo.ecm.platform.pictures.tiles.service.test.TestPictureTilesRestlet.doTestGetTilesInfo(TestPictureTilesRestlet.java:161) at org.nuxeo.ecm.platform.pictures.tiles.service.test.TestPictureTilesRestlet.testGetTilesInfoXML(TestPictureTilesRestlet.java:123) 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:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:292) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:306) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:329) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:346) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:419) at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:326) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:419) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:235) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:419) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:218) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) 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) Standard Output RuntimeStreamFeature: Deploying Nuxeo Stream using Chronicle WorkManagerFeature: Deploying WorkManager using default implementation StorageConfiguration: Deploying JDBC using DatabaseH2 StorageConfiguration: Deploying a VCS repository 2019-06-14 11:20:04,506 [main] WARN [TransientStorageComponent] Missing configuration for default transient store, using in-memory 2019-06-14 11:20:04,794 [main] ERROR [OSGiRuntimeService] Nuxeo Platform Started ====================================================================== = Component Loading Warnings: * Missing configuration for default transient store, using in-memory ====================================================================== = Component Loading Status: Pending: 4 / Missing: 6 / Unstarted: 0 / Total: 169 * service:org.nuxeo.ecm.platform.picture.ImagingComponent requires [service:org.nuxeo.ecm.core.operation.OperationServiceComponent] * service:org.nuxeo.ecm.platform.picture.web.preview.adapter.contrib requires [service:org.nuxeo.ecm.platform.preview.adapter.contrib] * service:org.nuxeo.ecm.platform.picture.coreTypes requires [service:org.nuxeo.ecm.tags.schemas] * service:org.nuxeo.ecm.platform.picture.renditions requires [service:org.nuxeo.ecm.platform.rendition.contrib] * service:org.nuxeo.ecm.platform.picture.binary.metadata.contrib references missing [target=org.nuxeo.binary.metadata;point=metadataMappings, target=org.nuxeo.binary.metadata;point=metadataRules, target=org.nuxeo.ecm.platform.actions.ActionService;point=filters] * service:org.nuxeo.ecm.platform.picture.filemanager.contrib references missing [target=org.nuxeo.ecm.platform.filemanager.service.FileManagerService;point=plugins] * service:org.nuxeo.ecm.platform.picture.jsf.types references missing [target=org.nuxeo.ecm.platform.types.TypeService;point=types] * service:org.nuxeo.ecm.platform.picture.ImagingComponent.default.config references missing [target=org.nuxeo.ecm.platform.picture.ImagingComponent;point=configuration, target=org.nuxeo.ecm.platform.picture.ImagingComponent;point=pictureConversions] * service:org.nuxeo.runtime.stream.service.managment.contrib references missing [target=org.nuxeo.ecm.core.management.CoreManagementComponent;point=probes, target=org.nuxeo.ecm.core.management.CoreManagementComponent;point=healthCheck] * service:org.nuxeo.ecm.platform.picture.operation references missing [target=org.nuxeo.ecm.automation.server.AutomationServer;point=bindings, target=org.nuxeo.ecm.core.operation.OperationServiceComponent;point=operations, target=org.nuxeo.ecm.core.operation.OperationServiceComponent;point=chains] ====================================================================== 2019-06-14 11:20:06,351 [http-nio-33137-exec-1] WARN [BaseNuxeoRestlet] Restlet endpoints (PictureTilesRestlets) are DEPRECATED since Nuxeo 10.3 and will be removed in a future version Standard Error Exception in thread "Nuxeo-pipe-2" java.lang.RuntimeException: java.io.IOException: Broken pipe at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor$1.run(ShellExecutor.java:200) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.io.IOException: Broken pipe at java.base/java.io.FileOutputStream.writeBytes(Native Method) at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354) at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81) at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142) at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor$1.run(ShellExecutor.java:198) ... 1 more
org.nuxeo.ecm.platform.pictures.tiles.service.test.TestService.testLazy
Error Message org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map #{mapComponents} -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} -resize #{targetWidth}x#{targetHeight}! #{mapComponents}:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230. Stacktrace org.nuxeo.ecm.core.api.NuxeoException: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map #{mapComponents} -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} -resize #{targetWidth}x#{targetHeight}! #{mapComponents}:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230. at org.nuxeo.ecm.platform.pictures.tiles.magick.tiler.MagickTiler.getTilesFromFile(MagickTiler.java:140) at org.nuxeo.ecm.platform.pictures.tiles.service.PictureTilingComponent.computeTiles(PictureTilingComponent.java:346) at org.nuxeo.ecm.platform.pictures.tiles.service.PictureTilingComponent.completeTiles(PictureTilingComponent.java:169) at org.nuxeo.ecm.platform.pictures.tiles.api.PictureTilesImpl.getTile(PictureTilesImpl.java:122) at org.nuxeo.ecm.platform.pictures.tiles.service.test.TestService.testLazy(TestService.java:167) 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:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:292) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:306) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:329) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:346) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:419) at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:326) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:419) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:235) at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:419) at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:218) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) 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: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: stream -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -map #{mapComponents} -storage-type char -extract #{tileWidth}x#{tileHeight}+#{offsetX}+#{offsetY} #{inputFilePath}[0] - | convert -depth 8 -size #{tileWidth}x#{tileHeight} -resize #{targetWidth}x#{targetHeight}! #{mapComponents}:- #{outputFilePath} convert: unexpected end-of-file `-': No such file or directory @ error/rgb.c/ReadRGBImage/230. at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62) at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:82) at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:173) at org.nuxeo.ecm.platform.picture.magick.utils.ImageCropperAndResizer.cropAndResize(ImageCropperAndResizer.java:65) at org.nuxeo.ecm.platform.pictures.tiles.magick.tiler.MagickTiler.getTilesFromFile(MagickTiler.java:137) ... 54 more Standard Error Exception in thread "Nuxeo-pipe-9" java.lang.RuntimeException: java.io.IOException: Stream closed at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor$1.run(ShellExecutor.java:200) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.io.IOException: Stream closed at java.base/java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:442) at java.base/java.io.OutputStream.write(OutputStream.java:157) at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81) at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142) at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor$1.run(ShellExecutor.java:198) ... 1 more