[zeromq-dev] a PUSH socket sends weird messages when I load my C++ module.

crocket crockabiscuit at gmail.com
Sun Mar 3 17:02:24 CET 2013


It turned out that I had to create String from byte[] with UTF-8 character
set by new String(frame.getData(), Charset.forName("UTF-8"))
I couldn't expect this bug!

I realize that software engineering is for specialists.


On Sun, Mar 3, 2013 at 10:56 AM, Eric Hill <eric.hill at gmail.com> wrote:

> Sharing your code would be immensely helpful.  You should start by trying
> to come up with a small example that reproduces the problem. I find I solve
> more problems trying to prove out a bug with a small test case.
> On Mar 2, 2013 7:44 PM, "crocket" <crockabiscuit at gmail.com> wrote:
>
>> I have a C++ module that uses zmqpp to send IRC messages to a java
>> program that logs the messages.
>>
>> The messages sent from the C++ module are supposed to be in the form
>> "value=key", but it sends [0-6A-Z]+ when I load the module.
>>
>> Below are the errors.
>>
>> [error] o.z.LuceneLoggerBackend - Invalid 0MQ message
>> org.zeroirclog.message.IncorrectMessageException: '=' doesn't exist in
>> 6D73673DED95B0
>>
>> [error] o.z.LuceneLoggerBackend - Invalid 0MQ message
>> org.zeroirclog.message.IncorrectMessageException: '=' doesn't exist in
>> 6D73673DEB939CEB9494EC96B420495243EBA19CEAB985EC9DB420EB9098EB8A9420EB8DB0EAB98CECA780EB8A9420EC84B1EAB3B5ED9688EAB5B0EC9A94
>>
>> [error] o.z.LuceneLoggerBackend - Invalid 0MQ message
>> org.zeroirclog.message.IncorrectMessageException: '=' doesn't exist in
>> 6D73673DECA09CEB8C80EBA19C20EBA19CEAB985EC9DB420EB9090EB8A94ECA78020ED858CEC8AA4ED8AB8ED95B4EBB490EC95BC20EB9098EB8A94EB8DB0
>>
>> Why does my C++ module send [0-6A-Z]+ when I load it?
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130304/83d3c29b/attachment.htm>


More information about the zeromq-dev mailing list