crossbar version 0.10.3 fails to start.

#1

Hello,
I’ve pulled the latest development crossbar version from github (0.10.3). I am using the same config.jason, as I’ve used for the previously installed version (official release).

However version 0.10.3 throws exception at start up:

2015-04-08 12:58:19-0700 [Controller 5754] Exception: encountered unknown attribute ‘serializer’ in RawSocket transport configuration

I assume it does not like the following configuration:

{

“type”: “rawsocket”,

       "serializer": "msgpack",

“endpoint”: {

“type”: “tcp”,

“port”: 8090

}

}

Please let me know what is happening.

Thanks,

Rosa

0 Likes

#2

Hi Rosa,

Hello,
I've pulled the latest development crossbar version from github
(0.10.3). I am using the same config.jason, as I've used for the
previously installed version (official release).
However version 0.10.3 throws exception at start up:

*2015-04-08 12:58:19-0700 [Controller 5754] Exception: encountered
unknown attribute 'serializer' in RawSocket transport configuration*

I assume it does not like the following configuration:
{
                "type": "rawsocket",
       "serializer": "msgpack",
                "endpoint": {
                   "type": "tcp",
                   "port": 8090
                }
             }

The latest Crossbar.io now implements a revised RawSocket (conforming to spec). This revised version features an opening handshake that _negotiates_ the serializer.

Consequently, the "serializer" config parameter is no longer necessary / allowed.

Please see here for a complete config example:

https://github.com/crossbario/crossbarexamples/blob/master/hello/cpp/.crossbar/config.json#L44

Negotiation allows to run RawSocket on a single port for all clients independent of serializer used. It will also allow us to run RawSocket next to WebSocket on a single port! The latter is not yet implemented though.

The revised RawSocket is implemented in _trunk_ of the following

- AutobahnPython / Crossbar.io
- AutobahnCpp

You will need all of these trunk to run.

···

Am 08.04.2015 um 22:14 schrieb Rosa Lisin:

Please let me know what is happening.

Thanks,
Rosa

--
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
<mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com
<mailto:cross...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com
<https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Hi Rosa,

Hello,
I've pulled the latest development crossbar version from github
(0.10.3). I am using the same config.jason, as I've used for the
previously installed version (official release).
However version 0.10.3 throws exception at start up:

*2015-04-08 12:58:19-0700 [Controller 5754] Exception: encountered
unknown attribute 'serializer' in RawSocket transport configuration*

I assume it does not like the following configuration:
{
                "type": "rawsocket",
       "serializer": "msgpack",
                "endpoint": {
                   "type": "tcp",
                   "port": 8090
                }
             }

The latest Crossbar.io now implements a revised RawSocket (conforming to spec). This revised version features an opening handshake that _negotiates_ the serializer.

Consequently, the "serializer" config parameter is no longer necessary / allowed.

Please see here for a complete config example:

https://github.com/crossbario/crossbarexamples/blob/master/hello/cpp/.crossbar/config.json#L44

Negotiation allows to run RawSocket on a single port for all clients independent of serializer used. It will also allow us to run RawSocket next to WebSocket on a single port! The latter is not yet implemented though.

The revised RawSocket is implemented in _trunk_ of the following

- AutobahnPython / Crossbar.io
- AutobahnCpp

You will need all of these trunk to run.

···

Am 08.04.2015 um 22:14 schrieb Rosa Lisin:

Please let me know what is happening.

Thanks,
Rosa

--
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
<mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com
<mailto:cross...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com
<https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Thanks Tobias,
I can start crossbar now. However, when I run a sample C++ application using autobahnCpp (I’ve pulled it from github couple of days ago), the session fails to join the realm.

Starting WAMP session

Connecting to realm

TX message (56 octets) …

write: Broken pipe

Is there anything else I am missing?

Thanks,

Rosa

···

On Wednesday, April 8, 2015 at 4:40:10 PM UTC-4, Tobias Oberstein wrote:

Hi Rosa,

Am 08.04.2015 um 22:14 schrieb Rosa Lisin:

Hello,

I’ve pulled the latest development crossbar version from github

(0.10.3). I am using the same config.jason, as I’ve used for the

previously installed version (official release).

However version 0.10.3 throws exception at start up:

*2015-04-08 12:58:19-0700 [Controller 5754] Exception: encountered

unknown attribute ‘serializer’ in RawSocket transport configuration*

I assume it does not like the following configuration:

{

            "type": "rawsocket",
   "serializer": "msgpack",
            "endpoint": {
               "type": "tcp",
               "port": 8090
            }
         }

The latest Crossbar.io now implements a revised RawSocket (conforming to
spec). This revised version features an opening handshake that
negotiates the serializer.

Consequently, the “serializer” config parameter is no longer necessary /
allowed.

Please see here for a complete config example:

https://github.com/crossbario/crossbarexamples/blob/master/hello/cpp/.crossbar/config.json#L44

Negotiation allows to run RawSocket on a single port for all clients
independent of serializer used. It will also allow us to run RawSocket
next to WebSocket on a single port! The latter is not yet implemented
though.

The revised RawSocket is implemented in trunk of the following

You will need all of these trunk to run.

Please let me know what is happening.

Thanks,

Rosa

You received this message because you are subscribed to the Google

Groups “Crossbar” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to crossbario+...@googlegroups.com

mailto:crossbario+unsub...@googlegroups.com.

To post to this group, send email to cros...@googlegroups.com

mailto:cross...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com

<https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#5

I've just rechecked the example

https://github.com/crossbario/crossbarexamples/tree/master/hello/cpp

using the latest trunk of all 3 repos. Works for me:

Terminal 1:

(python279_1)oberstet@thinkpad-t430s:~/scm/crossbar/crossbarexamples/hello/cpp$ crossbar start
2015-04-08 23:35:59+0200 [Controller 27170] Log opened.
2015-04-08 23:35:59+0200 [Controller 27170] ==================== Crossbar.io ====================
  
2015-04-08 23:35:59+0200 [Controller 27170] Crossbar.io 0.10.3 starting
2015-04-08 23:35:59+0200 [Controller 27170] Running on CPython using EPollReactor reactor
2015-04-08 23:35:59+0200 [Controller 27170] Starting from node directory /home/oberstet/scm/crossbar/crossbarexamples/hello/cpp/.crossbar
2015-04-08 23:35:59+0200 [Controller 27170] Starting from local configuration '/home/oberstet/scm/crossbar/crossbarexamples/hello/cpp/.crossbar/config.json'
2015-04-08 23:35:59+0200 [Controller 27170] Warning, could not set process title (setproctitle not installed)
2015-04-08 23:35:59+0200 [Controller 27170] Router created for realm 'crossbar'
2015-04-08 23:35:59+0200 [Controller 27170] No WAMPlets detected in enviroment.
2015-04-08 23:35:59+0200 [Controller 27170] Starting Router with ID 'worker1' ..
2015-04-08 23:35:59+0200 [Controller 27170] Entering reactor event loop ...
2015-04-08 23:35:59+0200 [Router 27179] Log opened.
2015-04-08 23:35:59+0200 [Router 27179] Warning: could not set worker process title (setproctitle not installed)
2015-04-08 23:36:00+0200 [Router 27179] Running under CPython using EPollReactor reactor
2015-04-08 23:36:00+0200 [Router 27179] Entering event loop ..
2015-04-08 23:36:00+0200 [Controller 27170] Router with ID 'worker1' and PID 27179 started
2015-04-08 23:36:00+0200 [Controller 27170] Router 'worker1': realm 'realm1' (named 'realm1') started
2015-04-08 23:36:00+0200 [Controller 27170] Router 'worker1': role 'role1' (named 'anonymous') started on realm 'realm1'
2015-04-08 23:36:00+0200 [Router 27179] Site starting on 8080
2015-04-08 23:36:00+0200 [Controller 27170] Router 'worker1': transport 'transport1' started
2015-04-08 23:36:00+0200 [Router 27179] CrossbarWampRawSocketServerFactory starting on 8090
2015-04-08 23:36:00+0200 [Controller 27170] Router 'worker1': transport 'transport2' started

Terminal 2:

oberstet@thinkpad-t430s:~/scm/crossbar/crossbarexamples/hello/cpp$ scons
scons: Reading SConscript files ...
Using clang toolchain
scons: done reading SConscript files.
scons: Building targets ...
clang++ -o hello.o -c -std=c++11 -stdlib=libc++ -O2 -Wall -pedantic -Wno-unused-value -Wno-deprecated -pthread -I/home/oberstet/scm/autobahn/AutobahnCpp/autobahn -I/home/oberstet/boost_1_57_0 -I/home/oberstet/msgpack_clang/include -Iautobahn hello.cpp
clang++ -o hello -stdlib=libc++ -pthread hello.o -L/home/oberstet/boost_1_57_0/stage/lib -L/home/oberstet/msgpack_clang/lib -lboost_thread -lboost_system -lmsgpack
scons: done building targets.
oberstet@thinkpad-t430s:~/scm/crossbar/crossbarexamples/hello/cpp$ ./hello
Running on 105700
Starting ASIO I/O loop ..
Connected to server
TX message (56 octets) ...
TX message sent (60 / 60 octets)
RawSocket handshake reply received
RawSocket handshake reply is valid: start WAMP message send-receive loop
RX preparing to receive message ..
RX message (423 octets) ...
RX message received.
RX WAMP message: [2, 1568032129, {"authrole"=>"anonymous", "authmethod"=>"anonymous", "roles"=>{"broker"=>{"features"=>{"publisher_identification"=>true, "pattern_based_subscription"=>true, "subscription_meta_api"=>true, "subscription_revocation"=>true, "publisher_exclusion"=>true, "subscriber_blackwhite_listing"=>true}}, "dealer"=>{"features"=>{"pattern_based_registration"=>true, "registration_revocation"=>true, "shared_registration"=>true, "caller_identification"=>true, "registration_meta_api"=>true, "progressive_call_results"=>true}}}, "authid"=>"Ih8dH3TqlDhyIINNe0a410Iu"}]
RX preparing to receive message ..
Session joined to realm with session ID 1568032129
TX message (24 octets) ...
TX message sent (28 / 28 octets)
RX message (8 octets) ...
RX message received.
RX WAMP message: [33, 1, 357581145]
RX preparing to receive message ..subscribed to topic 'onhello' with subscription ID
357581145
TX message (21 octets) ...
TX message sent (25 / 25 octets)
RX message (8 octets) ...
RX message received.
RX WAMP message: [65, 2, 154980083]
RX preparing to receive message ..
procedure add2() registered with registration ID 154980083
TX message (28 octets) ...
TX message sent (32 / 32 octets)
published to 'oncounter' with counter 0
TX message (24 octets) ...
TX message sent (28 / 28 octets)
RX message (90 octets) ...
RX message received.
RX WAMP message: [8, 48, 4, {}, "wamp.error.no_such_procedure", ["no callee registered for procedure 'com.example.mul2'"]]
RX preparing to receive message ..
mul2() call failed
TX message (28 octets) ...
TX message sent (32 / 32 octets)
published to 'oncounter' with counter 1
TX message (24 octets) ...
TX message sent (28 / 28 octets)
RX message (90 octets) ...
RX message received.
RX WAMP message: [8, 48, 6, {}, "wamp.error.no_such_procedure", ["no callee registered for procedure 'com.example.mul2'"]]
RX preparing to receive message ..
mul2() call failed

···

Am 08.04.2015 um 23:12 schrieb Rosa Lisin:

Thanks Tobias,
I can start crossbar now. However, when I run a sample C++ application
using autobahnCpp (I've pulled it from github couple of days ago), the
session fails to join the realm.

Starting WAMP session
Connecting to realm
TX message (56 octets) ...
write: Broken pipe

Is there anything else I am missing?
Thanks,
Rosa

On Wednesday, April 8, 2015 at 4:40:10 PM UTC-4, Tobias Oberstein wrote:

    Hi Rosa,

    Am 08.04.2015 um 22:14 schrieb Rosa Lisin:
     > Hello,
     > I've pulled the latest development crossbar version from github
     > (0.10.3). I am using the same config.jason, as I've used for the
     > previously installed version (official release).
     > However version 0.10.3 throws exception at start up:
     >
     > *2015-04-08 12:58:19-0700 [Controller 5754] Exception: encountered
     > unknown attribute 'serializer' in RawSocket transport configuration*
     >
     > I assume it does not like the following configuration:
     > {
     > "type": "rawsocket",
     > "serializer": "msgpack",
     > "endpoint": {
     > "type": "tcp",
     > "port": 8090
     > }
     > }

    The latest Crossbar.io now implements a revised RawSocket
    (conforming to
    spec). This revised version features an opening handshake that
    _negotiates_ the serializer.

    Consequently, the "serializer" config parameter is no longer
    necessary /
    allowed.

    Please see here for a complete config example:

    https://github.com/crossbario/crossbarexamples/blob/master/hello/cpp/.crossbar/config.json#L44
    <https://github.com/crossbario/crossbarexamples/blob/master/hello/cpp/.crossbar/config.json#L44>

    Negotiation allows to run RawSocket on a single port for all clients
    independent of serializer used. It will also allow us to run RawSocket
    next to WebSocket on a single port! The latter is not yet implemented
    though.

    The revised RawSocket is implemented in _trunk_ of the following

    - AutobahnPython / Crossbar.io
    - AutobahnCpp

    You will need all of these trunk to run.

     > Please let me know what is happening.
     >
     > Thanks,
     > Rosa
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Crossbar" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to crossba...@googlegroups.com <javascript:>
     > <mailto:crossbario+...@googlegroups.com <javascript:>>.
     > To post to this group, send email to cros...@googlegroups.com
    <javascript:>
     > <mailto:cros...@googlegroups.com <javascript:>>.
     > To view this discussion on the web visit
     >
    https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com
    <https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com>

     >
    <https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com?utm_medium=email&utm_source=footer
    <https://groups.google.com/d/msgid/crossbario/9cc99478-a951-411c-817f-7b8b38139277%40googlegroups.com?utm_medium=email&utm_source=footer>>.

     > For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

--
You received this message because you are subscribed to the Google
Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to crossbario+...@googlegroups.com
<mailto:crossbario+...@googlegroups.com>.
To post to this group, send email to cross...@googlegroups.com
<mailto:cross...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/crossbario/5202146a-6a19-4a31-92ee-d30ce9d7f774%40googlegroups.com
<https://groups.google.com/d/msgid/crossbario/5202146a-6a19-4a31-92ee-d30ce9d7f774%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes