Closed GoogleCodeExporter closed 9 years ago
The above is related to media-viewers_2.0 !
Original comment by vesselin...@castra.org
on 5 Nov 2012 at 9:50
Which viewer are you attempting to use? The Media Viewers add-on supplies
several.
Do you still get the errors if you uninstall the add-on (you should find the
default Flash viewer is then used)?
Original comment by will.abson
on 29 Nov 2012 at 2:32
1) I used both Firefox 16 and Google Chrome, both on Red hat Linux and
Windows 7 Ultimate...
2) yes, after un-install, I am able to view OK MS Office and Libre
office documents
Do you see any hints for the root-cause in the provided alfresco logs?
Original comment by vesselin...@castra.org
on 29 Nov 2012 at 9:02
Sorry, perhaps I wasn't clear. When I ask which viewers are you using, I mean
which viewers have you configured in your web-preview.get.config.xml file?
Perhaps you could attach a copy of that to the ticket?
Original comment by will.abson
on 29 Nov 2012 at 10:52
Are you able to attach a copy of your web-preview.get.config.xml file?
Original comment by will.abson
on 4 Dec 2012 at 5:26
Original comment by will.abson
on 4 Dec 2012 at 5:26
I did send one sometime ago, Please find the content of the
web-preview.get.config.xml bellow the line here too..
Indeed, there is no special Office docs viewer defined in it ? I was
assuming that enabling the mediapreview add-on should only add extra
view capabilities to the build-in Alfresco installation? (thus, no
further view configuration for Office documents is to be required ? )
Please advice?
Thank you and best regards,
Vess
___________________________________
<config>
<!--
List of rule to decide which plugin that shall be used to preview
the node's content or thumbnails.
The list is evaluated from the top.
All attributes for a condition must match.
When a condition matches the nodes' mimeType and/or thumbails its
list of plugins are tested from the top.
Every plugin will be created and get an opportunity to decide if
it may be used in the users browser environment.
If the plugin can't be used it will give a report back to the user
that will be displayed if neither of the
plugins in the list can be used.
-->
<plugin-conditions>
<!--
Enables the PdfJs viewer for all PDF documents or Embed in
older browsers
The PdfJs <plugin> element supports the following attributes
to further control the viewer
* src="value" Name of the thumbnail to display, which
should be a PDF (default null, forces the cm:content property to be
used)
* skipbrowsertest="true|false" Skipbrowser test, mostly
for developer to force test loading (default "false")
* mode="iframe|block" Display mode. "block" is the normal
Share view, "iframe" uses the pdf.js viewer in an iframe (deprecated,
default "block")
* defaultScale="page-width|two-page-width|page-height|
page-fit|two-page-fit|auto|value" Default zoom level for new documents,
either a predefined string (for auto-calculation) or a decimal number
between 0 and 1 (default "two-page-fit")
* scaleDelta="value" Multipler for zooming in/out, should
be a decimal > 1 (default "1.1")
* pageLayout="single|multi" Layout to use to display
pages, "single" (one page per row) or "multi" (multiple pages per row)
(default "multi")
* disableTextLayer="true|false" Whether text overlays on
pages should be disabled. Overlays allow users to select text content in
their browser but reduce rendering performance (default "false")
* useLocalStorage="true|false" Whether to use HTML5
browser storage to persist the page number and zoom level of
previously-viewed documents (default "true")
The Embed <plugin> element supports the following attributes
* src="value" Name of the thumbnail to display (default
null, forces the cm:content property to be used)
* ieActiveX="true|false" Comma separated string of Windows
ActiveX id:s. Used in Internet Explorer only to test for plugin
presence. (default
"AcroPDF.PDF,PDF.PdfCtrl,FOXITREADEROCX.FoxitReaderOCXCtrl.1")
* testPluginAvailability="true|false" Test if a plugin is
available. Use for mime types that need a plugin to display for example
application/pdf (default "false")
-->
<condition mimeType="application/pdf">
<plugin>PdfJs</plugin>
<plugin>Embed</plugin>
</condition>
<!--
Enables the PdfJs viewer for other content which can be
transformed to PDF or Embed
in older browsers.
Note, the OpenOffice transformer must be available on the
server for this to work.
-->
<condition thumbnail="pdf">
<plugin src="pdf">PdfJs</plugin>
<plugin src="pdf">Embed</plugin>
</condition>
<!--
Enables the FLVPlayer viewer for video formats
natively-supported by Flash
The <plugin> element supports the following attributes to
further control the viewer
* poster="value" Name of the static image thumbnail to
display before displaying the video (default "imgpreviewfull")
* queueMissingRenditions="true|false" Whether the player
should attempt to queue the generation of missing video thumbnails
(default "true")
* autoplay="true|false" Whether to auto-play the video
(default "false")
* autoload="true|false" Whether to auto-load the video
(default "true")
* playercolor="value" Color of the player in hex notation,
without the initial '#' (default "e1e3e5")
* buttoncolor="value" Color of the player button icons in
hex notation (default "000000")
* buttonovercolor="value" Hover color of the player
buttons in hex notation (default "0088de")
* sliderovercolor="value" Hover color of the player slider
in hex notation (default "0088de")
* showfullscreen="true|false" Whether to show the full
screen button (default "true")
* showiconplay="true|false" Whether to show the play
button (default "true")
* showvolume="true|false" Whether to show the volume
control (default "true")
* showtime="true|false" Whether to show the elapsed time
in the player (default "true")
* playermargin="value" Margin in pixels around the player
(default "0")
-->
<condition mimeType="video/mp4">
<plugin>FLVPlayer</plugin>
</condition>
<condition mimeType="video/m4v">
<plugin>FLVPlayer</plugin>
</condition>
<condition mimeType="video/x-flv">
<plugin>FLVPlayer</plugin>
</condition>
<!--
Enables the FLVPlayer viewer for other common video formats.
This requires FFmpeg support.
-->
<condition mimeType="video/mpeg2" thumbnail="h264preview">
<plugin>FLVPlayer</plugin>
</condition>
<condition mimeType="video/quicktime" thumbnail="h264preview">
<plugin>FLVPlayer</plugin>
</condition>
<condition mimeType="video/ogg" thumbnail="h264preview">
<plugin>FLVPlayer</plugin>
</condition>
<condition mimeType="video/x-msvideo" thumbnail="h264preview">
<plugin>FLVPlayer</plugin>
</condition>
<condition mimeType="video/webm" thumbnail="h264preview">
<plugin>FLVPlayer</plugin>
</condition>
<!--
Enables the MP3Player viewer for audio formats
natively-supported by Flash
-->
<condition mimeType="audio/mpeg">
<plugin>MP3Player</plugin>
</condition>
<!--
Enables the MP3Player viewer for other common audio formats.
This requires FFmpeg support.
The <plugin> element supports the following attributes to
further control the viewer
* mp3ThumbnailName="value" Name of the audio thumbnail to
look in for MP3 audio content for non-MP3 files (default "mp3thumbnail")
* queueMissingRenditions="true|false" Whether the player
should attempt to queue the generation of missing audio thumbnails
(default "true")
* autoplay="true|false" Whether to auto-play the audio
(default "false")
* autoload="true|false" Whether to auto-load the audio
(default "true")
-->
<condition mimeType="audio/x-wav" thumbnail="mp3preview">
<plugin>MP3Player</plugin>
</condition>
<condition mimeType="audio/x-flac" thumbnail="mp3preview">
<plugin>MP3Player</plugin>
</condition>
<condition mimeType="audio/vorbis" thumbnail="mp3preview">
<plugin>MP3Player</plugin>
</condition>
<condition mimeType="audio/ogg" thumbnail="mp3preview">
<plugin>MP3Player</plugin>
</condition>
<condition mimeType="audio/x-ms-wma" thumbnail="mp3preview">
<plugin>MP3Player</plugin>
</condition>
<!--
Enables the Prettify viewer for JavaScript files using
language auto-detection
and for CSS files setting the type explictly (see list in
prettify's README)
-->
<condition mimeType="application/x-javascript">
<plugin>Prettify</plugin>
</condition>
<condition mimeType="text/css">
<plugin lang="lang-css">Prettify</plugin>
</condition>
<!--
Enables the EXPERIMENTAL WebODF viewer for Open Document text
files
-->
<condition mimeType="application/vnd.oasis.opendocument.text">
<plugin>WebODF</plugin>
</condition>
<!-- DEFAULT SHARE CONFIGURATION BELOW THIS LINE -->
<!-- Video with posters -->
<condition mimeType="video/mp4" thumbnail="imgpreview">
<plugin poster="imgpreview"
posterFileSuffix=".png">StrobeMediaPlayback</plugin>
<plugin poster="imgpreview"
posterFileSuffix=".png">FlashFox</plugin>
<plugin poster="imgpreview"
posterFileSuffix=".png">Video</plugin>
</condition>
<condition mimeType="video/m4v" thumbnail="imgpreview">
<plugin poster="imgpreview"
posterFileSuffix=".png">StrobeMediaPlayback</plugin>
<plugin poster="imgpreview"
posterFileSuffix=".png">FlashFox</plugin>
<plugin poster="imgpreview"
posterFileSuffix=".png">Video</plugin>
</condition>
<condition mimeType="video/x-flv" thumbnail="imgpreview">
<plugin poster="imgpreview"
posterFileSuffix=".png">StrobeMediaPlayback</plugin>
<plugin poster="imgpreview"
posterFileSuffix=".png">FlashFox</plugin>
</condition>
<condition mimeType="video/quicktime" thumbnail="imgpreview">
<plugin poster="imgpreview"
posterFileSuffix=".png">StrobeMediaPlayback</plugin>
</condition>
<condition mimeType="video/ogg" thumbnail="imgpreview">
<plugin poster="imgpreview"
posterFileSuffix=".png">Video</plugin>
</condition>
<condition mimeType="video/webm" thumbnail="imgpreview">
<plugin poster="imgpreview"
posterFileSuffix=".png">Video</plugin>
</condition>
<!-- Video without posters -->
<condition mimeType="video/mp4">
<plugin>StrobeMediaPlayback</plugin>
<plugin>FlashFox</plugin>
<plugin>Video</plugin>
</condition>
<condition mimeType="video/x-m4v">
<plugin>StrobeMediaPlayback</plugin>
<plugin>FlashFox</plugin>
<plugin>Video</plugin>
</condition>
<condition mimeType="video/x-flv">
<plugin>StrobeMediaPlayback</plugin>
<plugin>FlashFox</plugin>
</condition>
<condition mimeType="video/quicktime">
<plugin>StrobeMediaPlayback</plugin>
</condition>
<condition mimeType="video/ogg">
<plugin>Video</plugin>
</condition>
<condition mimeType="video/webm">
<plugin>Video</plugin>
</condition>
<!-- Audio -->
<condition mimeType="audio/mpeg">
<plugin>StrobeMediaPlayback</plugin>
<plugin>FlashFox</plugin>
<plugin>Audio</plugin>
</condition>
<condition mimeType="audio/x-wav">
<plugin>Audio</plugin>
</condition>
<!-- Documents that has been converted to .swf -->
<condition thumbnail="webpreview">
<plugin src="webpreview" paging="true">WebPreviewer</plugin>
</condition>
<!-- Content that has an image preview thumbnail -->
<condition thumbnail="imgpreview">
<plugin src="imgpreview">Image</plugin>
</condition>
<!-- Images in real size (if they didn't have a imgpreview) -->
<condition mimeType="image/jpeg">
<plugin srcMaxSize="2000000">Image</plugin>
</condition>
<condition mimeType="image/png">
<plugin srcMaxSize="2000000">Image</plugin>
</condition>
<condition mimeType="image/gif">
<plugin srcMaxSize="2000000">Image</plugin>
</condition>
<condition mimeType="application/x-shockwave-flash">
<plugin>Flash</plugin>
</condition>
<!-- To add zooming capabilities for images place the following
inside a <condition> element -->
<!-- <plugin>WebPreviewer</plugin> -->
</plugin-conditions>
</config>
Original comment by vesselin...@castra.org
on 4 Dec 2012 at 5:39
I am not able to reproduce this issue on a fresh 4.2.b instance. I tried two
methods of configuring the viewer:
(a) Adding the XML config in comment 7 above into an override file tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/preview/web-preview.get.config.xml (old method, using 2.0 release), then
(b) Removing that config and deploying the 'PdfJs Configuration' module (new method, using trunk build 1358)
In both tests I was able to view both PDF documents and Powerpoint documents
using the PdfJs viewer. No errors were observed in the Share log.
If you are able to reproduce this on a fresh instance of 4.2.b, please add a
comment requesting it be re-opened, along with a description of your
installation method for Alfresco and the add-on.
Original comment by will.abson
on 11 Dec 2012 at 10:40
Actually, I can reproduce well the issue in the following conditions
- the modified web-preview.get.config.xml is deployed according the
installation instructions for the media-viewer
- the 'PdfJs Configuration' module is deployed too
(this corresponds to the installation instructions as well)
If I un-deploy the PdfJs Configuration' module while still keep the
web-preview.get.config.xml, I can successfully convert and view Office
documents . I am using this solution now
If I remove web-preview.get.config.xml and keep 'PdfJs Configuration'
module deployed, I CAN NOT view again Office documents (I can still view
video/audio and PDF content) .
catalina.out, alfresco.log, share.log and other log files do not show
any related messages ( log levels set to debug)
My current configuration is Alfresco share 4.2.c Community on Linux
Centos 6 x86_64;
I have upgraded from Alfresco Community 4.2.b ( still had the same
problem) , and my past Alfresco Community 4.2.b is an upgrade from
Alfresco Community 4.0.c.
Original comment by vesselin...@castra.org
on 20 Jan 2013 at 1:38
Can you reproduce this in a clean installation?
Original comment by will.abson
on 21 Jan 2013 at 9:42
Sorry, have no time for a clean installation,and it is not a solution
for me since I need to upgrade the existing installation I have ...
Can't you reproduce it on a clean Community 4.2.c installation : have
both the transforms config file enabled and the PDFjs configuration
deployed?
I am also getting the error as bellow the line, trying to display
anyting on with the Web preview dashlet ..
Any advice ( I am not a java programmer but can find my way through if I
know what I need to do ) ?
BR,
Vess
----------------------------------------------
03:07:43,318 ERROR [freemarker.runtime] Template processing error: "The
\"src\" parameter to the \"createWidgets\" directive must be provided."
The "src" parameter to the "createWidgets" directive must be provided.
The problematic instruction:
----------
==> user-directive createWidgets [on line 25, column 10 in
org/alfresco/components/preview/web-preview.get.html.ftl]
in user-directive markup [on line 23, column 4 in
org/alfresco/components/preview/web-preview.get.html.ftl]
in user-directive standalone [on line 1, column 1 in
org/alfresco/components/preview/web-preview.get.html.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: The "src" parameter to the
"createWidgets" directive must be provided.
at
org.springframework.extensions.surf.extensibility.impl.AbstractFreeMarkerDirecti
ve.getStringProperty(AbstractFreeMarkerDirective.java:95)
at
org.springframework.extensions.directives.JavaScriptDependencyDirective.addLegac
yDependencyRequest(JavaScriptDependencyDirective.java:100)
at
org.springframework.extensions.directives.JavaScriptDependencyDirective.execute(
JavaScriptDependencyDirective.java:83)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment$3.render(Environment.java:246)
at
org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirec
tiveData.render(DefaultExtensibilityDirectiveData.java:119)
at
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.me
rge(ExtensibilityModelImpl.java:408)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.merge(AbstractExtensibilityDirective.java:169)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.execute(AbstractExtensibilityDirective.java:137)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment$3.render(Environment.java:246)
at
org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirec
tiveData.render(DefaultExtensibilityDirectiveData.java:119)
at
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.me
rge(ExtensibilityModelImpl.java:408)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.merge(AbstractExtensibilityDirective.java:169)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.execute(AbstractExtensibilityDirective.java:137)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(Abstr
actWebScript.java:875)
at
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTempl
ate(DeclarativeWebScript.java:267)
at
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(Declarati
veWebScript.java:147)
at
org.springframework.extensions.webscripts.PresentationContainer.executeScript(Pr
esentationContainer.java:70)
at
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.execute
Script(LocalWebScriptRuntimeContainer.java:240)
at
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(Abstract
Runtime.java:377)
at
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(Abstract
Runtime.java:209)
at
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScri
ptProcessor.java:310)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.process(RenderService.j
ava:599)
at
org.springframework.extensions.surf.render.RenderService.renderSubComponent(Rend
erService.java:505)
at
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(Ren
derService.java:1284)
at
org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execu
te(ChromeIncludeFreeMarkerDirective.java:81)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTe
mplateProcessor.java:438)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.processRenderable(Rende
rService.java:204)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRender
er.java:95)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRend
erer.java:86)
at
org.springframework.extensions.surf.render.RenderService.processComponent(Render
Service.java:432)
at
org.springframework.extensions.surf.render.bean.ComponentRenderer.body(Component
Renderer.java:94)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.RenderService.renderComponent(RenderS
ervice.java:961)
at
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(
RenderService.java:900)
at
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(Ren
derService.java:1263)
at
org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execu
te(ChromeIncludeFreeMarkerDirective.java:81)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTe
mplateProcessor.java:438)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.processRenderable(Rende
rService.java:204)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRender
er.java:95)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRend
erer.java:86)
at
org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRender
er.java:99)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.RenderService.renderRegion(RenderServ
ice.java:851)
at
org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirec
tiveData.java:91)
at
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.me
rge(ExtensibilityModelImpl.java:408)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.merge(AbstractExtensibilityDirective.java:169)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.execute(AbstractExtensibilityDirective.java:137)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTe
mplateProcessor.java:438)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderS
ervice.java:721)
at
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(Te
mplateInstanceRenderer.java:140)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.j
ava:85)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.RenderService.renderPage(RenderServic
e.java:762)
at
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:411)
at
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:306)
at
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOut
putModel(AbstractWebFrameworkView.java:316)
at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:
1047)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
ava:817)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.ja
va:719)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet
.java:644)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at
org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFi
lter.java:74)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at
org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthentication
Filter.java:374)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
22)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
23)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118
)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor
.java:1002)
at org.apache.coyote.AbstractProtocol
$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint
$SocketProcessor.run(JIoEndpoint.java:312)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
03:07:43,473 ERROR
[org.springframework.extensions.webscripts.AbstractRuntime] Exception
from executeScript - redirecting to status template error: 00210001
Failed to process template
org/alfresco/components/preview/web-preview.get.html.ftl
org.springframework.extensions.webscripts.WebScriptException: 00210001
Failed to process template
org/alfresco/components/preview/web-preview.get.html.ftl
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:175)
at
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(Abstr
actWebScript.java:875)
at
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTempl
ate(DeclarativeWebScript.java:267)
at
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(Declarati
veWebScript.java:147)
at
org.springframework.extensions.webscripts.PresentationContainer.executeScript(Pr
esentationContainer.java:70)
at
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.execute
Script(LocalWebScriptRuntimeContainer.java:240)
at
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(Abstract
Runtime.java:377)
at
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(Abstract
Runtime.java:209)
at
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScri
ptProcessor.java:310)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.process(RenderService.j
ava:599)
at
org.springframework.extensions.surf.render.RenderService.renderSubComponent(Rend
erService.java:505)
at
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(Ren
derService.java:1284)
at
org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execu
te(ChromeIncludeFreeMarkerDirective.java:81)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTe
mplateProcessor.java:438)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.processRenderable(Rende
rService.java:204)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRender
er.java:95)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRend
erer.java:86)
at
org.springframework.extensions.surf.render.RenderService.processComponent(Render
Service.java:432)
at
org.springframework.extensions.surf.render.bean.ComponentRenderer.body(Component
Renderer.java:94)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.RenderService.renderComponent(RenderS
ervice.java:961)
at
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(
RenderService.java:900)
at
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(Ren
derService.java:1263)
at
org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execu
te(ChromeIncludeFreeMarkerDirective.java:81)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTe
mplateProcessor.java:438)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.processRenderable(Rende
rService.java:204)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRender
er.java:95)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRend
erer.java:86)
at
org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRender
er.java:99)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.RenderService.renderRegion(RenderServ
ice.java:851)
at
org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirec
tiveData.java:91)
at
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.me
rge(ExtensibilityModelImpl.java:408)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.merge(AbstractExtensibilityDirective.java:169)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.execute(AbstractExtensibilityDirective.java:137)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
at
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTe
mplateProcessor.java:438)
at
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractPro
cessor.java:57)
at
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderS
ervice.java:721)
at
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(Te
mplateInstanceRenderer.java:140)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.j
ava:85)
at
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRende
rer.java:77)
at
org.springframework.extensions.surf.render.RenderService.renderPage(RenderServic
e.java:762)
at
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:411)
at
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:306)
at
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOut
putModel(AbstractWebFrameworkView.java:316)
at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:
1047)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
ava:817)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.ja
va:719)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet
.java:644)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at
org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFi
lter.java:74)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at
org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthentication
Filter.java:374)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
22)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
23)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118
)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor
.java:1002)
at org.apache.coyote.AbstractProtocol
$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint
$SocketProcessor.run(JIoEndpoint.java:312)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: freemarker.template.TemplateModelException: The "src"
parameter to the "createWidgets" directive must be provided.
at
org.springframework.extensions.surf.extensibility.impl.AbstractFreeMarkerDirecti
ve.getStringProperty(AbstractFreeMarkerDirective.java:95)
at
org.springframework.extensions.directives.JavaScriptDependencyDirective.addLegac
yDependencyRequest(JavaScriptDependencyDirective.java:100)
at
org.springframework.extensions.directives.JavaScriptDependencyDirective.execute(
JavaScriptDependencyDirective.java:83)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment$3.render(Environment.java:246)
at
org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirec
tiveData.render(DefaultExtensibilityDirectiveData.java:119)
at
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.me
rge(ExtensibilityModelImpl.java:408)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.merge(AbstractExtensibilityDirective.java:169)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.execute(AbstractExtensibilityDirective.java:137)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment$3.render(Environment.java:246)
at
org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirec
tiveData.render(DefaultExtensibilityDirectiveData.java:119)
at
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.me
rge(ExtensibilityModelImpl.java:408)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.merge(AbstractExtensibilityDirective.java:169)
at
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDire
ctive.execute(AbstractExtensibilityDirective.java:137)
at freemarker.core.Environment.visit(Environment.java:274)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process
(FTLTemplateProcessor.java:171)
... 104 more
Original comment by vesselin...@castra.org
on 21 Jan 2013 at 1:26
vesselin, Do you only see this in the previewer dashlet? Can you confirm if it
works in Document details?
Original comment by pe...@loftux.se
on 25 Jan 2013 at 6:02
Same issue here. I can confirm it works in Document details, but not in
previewer dashlet
Original comment by quintendeswaef@gmail.com
on 28 Jan 2013 at 9:04
For me it did not work initially on both the previewer dashlet and in
Document details.
I made it work on the Document details by simply un-loading the
PDFjs-Configurtaion module from the Alfresco module management console
while still keeping the modified web-preview.get.config.xml as
described in the installation instructions..
Original comment by vesselin...@castra.org
on 28 Jan 2013 at 2:32
Fixed in r1425
Original comment by will.abson
on 29 Jan 2013 at 6:39
Original issue reported on code.google.com by
vesselin...@castra.org
on 5 Nov 2012 at 9:28