eclipse-agail / agile-core

Source code repository for agile core components
Eclipse Public License 2.0
7 stars 16 forks source link

Can't delete device if not connected #58

Closed cskiraly closed 6 years ago

cskiraly commented 6 years ago

Disconnect is called independent of the connection status. It fails, and thus blocks device deletion.

agile-core | 14:21:25.798 [Thread-3] ERROR i.a.devicemanager.DeviceManagerImp - Unable to delete device: bleA0E6F8B6F200 agile-core | iot.agile.exception.AgileNoResultException: BLE Device not connected: CC2650 SensorTag agile-core | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) agile-core | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) agile-core | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) agile-core | at java.lang.reflect.Constructor.newInstance(Constructor.java:423) agile-core | at org.freedesktop.dbus.Error.getException(Unknown Source) agile-core | at org.freedesktop.dbus.Error.throwException(Unknown Source) agile-core | at org.freedesktop.dbus.RemoteInvocationHandler.executeRemoteMethod(Unknown Source) agile-core | at org.freedesktop.dbus.RemoteInvocationHandler.invoke(Unknown Source) agile-core | at com.sun.proxy.$Proxy6.Stop(Unknown Source) agile-core | at iot.agile.devicemanager.DeviceManagerImp.Delete(DeviceManagerImp.java:188) agile-core | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) agile-core | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) agile-core | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) agile-core | at java.lang.reflect.Method.invoke(Method.java:498) agile-core | at org.freedesktop.dbus.AbstractConnection$1.run(Unknown Source) agile-core | at org.freedesktop.dbus.AbstractConnection$_workerthread.run(Unknown Source)

cskiraly commented 6 years ago

fixed in https://github.com/Agile-IoT/agile-core/commit/e3dc8fcfc950fed208ae55aa08afcf546d9c5f71