We have noticed an issue making our Jira apps compatible.
It seems that com.atlassian.jira.board package is not exported by jira.
We have this class not found exception when we try to enable.
Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/board/BoardManager
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3010)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2329)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:465)
... 22 more
Caused by: java.lang.ClassNotFoundException: com.atlassian.jira.board.BoardManager not found by org.techtime.jira.plugins.easytime [216]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
... 26 more
We also have this class not found exception for com.atlassian.crowd.dao.application.ApplicationDAO
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.techtime.jira.plugins.easysso.PrincipalUserHelperImpl]: Constructor threw exception
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:220)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:129)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
... 77 more
Caused by: java.lang.NoClassDefFoundError: com/atlassian/crowd/dao/application/ApplicationDAO
at org.techtime.jira.plugins.easysso.PrincipalUserHelperImpl.<init>(PrincipalUserHelperImpl.java:52)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:207)
... 79 more
Caused by: java.lang.ClassNotFoundException: com.atlassian.crowd.dao.application.ApplicationDAO not found by org.techtime.jira.plugins.easysso [215]
... 84 more
Our manifest has correctly added the package to our import-package and the system bundle seems to be exporting the package to atlassian plugins.