[protobuf] Issue 484 in protobuf: overrides final method getUnknownFields

2013-03-18 Thread protobuf

Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 484 by hepin1989: overrides final method getUnknownFields
http://code.google.com/p/protobuf/issues/detail?id=484

when i call this
RelayMsg.getDefaultInstance()

,comes from
message RelayMsg{
optional Request req = 1;
optional Response rsp = 2;
}
the exception comes with :
Exception in thread main java.lang.VerifyError: class  
us.sosia.net.client.relay.message.Relay$RelayMsg overrides final method  
getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at  
us.sosia.net.client.relay.pipeline.RelayBindChannelPipelineFactory.getPipeline(RelayBindChannelPipelineFactory.java:32)


,when i get down to it
i see this
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
  return this.unknownFields;
}

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Re: ProtoBuf.js - protobuf for JavaScript

2013-03-18 Thread Daniel Wirtz
If you have a project that should be listed here, please send a message to 
the discussion group 

I'd be happy if you'd add ProtoBuf.js to 
http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#Programming_Languages

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Issue 485 in protobuf: ByteString should be Serializable

2013-03-18 Thread protobuf

Status: New
Owner: 
Labels: Type-Defect Priority-Medium

New issue 485 by fiz...@gmail.com: ByteString should be Serializable
http://code.google.com/p/protobuf/issues/detail?id=485

I'm aware that java serialization isn't perfect, and that it has many  
problems.


That being said, there are many frameworks and places in the java world  
that use Serializable as the default serialization that's always there. (In  
the example that bit us, akka, a scala framework for actor-based  
distributed computing, uses java serialization as its default serialization  
format)


ByteString is a very useful data abstraction (like String, but for bytes)  
and it's the kind of thing you end up with lots of when you're building  
something that takes protobuf-formatted messages off the wire from remote  
clients and then does local processing inside an akka framework.


It'd be really useful then if ByteString were serializable by java  
serialization and it's a small change.


Patch attached that does simple java serialization by serializing  
ByteStrings that need to be serialized as LiteralByteString instances.


Attachments:
bytestring_serializable.patch  4.8 KB

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [protobuf] Re: ProtoBuf.js - protobuf for JavaScript

2013-03-18 Thread Feng Xiao
On Mon, Mar 18, 2013 at 4:45 AM, Daniel Wirtz dc...@dcode.io wrote:

 If you have a project that should be listed here, please send a message to
 the discussion group

 I'd be happy if you'd add ProtoBuf.js to
 http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns#Programming_Languages

Done. Added Javascript: https://github.com/dcodeIO/ProtoBuf.js;.



  --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to protobuf+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Re: Issue 483 in protobuf: Unportable test(1) construct in configure script

2013-03-18 Thread protobuf

Updates:
Status: OutOfScope
Owner: xiaof...@google.com

Comment #1 on issue 483 by xiaof...@google.com: Unportable test(1)  
construct in configure script

http://code.google.com/p/protobuf/issues/detail?id=483

Please create an issue on https://code.google.com/p/googletest/ instead.

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Re: Issue 485 in protobuf: ByteString should be Serializable

2013-03-18 Thread protobuf

Updates:
Status: Accepted
Owner: xiaof...@google.com
Labels: -Type-Defect Type-Patch

Comment #1 on issue 485 by xiaof...@google.com: ByteString should be  
Serializable

http://code.google.com/p/protobuf/issues/detail?id=485

(No comment was entered for this change.)

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Issue 486 in protobuf: Inconsistent parsed data from Python between Windows and Linux

2013-03-18 Thread protobuf

Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 486 by mathieu@gmail.com: Inconsistent parsed data from  
Python between Windows and Linux

http://code.google.com/p/protobuf/issues/detail?id=486

What steps will reproduce the problem?
1. Create a simple .proto file with an enum; eg test.proto:

message Response {
enum StatusCode {
SUCCESS_EMPTY = 0;
}
required StatusCode status_code = 1;
}

2. Generate Python bindings using protoc --python_out (protoco 2.5.0)

3. Run a simple script to parse a protobuf message:

from test import Response
r = Response.FromString(\x08\x00)
print Code:, repr(r.status_code)
print Enum:, repr(Response.SUCCESS_EMPTY)


What is the expected output? What do you see instead?

On Windows:
Code: 0L
Enum: 0

On Linux:
Code: 0
Enum: 0

The parsed .status_code field is a long in Windows, and an int in Linux.   
This causes problems for code that compares enum values with is rather  
than ==; doing comparisons like that might not be the most advisable  
thing, but the inconsistency between Windows and Linux is still very  
strange here.



What version of the product are you using? On what operating system?

Windows: Protobuf 2.5.0, Python 2.7.3 AMD64, Windows Server 2008 R2  
(Version 6.1, Build 7601 SP1)


Linux: Protobuf 2.5.0, Python 2.7.3 AMD64 (2.7.3-0ubuntu7).


Please provide any additional information below.

Inconsistency breaks client-side database drivers for RethinkDB in Windows,  
where is operator is used to compare values to enums.



--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Re: Issue 484 in protobuf: overrides final method getUnknownFields

2013-03-18 Thread protobuf

Updates:
Owner: xiaof...@google.com

Comment #1 on issue 484 by xiaof...@google.com: overrides final method  
getUnknownFields

http://code.google.com/p/protobuf/issues/detail?id=484

Please clarify: In which class is the final method defined, and which class  
overrides it? Please attach the source code of both classes.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Newbie question: How to interface to Berkley sockets?

2013-03-18 Thread davidandbella
Hi
 
I am new to Google Protocol Buffers but am interested in using this 
technology to communicate between an embedded processor and a Linux 
workstation across Ethernet.
 
Where can I find an example of how to interface the code generated 
by Google Protocol Buffers to my platform's Berkley socket interface, so 
that I can send the message stream across TCP/IP?
 
Any pointers to examples of the use of Google Protocol Buffers on embedded 
devices would also be welcome.
 
With best regards
 
David

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.