dvdh / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

Suspend/Resume on Windows 7 causes bluetooth notifications to fail #329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IMPORTANT: PLEASE search the existing issues (including closed ones) for
something similar before filing a new one.

DO NOT, I repeat, DO NOT file more duplicates of issue 3 (bluetooth
notifications not working).

What steps will reproduce the problem?
1. Run android-notifier-desktop on windows 7 64 (32 bit java)
2. Set up the client to receive notifications via bluetooth
3. Use a test notification to check that everything is working
4. Suspend the machine
5. Resume the machine
6. Attempt to send a test notification

What is the expected output? What do you see instead?
I expected to see a notification on the laptop, instead I see nothing.

Closing and then starting android-notifier-desktop results in the application 
working again.

What version of the product are you using? On what operating system?
Remote Notifier v 0.2.8
Android Notifier Desktop 0.5.1

Please provide the log output if possible (from the alogcat app on android,
Show Log menu on the multiplatform client, or Console on native mac app):
12-31 08:51:15.455: DEBUG/RemoteNotifier(4059): Sending notification: 
v2/DCA57F375B437EAA/436ab5b87cde3/PING//Test notification
12-31 08:51:15.521: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:51:15.548: DEBUG/RemoteNotifier(4059): Sending wifi notification to IP 
192.168.0.6
12-31 08:51:15.548: DEBUG/RemoteNotifier(4059): Sending over UDP
12-31 08:51:15.548: DEBUG/RemoteNotifier(4059): Sent over UDP
12-31 08:51:15.548: DEBUG/RemoteNotifier(4059): Sending over TCP
12-31 08:51:20.695: ERROR/RemoteNotifier(4059): Unable to send TCP or UDP packet
12-31 08:51:20.695: ERROR/RemoteNotifier(4059): 
java.net.SocketTimeoutException: Transport endpoint is not connected
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketI
mpl(Native Method)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(
OSNetworkSystem.java:130)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:246)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
java.net.Socket.connect(Socket.java:1074)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.IpNotificationMethod.sendTcpNotification(IpNot
ificationMethod.java:188)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:161)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:20.695: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:21.625: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:22.645: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:28.761: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:29.785: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:35.948: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:36.961: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:43.045: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:44.061: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:50.135: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:51.155: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:51:55.355: DEBUG/RemoteNotifier(4059): Restoring state
12-31 08:51:55.401: DEBUG/RemoteNotifier(4059): Not starting service again
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:51:57.288: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:51:58.292: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:52:04.345: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:52:05.355: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:52:11.421: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:52:12.428: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:52:18.511: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:52:19.521: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059): Waiting to retry
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:52:25.628: DEBUG/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)
12-31 08:52:26.635: DEBUG/RemoteNotifier(4059): Connecting to Bluetooth device 
KIN-LAPTOP
12-31 08:52:32.678: ERROR/RemoteNotifier(4059): Giving up sending bluetooth 
notification after 11 retries
12-31 08:52:32.678: ERROR/RemoteNotifier(4059): java.io.IOException: Service 
discovery failed
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377)
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.doSendNotification
(BluetoothNotificationMethod.java:174)
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.BluetoothNotificationMethod.sendNotification(B
luetoothNotificationMethod.java:120)
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.runNotificationThread(Notifier.java:1
69)
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier.access$0(Notifier.java:165)
12-31 08:52:32.678: ERROR/RemoteNotifier(4059):     at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:91)

Please provide any additional information below.
I fully expected the network connection to fail, as that's for my home network.

Original issue reported on code.google.com by guardian...@gmail.com on 31 Dec 2010 at 4:53