Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2519

"processor" class is not being generated

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.0
    • Fix Version/s: 0.10.0
    • Component/s: PHP - Compiler
    • Labels:
      None
    • Environment:

      Ubuntu 12.04

      Description

      I just started working with the github hosted build of apache thrift, I am basically interested in a java client and PHP server implementation, but for now i am using the php server and client only

      namespace php mobiledata

      struct sms
      {
      1: string from,
      2: string to,
      3: string smstext,
      4: string smsdatetime,
      5: string smsdirection
      }

      struct smsdetails
      {
      1: list<sms> smsdata
      }

      service mobiledataservice
      {
      void insertsmsdata (1: smsdetails smslist)
      }
      And I generated the gen-php folder, which has got Types.php and mobiledataservice.php

      the basic sample that comes with the github for php as server shows a line of code $handler = new CalculatorHandler(); $processor = new \tutorial\CalculatorProcessor($handler);

      I can't find this class "CalculatorProcessor" and certainly I don't have a comparative class generated in my gen_php like mobiledataprocessor, and it baffles me as to how I would run my server in absence of processor.

      I have been confirmed on stack overflow that its indeed a bug http://stackoverflow.com/questions/23514821/where-is-the-tutorial-processor-generated?noredirect=1#comment36072216_23514821

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brijrajsingh brijraj singh
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: