Kaa Notification Demo on Android

363 views
Skip to first unread message

Andre

unread,
Sep 15, 2015, 5:48:47 PM9/15/15
to Kaa project
I been trying to run Kaa Notification Demo on my Android device but every time I run it I get "unfortunately, Kaa Notification Demo has stopped"
when starts I see "Sample mandatory Topic    3" but after that it closes and that error message pops up

Dmitry Sergeev

unread,
Sep 16, 2015, 7:28:54 AM9/16/15
to Kaa project
Hi Andre,

Could you provide some more information about your problem? 
What Kaa Sandbox version and Android device/version you're using?

Thanks,
Dmitry

Dmitry Sergeev

unread,
Sep 16, 2015, 7:56:18 AM9/16/15
to Kaa project
It would be awesome, if you'll send logcat logs from app crash. Here's example

Andre

unread,
Sep 16, 2015, 2:47:19 PM9/16/15
to Kaa project
Hi Dmitry,
sure here is he log,
and the version I had downloaded is this one
kaa-sandbox-ubuntu-64bit-v0.7.1.ova

Thank you!

Log Collector version: 1.2.0
Device model: Amazon Kindle Fire
Firmware version: 4.2.2
Kernel version: 3.0.50+
hashcode@hashcode-UB) )
#5 SMP PREEMPT Tue Feb 12 23:04:41 PST 2013
Build number: full_otter-userdebug 4.2.2 JDQ39 eng.hashcode.20130212.152604 test-keys

--------- beginning of /dev/log/main
09-16 11:36:57.034 I/dalvikvm( 3382): Turning on JNI app bug workarounds for target SDK version 3...
09-16 11:36:57.081 E/Trace ( 3382): error opening trace file: No such file or directory (2)
09-16 11:36:59.182 D/dalvikvm( 3382): GC_CONCURRENT freed 85K, 3% free 4347K/4464K, paused 19ms+3ms, total 61ms
09-16 11:36:59.643 D/libEGL ( 3382): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
09-16 11:36:59.666 D/libEGL ( 3382): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
09-16 11:36:59.674 D/libEGL ( 3382): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
09-16 11:36:59.807 D/OpenGLRenderer( 3382): Enabling debug mode 0
09-16 11:36:59.854 D/dalvikvm( 3382): GC_CONCURRENT freed 176K, 5% free 4613K/4820K, paused 3ms+10ms, total 28ms
09-16 11:38:05.706 D/dalvikvm( 3382): GC_CONCURRENT freed 123K, 4% free 4975K/5132K, paused 27ms+6ms, total 60ms
09-16 11:41:56.221 I/dalvikvm( 3876): Turning on JNI app bug workarounds for target SDK version 3...
09-16 11:41:56.252 E/Trace ( 3876): error opening trace file: No such file or directory (2)

Dmitry Sergeev

unread,
Sep 17, 2015, 1:30:05 AM9/17/15
to Kaa project
Hello again, Andre

Unfortunately, I don't see logs of our application. Make sure, that you've started adb shell logcat > log.txt command before launching application, and stopped it by pressing Ctrl+C after the "unfortunately, Kaa Notification Demo has stopped" message.

Thanks,
Dmitry

Manoj Verma

unread,
Jul 2, 2016, 4:48:25 AM7/2/16
to Kaa project
log cat logs
07-02 13:25:23.696 I/ActivityManager(871): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.kaaproject.kaa.demo.notification/.NotificationDemoActivity (has extras)} from uid 10022 on display 0
07-02 13:25:23.729 I/ActivityManager(871): Start proc 14524:org.kaaproject.kaa.demo.notification/u0a150 for activity org.kaaproject.kaa.demo.notification/.NotificationDemoActivity
07-02 13:25:23.826 W/ActivityThread(14524): Application org.kaaproject.kaa.demo.notification can be debugged on port 8100...
07-02 13:25:23.849 W/System  (14524): ClassLoader referenced unknown path: /data/app/org.kaaproject.kaa.demo.notification-1/lib/arm
07-02 13:25:23.979 E/AndroidRuntime(14524): Process: org.kaaproject.kaa.demo.notification, PID: 14524
07-02 13:25:23.979 E/AndroidRuntime(14524): java.lang.RuntimeException: Unable to create application org.kaaproject.kaa.demo.notification.KaaNotificationApp: java.lang.RuntimeException: Unable to obtain list of bootstrap servers.
07-02 13:25:23.979 E/AndroidRuntime(14524): at org.kaaproject.kaa.client.AbstractKaaClient.<init>(AbstractKaaClient.java:190)
07-02 13:25:23.979 E/AndroidRuntime(14524): at org.kaaproject.kaa.client.BaseKaaClient.<init>(BaseKaaClient.java)
07-02 13:25:23.979 E/AndroidRuntime(14524): at org.kaaproject.kaa.client.Kaa.newClient(Kaa.java:47)
07-02 13:25:23.979 E/AndroidRuntime(14524): at org.kaaproject.kaa.client.Kaa.newClient(Kaa.java:42)
07-02 13:25:23.979 E/AndroidRuntime(14524): at org.kaaproject.kaa.demo.notification.KaaNotificationApp.onCreate(KaaNotificationApp.java:75)
07-02 13:25:23.984 W/ActivityManager(871):   Force finishing activity org.kaaproject.kaa.demo.notification/.NotificationDemoActivity
07-02 13:25:24.508 W/ActivityManager(871): Activity pause timeout for ActivityRecord{9d2868c u0 org.kaaproject.kaa.demo.notification/.NotificationDemoActivity t2356 f}
07-02 13:25:28.469 I/ActivityManager(871): Process org.kaaproject.kaa.demo.notification (pid 14524) has died

Manoj Verma

unread,
Jul 2, 2016, 4:50:58 AM7/2/16
to Kaa project
Basically its due to 

07-02 13:25:23.979 E/AndroidRuntime(14524): java.lang.RuntimeException: Unable to create application org.kaaproject.kaa.demo.notification.KaaNotificationApp: java.lang.RuntimeException: Unable to obtain list of bootstrap servers.
extra information:-
From kaa logs
 593 2016-07-02 00:44:53,585 [main] INFO  o.k.k.s.t.AbstractTransportService - Initializing transport with name org.kaaproject.kaa.server.trans
    port.http and class org.kaaproject.kaa.server.transports.http.transport.HttpTransport
594 2016-07-02 00:44:53,615 [main] INFO  o.k.k.s.t.AbstractTransportService - Lookup of transport configuration file bootstrap-http-transport.
    config
595 2016-07-02 00:44:53,860 [main] INFO  o.k.k.s.t.AbstractTransportService - Lookup of transport configuration file bootstrap-http-transport.
    config
596 2016-07-02 00:44:53,862 [main] INFO  o.k.k.s.t.AbstractKaaTransport - Initializing transport org.kaaproject.kaa.server.transports.http.tra
    nsport.HttpTransport with {"bindInterface": "${transport_bind_interface}", "bindPort": 9889, "publicInterface": "${transport_public_interf
    ace}", "publicPort": 9889, "maxBodySize": 524288}
597 2016-07-02 00:44:54,147 [main] INFO  o.k.k.s.t.AbstractKaaTransport - Transport org.kaaproject.kaa.server.transports.http.transport.HttpTr
    ansport initialized with {"bindInterface": "0.0.0.0", "bindPort": 9889, "publicInterface": "192.168.0.102", "publicPort": 9889, "maxBodySi
    ze": 524288}

from telnet its confirmed bootstrap ports are confirmed


On Thursday, 17 September 2015 11:00:05 UTC+5:30, Dmitry Sergeev wrote:

Peter Krutsiuk

unread,
Jul 4, 2016, 11:57:44 AM7/4/16
to Kaa project
Hi,

Refer to this thread for more details.

Best regards,
Peter.
Reply all
Reply to author
Forward
0 new messages