Dear Developers,

I am working in a module-"iotivity-cloud".I had done building of
stack,account,interface,message-queue,resource directory as given on
https://wiki.iotivity.org/iotivity_cloud_-_programming_guide
I had also done ocnfiguring of kafka and mongodb on the same machine.

But I am facing few errors due to which the sample examples as given in
cloud/samples/client.
Here are the logs attached to this thread of all 4 servers &
aircon-controlee example.

-- 

*Innovation is change that unlocks new value..!!*

*Thanks & Regards,*

*Shreyas Shah(M.Tech-Embedded Systems),*

*ITNU,*
*(8460419863).*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170109/da55d68d/attachment.html>
-------------- next part --------------
root at 
iot001:/home/iot001/iotivity/iotivity-1.2.1/iotivity-1.2.1_cloud/cloud/interface/target#
 java -jar CloudInterface-0.0.1-SNAPSHOT.jar 5683 127.0.0.1 5684 127.0.0.1 5685 
127.0.0.1 5686 0
-----CI SERVER-------log4j:WARN No appenders could be found for logger 
(org.iotivity.cloud.util.Log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.

Exception in thread "main" java.net.ConnectException: Connection refused: 
/127.0.0.1:5684
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at 
io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
        at 
io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:338)
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:580)
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:504)
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:418)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:390)
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)
        at 
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)
        at java.lang.Thread.run(Thread.java:745)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: account_server_logs
Type: application/octet-stream
Size: 20633 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170109/da55d68d/attachment.obj>
-------------- next part --------------
root at 
iot001:/home/iot001/iotivity/iotivity-1.2.1/iotivity-1.2.1_cloud/cloud/messagequeue/target#
 java -jar CloudMessageQueue-0.0.1-SNAPSHOT.jar 5683 127.0.0.1 2181 127.0.0.1 
9092 0
-----MQ SERVER-----log4j:WARN No appenders could be found for logger 
(org.iotivity.cloud.util.Log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.

press 'q' to terminate
-------------- next part --------------
iot001 at 
iot001:~/iotivity/iotivity-1.2.1/iotivity-1.2.1_cloud/cloud/resourcedirectory/target$
 java -jar CloudResourceDirectory-0.0.1-SNAPSHOT.jar 5683 0
-----RD SERVER-----log4j:WARN No appenders could be found for logger 
(org.iotivity.cloud.util.Log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.

press 'q' to terminate
-------------- next part --------------

=========================================Signup process using 
github===================================================================
root at 
iot001:/home/iot001/iotivity/iotivity-1.2.1/iotivity-1.2.1_cloud/out/linux/x86_64/release/cloud/samples/client#
 ./aircon_controlee 127.0.0.1:5685 github 2d081feaab985c88510b
Auth response received code: 4
        accesstoken:    afd010640cae0e577d6472575f04a7258045ac14
        certificate:    (null)
        expiresin:      -1
        redirecturi:    coap+tcp://127.0.0.1:5683
        refreshtoken:   (null)
        sid:    2a6085d1-815d-4277-baba-4e4e4df91308
        tokentype:      bearer
        uid:    1f5e25c8-48ca-4da5-8f15-570b4db1ee0f
Auth response received code: 4
        expiresin:      -1
Registering resources to platform...
Publishing resources to cloud  result: 0 Waiting Publish default resource 
response from cloud
 result: 0 Waiting Publish user resource response from cloud
Publish resource response received, code: 132
PUT 1/0 to turn on/off air conditioner for observe testing, q to terminate
Publish resource response received, code: 132

======================Signin process using uid and access 
token-======================================================================
root at 
iot001:/home/iot001/iotivity/iotivity-1.2.1/iotivity-1.2.1_cloud/out/linux/x86_64/release/cloud/samples/client#
 ./aircon_controlee 127.0.0.1:5685 1f5e25c8-48ca-4da5-8f15-570b4db1ee0f 
afd010640cae0e577d6472575f04a7258045ac14
Auth response received code: 132
0: userUuid cannot be empty.
terminate called after throwing an instance of 'OC::OCException'
  what():  result_guard(): 26: Invalid Param
Aborted (core dumped)

Reply via email to