[jira] [Commented] (OFBIZ-7002) Images are not rendered in content

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7002) Images are not rendered in content

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15578115#comment-15578115 ]

Jacques Le Roux commented on OFBIZ-7002:
----------------------------------------

Thanks Mohammed;

Unfortunately I still get an error when updating an image at
{code}
content/control/WebSiteCms?webSiteId=CmsSite
{code}
{code}
2016-10-15 15:29:42,578 |http-nio-8443-exec-3 |DataEvents                    |E| Unable to write content to browser
java.io.IOException: Attempt to write 0 bytes of content to output stream
        at org.apache.ofbiz.base.util.UtilHttp.streamContent(UtilHttp.java:1064) ~[ofbiz.jar:?]
        at org.apache.ofbiz.base.util.UtilHttp.streamContentToBrowser(UtilHttp.java:1025) ~[ofbiz.jar:?]
        at org.apache.ofbiz.content.data.DataEvents.serveObjectData(DataEvents.java:211) [ofbiz.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_74]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_74]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_74]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_74]
        at org.apache.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:100) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:733) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:454) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [javax.servlet-api-3.1.0.jar:3.1.0]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.0.36.jar:8.0.36]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:209) [ofbiz.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:156) [ofbiz.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100) [tomcat-coyote-8.0.37.jar:8.0.37]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687) [tomcat-coyote-8.0.37.jar:8.0.37]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) [tomcat-coyote-8.0.37.jar:8.0.37]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) [tomcat-coyote-8.0.37.jar:8.0.37]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_74]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_74]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util-8.0.37.jar:8.0.37]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
2016-10-15 15:29:42,581 |http-nio-8443-exec-3 |RequestHandler                |I| Ran Event [java:org.apache.ofbiz.content.data.DataEvents#serveObjectData] from [request], result is [io-error]
2016-10-15 15:29:42,584 |http-nio-8443-exec-3 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
2016-10-15 15:29:42,586 |http-nio-8443-exec-3 |ControlServlet                |T| [[[stream(Domain:https://localhost)] Request Done- total:0.036,since last([stream(Domain:ht...):0.036]]
2016-10-15 15:29:42,735 |http-nio-8443-exec-6 |ControlServlet                |T| [[[getContentAssocsJson(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2016-10-15 15:29:42,738 |http-nio-8443-exec-7 |ControlServlet                |T| [[[getContentAssocsJson(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2016-10-15 15:29:42,747 |http-nio-8443-exec-7 |RequestHandler                |I| Ran Event [java:org.apache.ofbiz.content.cms.ContentJsonEvents#getContentAssocs] from [request], result is [success]
2016-10-15 15:29:42,747 |http-nio-8443-exec-6 |RequestHandler                |I| Ran Event [java:org.apache.ofbiz.content.cms.ContentJsonEvents#getContentAssocs] from [request], result is [success]
2016-10-15 15:29:42,751 |http-nio-8443-exec-6 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
2016-10-15 15:29:42,751 |http-nio-8443-exec-7 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
2016-10-15 15:29:42,754 |http-nio-8443-exec-6 |ControlServlet                |T| [[[getContentAssocsJson(Domain:https://localhost)] Request Done- total:0.019,since last([getContentAssocs...):0.019]]
2016-10-15 15:29:42,754 |http-nio-8443-exec-7 |ControlServlet                |T| [[[getContentAssocsJson(Domain:https://localhost)] Request Done- total:0.016,since last([getContentAssocs...):0.016]]
2016-10-15 15:29:43,023 |http-nio-8443-exec-5 |ControlServlet                |T| [[[views(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2016-10-15 15:29:43,029 |http-nio-8443-exec-5 |RequestHandler                |I| [RequestHandler.doRequest]: Response is a chained request. Hidden sessionId by default.
2016-10-15 15:29:43,030 |http-nio-8443-exec-5 |RequestHandler                |I| [RequestHandler]: Chain in place: requestUri=main overrideViewUri=WebSiteCMSContent Hidden sessionId by default.
2016-10-15 15:29:43,032 |http-nio-8443-exec-5 |RequestHandler                |I| Rendering View [WebSiteCMSContent].  Hidden sessionId by default.
2016-10-15 15:29:43,035 |http-nio-8443-exec-5 |ServiceDispatcher             |T| Sync service [lucene/getUserPreferenceGroup] finished in [1] milliseconds
2016-10-15 15:29:43,037 |http-nio-8443-exec-5 |ServiceDispatcher             |T| Sync service [lucene/getVisualThemeResources] finished in [1] milliseconds
2016-10-15 15:29:43,058 |http-nio-8443-exec-5 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
2016-10-15 15:29:43,060 |http-nio-8443-exec-5 |ControlServlet                |T| [[[views(Domain:https://localhost)] Request Done- total:0.037,since last([views(Domain:htt...):0.037]]
2016-10-15 15:29:43,218 |ttp-nio-8443-exec-10 |ControlServlet                |T| [[[stream(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2016-10-15 15:29:43,226 |ttp-nio-8443-exec-10 |DataEvents                    |I| Got resource data stream: 0 bytes
2016-10-15 15:29:43,227 |ttp-nio-8443-exec-10 |DataEvents                    |E| Unable to write content to browser
java.io.IOException: Attempt to write 0 bytes of content to output stream
        at org.apache.ofbiz.base.util.UtilHttp.streamContent(UtilHttp.java:1064) ~[ofbiz.jar:?]
        at org.apache.ofbiz.base.util.UtilHttp.streamContentToBrowser(UtilHttp.java:1025) ~[ofbiz.jar:?]
        at org.apache.ofbiz.content.data.DataEvents.serveObjectData(DataEvents.java:211) [ofbiz.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_74]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_74]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_74]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_74]
        at org.apache.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:100) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:80) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:733) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:454) [ofbiz.jar:?]
        at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz.jar:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [javax.servlet-api-3.1.0.jar:3.1.0]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.0.36.jar:8.0.36]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:209) [ofbiz.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:156) [ofbiz.jar:?]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) [tomcat-catalina-8.0.37.jar:8.0.37]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100) [tomcat-coyote-8.0.37.jar:8.0.37]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687) [tomcat-coyote-8.0.37.jar:8.0.37]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) [tomcat-coyote-8.0.37.jar:8.0.37]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) [tomcat-coyote-8.0.37.jar:8.0.37]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_74]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_74]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util-8.0.37.jar:8.0.37]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
2016-10-15 15:29:43,227 |ttp-nio-8443-exec-10 |RequestHandler                |I| Ran Event [java:org.apache.ofbiz.content.data.DataEvents#serveObjectData] from [request], result is [io-error]
2016-10-15 15:29:43,230 |ttp-nio-8443-exec-10 |ServerHitBin                  |I| Visit delegatorName=default, ServerHitBin delegatorName=default
2016-10-15 15:29:43,234 |ttp-nio-8443-exec-10 |ControlServlet                |T| [[[stream(Domain:https://localhost)] Request Done- total:0.016,since last([stream(Domain:ht...):0.016]]
> Building 91% > :ofbiz
{code}
I did not went further

> Images are not rendered in content
> ----------------------------------
>
>                 Key: OFBIZ-7002
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7002
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: Release Branch 12.04, Release Branch 13.07, Release Branch 14.12, Trunk, Release Branch 15.12
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>         Attachments: OFBIZ-7002.patch, OFBIZ-7002.patch
>
>
> When you get to
> {code}
> content/control/WebSiteCms?webSiteId=CmsSite
> {code}
> and add a new image in the tree, it's no rendered. Same at
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND&contentId=NOCONTENTFOUND
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)