Skip to content
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

setPrinterInfo() -> JNIWrapper.getPapreList() Causes exception #101

Open
HasanovicEdin opened this issue Aug 10, 2022 · 0 comments
Open

Comments

@HasanovicEdin
Copy link

Hi guys, when I try to set printerInfo it goes to setPaper(int paperID) inside Printer.class and on the line JNIWrapper.getPaperList() it causes exception and the app crashes.

The exception is pretty big but I'll paste it here:

2022-08-10 17:19:20.967 6462-6462/A/: java_vm_ext.cc:577] JNI DETECTED ERROR IN APPLICATION: JNI NewObjectV called with pending exception java.lang.NoSuchMethodError: no non-static method "Lcom/brother/ptouch/sdk/Paper;.<init>(IFFIIIIIIIIIIBLjava/lang/String;Ljava/lang/String;)V" java_vm_ext.cc:577] at com.brother.ptouch.sdk.Paper[] com.brother.ptouch.sdk.JNIWrapper.getPaperList() (JNIWrapper.java:-2) java_vm_ext.cc:577] at com.brother.ptouch.sdk.Paper[] com.brother.ptouch.sdk.Printer.getPaperList() (Printer.java:248) java_vm_ext.cc:577] at void .fragments.BluetoothFragment.print_order() (BluetoothFragment.java:255) java_vm_ext.cc:577] at void .fragments.BluetoothFragment.access$100(.fragments.BluetoothFragment) (BluetoothFragment.java:86) java_vm_ext.cc:577] at void .fragments.BluetoothFragment$3.handleMessage(android.os.Message) (BluetoothFragment.java:490) java_vm_ext.cc:577] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106) java_vm_ext.cc:577] at void android.os.Looper.loop() (Looper.java:237) java_vm_ext.cc:577] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:8163) java_vm_ext.cc:577] at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) java_vm_ext.cc:577] at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:656) java_vm_ext.cc:577] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:967) java_vm_ext.cc:577] java_vm_ext.cc:577] in call to NewObjectV java_vm_ext.cc:577] from com.brother.ptouch.sdk.Paper[] com.brother.ptouch.sdk.JNIWrapper.getPaperList()

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

1 participant