Skip to content

JDK8: java.lang.NoSuchMethodError #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
melloware opened this issue Dec 8, 2020 · 4 comments
Closed

JDK8: java.lang.NoSuchMethodError #10

melloware opened this issue Dec 8, 2020 · 4 comments

Comments

@melloware
Copy link
Contributor

melloware commented Dec 8, 2020

Running with JDK8. Works fine with JDK11

Exception in thread "Thread-14" java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;
        at org.overviewproject.mime_types.MimeTypeDetector$2.completed(MimeTypeDetector.java:299)
        at org.overviewproject.mime_types.MimeTypeDetector$2.completed(MimeTypeDetector.java:294)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
        at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:281)
        at sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.completed(WindowsAsynchronousFileChannelImpl.java:491)
        at sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:397)
        at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T11:06:16-04:00)
Maven home: C:\Tools\apache-maven-3.6.2
Java version: 1.8.0_211, vendor: Oracle Corporation, runtime: C:\Tools\jdk1.8.0_211\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
@melloware
Copy link
Contributor Author

Looks similar to: apache/felix#114

@adamhooper
Copy link
Member

Thanks for the report! I have a fix. Sonatype isn't letting me release right now; I'll try again after lunch.

@adamhooper
Copy link
Member

The release finally went through. Please try out v1.0.1.

@melloware
Copy link
Contributor Author

Cool I just switched our tests from Tika to MimeTypes 1.0.1 in JDK8, 11, 15 and all is passing: primefaces/primefaces#6624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants