Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B16B3E9E0 for ; Wed, 23 Jan 2013 14:22:04 +0000 (UTC) Received: (qmail 79304 invoked by uid 500); 23 Jan 2013 14:22:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 79258 invoked by uid 500); 23 Jan 2013 14:22:02 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 79120 invoked by uid 99); 23 Jan 2013 14:22:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 14:22:02 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of w1z2g3@gmail.com designates 209.85.215.53 as permitted sender) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 14:21:57 +0000 Received: by mail-la0-f53.google.com with SMTP id fr10so2597437lab.40 for ; Wed, 23 Jan 2013 06:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=yNOgqcR1mQnITzNbGeGYauY5HPBZwXxyZXuxbl8WpfY=; b=fJe7ctCtmG0t7ZXJJbpHIn+6mq0lLxrbG/UxUPF4SxSwhUGIuTGBeyLZHYAwv37xUJ Q0IMt9JzJbmAgSA409PRksxU6JLD8kF7fLDueHZqG8BG2mWtz/GynC1lTtl7MgUkQ5tj bQBrBxOL2F3a6GLmb8Ad5Yq5KpYkhX9Rc8hrv21hXM2k5OX11fwcRu5aq/vd7qt4rAGJ 15XjFdWP/atLZyfBZmnYF3Fj2EhvbGqLGLEpkPZ8rsYwes0dWZ495sLAQiz4OGMxuLsc FaWrm611uWzkTJhEixculoJURUMNzNmYq7PLe5l2edkQ+H5HsHTQ7+POVHUdFNDaEH31 U8rA== MIME-Version: 1.0 X-Received: by 10.112.50.201 with SMTP id e9mr801995lbo.82.1358950896322; Wed, 23 Jan 2013 06:21:36 -0800 (PST) Received: by 10.114.22.5 with HTTP; Wed, 23 Jan 2013 06:21:36 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Jan 2013 09:21:36 -0500 Message-ID: Subject: Re: AMQP connector warning From: Zhigang Wang To: activemq-dev Content-Type: multipart/alternative; boundary=f46d0401688371492504d3f56992 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0401688371492504d3f56992 Content-Type: text/plain; charset=UTF-8 Here it is: #!/usr/bin/env python import optparse import proton import sys def main(): parser = optparse.OptionParser('%prog [OPTS] MESSAGE') parser.add_option('-a', '--address', default='amqp://zhigang1', help='adress: [amqp[s]://][user[:password]@]domain[/[name]]') parser.add_option('-s', '--subject', default='foo.bar', help='subject') opts, args = parser.parse_args() if not args: parser.print_help() sys.exit(1) messenger = proton.Messenger() messenger.start() msg = proton.Message() msg.address = opts.address msg.subject = opts.subject content = ' '.join(args) msg.body = unicode(content) messenger.put(msg) messenger.send() messenger.stop() if __name__ == '__main__': main() On Wed, Jan 23, 2013 at 9:20 AM, Zhigang Wang wrote: > Here it is: > > > On Wed, Jan 23, 2013 at 8:52 AM, Hiram Chirino wrote: > >> Seems like your attachment is not being preserved on the mailing list, >> could you just include it inline? >> >> >> On Tue, Jan 22, 2013 at 2:00 PM, Zhigang Wang wrote: >> >> > Sorry. It seems I forget to attach my script. Here it is. I modified it >> > from the proton example. Then what is the right way to disconnect >> cleanly? >> > >> > >> > On Tue, Jan 22, 2013 at 1:27 PM, Hiram Chirino > >wrote: >> > >> >> This just means your client did not gracefully disconnect from the >> broker. >> >> It should be fine to ignore. >> >> >> >> >> >> On Tue, Jan 22, 2013 at 12:00 PM, Zhigang Wang >> wrote: >> >> >> >> > Hi, >> >> > >> >> > When I send a message using proton-python (script attached), it will >> >> > generate a warning: >> >> > >> >> > INFO | jvm 1 | 2013/01/22 11:48:39 | WARN | Transport >> Connection >> >> to: >> >> > tcp://10.149.236.110:36301 failed: java.io.EOFException >> >> > >> >> > client side: >> >> > >> >> > ./send.py -a amqp://zhigang1/TEST.FOO "hello2 from zhigang" >> >> > >> >> > But it seems this warning will not prevent this message from getting >> to >> >> my >> >> > JMS receiver. >> >> > >> >> > Please confirm: if it's harmless, I think we should catch this >> >> exception; >> >> > if not, please help to fix it. >> >> > >> >> > Let me know if you need more info. >> >> > >> >> > Thanks, >> >> > >> >> > Zhigang >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> ** >> >> >> >> *Hiram Chirino* >> >> >> >> *Engineering | Red Hat, Inc.* >> >> >> >> *hchirino@redhat.com | fusesource.com | >> redhat.com* >> >> >> >> *skype: hiramchirino | twitter: @hiramchirino< >> >> http://twitter.com/hiramchirino> >> >> * >> >> >> >> *blog: Hiram Chirino's Bit Mojo * >> >> >> > >> > >> >> >> -- >> >> ** >> >> *Hiram Chirino* >> >> *Engineering | Red Hat, Inc.* >> >> *hchirino@redhat.com | fusesource.com | redhat.com* >> >> *skype: hiramchirino | twitter: @hiramchirino< >> http://twitter.com/hiramchirino> >> * >> >> *blog: Hiram Chirino's Bit Mojo * >> > > --f46d0401688371492504d3f56992--