Hi All,
While upgrading AEM from 6.3 SP1 to SP3, we also changed uber jar version from 6.3.0 to 6.3.3.1. After updating we are seeing exception while accessing page properties as below. There is no issue if we use Uber jar version upto 6.3.2. So wanted to check if we need to change implementation on how we get the properties or any other imports needed in pom.
Code
Not working -
properties.get(SOME_PROPERTY, "defaultValue");
Working -
properties.get(SOME_PROPERTY,); - We don't want to use this and always wanted to pass the default value.
Exception:
java.lang.NoClassDefFoundError: org/apache/sling/api/wrappers/impl/ObjectConverter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.sling.api.wrappers.ValueMapDecorator.get(ValueMapDecorator.java:56)
pom.xml
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.3.3.1</version>
<classifier>apis</classifier>
<scope>provided</scope>
</dependency>