abingeorgev/metasyntactic

UninitializedMessage

Closed this issue · 3 comments

Hi,

I am trying to work with the ProtocolBuffer implementation and I am running 
into some problem. 

I've following the procedure and setup a project which compiles including 
.proto that was generated with no problem.

Now I am actually trying to build messages and get the following exception:

2010-07-05 15:21:05.382 CMSTester[38683:207] *** Terminating app due to 
uncaught exception 'UninitializedMessage', reason: ''
*** Call stack at first throw:
(
    0   CoreFoundation                      0x025a8919 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x026f65de objc_exception_throw + 47
    2   Tester                           0x00031884 -[PBGeneratedMessage_Builder checkInitialized] + 139


I am building the message just like in "Person" example:

LoginMessage *loginMessage = [[[[[[LoginMessage builder] 
setUniqueIdentifier:uniqueIdentifier]
                                            setY:Y]
                                           setX:X] setZ:Z] build];

but it fails :-(.

Anyone has any idea ?

What is this "initialized" thing ?

Thanks in advance.

Original issue reported on code.google.com by gutz...@gmail.com on 5 Jul 2010 at 1:39

Forget it :-) It means that one of the required fields was not set. My bad.

Original comment by gutz...@gmail.com on 5 Jul 2010 at 1:45

you saved me a lot of time, Gutzeit (whats in the name?) Thank you!

Christan

Original comment by ch.lon...@gmail.com on 28 Sep 2010 at 7:02

Original comment by cyrus.na...@gmail.com on 2 Nov 2010 at 5:25

  • Changed state: ByDesign