problem running hello c++ example

#1

Hi,
i’m trying to run the first example in c++ (hello)

But the output of hello seem to close inmediatelly the ASIO loop.

i’ve compiled msgpack with -DMSGPACK_USE_LEGACY_NAME_AS_FLOAT and modified SConstruct to include this flag.

and i’ve removed the “serializer” clause from config.json

The crossbar output indicate a error:

2015-04-23 19:48:57-0400 [Controller 21462] ==================== Crossbar.io ====================

2015-04-23 19:48:57-0400 [Controller 21462] Crossbar.io 0.10.4 starting

2015-04-23 19:48:57-0400 [Controller 21462] Running on CPython using EPollReactor reactor

2015-04-23 19:48:57-0400 [Controller 21462] Starting from node directory /home/cfb/hello/.crossbar

2015-04-23 19:48:57-0400 [Controller 21462] Starting from local configuration ‘/home/cfb/hello/.crossbar/config.json’

2015-04-23 19:48:57-0400 [Controller 21462] Warning, could not set process title (setproctitle not installed)

2015-04-23 19:48:57-0400 [Controller 21462] Router created for realm ‘crossbar’

2015-04-23 19:48:57-0400 [Controller 21462] No WAMPlets detected in enviroment.

2015-04-23 19:48:57-0400 [Controller 21462] Starting Router with ID ‘worker1’ …

2015-04-23 19:48:57-0400 [Controller 21462] Entering reactor event loop …

2015-04-23 19:48:58-0400 [Router 21471] Log opened.

2015-04-23 19:48:58-0400 [Router 21471] Warning: could not set worker process title (setproctitle not installed)

2015-04-23 19:48:58-0400 [Router 21471] Running under CPython using EPollReactor reactor

2015-04-23 19:48:58-0400 [Router 21471] Entering event loop …

2015-04-23 19:48:58-0400 [Controller 21462] Router with ID ‘worker1’ and PID 21471 started

2015-04-23 19:48:58-0400 [Controller 21462] Router ‘worker1’: realm ‘realm1’ (named ‘realm1’) started

2015-04-23 19:48:58-0400 [Controller 21462] Router ‘worker1’: role ‘role1’ (named ‘anonymous’) started on realm ‘realm1’

2015-04-23 19:48:58-0400 [Router 21471] Site starting on 8080

2015-04-23 19:48:58-0400 [Controller 21462] Router ‘worker1’: transport ‘transport1’ started

2015-04-23 19:48:58-0400 [Router 21471] CrossbarWampRawSocketServerFactory starting on 8090

2015-04-23 19:48:58-0400 [Controller 21462] Router ‘worker1’: transport ‘transport2’ started

2015-04-23 19:49:14-0400 [Router 21471] Unhandled Error

2015-04-23 19:49:14-0400 [Router 21471] Traceback (most recent call last):

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/python/log.py”, line 88, in callWithLogger

2015-04-23 19:49:14-0400 [Router 21471] return callWithContext({“system”: lp}, func, *args, **kw)

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/python/log.py”, line 73, in callWithContext

2015-04-23 19:49:14-0400 [Router 21471] return context.call({ILogContext: newCtx}, func, *args, **kw)

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/python/context.py”, line 118, in callWithContext

2015-04-23 19:49:14-0400 [Router 21471] return self.currentContext().callWithContext(ctx, func, *args, **kw)

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/python/context.py”, line 81, in callWithContext

2015-04-23 19:49:14-0400 [Router 21471] return func(*args,**kw)

2015-04-23 19:49:14-0400 [Router 21471] — —

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py”, line 614, in _doReadOrWrite

2015-04-23 19:49:14-0400 [Router 21471] why = selectable.doRead()

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py”, line 209, in doRead

2015-04-23 19:49:14-0400 [Router 21471] return self._dataReceived(data)

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py”, line 215, in _dataReceived

2015-04-23 19:49:14-0400 [Router 21471] rval = self.protocol.dataReceived(data)

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.py”, line 201, in dataReceived

2015-04-23 19:49:14-0400 [Router 21471] self.abort()

2015-04-23 19:49:14-0400 [Router 21471] File “/usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.py”, line 177, in abort

2015-04-23 19:49:14-0400 [Router 21471] raise TransportLost()

2015-04-23 19:49:14-0400 [Router 21471] autobahn.wamp.exception.TransportLost:

Any idea about this?

Thanks

0 Likes