0

Errors when Running the bbclient and service

asked 2015-05-15 03:37:19 -0700

pubudu gravatar image

I am following the instructions at https://allseenalliance.org/developers/develop/building/linux/build-source . When running the bbclient and bbservice I get the following output.

$ ./bbservice -n com.test
AllJoyn Library version: v0.00.01
AllJoyn Library build info: AllJoyn Library v0.00.01 (Built Fri May 15 07:40:56 UTC 2015 by pubudu - Git: alljoyn.git branch: 'master' tag: 'v15.04' (+97 changes) commit ref: f7cd8be1493c6137047ed0df953f9205ea6ad4e2)
opts.transports = 0x105
bbservice com.test ready to accept connections
Accepting JoinSession request from :s5bJpsM-.2
Session Established: joiner=:s5bJpsM-.2, sessionId=fd4e3174
Link timeout was successfully set to 10
Pinged with: Ping String 1
   8.661 ****** ERROR ALLJOYN auth              ...ore/src/Message_Gen.cc:522 | Failed to deliver message METHOD_RET[20](ssu): ER_OS_ERROR
   8.661 ****** ERROR ENDPOINT_AUTH auth        ...re/src/EndpointAuth.cc:298 | WaitHello: ER_OS_ERROR
   8.661 ****** ERROR TCP     auth              ...router/TCPTransport.cc:819 | Failed to establish TCP endpoint: ER_OS_ERROR
SessionLost(fd4e3174) was called. Reason = 2.



$ ./bbclient 
AllJoyn Library version: v0.00.01
AllJoyn Library build info: AllJoyn Library v0.00.01 (Built Fri May 15 07:40:56 UTC 2015 by pubudu - Git: alljoyn.git branch: 'master' tag: 'v15.04' (+97 changes) commit ref: f7cd8be1493c6137047ed0df953f9205ea6ad4e2)
   0.029 ****** ERROR NETWORK                   common/os/posix/Socket.cc:346 | Binding (sockfd = 41) to 0.0.0.0 9955: 98 - Address already in use: ER_OS_ERROR
Waiting for name org.alljoyn.alljoyn_test to appear on the bus
^C   6.048 ****** ERROR ALLJOYN external          ..._core/test/bbclient.cc:847 | Event::Wait failed: ER_ALERTED_THREAD
bbclient exiting with status 4098 (ER_ALERTED_THREAD)
pubudu@pubudu-HP-ProBook-450-G2:~/projects/catnet/learn/alljoyn/build/linux/x86_64/debug/dist/cpp/bin$ ./bbclient -n com.test -d
AllJoyn Library version: v0.00.01
AllJoyn Library build info: AllJoyn Library v0.00.01 (Built Fri May 15 07:40:56 UTC 2015 by pubudu - Git: alljoyn.git branch: 'master' tag: 'v15.04' (+97 changes) commit ref: f7cd8be1493c6137047ed0df953f9205ea6ad4e2)
   0.647 ****** ERROR NETWORK                   common/os/posix/Socket.cc:346 | Binding (sockfd = 42) to 0.0.0.0 9955: 98 - Address already in use: ER_OS_ERROR
   0.650 ****** ERROR NETWORK                   common/os/posix/Socket.cc:346 | Binding (sockfd = 40) to 0.0.0.0 9955: 98 - Address already in use: ER_OS_ERROR
FindAdvertisedName 0x100 takes 5 ms 
FoundAdvertisedName(name=com.test, transport=0x100, prefix=com.test)
FindAdvertisedName 0x4 takes 6 ms 
FoundAdvertisedName(name=com.test, transport=0x4, prefix=com.test)
NameOwnerChanged(:wE6q-qqc.1, null, :wE6q-qqc.1)
NameOwnerChanged(:wE6q-qqc.2, null, :wE6q-qqc.2)
NameOwnerChanged(com.test, null, :wE6q-qqc.2)
JoinSession 0x100 takes 4 ms 
Sending "Ping String 1" to org.alljoyn.alljoyn_test.my_ping synchronously
com.test.my_ping ( path=/org/alljoyn/alljoyn_test ) returned "Ping String 1"
com.test.GetProperty ( path=/org/alljoyn/alljoyn_test) returned "100"
   0.660 ****** ERROR ALLJOYN lepDisp1_1        ..._core/test/bbclient.cc:124 | JoinSession(com.test) failed: ER_STOPPING_THREAD
   0.660 ****** ERROR ALLJOYN replyTimer_0      .../src/BusAttachment.cc:1665 | org.alljoyn.Bus.JoinSession returned ERROR_MESSAGE (error=org.alljoyn.Bus.Exiting): ER_BUS_REPLY_IS_ERROR_MESSAGE
   0.660 ****** ERROR ALLJOYN_OBJ JoinS-2       .../router/AllJoynObj.cc:1344 | trans->Connect(tcp:addr=10.101.5.28,port=9955) failed: ER_STOPPING_THREAD
   0.660 ****** ERROR ALLJOYN_OBJ ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-17 03:24:11 -0700

praveenb gravatar image

You can get more information about the error codes here:

The service is launched with -n com.test. By default, this means the name is advertised on all available transports (LOCAL, TCP AND UDP).

The first client is launched without any options and thus it is waiting for the name org.alljoyn.alljoyn_test to appear. The first instance of bbclient was then stopped via Ctrl-C.

The second instance of client is launched with -d (to discover) and -n com.test (this also means the -c value, number of method calls to make, defaults to 1). As can be seen, the client discovered the name over two transports UDP (0x100) and TCP (0x4). As soon as a name is discovered, the client attempts to join a session with it.

In this case, given that the name was first discovered over UDP, JoinSession is attempted first over UDP and upon UDP session formation method calls (1 in number) are made.

However, the name was also discovered over TCP upon which a JoinSession is attempted over TCP as well. But, by this time, the one method call has already been completed and the application proceeds to exit which causes the TCP JoinSession in progress to be halted and the corresponding error messages are a result of this.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-05-15 03:37:19 -0700

Seen: 544 times

Last updated: May 17 '15