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

Beacons are passed to filters regardless of their generic types #106

Open
marvinmirtschin opened this issue Jul 18, 2018 · 0 comments
Open
Labels
bug Unintended behaviour core lib Core Library

Comments

@marvinmirtschin
Copy link
Contributor

07-16 13:49:37.565 W/NearbyDevicesManager: Device scanning failed
    java.lang.ClassCastException: com.nexenio.authenticator.accesscontrol.GateEntranceDetectionBeacon cannot be cast to com.nexenio.authenticator.accesscontrol.GateDetectionBeacon
        at com.nexenio.authenticator.accesscontrol.GateDetection$1.onMatchingBeaconUpdated(GateDetection.java:93)
        at com.nexenio.bleindoorpositioning.ble.beacon.FilteredBeaconUpdateListener.onBeaconUpdated(FilteredBeaconUpdateListener.java:25)
        at com.nexenio.bleindoorpositioning.ble.beacon.BeaconManager.notifyBeaconUpdateListeners(BeaconManager.java:102)
        at com.nexenio.bleindoorpositioning.ble.beacon.BeaconManager.processAdvertisingPacket(BeaconManager.java:79)
        at com.nexenio.bleindoorpositioning.ble.beacon.BeaconManager.processAdvertisingData(BeaconManager.java:55)
        at com.nexenio.authenticator.networking.bluetooth.NearbyDevicesManager.onScanResult(NearbyDevicesManager.java:213)
        at com.nexenio.authenticator.networking.bluetooth.NearbyDevicesManager.lambda$startScanning$2(NearbyDevicesManager.java:147)
        at com.nexenio.authenticator.networking.bluetooth.-$$Lambda$NearbyDevicesManager$3z2AY2Ysie8a5mXIbx0mQPopEkY.accept(lambda)
        at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
        at io.reactivex.internal.operators.observable.ObservableDoFinally$DoFinallyObserver.onNext(ObservableDoFinally.java:82)
        at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.tryEmit(ObservableFlatMap.java:266)
        at io.reactivex.internal.operators.observable.ObservableFlatMap$InnerObserver.onNext(ObservableFlatMap.java:570)
        at io.reactivex.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:64)
        at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60)
        at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:67)
        at com.polidea.rxandroidble2.internal.serialization.FIFORunnableEntry$1.onNext(FIFORunnableEntry.java:60)
        at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60)
        at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58)
        at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:67)
        at com.polidea.rxandroidble2.internal.operations.ScanOperationApi21$1.onScanResult(ScanOperationApi21.java:63)
        at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:694)
        at android.os.Handler.handleCallback(Handler.java:751)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6157)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:926)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:788)
@marvinmirtschin marvinmirtschin added the bug Unintended behaviour label Jul 18, 2018
@Steppschuh Steppschuh added the core lib Core Library label Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unintended behaviour core lib Core Library
Projects
None yet
Development

No branches or pull requests

2 participants