HI all
i have wrote a simple messages.proto, compiled it (On Ubuntu Lucid
Lynx) with protobuf 2.2.0.
here's the .proto file
package tutorial;
option java_package = "com.example.messages";
option java_outer_classname = "MessageProtos";
enum MessageType {
TEST = 0;
DEBUG = 1;
DO_TASK = 2;
}
message Message {
required string content = 1;
optional MessageType type = 2;
}
I am using Netty as well, and when i run it i get the following
exception
2011-01-29 11:05:30,708 [client.NettyEchoHandler ]
ERROR * Unexpected exception from downstream. [New I/O client worker
#1-1]
com.google.protobuf.InvalidProtocolBufferException: Protocol message
tag had invalid wire type.
at
com.google.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:
78)
at com.google.protobuf.UnknownFieldSet
$Builder.mergeFieldFrom(UnknownFieldSet.java:496)
at com.google.protobuf.GeneratedMessage
$Builder.parseUnknownField(GeneratedMessage.java:271)
at com.example.messages.MessageProtos$Message
$Builder.mergeFrom(MessageProtos.java:318)
at com.example.messages.MessageProtos$Message
$Builder.mergeFrom(MessageProtos.java:215)
could anyone help pls?
w/kindest regards
marco
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.