Hi Guys,
When I upload an image using the "Text and Image" component I'm having the
error "NoSuchVariationException: Variation [zoom] does not exist.". Do you know
how to solve it? I'm using Magnolia Enterprise 4.5.7. Below is a fragment of
the error log.
Thanks,
Luiz
FreeMarker template error!
Method public info.magnolia.module.templatingkit.dam.Asset
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions.getAssetVariation(info.magnolia.module.templatingkit.dam.Asset,java.lang.String)
threw an exception when invoked on
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions@c182dc
The problematic instruction:
----------
==> ${stkfn.getAssetVariation(image, 'zoom').link} [on line 9, column 41 in
templating-kit/components/macros/image.ftl]
in user-directive image [on line 13, column 1 in
templating-kit/components/content/textImage.ftl]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: Method public
info.magnolia.module.templatingkit.dam.Asset
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions.getAssetVariation(info.magnolia.module.templatingkit.dam.Asset,java.lang.String)
threw an exception when invoked on
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions@c182dc
at
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
...
Caused by: info.magnolia.objectfactory.MgnlInstantiationException:
java.lang.reflect.InvocationTargetException
at
info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:112)
at
info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:76)
at
info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:118)
at
info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstance(GuiceComponentProvider.java:108)
at
info.magnolia.objectfactory.Components.newInstance(Components.java:90)
at
info.magnolia.module.templatingkit.dam.handlers.AbstractInternalContentDAMHandler.getVariation(AbstractInternalContentDAMHandler.java:96)
at
info.magnolia.module.templatingkit.dam.assets.InternalAsset.getVariation(InternalAsset.java:148)
at
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions.getAssetVariation(STKTemplatingFunctions.java:348)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:866)
at
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)
... 182 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:106)
... 195 more
Caused by: info.magnolia.module.templatingkit.dam.NoSuchVariationException:
Variation [zoom] does not exist.
at
info.magnolia.module.templatingkit.imaging.STKImagingSupport.createLink(STKImagingSupport.java:83)
at
info.magnolia.module.templatingkit.dam.handlers.AbstractInternalContentDAMHandler$InternalAssetVariation.<init>(AbstractInternalContentDAMHandler.java:75)
... 200 more
Template Error!
Error while rendering [/cip-project/solucoes/glossario/a/arte/content/0] with
template [standard-templating-kit:components/content/stkTextImage]:
RenderException: info.magnolia.rendering.engine.RenderException:
freemarker.template.TemplateModelException: Method public
info.magnolia.module.templatingkit.dam.Asset
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions.getAssetVariation(info.magnolia.module.templatingkit.dam.Asset,java.lang.String)
threw an exception when invoked on
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions@c182dc
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=a64e796d-6132-41c6-8946-8f8c3ba0efce
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------