mp4parser: java.lang.NoSuchMethodError when creating new IsoFile

I am getting a crash when trying to create an IsoFile. I am running Android and java jdk 1.8.0_121

java.lang.NoSuchMethodError: No virtual method rewind()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar) at org.mp4parser.AbstractBoxParser.parseBox(AbstractBoxParser.java:56) at org.mp4parser.BasicContainer.initContainer(BasicContainer.java:107) at org.mp4parser.IsoFile.<init>(IsoFile.java:57) at org.mp4parser.IsoFile.<init>(IsoFile.java:44)

That is my crash.

Is there a particular jdk that I should be using? This was working fine before when I was using build 1.9.27

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 8
  • Comments: 16 (1 by maintainers)

Most upvoted comments

any news on that?

I accidentally built 1.9.37 with Java 9 I believe. I will rebuilt with Java 8 in the next days and push a new version to central. alexeyvasilyev notifications@github.com schrieb am Fr., 3. Aug. 2018, 22:22: I got the same problem with latest 1.9.37 on Android. No issue on 1.9.36 via maven repository. java.lang.NoSuchMethodError: No virtual method rewind()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of ‘java.nio.ByteBuffer’ appears in /system/framework/core-oj.jar) at org.mp4parser.support.AbstractBox.getBox(AbstractBox.java:120) at org.telegram.messenger.video.MP4Builder.createMovie(MP4Builder.java:71) If I put the latest isoparser source code directly into the project and compile, everything is ok (no crash). Could be an issue with a build for maven repository? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#323 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKUD-elF7X0imy8cFQQ5JGGYtbfVFFNks5uNLDsgaJpZM4VuZ-W .

Can you please push version 1.9.37 java 8? It’s useless at the moment. Thank you.

Any news on this @sannies ? A new build with java 8 would be greatly appreciated.

Issue still not fixed. sannies, please fix that. 1.9.37 is completely unusable on Android.

@sannies The same problem arises with the new published version 1.9.38

Looks like @sannies does not care anymore about this project.