1

About Samples - ERROR SESSIONLESS org.alljoyn.Bus.ErStatus

asked 2015-07-21 13:48:30 -0700

boxwood gravatar image

updated 2015-11-03 15:44:22 -0700

ry.jones gravatar image
Linux Foundation Staff

Running About samples and get ErrorReplyBusException. What's going on? Here's the full thing.

BusAttachement.joinSession successful calling echo method
Echo : Hello World
  10.428 ****** ERROR SESSIONLESS sessionless_0 ...ter/SessionlessObj.cc:1721 | org.alljoyn.Bus.CancelFindAdvertisement returned ERROR_MESSAGE (error=org.alljoyn.Bus.ErStatus): ER_STOPPING_THREAD
  10.431 ****** ERROR SESSIONLESS sessionless_0 ...ter/SessionlessObj.cc:1379 | CancelFindAdvertisementByTransport failed for name implements='com.example.about.feature.interface.sample' :: ER_STOPPING_THREAD
  10.432 ****** ERROR LOCAL_TRANSPORT sessionless_0 .../LocalTransport.cc:938 | Local transport not running: ER_BUS_STOPPING
  10.434 ****** ERROR SESSIONLESS sessionless_0 ...ter/SessionlessObj.cc:1721 | org.alljoyn.Bus.CancelFindAdvertisement returned ERROR_MESSAGE (error=org.alljoyn.Bus.ErStatus): ER_BUS_STOPPING
  10.435 ****** ERROR SESSIONLESS sessionless_0 ...ter/SessionlessObj.cc:1379 | CancelFindAdvertisementByTransport failed for name name='org.alljoyn.sl.*' :: ER_BUS_STOPPING
  10.503 ****** ERROR TCP     external          ...outer/TCPTransport.cc:3884 | TCPTransport::DisbleDiscovery(): Not running or stopping; exiting: ER_BUS_TRANSPORT_NOT_STARTED
  10.504 ****** ERROR UDP     external          ...uter/UDPTransport.cc:10951 | UDPTransport::DisbleDiscovery(): Not running or stopping; exiting: ER_BUS_TRANSPORT_NOT_STARTED
  10.505 ****** ERROR TCP     external          ...outer/TCPTransport.cc:3884 | TCPTransport::DisbleDiscovery(): Not running or stopping; exiting: ER_BUS_TRANSPORT_NOT_STARTED
  10.505 ****** ERROR UDP     external          ...uter/UDPTransport.cc:10951 | UDPTransport::DisbleDiscovery(): Not running or stopping; exiting: ER_BUS_TRANSPORT_NOT_STARTED
edit retag flag offensive close merge delete

Comments

The information above starts with the message about the Echo call because everything before that worked fine and I wanted to just show the issue.

boxwood ( 2015-07-21 14:57:29 -0700 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2015-07-22 10:40:28 -0700

boxwood gravatar image

updated 2015-07-22 10:40:46 -0700

I fixed it. The following code prevents the issue by keeping the application running persistently.

        try {
            System.out.println("Echo : " + mSampleInterface.echo("Hello World"));

        } catch (BusException e1) {
            e1.printStackTrace();
        }
        while(true) {
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                System.out.println("Program interupted");
            }
        }
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-07-21 13:48:30 -0700

Seen: 290 times

Last updated: Nov 03 '15