tarzanking / javacpp

Automatically exported from code.google.com/p/javacpp
GNU General Public License v2.0
0 stars 0 forks source link

Exception NoSuchMethodError in the beginning of execution on Android 2.2 #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I launched program based JavaCV on "T-Mobile myTouch 3G" mobile phone and I got 
exception NoSuchMethodError. The exception occurs when the very first command 
from JavaCV is executed

FFmpegFrameGrabber gr = new FFmpegFrameGrabber(video.mp4);

The following stack of the errors was got:

I/dalvikvm(1537): Could not find method java.util.Arrays.copyOf, referenced 
from method com.googlecode.javacpp.Loader.findLibrary
W/dalvikvm(1537): VFY: unable to resolve static method 21064: 
Ljava/util/Arrays;.copyOf ([Ljava/lang/Object;I)[Ljava/lang/Object;
D/dalvikvm(1537): VFY: replacing opcode 0x71 at 0x01bd
D/dalvikvm(1537): VFY: dead code 0x01c0-01c4 in 
Lcom/googlecode/javacpp/Loader;.findLibrary 
(Ljava/lang/Class;Lcom/googlecode/javacpp/Loader$ClassProperties;Ljava/lang/Stri
ng;)[Ljava/net/URL;
I/dalvikvm(1537): Could not find method java.util.Properties.load, referenced 
from method com.googlecode.javacpp.Loader.loadProperties
W/dalvikvm(1537): VFY: unable to resolve virtual method 21145: 
Ljava/util/Properties;.load (Ljava/io/Reader;)V
D/dalvikvm(1537): VFY: replacing opcode 0x6e at 0x002e
I/dalvikvm(1537): Could not find method java.util.Properties.load, referenced 
from method com.googlecode.javacpp.Loader.loadProperties
W/dalvikvm(1537): VFY: unable to resolve virtual method 21145: 
Ljava/util/Properties;.load (Ljava/io/Reader;)V
D/dalvikvm(1537): VFY: replacing opcode 0x6e at 0x0045
D/dalvikvm(1537): VFY: dead code 0x0048-0048 in 
Lcom/googlecode/javacpp/Loader;.loadProperties 
(Ljava/lang/String;)Ljava/util/Properties;
D/dalvikvm(1537): GC_FOR_MALLOC freed 5490 objects / 446584 bytes in 92ms
W/dalvikvm(1537): Exception Ljava/lang/NoSuchMethodError; thrown during 
Lcom/googlecode/javacv/cpp/avformat;.<clinit>

The mobile phone has OS Android 2.2.1

Original issue reported on code.google.com by fortinab...@gmail.com on 4 Nov 2013 at 6:48

GoogleCodeExporter commented 9 years ago
This should be fixed with this revision:
http://code.google.com/p/javacpp/source/detail?r=2718ef7fd3a1ad18c095556e3f87b77
b00329869
We can build the JAR file with `mvn package`. Please try it out and let me know 
if you still have an issue.

Thanks for reporting!

Original comment by samuel.a...@gmail.com on 17 Nov 2013 at 6:11

GoogleCodeExporter commented 9 years ago
Fix included in JavaCPP 0.7! Once again, thanks for reporting

Original comment by samuel.a...@gmail.com on 7 Jan 2014 at 1:22