liferay - "Malformed input around byte" when uploading an image -


when upload images , publish pages, shows message web content temporarily unavailable.

this error in log:

21:28:57,687 error [http-bio-2020-exec-6][render_portlet_jsp:132] null java.io.utfdataformatexception: malformed input around byte 714     @ com.liferay.portal.image.imagetoolimpl.read(imagetoolimpl.java:446)     @ com.liferay.portal.image.imagetoolimpl.getimage(imagetoolimpl.java:368)     @ com.liferay.portal.kernel.image.imagetoolutil.getimage(imagetoolutil.java:144)     @ com.liferay.portal.service.impl.imagelocalserviceimpl.updateimage(imagelocalserviceimpl.java:144)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:115)     @ com.liferay.portal.spring.transaction.defaulttransactionexecutor.execute(defaulttransactionexecutor.java:62)     @ com.liferay.portal.spring.transaction.transactioninterceptor.invoke(transactioninterceptor.java:51)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111)     @ com.liferay.portal.spring.aop.chainablemethodadvice.invoke(chainablemethodadvice.java:56)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111)     @ com.liferay.portal.spring.aop.chainablemethodadvice.invoke(chainablemethodadvice.java:56)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111)     @ com.liferay.portal.spring.aop.chainablemethodadvice.invoke(chainablemethodadvice.java:56)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111)     @ com.liferay.portal.spring.aop.chainablemethodadvice.invoke(chainablemethodadvice.java:56)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111)     @ com.liferay.portal.spring.aop.chainablemethodadvice.invoke(chainablemethodadvice.java:56)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111)     @ com.liferay.portal.spring.aop.chainablemethodadvice.invoke(chainablemethodadvice.java:56)     @ com.liferay.portal.spring.aop.servicebeanmethodinvocation.proceed(servicebeanmethodinvocation.java:111) 21:30:20,989 warn  [http-bio-2020-exec-3][code_jsp:?] {code="404", msg="/ona-theme/images/common/edit_white.png", uri=/ona-theme/images/common/edit_white.png} 21:30:20,990 warn  [http-bio-2020-exec-10][code_jsp:?] {code="404", msg="/ona-theme/images/common/edit_template_white.png", uri=/ona-theme/images/common/edit_template_white.png} 21:30:20,997 warn  [http-bio-2020-exec-3][code_jsp:?] {code="404", msg="/ona-theme/images/common/add_white.png", uri=/ona-theme/images/common/add_white.png} 21:30:20,998 warn  [http-bio-2020-exec-10][code_jsp:?] {code="404", msg="/ona-theme/images/common/configuration_white.png", uri=/ona-theme/images/common/configuration_white.png} 

how can successful upload image?

try understand type of image causing issue. on linux/mac system try use (by shell/temrinal)

# file filepath/filename 

a common issue using cmyk , not rgb colorspace (try open image software photoshop , verify/convert image).


Comments