-
Notifications
You must be signed in to change notification settings - Fork 9
Description
In a custom Cypher Plugin we have added a dependency via a javapasswordsdk file to implement the CyberArk Credential Provider functionality, but while Morpheus is executing the Plugin we see this error:
NoSuchMethodError occurred when processing request: [POST] /tools/cypher 'com.sun.jna.Library com.sun.jna.Native.load(java.lang.String, java.lang.Class)'. Stacktrace follows: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 'com.sun.jna.Library com.sun.jna.Native.load(java.lang.String, java.lang.Class)' at com.morpheus.remote.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:20) [6 skipped] at com.morpheus.StompAuthenticationFilter.doFilterInternal(StompAuthenticationFilter.groovy:144) [43 skipped] Caused by: java.lang.NoSuchMethodError: 'com.sun.jna.Library com.sun.jna.Native.load(java.lang.String, java.lang.Class)'
If we try to use an older SDK without a JNA dependency everything works and we don't see the error reported above.
We know that Morpheus uses JNA version 4.5.1, so we suspect that there is a JNA conflict in the bootloader and therefore it is not compatible with our SDK.