この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
Hello all,
We are facing the following log entry (only in publish instance) (error.log file)
05.04.2017 14:06:25.249 *ERROR* [10.43.32.116 [1491415585242] GET /vending.html HTTP/1.1] org.apache.jsp.libs.foundation.components.primary.cq.Page.Page_jsp resource has no content. path=/vending.html referrer=null
Do you have any ideia about the cause?
Thank you!
解決済! 解決策の投稿を見る。
That's sounds good Matheus.
My suggestion if it persists again, please look for jcr:content node of the page you are requesting.
Thanks,
~Vamsi
Hi, Matheus
Please check the following post whether if it helps....
If it is not worked share your code snippet to analyze further.
Thanks,
~Vamsi
表示
返信
いいね!の合計
Thanks for answering,
Unfortunately, I can't reproduce this error, so I can't debug it and try to identify which code generates it.
But we know the code that generates it is:
logger.error("resource has no content. path={} referrer={}", request.getRequestURI(), request.getHeader("Referrer"));
In the proxy.jsp file.
/libs/foundation/components/primary/cq/Page/proxy.jsp
<%-- Copyright 1997-2009 Day Management AG Barfuesserplatz 6, 4001 Basel, Switzerland All Rights Reserved. This software is the confidential and proprietary information of Day Management AG, ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement you entered into with Day. ============================================================================== Default proxy script Includes a 'jcr:content' child resource if available --%><%@page session="false" import="org.apache.sling.api.resource.Resource, org.slf4j.Logger, org.slf4j.LoggerFactory, com.day.cq.wcm.api.NameConstants" %><%@ taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0" %><%! private final Logger logger = LoggerFactory.getLogger(getClass()); %><sling:defineObjects /><% Resource cr = resourceResolver.getResource(resource, NameConstants.NN_CONTENT); if (cr == null) { logger.error("resource has no content. path={} referrer={}", request.getRequestURI(), request.getHeader("Referrer")); response.sendError(HttpServletResponse.SC_NOT_FOUND, "no content"); return; } RequestDispatcher crd = slingRequest.getRequestDispatcher(cr); if (crd != null) { crd.include(request, response); return; } else { logger.error("Unable to dispatch proxy request.for {} referrer={}", request.getRequestURI(), request.getHeader("Referrer")); throw new ServletException("No Content"); } %>
I update here if I got something new.
表示
返信
いいね!の合計
That's sounds good Matheus.
My suggestion if it persists again, please look for jcr:content node of the page you are requesting.
Thanks,
~Vamsi
Yes, I believe that it's generated by some missing jcr:content node.
Thanks,