I have several programs in java and C++ that use alljoyn 14.02 and I've started migrating them to 14.06. On the code side, everything seems to be smooth, the only change I had to make is to adapt the call to
Now, when I run the programs, I get many errors like these :
****** ERROR NETWORK external common/os/posix/Socket.cc:345 | Binding (sockfd = 79) to 0.0.0.0 9955: 98 - Address already in use: ER_OS_ERROR ****** ERROR NETWORK lepDisp common/os/posix/Socket.cc:345 | Binding (sockfd = 96) to 0.0.0.0 9955: 98 - Address already in use: ER_OS_ERROR ****** ERROR ALLJOYN_OBJ lepDisp .../router/AllJoynObj.cc:2215 | GetSessionInfo failed: ER_BUS_NO_ROUTE ****** ERROR IPNS IpNameServiceImpl .../IpNameServiceImpl.cc:3597 | IpNameServiceImpl::SameNetwork(): Bad IPv6 network prefix: ER_FAIL ****** ERROR ALLJOYN_JAVA external ...a/jni/alljoyn_java.cc:6180 | BusAttachment_joinSession(): Error. Forgetting jglobalref: ER_ALLJOYN_JOINSESSION_REPLY_UNREACHABLE
When analyzing my logs, it seems I'm missing many (but not all) sessionless signals and many about announcement (sometime I don't receive them at all and sometime it takes a very long time : 10s).
All these programs use the full client with an embedded router (and during tests are running on the same computer), they were running fine with 14.02 and completely break with 14.06. I suspect I have a problem with the underlying name service but I don't know where to look and how to debug this kind of error. Could someone give me some general instructions on debugging and diagnosis ?
I've tried (and had no luck with) :
TRANSPORT_TCPin sessionOpts when binding and joining session (in order to avoid using the beta UDP transport)
- disabling IPV6 on the computer I was running the tests on (as I have many
Bad IPv6 network prefixerror)
I'll keep editing this question as i try new things, but I'm really looking for a way to narrow down the problem to something I can understand.