alokc83 / metasyntactic

Automatically exported from code.google.com/p/metasyntactic
Apache License 2.0
0 stars 0 forks source link

UninitializedMessage #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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