Skip to content

JNA library conflict #30

@GiacomoBrusa

Description

@GiacomoBrusa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions