Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 358 invoked from network); 10 Aug 2006 14:34:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 14:34:50 -0000 Received: (qmail 91920 invoked by uid 500); 10 Aug 2006 14:34:47 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 91885 invoked by uid 500); 10 Aug 2006 14:34:47 -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 91874 invoked by uid 99); 10 Aug 2006 14:34:47 -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 07:34:47 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of oleg.v.khaschansky@gmail.com designates 64.233.184.229 as permitted sender) Received: from [64.233.184.229] (HELO wr-out-0506.google.com) (64.233.184.229) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 07:34:36 -0700 Received: by wr-out-0506.google.com with SMTP id i23so66111wra for ; Thu, 10 Aug 2006 07:34:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h1lKePCqpapIhisAW3n8Q6knVSPuyfnJHJUl5IAWtBKG4sZ/Jjp7XtkVZ08b2+wimj+gMQSGyLvnR5C7OSAjC7sH9LNQItrsE2+mJUPpTJVCWTX6FlfO3vtbwY1libStZsuzQXwN5NYSM11ratxyoLdKv6X0Tti7vjN0b9E6wzE= Received: by 10.78.120.6 with SMTP id s6mr1339518huc; Thu, 10 Aug 2006 07:34:09 -0700 (PDT) Received: by 10.78.168.11 with HTTP; Thu, 10 Aug 2006 07:34:08 -0700 (PDT) Message-ID: <26c14c2a0608100734l9e049e8ye3057e363c7428ca@mail.gmail.com> Date: Thu, 10 Aug 2006 18:34:09 +0400 From: "Oleg Khaschansky" To: harmony-dev@incubator.apache.org Subject: Re: Exceptions found while running servlet... In-Reply-To: <11f7653a0608100728s6407c36dp3569a8f6d91f2ba1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11f7653a0608092244y74fd7187rbfdba08bec29bea5@mail.gmail.com> <26c14c2a0608100513s60809580sb6c6fbae69dacb28@mail.gmail.com> <11f7653a0608100539r149e36eeq4e1ce68fee3551f7@mail.gmail.com> <26c14c2a0608100643t22fa15f7r1f08e66a0c04f0c0@mail.gmail.com> <11f7653a0608100728s6407c36dp3569a8f6d91f2ba1@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Unfortunately, imageio is not implemented yet. On 8/10/06, Martin Cordova wrote: > Oleg: > > I added that line, but still cannot find the class, the JVM prints this log msg: > > Loading of javax/imageio/ImageIO class failed due to > java/lang/ClassNotFoundException > > Which JAR should I check to see if this class is contained? > > Regards, > Martin > > On 8/10/06, Oleg Khaschansky wrote: > > Hmm, probably, you should try to > > set JAVA_HOME=c:\harmony\ > > > > > > On 8/10/06, Martin Cordova wrote: > > > I am using the JRE snapshot (I did not build anything, just unpacked a ZIP): > > > > > > pre-alpha : not complete or compatible > > > svn = r428649, (Aug 4 2006), Windows/ia32/msvc 1310, release build > > > > > > This is what I downloaded: > > > * http://people.apache.org/dist/incubator/harmony/snapshots/latest-jre-windows.zip > > > > > > Yes I do have this class: org.apache.harmony.awt.gl.ImageSurface > > > > > > Should I set additional environment variable when starting my process? > > > I am using: > > > > > > set path=c:\harmony\bin;%path% > > > java -jar winstone-0.8.2-cvs.jar --config=./winstone.conf > > > > > > And seems to work fine for most cases, Harmony has only complained > > > about that specific class. Should I include the /lib/boot to the > > > %path%? > > > > > > Regards, > > > Martin > > > > > > > > > On 8/10/06, Oleg Khaschansky wrote: > > > > > 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)... > > > > > > > > Do you use harmony snapshot? I tried to run simple test which creates > > > > BufferedImage with aug 04 snapshot and got an UnsatisfiedLinkError > > > > instead of it. But absence of the gl.dll in that snapshot is a known > > > > issue and likely to be fixed in the next snapshot. Maybe you could try > > > > to look into your HARMONY_HOME/lib/boot/awt.jar and check if it > > > > includes org.apache.harmony.awt.gl.ImageSurface class? The snapshot > > > > has it and there shouldn't be any problems with loading this class. > > > > > > > > If you built harmony from sources, please consider refreshing awt > > > > module and rebuilding with > > > > -Dwith.awt.swing=true > > > > > > > > On 8/10/06, 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. > > > > > > > > > > ---- > > > > > > > > > > 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 > > > > > > > > > > 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 > > > > > -- > > > > > Dinamica - RADical J2EE framework > > > > > open source, easy and powerful > > > > > http://www.martincordova.com > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > -- > > > Dinamica - RADical J2EE framework > > > open source, easy and powerful > > > http://www.martincordova.com > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > > -- > Dinamica - RADical J2EE framework > open source, easy and powerful > http://www.martincordova.com > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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