You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Rodrigo Rezende (JIRA)" <ji...@apache.org> on 2011/02/15 18:35:57 UTC

[jira] Updated: (THRIFT-1061) Read an invalid frame size of 0. Are you using TFramedTransport on the client side?

     [ https://issues.apache.org/jira/browse/THRIFT-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodrigo Rezende updated THRIFT-1061:
------------------------------------

    Description: 
I'm getting a log error every call to the thrift server from php. 
The service is working and attending clients, but it's always logged:

ERROR org.apache.thrift.server.TNonblockingServer - Read an invalid frame size of 0. Are you using TFramedTransport on the client side?

Am I doing the right setup?

java server:

                       TagService.Processor processor = new FooBarService.Processor(new FooBarServerImpl());
                       Factory protFactory = new TBinaryProtocol.Factory(true, true);
                       TNonblockingServerSocket socket = new TNonblockingServerSocket(new InetSocketAddress(host, port));
                       THsHaServer.Args args = new THsHaServer.Args(socket);
                       args.processor(processor);
                       args.protocolFactory(protFactory);
                       args.workerThreads(..);
                       TServer server = new THsHaServer(args);

php client (extension enabled):

               $this->transport  = new TFramedTransport(new TSocket($GLOBALS['SERVER_HOST'], $GLOBALS['SERVER_PORT']));
               $this->client = new FooBarServiceClient(new TBinaryProtocolAccelerated($this->transport));
               $this->transport->open();

  was:
I'm getting a log error every call to the thrift server from php. 
The service is working and attending clients, but it's always logged:

ERROR org.apache.thrift.server.TNonblockingServer - Read an invalid frame size of 0. Are you using TFramedTransport on the client side?

Am I doing the right setup?

java server:

                       TagService.Processor processor = new TagService.Processor(new FooBarServerImpl());
                       Factory protFactory = new TBinaryProtocol.Factory(true, true);
                       TNonblockingServerSocket socket = new TNonblockingServerSocket(new InetSocketAddress(host, port));
                       THsHaServer.Args args = new THsHaServer.Args(socket);
                       args.processor(processor);
                       args.protocolFactory(protFactory);
                       args.workerThreads(..);
                       TServer server = new THsHaServer(args);

php client (extension enabled):

               $this->transport  = new TFramedTransport(new TSocket($GLOBALS['SERVER_HOST'], $GLOBALS['SERVER_PORT']));
               $this->client = new FooBarServiceClient(new TBinaryProtocolAccelerated($this->transport));
               $this->transport->open();


> Read an invalid frame size of 0. Are you using TFramedTransport on the client side?
> -----------------------------------------------------------------------------------
>
>                 Key: THRIFT-1061
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1061
>             Project: Thrift
>          Issue Type: Question
>          Components: Java - Library, PHP - Library
>    Affects Versions: 0.6
>         Environment: Linux (Ubuntu) 9.10
>            Reporter: Rodrigo Rezende
>            Priority: Minor
>
> I'm getting a log error every call to the thrift server from php. 
> The service is working and attending clients, but it's always logged:
> ERROR org.apache.thrift.server.TNonblockingServer - Read an invalid frame size of 0. Are you using TFramedTransport on the client side?
> Am I doing the right setup?
> java server:
>                        TagService.Processor processor = new FooBarService.Processor(new FooBarServerImpl());
>                        Factory protFactory = new TBinaryProtocol.Factory(true, true);
>                        TNonblockingServerSocket socket = new TNonblockingServerSocket(new InetSocketAddress(host, port));
>                        THsHaServer.Args args = new THsHaServer.Args(socket);
>                        args.processor(processor);
>                        args.protocolFactory(protFactory);
>                        args.workerThreads(..);
>                        TServer server = new THsHaServer(args);
> php client (extension enabled):
>                $this->transport  = new TFramedTransport(new TSocket($GLOBALS['SERVER_HOST'], $GLOBALS['SERVER_PORT']));
>                $this->client = new FooBarServiceClient(new TBinaryProtocolAccelerated($this->transport));
>                $this->transport->open();

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira