We're updating the issue view to help you get more done. 

Incompatible Version of commons-imaging

Description

Using aem mocks Version 2.5.0 together with uber-jar 6.5.0.

Creating an Asset results in this StackTrace:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 java.lang.IncompatibleClassChangeError: Implementing classjava.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.commons.imaging.Imaging.guessFormat(Imaging.java:351) at org.apache.commons.imaging.Imaging.getImageParser(Imaging.java:738) at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1402) at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1301) at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1270) at com.day.image.Layer.<init>(Layer.java:729) at com.day.image.Layer.<init>(Layer.java:599) at com.day.image.Layer.<init>(Layer.java:522) at io.wcm.testing.mock.aem.MockAssetManager.createAsset(MockAssetManager.java:91) at io.wcm.testing.mock.aem.builder.ContentBuilder.asset(ContentBuilder.java:343) at io.wcm.testing.mock.aem.builder.ContentBuilder.asset(ContentBuilder.java:260)

Our analysis indicates that the uber-jar is using a later version of commons-imaging than aem-mock, which then results in the error above.

Environment

None

Status

Assignee

Unassigned

Reporter

Daniel Wilking

Labels

None

Components

Priority

Major