HewlettPackard / HewlettPackard/morpheus-plugin-core

JNA library conflict

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11
Forks
18
Avg merge
20h 24m
Merged PRs (30d)
10

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.