You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2012/12/27 02:34:12 UTC

[jira] [Resolved] (THRIFT-1779) Missing process_XXXX method in generated TProcessor implementation for all 'oneway' service functions

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

Roger Meier resolved THRIFT-1779.
---------------------------------

    Resolution: Fixed

Thanks Luis!
                
> Missing process_XXXX method in generated TProcessor implementation for all 'oneway' service functions
> -----------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-1779
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1779
>             Project: Thrift
>          Issue Type: Bug
>          Components: Cocoa - Compiler
>    Affects Versions: 0.9
>            Reporter: Luis Laugga
>            Priority: Critical
>              Labels: patch
>             Fix For: 1.0
>
>         Attachments: thrift-issue-1779.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The generated TProcessor class implementation for services with methods that have the _oneway_ modifier is incomplete.
> This method is missing in the service generated implementation:
> *-(void)process_XXXX_withSequenceID:(int32_t)seqID inProtocol:(id<TProtocol>)inProtocol outProtocol:(id<TProtocol>)outProtocol*
> During initialization, for _mMethodMap_:
> *SEL s = @selector(process_XXXX_withSequenceID:inProtocol:outProtocol:);*
> *NSMethodSignature * sig = [self methodSignatureForSelector: s];*
> Because the method _process_XXXX_withSequenceID:inProtocol:outProtocol:_ implementation is missing, _methodSignatureForSelector_ will return *nil* (_sig_ is *nil*).
> The following call:
> *NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];*
> Will throw an exception:
> *'NSInvalidArgumentException', reason: '+[NSInvocation _invocationWithMethodSignature:frame:]: method signature argument cannot be nil'*

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira