From users-return-15384-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Aug 11 09:34:45 2008 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 36751 invoked from network); 11 Aug 2008 09:34:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2008 09:34:44 -0000 Received: (qmail 28079 invoked by uid 500); 11 Aug 2008 09:34:42 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 28052 invoked by uid 500); 11 Aug 2008 09:34:41 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 28041 invoked by uid 99); 11 Aug 2008 09:34:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 02:34:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bofh@redwerk.com designates 85.90.206.104 as permitted sender) Received: from [85.90.206.104] (HELO office.redwerk.com) (85.90.206.104) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 09:33:46 +0000 Received: from bofh by office.redwerk.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KSTn0-0003E3-CI for users@activemq.apache.org; Mon, 11 Aug 2008 12:34:10 +0300 Date: Mon, 11 Aug 2008 12:34:10 +0300 From: Eugeny N Dzhurinsky To: users@activemq.apache.org Subject: Re: JDK 1.5, 1.6 and FreeBSD Message-ID: <20080811093410.GA11604@office.redwerk.com> Mail-Followup-To: users@activemq.apache.org References: <20080808112540.GA41878@office.redwerk.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20080808112540.GA41878@office.redwerk.com> X-Virus-Checked: Checked by ClamAV on apache.org --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 08, 2008 at 02:25:40PM +0300, Eugeny N Dzhurinsky wrote: > Hello, all! >=20 > I found a very strange issue - having the broker, producer and consumer > running on JDK 1.6 Blob messages aren't processed at all - in the directo= ry > with blobs I can see partial files with blobs and nothing happens - looks= like > the producer can't finish the uploading of a message for some reason. >=20 > When starting the broker at JDK 1.5 and producer/consumer at JDK 1.6 noth= ing > happens as well - the same behavior is being observed. >=20 > However when starting broker under JDK 1.6 and producer/consumer at JDK 1= =2E5 I > can see such weird exception: >=20 > java.lang.ArrayIndexOutOfBoundsException > at java.lang.System.arraycopy(Native Method) > at sun.net.www.http.ChunkedOutputStream.write(ChunkedOutputStream= =2Ejava:161) > at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStr= eam.write(HttpURLConnection.java:2492) > at org.apache.activemq.blob.DefaultBlobUploadStrategy.uploadStrea= m(DefaultBlobUploadStrategy.java:63) > at org.apache.activemq.blob.BlobUploader.upload(BlobUploader.java= :53) > at org.apache.activemq.command.ActiveMQBlobMessage.onSend(ActiveM= QBlobMessage.java:163) > at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:= 1622) > at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessa= geProducer.java:227) > at org.apache.activemq.ActiveMQMessageProducerSupport.send(Active= MQMessageProducerSupport.java:300 > ) >=20 > If all of broker, consumer and producer are started using JDK 1.5 - there= are > no such issues, blobs are uploaded just fine. >=20 > Is it something related to JDK 1.6, or port of JDK 1.6 for FreeBSD, or > ActiveMQ itself? May be you may need some additional information from me = to > recognize the cause of the issue? Hello! I also found this doesn't work on Windows with JDK 1.6 as well, the stack trace looks like below: 2008-08-11 11:13:37.253::WARN: handle failed java.lang.IndexOutOfBoundsException at java.nio.Buffer.checkIndex(Buffer.java:514) at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:209) at org.mortbay.io.nio.NIOBuffer.peek(NIOBuffer.java:86) at org.mortbay.io.AbstractBuffer.peek(AbstractBuffer.java:306) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:655) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at=20 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at=20 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:48= 8) 2008-08-11 11:13:37.253::WARN: EXCEPTION java.lang.IllegalArgumentException at java.nio.Buffer.position(Buffer.java:218) at org.mortbay.io.nio.NIOBuffer.poke(NIOBuffer.java:147) at org.mortbay.io.AbstractBuffer.put(AbstractBuffer.java:396) at org.mortbay.jetty.HttpParser.reset(HttpParser.java:843) at org.mortbay.jetty.HttpConnection.destroy(HttpConnection.java:131) at=20 org.mortbay.jetty.AbstractConnector.connectionClosed(AbstractConnector.java= :955) at=20 org.mortbay.jetty.nio.SelectChannelConnector.access$100(SelectChannelConnec= tor.java:64) at=20 org.mortbay.jetty.nio.SelectChannelConnector$1.endPointClosed(SelectChannel= Connector.java:92) at=20 org.mortbay.io.nio.SelectChannelEndPoint.doUpdateKey(SelectChannelEndPoint.= java:382) at=20 org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:= 342) at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:167) at=20 org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.= java:124) at=20 org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:707) at=20 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:48= 8) 2008-08-11 11:13:38.253::WARN: EXCEPTION Should I address this issue to the developers mailing list or may be open an issue in the JIRA/whatever used to track issues for ActiveMQ? Or may be this issue is related to Jetty - not ActiveMQ at all? Thank you in advance! --=20 Eugene N Dzhurinsky --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkigB5EACgkQy/i/DoZLbHyLoQCfR+MPyCOnyUxLIZp1CF4EtYJ+ itIAnR7j8b3duCDzVvSrQ7fMYQLn3u5r =t5hG -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--