Notification Demo Java on Mac . Never connect

108 views
Skip to first unread message

Neeraj

unread,
May 7, 2016, 4:07:28 AM5/7/16
to Kaa project

Hi,

I am trying to use Kaa for a Security Project and attempting to run Kaa Notification Demo using Java .jar files on Mac. I have Sandbox version 0.9 running . When running demo I always see this error

java -jar NotificationDemo.jar 
2016-05-07 01:01:30,152 [main] INFO  o.k.k.d.n.NotificationDemo - Notification demo started
2016-05-07 01:01:30,156 [main] INFO  o.k.k.d.n.NotificationDemo - --= Press any key to exit =--
Exception in thread "main" java.lang.RuntimeException: Unable to obtain list of bootstrap servers.
at org.kaaproject.kaa.client.AbstractKaaClient.<init>(AbstractKaaClient.java:190)
at org.kaaproject.kaa.client.BaseKaaClient.<init>(BaseKaaClient.java)
at org.kaaproject.kaa.client.Kaa.newClient(Kaa.java:47)
at org.kaaproject.kaa.client.Kaa.newClient(Kaa.java:42)
at org.kaaproject.kaa.demo.notification.NotificationDemo.main(Unknown Source)

I tried looking in to Sandbox Logs but can not make out anything. I have Virtual Box VM running on Mac and as suggested I am using Bridged mode.

Attaching the sandbox logs also collected after the error happens.

Hope somebody can guide me so I can use and add to this wonderful platform.

Regards,
Neeraj

sandbox_logs (2).tar.gz

Neeraj

unread,
May 7, 2016, 4:40:24 AM5/7/16
to Kaa project
Hi,

Never mind. Got it running. Started Sandbox again. Regenerated .jar file and was able to get the notification.

Thanks,
Neeraj

huawei xie

unread,
May 10, 2016, 2:18:01 AM5/10/16
to Kaa project
you can run .jar project ,I do it successfully.But I can not import the Java source into MyEclipse,Can you give me a favor?

Manoj Verma

unread,
Jun 26, 2016, 9:05:41 AM6/26/16
to Kaa project
HIall,

i am having following problem could any one help me please 

18:34:15,508 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
18:34:15,508 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
18:34:15,509 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/home/enigma/Downloads/kaa-first-app/kaa-first-app/java/target/classes/logback.xml]
18:34:16,032 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
18:34:16,080 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
18:34:16,096 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console]
18:34:16,235 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
18:34:16,442 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.kaaproject.kaa] to ERROR
18:34:16,442 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.kaaproject.kaa.samples.nf] to INFO
18:34:16,442 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
18:34:16,442 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT]
18:34:16,443 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [fileLogAppender]. Did you define it below instead of above in the configuration file?
18:34:16,443 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details.
18:34:16,443 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
18:34:16,448 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@16b4a017 - Registering current configuration as safe fallback point

Exception in thread "main" java.lang.RuntimeException: Unable to obtain list of bootstrap servers.
at org.kaaproject.kaa.client.AbstractKaaClient.<init>(AbstractKaaClient.java:190)
at org.kaaproject.kaa.client.BaseKaaClient.<init>(BaseKaaClient.java)
at org.kaaproject.kaa.client.Kaa.newClient(Kaa.java:47)
at org.kaaproject.kaa.client.Kaa.newClient(Kaa.java:42)
at org.kaaproject.kaa.samples.nf.NotificationSystemTestApp.launch(NotificationSystemTestApp.java:25)
at org.kaaproject.kaa.samples.nf.NotificationSystemTestApp.main(NotificationSystemTestApp.java:20)

Peter Krutsiuk

unread,
Jun 29, 2016, 11:27:04 AM6/29/16
to Kaa project
Hi,

Refer to Change IP in sdk and Kaa Sandbox threads in order to solve your issue. Note that you need to regenerate SDK if you will change VBox network mode or Sandbox ip address.

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