Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 59492 invoked from network); 10 Aug 2006 09:00:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 09:00:43 -0000 Received: (qmail 984 invoked by uid 500); 10 Aug 2006 09:00:39 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 927 invoked by uid 500); 10 Aug 2006 09:00:39 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 911 invoked by uid 99); 10 Aug 2006 09:00:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 02:00:39 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.152 is neither permitted nor denied by domain of firepure@gmail.com) Received: from [202.81.18.152] (HELO ausmtp04.au.ibm.com) (202.81.18.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 02:00:38 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.13.6/8.13.5) with ESMTP id k7A96keB263920 for ; Thu, 10 Aug 2006 19:06:48 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0208e0.au.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id k7A93aLe172470 for ; Thu, 10 Aug 2006 19:03:36 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k7A90Cbs029819 for ; Thu, 10 Aug 2006 19:00:12 +1000 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av04.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k7A90At4029737 for ; Thu, 10 Aug 2006 19:00:12 +1000 Received: from [9.181.107.166] ([9.181.107.166]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006081016313967-4416 ; Thu, 10 Aug 2006 16:31:39 +0800 Message-ID: <44DAEEF5.5040204@gmail.com> Date: Thu, 10 Aug 2006 16:31:49 +0800 From: "Jimmy, Jing Lv" User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: Exceptions found while running servlet... References: <11f7653a0608092244y74fd7187rbfdba08bec29bea5@mail.gmail.com> <44DAEBEA.9000806@gmail.com> In-Reply-To: <44DAEBEA.9000806@gmail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 10/08/2006 16:31:39, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 10/08/2006 17:00:11, Serialize complete at 10/08/2006 17:00:11 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jimmy, Jing Lv wrote: > Martin Cordova wrote: >> Is it OK to send this type of feedback to the list? please let me know >> if not, and what subject conventions should I use (is there a link >> about this?). I am not a Harmony developer, just a new user, I can >> only provide feedback from my tests. >> > > Welcome! I think everyone here is eager to see Harmony works with some > real projects well :) > >> ---- >> >> I am running a small webapp, using Winstone servlet engine and IBM JDK >> 1.4.2 SP4 on WinXP SP2. Runs fine. I switched to Harmony JRE (aug-4), >> and found these exceptions: >> >> 1.- I see this error while using servlet includes and also at the end >> of some pages: >> >> java.lang.ArrayIndexOutOfBoundsException: 0..0 at >> org.apache.harmony.luni.platform.OSNetworkSystem.sendStreamImpl(OSNetworkSystem.java) >> >> at >> org.apache.harmony.luni.platform.OSNetworkSystem.sendStream(OSNetworkSystem.java:194) >> >> at >> org.apache.harmony.luni.net.PlainSocketImpl.write(PlainSocketImpl.java:647) >> >> at >> org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:89) >> >> at winstone.WinstoneOutputStream.commit(WinstoneOutputStream.java:152) >> at winstone.WinstoneOutputStream.flush(WinstoneOutputStream.java:189) >> at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:176) at >> java.io.OutputStreamWriter.convert(OutputStreamWriter.java:240) at >> java.io.OutputStreamWriter.write(OutputStreamWriter.java:228) at >> java.io.PrintWriter.doWrite(PrintWriter.java:640) at >> java.io.PrintWriter.write(PrintWriter.java:622) at >> winstone.WinstoneResponseWriter.write(WinstoneResponseWriter.java:45) >> at java.io.PrintWriter.write(PrintWriter.java:607) at >> java.io.PrintWriter.write(PrintWriter.java:657) at >> java.io.PrintWriter.print(PrintWriter.java:455) at >> > > I've looked into this, I feel puzzled, the stack trace shows that: > org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:89) > > but there are checks for overflow: > if (0 <= offset && offset <= buffer.length && 0 <= count > && count <= buffer.length - offset){ > ... > } Oops, this is certainly wrong: "offset <= buffer.length","count <= buffer.length - offset", the equal mark should be omitted. I'll raise a JIRA for this. I'm not sure if this is the cause of the problem. So would you please try again if I correct it? :) > So can you give more information? e.g, what are PrintWriter try to write > that time? :) > >> 2.- Trying to generate charts using JFreeCharts (server-side): >> >> java.lang.NoClassDefFoundError: org/apache/harmony/awt/gl/ImageSurface >> at >> java.awt.image.BufferedImage.createImageSurface(BufferedImage.java:659) >> at java.awt.image.BufferedImage.(BufferedImage.java:352) >> at >> org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1211) >> at >> org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193) >> at >> org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1178)... >> >> The JDBC related code is running fine, performance also looks very good. >> >> I will contact Winstone developer to see if he can help in some way to >> identify the problem. He already helped me a few months ago to help >> identify a bug in GNU Classpath server socket API. >> >> Regards, >> Martin > > -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org