Xamarin Barcode Scanner GetDevice Exception Question

T Travis Rogers 3 years 7 months ago
3 0 0

We occasioning get this GetDevice exception with the Zebra Bar Code Scanner. We see the exception randomly when we try to initialize the Zebra Bar Code scanner. Does any know what may be causing the issue?
Here is the full stack trace from the error.
• JniEnvironment+InstanceMethods.CallObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args)
• JNIEnv.CallObjectMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms)
• BarcodeManager.GetDevice (Symbol.XamarinEMDK.Barcode.ScannerInfo p0)
• BarCodeScanner.InitScanner (XXX.XXXX.Mobile.Core.Interfaces.Services.IBarCodeMessager messager)
• (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
• MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
• java.lang.NullPointerException: Attempt to invoke virtual method 'com.symbol.emdk.emdkservice.barcode.SvcScanner com.symbol.emdk.emdkservice.barcode.SvcBarcodeManager.getDevice(int)' on a null object reference
• android.os.Parcel.readException Parcel.java:1698
• android.os.Parcel.readException Parcel.java:1645
• com.symbol.emdk.emdkservice.IEMDKService$Stub$Proxy.scnGetDevice IEMDKService.java:1977
• com.symbol.emdk.barcode.BarcodeManager.getDeviceInternal BarcodeManager.java:347
• com.symbol.emdk.barcode.BarcodeManager.getDevice BarcodeManager.java:183
• mono.java.lang.RunnableImplementor.n_run(Native Method)
• mono.java.lang.RunnableImplementor.run RunnableImplementor.java:30
• android.os.Handler.handleCallback Handler.java:751
• android.os.Handler.dispatchMessage Handler.java:95
• android.os.Looper.loop Looper.java:154
• android.app.ActivityThread.main ActivityThread.java:6123
• java.lang.reflect.Method.invoke(Native Method)
• com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:889
• com.android.internal.os.ZygoteInit.main ZygoteInit.java:779

CONTACT
Can’t find what you’re looking for?