baljeetverma / android-notifier

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

remote notifier forces close on custom ip with port number #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.tryinp a custom IP with port number 52235
2.
3.

What is the expected output? What do you see instead?
I expect it to work. It forces close.D/RemoteNotifier( 1587): Not starting at 
boot.
D/RemoteNotifier( 1587): Using real bluetooth utils
D/RemoteNotifier( 1587): Using level 5 caller ID
I/RemoteNotifier( 1587): Starting notification service
D/RemoteNotifier( 1587): Battery status: Discharging
D/RemoteNotifier( 1587): Got battery level: 50
D/RemoteNotifier( 1587): Notifying of battery state change
D/RemoteNotifier( 1587): Sending notification: 
v2/8e403bbbb33059ab/85b9aeebc73523/BATTERY/50/Discharging, remaining charge: 50%
E/RemoteNotifier( 1587): Could not resolve address 
192.168.3:52235/pmr/PersonalMessageReceiver.xml
E/RemoteNotifier( 1587): java.net.UnknownHostException: 
192.168.3:52235/pmr/PersonalMessageReceiver.xml
E/RemoteNotifier( 1587):    at 
java.net.InetAddress.lookupHostByName(InetAddress.java:513)
E/RemoteNotifier( 1587):    at 
java.net.InetAddress.getAllByNameImpl(InetAddress.java:280)
E/RemoteNotifier( 1587):    at 
java.net.InetAddress.getByName(InetAddress.java:310)
E/RemoteNotifier( 1587):    at 
org.damazio.notifier.notification.IpNotificationMethod.getTargetAddress(IpNotifi
cationMethod.java:235)
E/RemoteNotifier( 1587):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:125)
E/RemoteNotifier( 1587):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
E/AndroidRuntime( 1587): FATAL EXCEPTION: Notification wifi
E/AndroidRuntime( 1587): java.lang.NullPointerException
E/AndroidRuntime( 1587):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:127)
E/AndroidRuntime( 1587):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
D/RemoteNotifier( 1806): Using real bluetooth utils
D/RemoteNotifier( 1806): Using level 5 caller ID
I/RemoteNotifier( 1806): Starting notification service
D/RemoteNotifier( 1806): Battery status: Discharging
D/RemoteNotifier( 1806): Got battery level: 50
D/RemoteNotifier( 1806): Notifying of battery state change
D/RemoteNotifier( 1806): Sending notification: 
v2/8e403bbbb33059ab/85b9af0631e9e6/BATTERY/50/Discharging, remaining charge: 50%
E/RemoteNotifier( 1806): Could not resolve address 
192.168.3:52235/pmr/PersonalMessageReceiver.xml
E/RemoteNotifier( 1806): java.net.UnknownHostException: 
192.168.3:52235/pmr/PersonalMessageReceiver.xml
E/RemoteNotifier( 1806):    at 
java.net.InetAddress.lookupHostByName(InetAddress.java:513)
E/RemoteNotifier( 1806):    at 
java.net.InetAddress.getAllByNameImpl(InetAddress.java:280)
E/RemoteNotifier( 1806):    at 
java.net.InetAddress.getByName(InetAddress.java:310)
E/RemoteNotifier( 1806):    at 
org.damazio.notifier.notification.IpNotificationMethod.getTargetAddress(IpNotifi
cationMethod.java:235)
E/RemoteNotifier( 1806):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:125)
E/RemoteNotifier( 1806):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
E/AndroidRuntime( 1806): FATAL EXCEPTION: Notification wifi
E/AndroidRuntime( 1806): java.lang.NullPointerException
E/AndroidRuntime( 1806):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:127)
E/AndroidRuntime( 1806):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
D/RemoteNotifier( 1821): Using real bluetooth utils
D/RemoteNotifier( 1821): Using level 5 caller ID
I/RemoteNotifier( 1821): Starting notification service
D/RemoteNotifier( 1821): Battery status: Discharging
D/RemoteNotifier( 1821): Got battery level: 50
D/RemoteNotifier( 1821): Notifying of battery state change
D/RemoteNotifier( 1821): Sending notification: 
v2/8e403bbbb33059ab/85b9af17a3a786/BATTERY/50/Discharging, remaining charge: 50%
E/RemoteNotifier( 1821): Could not resolve address 
192.168.3:52235/pmr/PersonalMessageReceiver.xml
E/RemoteNotifier( 1821): java.net.UnknownHostException: 
192.168.3:52235/pmr/PersonalMessageReceiver.xml
E/RemoteNotifier( 1821):    at 
java.net.InetAddress.lookupHostByName(InetAddress.java:513)
E/RemoteNotifier( 1821):    at 
java.net.InetAddress.getAllByNameImpl(InetAddress.java:280)
E/RemoteNotifier( 1821):    at 
java.net.InetAddress.getByName(InetAddress.java:310)
E/RemoteNotifier( 1821):    at 
org.damazio.notifier.notification.IpNotificationMethod.getTargetAddress(IpNotifi
cationMethod.java:235)
E/RemoteNotifier( 1821):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:125)
E/RemoteNotifier( 1821):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
E/AndroidRuntime( 1821): FATAL EXCEPTION: Notification wifi
E/AndroidRuntime( 1821): java.lang.NullPointerException
E/AndroidRuntime( 1821):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:127)
E/AndroidRuntime( 1821):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
D/RemoteNotifier( 1838): Using real bluetooth utils
D/PhoneWindow( 1838): couldn't save which view has focus because the focused 
view android.widget.ListView@44dafc38 has no id.
D/PhoneWindow( 1838): couldn't save which view has focus because the focused 
view android.widget.ListView@44de9188 has no id.
D/PhoneWindow( 1838): couldn't save which view has focus because the focused 
view android.widget.ListView@44d6d1f0 has no id.
D/RemoteNotifier( 1838): Sending notification: 
v2/8e403bbbb33059ab/4504d555f949b/PING//Test notification
E/RemoteNotifier( 1838): Could not resolve address 192.168.3:52235
E/RemoteNotifier( 1838): java.net.UnknownHostException: 192.168.3:52235
E/RemoteNotifier( 1838):    at 
java.net.InetAddress.lookupHostByName(InetAddress.java:513)
E/RemoteNotifier( 1838):    at 
java.net.InetAddress.getAllByNameImpl(InetAddress.java:280)
E/RemoteNotifier( 1838):    at 
java.net.InetAddress.getByName(InetAddress.java:310)
E/RemoteNotifier( 1838):    at 
org.damazio.notifier.notification.IpNotificationMethod.getTargetAddress(IpNotifi
cationMethod.java:235)
E/RemoteNotifier( 1838):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:125)
E/RemoteNotifier( 1838):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
E/AndroidRuntime( 1838): FATAL EXCEPTION: Notification wifi
E/AndroidRuntime( 1838): java.lang.NullPointerException
E/AndroidRuntime( 1838):    at 
org.damazio.notifier.notification.IpNotificationMethod.sendNotification(IpNotifi
cationMethod.java:127)
E/AndroidRuntime( 1838):    at 
org.damazio.notifier.notification.Notifier$1.run(Notifier.java:54)
D/RemoteNotifier( 1867): Using real bluetooth utils
D/PhoneWindow( 1867): couldn't save which view has focus because the focused 
view android.widget.ListView@44da4800 has no id.
D/WifiService( 1082): ACTION_BATTERY_CHANGED pluggedType: 0
D/RemoteNotifier( 1867): Sending notification: 
v2/8e403bbbb33059ab/4504d57ae7803/PING//Test notification
D/RemoteNotifier( 1867): Sending wifi notification to IP 192.168.0.3
D/RemoteNotifier( 1867): Sending over UDP
D/RemoteNotifier( 1867): Sent over UDP
I/RemoteNotifier( 1867): Sent notification over WiFi.
D/RemoteNotifier( 1867): Using level 5 caller ID
I/RemoteNotifier( 1867): Starting notification service
D/RemoteNotifier( 1867): Battery status: Discharging
D/RemoteNotifier( 1867): Got battery level: 50
D/RemoteNotifier( 1867): Notifying of battery state change
D/RemoteNotifier( 1867): Sending notification: 
v2/8e403bbbb33059ab/85b9afcb78b20b/BATTERY/50/Discharging, remaining charge: 50%
D/RemoteNotifier( 1867): Sending wifi notification to IP 192.168.0.3
D/RemoteNotifier( 1867): Sending over UDP
D/RemoteNotifier( 1867): Sent over UDP
I/RemoteNotifier( 1867): Sent notification over WiFi.
D/RemoteNotifier( 1867): Sending notification: 
v2/8e403bbbb33059ab/4504d58edb28d/PING//Test notification
D/RemoteNotifier( 1867): Sending wifi notification to IP 192.168.0.3
D/RemoteNotifier( 1867): Sending over UDP
D/RemoteNotifier( 1867): Sent over UDP
I/RemoteNotifier( 1867): Sent notification over WiFi.

Please paste the application's log here (it should now be on your
clipboard):

What version of Android are you using?

Original issue reported on code.google.com by LeftysLoft on 24 Aug 2010 at 3:10

GoogleCodeExporter commented 9 years ago
Hmmm indeed I never meant for it to read the port number at that point.
I'll make it not crash first, then I'll follow up on issue 36

Original comment by rdamazio@gmail.com on 24 Aug 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Fixed in r217.

Original comment by rdamazio@gmail.com on 29 Aug 2010 at 7:38

GoogleCodeExporter commented 9 years ago
Issue 76 has been merged into this issue.

Original comment by rdamazio@gmail.com on 9 Sep 2010 at 9:30

GoogleCodeExporter commented 9 years ago

Original comment by rdamazio@gmail.com on 19 Sep 2010 at 6:43