Skip to content

UnsatisfiedLinkError on using JNA direct calls with YourKit Java Profiler instrumentation #236

@trofimander

Description

@trofimander

Running JNA code with YourKit Java Profiler agent I get the following error

Error looking up function '$$YJP$$open': /usr/lib/java/jdk6/bin/java: undefined symbol: $$YJP$$open 
java.lang.UnsatisfiedLinkError: Error looking up function '$$YJP$$open': /usr/lib/java/jdk6/bin/java: undefined symbol: $$YJP$$open
    at com.sun.jna.Function.<init>(Function.java:179)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:350)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:330)
    at com.sun.jna.Native.register(Native.java:1369)
    at com.sun.jna.Native.register(Native.java:1033)
    at jtermios.linux.JTermiosImpl$Linux_C_lib_DirectMapping.<clinit>(JTermiosImpl.java:168)
    at jtermios.linux.JTermiosImpl.<clinit>(JTermiosImpl.java:67)
    at jtermios.JTermios.<clinit>(JTermios.java:288)
    at jpty.JPty.execInPTY(JPty.java:273)
    at jpty.JPty.execInPTY(JPty.java:204)
    at com.jediterm.pty.PtyProcess.<init>(Unknown Source)
    at com.jediterm.pty.PtyProcess.<init>(Unknown Source)

Read response from YourKit guys for details: http://forums.yourkit.com/viewtopic.php?f=3&t=3299#p10809
Also this suggestion can be usefull: https://groups.google.com/forum/?fromgroups#!topic/jna-users/z-n85N0emSw

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