thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom <tomschur...@gmail.com>
Subject Re: exception when running objective-c server
Date Thu, 27 Dec 2012 01:11:23 GMT
if anyone else runs into this problem, i solved it by applying this patch:

https://issues.apache.org/jira/browse/THRIFT-1779

configure, make, sudo make install
and then re generating the classes.


thanks  Luis Laugga<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=laugga>
  !! legend !


On 21 December 2012 08:29, tom schuring <tomschuring@gmail.com> wrote:

> Are there any simple thrift server examples for objective-c that I can
> look at?
>
> I've seen 2 snippets of code but they don't seem to help
>
>
> On 20/12/2012, at 5:31 PM, tom schuring <tom@clogwog.net> wrote:
>
> i'm trying to get an objetive-c thrift server going, and it compiles now,
> it just throws an exception as soon as i try to create a processor with a
> handler like:
>
> *2012-12-20 17:20:41.762 controlhead[59769:11603] *** Terminating app due
> to uncaught exception 'NSInvalidArgumentException', reason: '+[NSInvocation
> _invocationWithMethodSignature:frame:]: method signature argument cannot be
> nil'*
>
> **** First throw call stack:*
>
> *(0x16d8012 0x14fde7e 0x1762234 0x16c7e10 0x89594 0x31ba 0x32b9 0x3432
> 0x29f1 0x4427b7 0x442da7 0x443fab 0x455315 0x45624b 0x447cf8 0x2525df9
> 0x2525ad0 0x164dbf5 0x164d962 0x167ebb6 0x167df44 0x167de1b 0x4437da
> 0x44565c 0x28dd 0x2805)*
>
> *libc++abi.dylib: terminate called throwing an exception*
>
> *(lldb) *
>
> i have implemented the thrift-generated interface in the handler (i use
> the appdelegate now, but had it in a separate class as well with same
> results)
>
>    @interface tsAppDelegate : UIResponder <UIApplicationDelegate,
> macuimacui>
>
> with empty but valid implementations:
>
> - (void) status_update: (int) status_type status: (int32_t) status  //
> throws TException
> {
>     NSLog(@"status_update");
> }
>
> ....
>
>  could it be the TException that i don't define ?
>
> i'm not sure where to look at next ? any help very welcome!
>
> thanks,
> tom
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message