Issue Type: Bug Bug
Affects Versions: 5.3.5
Assignee: Unassigned
Attachments: dep_tree_5.3.5_withProject.txt
Components: build
Created: 23/Jan/15 2:12 PM
Description:

Keeping

      <dependency>
        <groupId>info.magnolia.ui</groupId>
        <artifactId>magnolia-ui-project</artifactId>
        <version>${magnoliaVersion}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

in your project POM, whether you don’t remove it with Maven 3 or whether you need it for Maven 2, will actually cause your project to load imaging 3.0.1 instead of 3.1.2 (for M5.3.5 in this case, see [1]). Since the guava version changed between those versions, the outdated imaging module references a method that actually does not exist anymore, causing the following error:

java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker;
at info.magnolia.imaging.caching.CachingImageStreamer.<init>(CachingImageStreamer.java:107)
at info.magnolia.imaging.ImagingServlet.getStreamer(ImagingServlet.java:122)

Frontend wise the result is that images generated by the imaging module do not appear.



Workaround:
Maven 3 users should remove the above mentioned dependency since it is not needed anyways when importing one of the bundle parents.
Maven 2 users can specify the correct dependency in their webapp, for example

<dependency>
    <groupId>info.magnolia</groupId>
    <artifactId>magnolia-module-imaging</artifactId>
    <version>3.1.2</version>
</dependency>

[1] https://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/ui/5.3.5/dependency-management.html

Environment: M5.3.5, tested with bundled webapp as well as enterprise webapp
Fix Versions: 5.3.7
Project: Magnolia UI
Priority: Blocker Blocker
Reporter: Natascha Desmarais
Security Level: Public
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to