-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 10.10
-
Fix Version/s: None
-
Component/s: Preview
-
Tags:
-
Backlog priority:800
Steps to reproduce
- Create a File document with a CSV file as the attachment
- Observe that the preview is not rendered and the message below is displayed
{"entity-type":"exception","status":500,"message":"java.lang.UnsupportedOperationException"}
The trace contains
ERROR [WebEngineExceptionMapper] java.lang.UnsupportedOperationException java.lang.UnsupportedOperationException: null at org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder.setBlob(AbstractBlobHolder.java:44) ~[nuxeo-core-api-10.10-HF17.jar:?] at org.nuxeo.ecm.platform.preview.converters.HtmlPreviewConverter.convert(HtmlPreviewConverter.java:140) ~[nuxeo-preview-core-10.10-HF16.jar:?] at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10-HF17.jar:?] at org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAdapter.java:171) ~[nuxeo-preview-core-10.10-HF16.jar:?] at org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAdapter.java:124) ~[nuxeo-preview-core-10.10-HF16.jar:?] at org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter.getFilePreviewBlobs(AbstractHtmlPreviewAdapter.java:121) ~[nuxeo-preview-core-10.10-HF16.jar:?] at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.getPreviewBlobs(PreviewAdapter.java:175) ~[nuxeo-rest-api-server-10.10-HF15.jar:?] at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.preview(PreviewAdapter.java:89) ~[nuxeo-rest-api-server-10.10-HF15.jar:?]
The problem seems to be that the setBlob method is called in a SimpleCacheableBlobholder object and it raises this exception.
- duplicates
-
NXP-28462 Fix error after second HTML preview
- Resolved