Giter VIP home page Giter VIP logo

thriftbook's People

Contributors

dependabot[bot] avatar randyabernethy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thriftbook's Issues

Chapter 12 - AsyncServer.java:99: error: cannot find symbol

I just hit the following error trying to run the docker example:

docker@boot2docker:~$ docker run -i -t thrift_book bash
root@b5990aed0310:/ThriftBook# cd part3/java/async
root@b5990aed0310:/ThriftBook/part3/java/async# ant
Buildfile: /ThriftBook/part3/java/async/build.xml

clean:

compile:
    [javac] Compiling 2 source files to /ThriftBook/part3/java/async/gen-java
    [javac] Compiling 2 source files to /ThriftBook/part3/java/async
    [javac] /ThriftBook/part3/java/async/AsyncServer.java:99: error: cannot find symbol
    [javac]                 .workerThreads(4));
    [javac]                 ^
    [javac]   symbol:   method workerThreads(int)
    [javac]   location: class Args
    [javac] Note: /ThriftBook/part3/java/async/AsyncServer.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/ThriftBook/part3/java/async/build.xml:15: Compile failed; see the compiler error output for details.

The version I'm working on is:

docker@boot2docker:~$ cat ThriftBook/.git/refs/heads/master
a349c9c484e8387d2a8b6d8cdd3c069a6a737460

Cannot compile cpp client from sample code

The first example and does not compile. I have boost installed and thrift also:

g++ --std=c++17 hello_client.cpp gen-cpp/HelloSvc.cpp -lthrift -lboost

In file included from /usr/include/boost/smart_ptr/make_shared.hpp:14,
from /usr/include/boost/make_shared.hpp:14,
from hello_client.cpp:5:
/usr/include/boost/smart_ptr/make_shared_object.hpp: In instantiation of ‘typename boost::detail::sp_if_not_array::type boost::make_shared(Args&& ...) [with T = apache::thrift::transport::TBufferedTransport; Args = {boost::shared_ptrapache::thrift::transport::TSocket&}; typename boost::detail::sp_if_not_array::type = boost::shared_ptrapache::thrift::transport::TBufferedTransport]’:
hello_client.cpp:15:62: required from here
/usr/include/boost/smart_ptr/make_shared_object.hpp:256:5: error: no matching function for call to ‘apache::thrift::transport::TBufferedTransport::TBufferedTransport(boost::shared_ptrapache::thrift::transport::TSocket&)’
::new( pv ) T( boost::detail::sp_forward( args )... );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I follow the instructions in the book. Thanks in advance for any pointers.

Minor observation of comment

Randy, these next few lines will work without sudo in Linux only in cases where the user is member of the docker group. In windows powershell it is of course the way but in WSL2, I think you still need sudo .

ThriftBook/Dockerfile

Lines 3 to 8 in f1686f1

# To run the image from Docker Hub:
# $ docker run -it randyabernethy/thrift-book:latest
#
# To build and run the image from within the ThriftBook dir:
# $ docker build -t thrift_book .
# $ docker run -it thrift_book

Pierre

The book's release is canceled?

Hi! I got email:

Not all manuscripts make it to the finish line to become published books. We regret to announce that an Early Access title you own, Programmer's Guide to Apache Thrift, will not be published. The content you've downloaded thus far is yours to keep, but there will be no further updates.

The book's release is canceled? The book was cool! What happened?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.