<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Strange Error Message in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266902#M220032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i havent touched any controller or view resolver. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually it seems to be linked to me trying to include a CSS-Stylesheet residing in the repository. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In &lt;/SPAN&gt;&lt;STRONG&gt;head.ftl&lt;/STRONG&gt;&lt;SPAN&gt; i added:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;link href="${url.context}/stylesheets/custom_styles.css" type="text/css" rel="stylesheet" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I removed it and, and now i dont get the errormessage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do i manage to include the stylesheet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 14:03:08 GMT</pubDate>
    <dc:creator>cfe</dc:creator>
    <dc:date>2011-05-25T14:03:08Z</dc:date>
    <item>
      <title>Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266898#M220028</link>
      <description>Hello everyone,out of nowhere i am receiving a strange error messages. Unfortunaetly i dont know at all where to look.Can anyone help me out with the possible origin of this error message?11:32:11,375 ERROR [org.springframework.extensions.surf.mvc.PageView] The current PageView does not have its "pa</description>
      <pubDate>Fri, 20 May 2011 09:46:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266898#M220028</guid>
      <dc:creator>cfe</dc:creator>
      <dc:date>2011-05-20T09:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266899#M220029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you say "out of nowhere" do you mean that it was working fine but now isn't?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 09:49:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266899#M220029</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-05-20T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266900#M220030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, i regularily check the logs and i never saw this one before. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seem to show up, when one visits the editorial page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 10:04:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266900#M220030</guid>
      <dc:creator>cfe</dc:creator>
      <dc:date>2011-05-20T10:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266901#M220031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't see any way that this particular error can occur unless you've made some code changes in the web tier - perhaps a new controller or view resolver?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 09:39:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266901#M220031</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-05-24T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266902#M220032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i havent touched any controller or view resolver. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually it seems to be linked to me trying to include a CSS-Stylesheet residing in the repository. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In &lt;/SPAN&gt;&lt;STRONG&gt;head.ftl&lt;/STRONG&gt;&lt;SPAN&gt; i added:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;link href="${url.context}/stylesheets/custom_styles.css" type="text/css" rel="stylesheet" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I removed it and, and now i dont get the errormessage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do i manage to include the stylesheet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 14:03:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266902#M220032</guid>
      <dc:creator>cfe</dc:creator>
      <dc:date>2011-05-25T14:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266903#M220033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apologies for the delay in coming back to you. I'm still not sure what would be causing the exact error you originally posted, but I think I can help with your requirement to deliver a stylesheet from the repo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to do that you will need a template that purely returns the content of the asset as-is. I have previously described &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=52&amp;amp;t=36902&amp;amp;p=108322#p108322" rel="nofollow noopener noreferrer"&gt;an approach to doing this&lt;/A&gt;&lt;SPAN&gt; on this forum in response to a question about returning raw XML. Basically it involves registering a new template (I've called it "raw") and associating it with your stylesheets section. Have a read through it and see if it helps you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266903#M220033</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-06-08T09:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266904#M220034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Brian, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your help. I had succes with an approach not much different than the one you suggest. ( inserted a component-representation in the preexisting templates like twoblock, and parse the raw content in the header.ftl)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Custom stylesheets do work fine now, and the error message is gone (but im still not sure if there's a direct link). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The funny thing is, accesing the css by link (with the src="" tag) the content is displayed in firebug, and it even does work on my development-enivironment (winxp). But not on the server (it was still displayed, but the styles werent applied). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 07:41:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266904#M220034</guid>
      <dc:creator>cfe</dc:creator>
      <dc:date>2011-06-10T07:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266905#M220035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not certain if you mean that everything's now working as you want or not. If not then please let me know if I can help any further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I've been thinking about this a little more (along with others who have had similar questions), and I've decided to make a small change to how template resolution works. This will make it onto HEAD soon, but HEAD is currently very "dynamic", so I'll describe what I'm going to do here in case you want to make use of the idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The class that deals with the template resolution is in the WQS client API project - "DynamicPageViewResolver". This class has a method called "buildView" that asks the resolved asset which template should be used. If for some reason the asset returns null at this point, we take evasive action by creating and returning a "StreamedAssetView" that causes the asset to be streamed "raw" (no template).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I intend to do is to change the code that is currently:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (template == null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return createStreamView(asset);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;so that it becomes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (template == null || "raw".equalsIgnoreCase(template))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return createStreamView(asset);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This small change will mean that you can force any asset (or any type of asset below a given section) to be streamed back without a template simply by including an appropriate template mapping to the "special" template name of &lt;/SPAN&gt;&lt;STRONG&gt;"raw"&lt;/STRONG&gt;&lt;SPAN&gt;. One advantage of this is that the MIME type of the asset in the repo will be guaranteed to be the one that is used in the HTTP response. The previous dummy template approach probably wouldn't do the same, and I wonder if that may be causing any remaining issues that you're seeing with your current solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 08:29:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266905#M220035</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-06-10T08:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Error Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266906#M220036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Brian, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for the information and the additional input!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didnt get any more error message with the that solution, and i get the results i want, so the problem is solved. Ill mark it accordingly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your suggestion sounds very promising. Looking forward to have it in use &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 09:20:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-error-message/m-p/266906#M220036</guid>
      <dc:creator>cfe</dc:creator>
      <dc:date>2011-06-10T09:20:10Z</dc:date>
    </item>
  </channel>
</rss>

