-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 5.6.0-HF24
-
Fix Version/s: 5.6.0-HF25
-
Component/s: Image Management, Nuxeo Package Management
-
Tags:
Hi,
Since HF24, I'm getting the following error when importing images:
... Caused by: java.lang.NoSuchMethodError: org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.getError()Ljava/lang/Exception; at org.nuxeo.ecm.platform.picture.magick.utils.ImageIdentifier.getInfo(ImageIdentifier.java:44) at org.nuxeo.ecm.platform.picture.ImagingComponent.getImageInfo(ImagingComponent.java:159) at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.setMetadata(AbstractPictureAdapter.java:204) at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.createPicture(DefaultPictureAdapter.java:96) at org.nuxeo.ecm.platform.picture.api.adapters.PictureBlobHolder.setBlob(PictureBlobHolder.java:82) at org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter.updateDocument(AbstractFileImporter.java:164) at org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter.create(AbstractFileImporter.java:215) at org.nuxeo.ecm.platform.filemanager.service.FileManagerService.createDocumentFromBlob(FileManagerService.java:268) ...
It it caused by the change of this method's signature in https://github.com/nuxeo/nuxeo-services/commit/641946112e91aff9974943215c5b677ebb47613a#diff-1 ; while it does not impact existing code for the classes using it, their bytecode do need to be updated. Thus the bundle nuxeo-platform-imaging-core had to be included in the hotfix, possibly others:
$ grep -nHR "org.nuxeo.ecm.platform.commandline.executor.api.ExecResult" . --files-with-matches --include=*.java
./addons/nuxeo-platform-video/nuxeo-platform-video-core/src/main/java/org/nuxeo/ecm/platform/video/VideoHelper.java
./addons/nuxeo-platform-video/nuxeo-platform-video-convert/src/main/java/org/nuxeo/ecm/platform/video/convert/StoryboardConverter.java
./addons/nuxeo-platform-video/nuxeo-platform-video-convert/src/main/java/org/nuxeo/ecm/platform/video/convert/ScreenshotConverter.java
./nuxeo-services/nuxeo-platform-convert/src/main/java/org/nuxeo/ecm/platform/convert/plugins/CommandLineBasedConverter.java
./nuxeo-services/nuxeo-platform-commandline-executor/src/main/java/org/nuxeo/ecm/platform/commandline/executor/service/executors/ShellExecutor.java
./nuxeo-services/nuxeo-platform-commandline-executor/src/main/java/org/nuxeo/ecm/platform/commandline/executor/service/executors/Executor.java
./nuxeo-services/nuxeo-platform-commandline-executor/src/main/java/org/nuxeo/ecm/platform/commandline/executor/service/CommandLineExecutorComponent.java
./nuxeo-services/nuxeo-platform-commandline-executor/src/test/java/org/nuxeo/ecm/platform/commandline/executor/tests/aspell/AspellTester.java
./nuxeo-services/nuxeo-platform-commandline-executor/src/test/java/org/nuxeo/ecm/platform/commandline/executor/tests/imagemagic/ImageMagickTester.java
./nuxeo-features/nuxeo-platform-imaging/nuxeo-platform-imaging-core/src/main/java/org/nuxeo/ecm/platform/picture/magick/utils/ImageIdentifier.java
./nuxeo-features/nuxeo-platform-imaging/nuxeo-platform-imaging-core/src/main/java/org/nuxeo/ecm/platform/picture/magick/MagickExecutor.java
- depends on
-
NXP-12765 Fix unit test involving ExecResult on automation-features
- Resolved