[Bug 234593] java/openjdk8: UnsatisfiedLinkError: sun.nio.ch.FileDispatcherImpl.allocate0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 3 16:08:06 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234593

            Bug ID: 234593
           Summary: java/openjdk8: UnsatisfiedLinkError:
                    sun.nio.ch.FileDispatcherImpl.allocate0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: java at FreeBSD.org
          Reporter: shoesoft at gmx.net
             Flags: maintainer-feedback?(java at FreeBSD.org)
          Assignee: java at FreeBSD.org
 Attachment #200740 text/plain
         mime type:

Created attachment 200740
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200740&action=edit
Test program to reproduce the error

Running the attached test program gives an error:

$ javac Test.java && java Test
Exception in thread "main" java.lang.UnsatisfiedLinkError:
sun.nio.ch.FileDispatcherImpl.allocate0(Ljava/io/FileDescriptor;J)I
        at sun.nio.ch.FileDispatcherImpl.allocate0(Native Method)
        at sun.nio.ch.FileDispatcherImpl.allocate(FileDispatcherImpl.java:84)
        at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:909)
        at Test.main(Test.java:11)

There is an implementation for allocate0 in
src/solaris/native/sun/nio/ch/FileDispatcherImpl.c. I guess it's only a problem
with the build system.

I'm not 100% sure but I think the program that now throws this error used to
work about a year ago.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-java mailing list