java - Integrating Lucene with Android getting error -
03-28 15:52:36.586 25855-25855/? d/dalvikvm: late-enabling checkjni 03-28 15:52:37.021 25855-25855/com.example.myapplication2.app e/tag: start/data/data/com.example.myapplication2.app/lib-----index 2 :/storage/emulated/0/notes/sfilename 03-28 15:52:37.421 25855-25855/com.example.myapplication2.app i/dalvikvm: not find method java.io.file.topath, referenced method org.apache.lucene.store.niofsdirectory.createslicer 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: unable resolve virtual method 8318: ljava/io/file;.topath ()ljava/nio/file/path; 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app d/dalvikvm: vfy: replacing opcode 0x6e @ 0x000c 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app i/dalvikvm: not find method java.io.file.topath, referenced method org.apache.lucene.store.niofsdirectory.openinput 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: unable resolve virtual method 8318: ljava/io/file;.topath ()ljava/nio/file/path; 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app d/dalvikvm: vfy: replacing opcode 0x6e @ 0x000c 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app i/dalvikvm: dexopt: unable optimize static field ref 0x0d85 @ 0x14 in lorg/apache/lucene/store/niofsdirectory;.createslicer 03-28 15:52:37.422 25855-25855/com.example.myapplication2.app i/dalvikvm: dexopt: unable optimize static field ref 0x0d85 @ 0x14 in lorg/apache/lucene/store/niofsdirectory;.openinput 03-28 15:52:37.424 25855-25855/com.example.myapplication2.app i/system.out: in --------- indexd path niofsdirectory@/storage/emulated/0/notes/sfilename lockfactory=nativefslockfactory@/storage/emulated/0/notes/sfilename 03-28 15:52:37.587 25855-25855/com.example.myapplication2.app i/dalvikvm: not find method java.io.file.topath, referenced method org.apache.lucene.util.ioutils.fsync 03-28 15:52:37.587 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: unable resolve virtual method 8318: ljava/io/file;.topath ()ljava/nio/file/path; 03-28 15:52:37.587 25855-25855/com.example.myapplication2.app d/dalvikvm: vfy: replacing opcode 0x6e @ 0x0001 03-28 15:52:37.588 25855-25855/com.example.myapplication2.app i/dalvikvm: dexopt: unable optimize static field ref 0x0d85 @ 0x0b in lorg/apache/lucene/util/ioutils;.fsync 03-28 15:52:37.588 25855-25855/com.example.myapplication2.app i/dalvikvm: dexopt: unable optimize static field ref 0x0d86 @ 0x24 in lorg/apache/lucene/util/ioutils;.fsync 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: unable resolve exception class 1120 (ljava/nio/file/nosuchfileexception;) 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: unable find exception handler @ addr 0xe 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: rejected lorg/apache/lucene/index/indexwriter;.slowfileexists (lorg/apache/lucene/store/directory;ljava/lang/string;)z 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: rejecting opcode 0x0d @ 0x000e 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app w/dalvikvm: vfy: rejected lorg/apache/lucene/index/indexwriter;.slowfileexists (lorg/apache/lucene/store/directory;ljava/lang/string;)z 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app w/dalvikvm: verifier rejected class lorg/apache/lucene/index/indexwriter; 03-28 15:52:37.631 25855-25855/com.example.myapplication2.app d/androidruntime: shutting down vm 03-28 15:52:37.632 25855-25855/com.example.myapplication2.app w/dalvikvm: threadid=1: thread exiting uncaught exception (group=0x4162fd40) 03-28 15:52:37.633 25855-25855/com.example.myapplication2.app e/androidruntime: fatal exception: main process: com.example.myapplication2.app, pid: 25855 java.lang.verifyerror: org/apache/lucene/index/indexwriter @ com.example.myapplication2.app.lucene2.openindex(lucene2.java:124) @ com.example.myapplication2.app.lucene2.createindex(lucene2.java:87) @ com.example.myapplication2.app.mainactivity.oncreate(mainactivity.java:42) @ android.app.activity.performcreate(activity.java:5248) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1110) @ android.app.activitythread.performlaunchactivity(activitythread.java:2162) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2257) @ android.app.activitythread.access$800(activitythread.java:139) @ android.app.activitythread$h.handlemessage(activitythread.java:1210) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5086) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) @ dalvik.system.nativestart.main(native method) 03-28 15:57:37.984 25855-25855/com.example.myapplication2.app i/process: sending signal. pid: 25855 sig: 9
code working java implementation not working android. there way using gradle dependencies can avoid such error.
Comments
Post a Comment