Posts

wso2 das 3.0.1 Error while starting binary data receiver: Address already in use -

wso2 das 3.0.1 errors out while starting binary data receiver: address in use. running default port 9443 no or 0 offset. on same box, wso2 1.10.0 running port offset -1000. what default port start wso2 das 3.0.1 binary data receiver? log did not not indicate port in use , don't know port into. suggestions? tid: [-1234] [] [2016-09-12 17:16:39,789] error {org.wso2.carbon.databridge.receiver.binary.internal.binarydatareceiverservicecomponent} - error while starting binary data receiver {org.wso2.carbon.databridge.receiver.binary.internal.binarydatareceiverservicecomponent} java.net.bindexception: address in use @ java.net.plainsocketimpl.socketbind(native method) @ java.net.abstractplainsocketimpl.bind(abstractplainsocketimpl.java:376) @ java.net.serversocket.bind(serversocket.java:376) @ java.net.serversocket.<init>(serversocket.java:237) @ java.net.serversocket.<init>(serversocket.java:181) @ javax.net.ssl.sslserversocket.<init>...

c++ - How come pack expanded variables do not get passed by reference? -

please consider following program: #include <iostream> template <typename t, typename ...ts> struct foo { template <typename ...us> static void bar(t& ot0, t& ot1, const t& it0, const t& it1, us... args) { std::cout << " -> foo<...>::bar() enter [ " << ot0 << ", " << ot1 << " ]" << std::endl; foo<t>::bar(ot0, ot1, it0, it1); foo<ts...>::bar(args...); std::cout << " <- foo<...>::bar() exit [ " << ot0 << ", " << ot1 << " ]" << std::endl; } }; template <typename t> struct foo<t> { static void bar(t& ot0, t& ot1, const t& it0, const t& it1) { std::cout << " -> foo<>::bar() enter [ " << ot0 << ", " << ot1 << " ]" << std::endl; ...

java - How to debug transformAndConcat in Google guava? -

i'm trying understand transformations within collection written in existing app, heavily uses google guava library. to more specific, can't step transformandconcat method in intellij idea. i'm using jdk 7. lazy , terminal operations can't used. or i'm wrong? how can debug method? if mean want step guava transformandconcat method itself, can use "f7" or click "step into" button in debug window step transformandconcat method. intellij idea 2016.2 help:stepping through program

performance - how to tune out of memory exception spark -

i have 11 nodes, each 1 has 2g of memory , 16 cores, try submit spark application using this ./bin/spark-submit --class myapp.main --master spark://name:7077 --conf spark.shuffle.memoryfraction=0 --executor-memory 2g --deploy-mode client /home/mbala/fer/myjars7/etlpersist.jar /home/mfile80.csv in slaves file didn't add node's ip in wich launch command because think in client mode driver must running in node. but whenever try run it, out of memory exception (sometimes because of gc or because of heap),i tried many solutions suggested in spark website , here in stackoverflow, tried minimize code, used memoryanddiskstorage still have problem ps: use line because found solution in forum --conf spark.shuffle.memoryfraction=0 should minimize number of cores? because think if use 16 cores 2g memory won't enough shuffle can please try use small g --executor-memory , --driver-memory options in command you. when set executor memory 2gb . assigns 0.6...

python - Django - request.session not being saved -

i have pretty utility function gets open web order if session key called 'orderid', , create 1 if there no session key, , parameter 'createifnotfound' equal true in function. stepping through debugger can see piece of code sets session key after order has been created hit no exceptions, when check http request object' session field, not have attribute ? utility def get_open_web_order(request, createifnotfound=false): # check orderid in session order_id = request.session.get('orderid') web_order = none if none != order_id: try: web_order = weborder.objects.get(id=order_id, status='o') logging.info('found open web order') except weborder.doesnotexist: logging.info('web order not found') if (none == web_order) , (createifnotfound == true): logging.info('creating new web order') web_order = weborder() web_order.status = '...

PhantomJS is not animating gifs during load for screen capture -

i'm using phantomjs take screenshots of lot of web pages. of these web pages have short animated gifs on them. no matter how long of timeout use between loading page , using page.render, still first frame of gif. there anyway make phantomjs run gif animation?

protobuf within avro encoded message on kafka -

wanted know if there better way solve problem having. here flow: our client code understands protocol buffers (protobuf). on server side, our gateway gets protobuf , puts onto kafka. now avrò recommended encoding scheme, put specific protobuf within avro (as byte array) , put onto message bus. reason avoid having entire protobuf->avro conversion. on consumer side, reads avro message, gets protobuf out of , works on that. how reliable protobuf kafka? there lot of people using it? advantages/disadvantages of using kafka protobuf? is there better way handle our use case/scenario? thanks kafka doesn't differentiate between encoding schemes since @ end every message flows in , out of kafka binary . both proto-buff , avro binary based encoding schemes, why want wrap proto-buff inside avro schema, when can directly put proto-buff message kafka?