Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 60713 invoked from network); 26 Apr 2008 11:41:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2008 11:41:35 -0000 Received: (qmail 15156 invoked by uid 500); 26 Apr 2008 11:41:35 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 15119 invoked by uid 500); 26 Apr 2008 11:41:35 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 15108 invoked by uid 99); 26 Apr 2008 11:41:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 04:41:35 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sergey.i.salishev@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 11:40:50 +0000 Received: by yw-out-1718.google.com with SMTP id 5so15715ywm.0 for ; Sat, 26 Apr 2008 04:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Lsp0p9VRUuhzylMEZXLj4KvAjkF/hTMfBVcB6ZBR/EU=; b=owqyCzPqA/OyTsti2/vpvyEORIGsWkfnVcorx+BM+7izypcbFm2yWUpX5PSpwKUdDrjFiWUsHSUVlvYscpBYCQGkAuLcA36oWazR6HhbwSZvTz1mZoj+PfEw/v2RAAH7FonPwRy1aAHrdA3QKGryFzhweN37uPrMNfLWpAGgb/w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=p0fESUb5GAPlvMg6CyLwdlbm4pcgZF05lFNtA5+pjxGi3t1RfhtcLVPxjeGdnAaC5wxvC3ctFGGbM7AZtKQ6YGTEJ9ncf2gbU+8Mw4j/uJR2oYYxBryymh8qgnCoKpDBSgG173xUmPR3lWc9bxAKEiKhKGCHWDPOYBKZSUUGsug= Received: by 10.150.69.5 with SMTP id r5mr1703718yba.97.1209210053390; Sat, 26 Apr 2008 04:40:53 -0700 (PDT) Received: by 10.150.225.1 with HTTP; Sat, 26 Apr 2008 04:40:53 -0700 (PDT) Message-ID: <728dc7fa0804260440u23a67effs28f43450844ce149@mail.gmail.com> Date: Sat, 26 Apr 2008 15:40:53 +0400 From: "Sergey Salishev" To: dev@harmony.apache.org Subject: Re: [harmony-demo-1] Unit test on AWT In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_199_8676010.1209210053352" References: <61d2e9b20804242305oe1e54b0u14bc81b99ec17195@mail.gmail.com> <61d2e9b20804260024l7270387brecb980ec7f37a367@mail.gmail.com> <61d2e9b20804260153i55569621o9031717a5fbbd53c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_199_8676010.1209210053352 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, As I remember you should use -Xbootclasspath/a: to append the bootclasspath instead of replacing it. Also you should add JUnit to bootclasspath as well for running unit test in bootclasspath. The reason for such complexity is that AWT is rather big so many tests actually check the package private methods. Thanks. Sergey. On Sat, Apr 26, 2008 at 1:08 PM, Alexei Fedotov wrote: > Well, > Please check that the kernel.jar you are using is from DRLVM, not just > a classlib stub (jre/bin/default/kernel.jar). > Please check that it is the first entry in the project class path. > > On Sat, Apr 26, 2008 at 12:53 PM, Mackie Mathew > wrote: > > I added the kernel.jar and luni.jar to the boot classpath... and this i= s > > what happened... > > > > Exception raised while initializing helper class > > org/apache/harmony/drlvm/VMHelper > > Signal 6 is reported: SIGABRT > > Registers: > > EAX: 0x00000000, EBX: 0x00002d42, ECX: 0x00002d42, EDX: 0x00000006 > > ESI: 0x00002d42, EDI: 0xb7d01ff4, ESP: 0xbfc8d910, EBP: 0xbfc8d92c > > EIP: 0xffffe410 > > > > Crashed module: > > Unknown address 0xffffe410 > > > > Working directory: > > /home/mackie/harmony/working_classlib/modules/awt > > > > Command line: > > /home/mackie/harmony/target/hdk/jdk/jre/bin/java > > > -Xbootclasspath:/home/mackie/harmony/target/hdk/jdk/jre/bin/default/kern= el.jar:/home/mackie/harmony/target/hdk/jdk/jre/lib/boot/luni.jar > > -classpath > > > /home/mackie/harmony/working_classlib/modules/awt/bin/main/common:/home/= mackie/harmony/working_classlib/modules/awt/bin/test/api:/home/mackie/harmo= ny/working_classlib/modules/awt/bin/test/unix:/home/mackie/harmony/working_= classlib/modules/awt/bin/test/windows:/home/mackie/harmony/working_classlib= /modules/awt/bin/test/boot:/home/mackie/harmony/working_classlib/modules/aw= t/bin/main/windows:/home/mackie/harmony/working_classlib/modules/awt/bin/ma= in/linux:/home/mackie/harmony/working_classlib/modules/awt/src/test/api/res= ources:/home/mackie/harmony/working_classlib/modules/accessibility/bin/main= :/home/mackie/harmony/working_classlib/modules/accessibility/bin/test:/home= /mackie/harmony/working_classlib/modules/accessibility/bin:/home/mackie/har= mony/working_classlib/modules/beans/bin/main:/home/mackie/harmony/working_c= lasslib/modules/beans/bin/test_support:/home/mackie/harmony/working_classli= b/modules/beans/bin/test:/home/mackie/harmony/working_classlib/modules/bean= s/bin/test-internal:/home/mackie/harmony/working_classlib/modules/applet/bi= n/main:/home/mackie/harmony/working_classlib/modules/applet/bin/test:/home/= mackie/harmony/working_classlib/modules/applet/bin:/home/mackie/harmony/wor= king_classlib/modules/luni/bin/main:/home/mackie/harmony/working_classlib/m= odules/luni/bin/test:/home/mackie/harmony/working_classlib/modules/luni-ker= nel/bin/main:/home/mackie/harmony/target/hdk/jdk/jre/lib/boot/icu4j_3.8/icu= 4j-3_8.jar:/home/mackie/harmony/target/hdk/jdk/jre/lib/boot/icu4j_3.8/icu4j= -charsets-3_8.jar:/home/mackie/harmony/working_classlib/modules/annotation/= bin/main:/home/mackie/harmony/working_classlib/modules/annotation/bin/test:= /home/mackie/harmony/working_classlib/modules/annotation/bin:/home/mackie/h= armony/working_classlib/modules/security/bin/main:/home/mackie/harmony/work= ing_classlib/modules/security/bin/test:/home/mackie/harmony/working_classli= b/modules/security-kernel/bin/main:/home/mackie/harmony/working_classlib/mo= dules/security-kernel/bin:/home/mackie/harmony/working_classlib/modules/mat= h/bin/main:/home/mackie/harmony/working_classlib/modules/math/bin/test:/opt= /eclipse/plugins/org.junit_3.8.2.v200706111738/junit.jar:/home/mackie/harmo= ny/working_classlib/modules/nio/bin/test:/home/mackie/harmony/working_class= lib/modules/nio/bin/main:/home/mackie/harmony/working_classlib/modules/nio_= char/bin/main:/home/mackie/harmony/working_classlib/modules/nio_char/bin/te= st:/home/mackie/harmony/working_classlib/support/bin:/home/mackie/harmony/w= orking_classlib/modules/archive/bin/main:/home/mackie/harmony/working_class= lib/modules/archive/bin/test:/home/mackie/harmony/working_classlib/modules/= auth/bin/main:/home/mackie/harmony/working_classlib/modules/auth/bin/test:/= home/mackie/harmony/working_classlib/modules/crypto/bin/main:/home/mackie/h= armony/working_classlib/modules/crypto/bin/test/api:/home/mackie/harmony/wo= rking_classlib/modules/crypt > > > > > > > > Loaded modules: > > > > > > VM attached threads: > > > > --->[0xb7a716c0] > > > > Stack trace: > > 0: ?? (??:-1) > > 1: ?? (??:-1) > > 2: ?? (??:-1) > > 3: ?? (??:-1) > > 4: ?? (??:-1) > > 5: ?? (??:-1) > > 6: ?? (??:-1) > > 7: ?? (??:-1) > > 8: ?? (??:-1) > > 9: ?? (??:-1) > > 10: ?? (??:-1) > > > > > > On Sat, Apr 26, 2008 at 12:57 PM, Alexei Fedotov < > alexei.fedotov@gmail.com> > > wrote: > > > > > > > > > Tharindu, > > > Have you added kernel.jar to the project classpath? > > > Have you added the project classpath to the boot classpath in the > launch > > > dialog? > > > > > > Thanks! > > > > > > On Sat, Apr 26, 2008 at 11:24 AM, Mackie Mathew > > > wrote: > > > > I added the awt project under bootstrap entries in the run dialog. > Now > > > both > > > > Sun JDK and Harmony give the following exception: > > > > > > > > Error occurred during initialization of VM > > > > > > > > java/lang/NoClassDefFoundError: java/lang/Object > > > > > > > > > > > > > > > > On Fri, Apr 25, 2008 at 11:52 AM, Andrey Pavlenko < > > > > andrey.a.pavlenko@googlemail.com> wrote: > > > > > > > > > You should add the tests to the boot class path in the Eclipse > Run > > > dialog. > > > > > > > > > > On Fri, Apr 25, 2008 at 10:05 AM, Mackie Mathew < > mccloud35@gmail.com> > > > > > wrote: > > > > > > > > > > > I'm trying to run the the tests on AWT. When I use the Sun JD= K > it > > > gives > > > > > a > > > > > > security violation, due to the awt package name being used. > > > > > > > > > > > > java.lang.SecurityException: Prohibited package name: java.aw= t > > > > > > at > java.lang.ClassLoader.preDefineClass(ClassLoader.java:479) > > > > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:614) > > > > > > at > > > > > > > > > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > > > > > at > java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > > > > > > at > java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > > > > > at java.security.AccessController.doPrivileged(Native > Method) > > > > > > at > java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > > > > > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTe= stRunner.java:683) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(Remote= TestRunner.java:425) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTes= tRunner.java:445) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTes= tRunner.java:673) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunn= er.java:386) > > > > > > at > > > > > > > > > > > > > > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRun= ner.java:196) > > > > > > > > > > > > When Harmony is used as the JDK, the following error occurs: > > > > > > > > > > > > java/lang/NoClassDefFoundError : java/lang/Object > > > > > > > > > > > > > > > > > > How can these tests be run? Im using Eclipse as the IDE to ru= n > the > > > > > tests. > > > > > > > > > > > > -- > > > > > > Regards, > > > > > > > > > > > > Tharindu > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Regards, > > > > > > > > Tharindu > > > > > > > > > > > > > > > > -- > > > With best regards, > > > Alexei > > > > > > > > > > > -- > > Regards, > > > > Tharindu > > > > > > -- > With best regards, > Alexei > ------=_Part_199_8676010.1209210053352--