From owner-freebsd-java Sun Jun 9 10:28: 5 2002 Delivered-To: freebsd-java@freebsd.org Received: from plato.webprogrammers.net (plato.webprogrammers.net [204.221.75.12]) by hub.freebsd.org (Postfix) with ESMTP id AD7CC37B407 for ; Sun, 9 Jun 2002 10:27:53 -0700 (PDT) Received: from jstepkaxp (c66.191.144.249.roc.mn.charter.com [66.191.144.249]) by plato.webprogrammers.net (8.12.3/8.12.3) with ESMTP id g59HS92k034727 for ; Sun, 9 Jun 2002 12:28:10 -0500 (CDT) (envelope-from jstepka@webprogrammers.net) Message-ID: <00de01c20fda$fe3664e0$1f01010a@jstepkaxp> From: "Justen Stepka" To: References: <004b01c20f4c$678a8e60$1f01010a@jstepkaxp> <20020609.124654.596520665.shudoh@localhost> Subject: Re: jdk 1.3.1p6 + shujit + orion 1.5.4 Date: Sun, 9 Jun 2002 12:27:55 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Excellent. I was able to implement this fine, but I have noticed a few errors with the system. when I access the following page everything works fine (JSP page) http://10.1.1.39:8090/examples/jsp/num/numguess.jsp but when I try and access an html page http://10.1.1.39:8090/examples/jsp/colors/colors.html the system gives me an error 500 page with the following error java.lang.IllegalAccessError: final or private field at com.evermind[Orion/1.5.4 (build 10585)]._cp._shb(., Compiled Code) at com.evermind[Orion/1.5.4 (build 10585)]._hv._wmb(., Compiled Code) at com.evermind[Orion/1.5.4 (build 10585)]._co._wbb(., Compiled Code) at com.evermind[Orion/1.5.4 (build 10585)]._co._fs(., Compiled Code) at com.evermind[Orion/1.5.4 (build 10585)]._bt.run(., Compiled Code) I have yet to test this system on a deployed war/ear. Thanks, Justen Stepka ----- Original Message ----- From: To: ; Sent: Saturday, June 08, 2002 10:46 PM Subject: Re: jdk 1.3.1p6 + shujit + orion 1.5.4 > Hi Justen, > > > I am wondering if anyone has had any luck running Orion 1.5.4 with the > > jdk1.3.1p6 + ShuJIT packages? > > > > Currently I am able to start Orion with ShuJIT, but when I try and access > > the server I get the following as an output to the webbrowser with zero > > console output: > > > > java.lang.IllegalAccessError: final or private field > > at com.evermind[Orion/1.5.4 (build 10585)]._cp._shb(., Compiled Code) > > > If I turn off ShuJIT, the system will work instantly. > > Throwing the exception in that situation is certainly a shuJIT's > peculiar feature. But it is the correct behavior prescribed by the > Java Language and JVM specification. Orion is violating access > boundary and slack access control of JDK misses the bug. > There are bugs in both Orion 1.5.4 and the JDK. > > I have received a report on this problem three weeks ago. I could > track down the cause of it and sumitted a bug report to Orion's > Bugzilla. see > http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=796 > > > The mechanism of the Orion's bug is as follows: > > The `_shb' method of the `com.evermind._cp' class tries to access the > `lock' field of the `com.evermind.server.http.HttpDateFormat'. The > `lock' field is specifiad as `static final' and without any access > modifier (e.g. public, protected or private). Then, the field cannot > be accessed from other package. According to the Java specifications > the com.evermind._cp#_shb() cannot access the > com.evermind.server.http.HttpDateFormat#lock. But the slack access > control of JDK allows such an illegal access. > ShuJIT catches the access and throw an IllegalAccessError. > > > I have implemented a work-around on shuJIT. > I placed a new archive of shuJIT named shujit-020521.tar.gz > on the shuJIT web page. > In compiler.h in the new archive, you can find a line as follows: > > #undef SLACK_ACCESS_CONTROL > > If this line is changed to `#define', the strict access control of > shuJIT will be loosen and Orion 1.5.4 will run. > > > Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > ----- Original Message ----- From: To: ; Sent: Saturday, June 08, 2002 10:46 PM Subject: Re: jdk 1.3.1p6 + shujit + orion 1.5.4 > Hi Justen, > > > I am wondering if anyone has had any luck running Orion 1.5.4 with the > > jdk1.3.1p6 + ShuJIT packages? > > > > Currently I am able to start Orion with ShuJIT, but when I try and access > > the server I get the following as an output to the webbrowser with zero > > console output: > > > > java.lang.IllegalAccessError: final or private field > > at com.evermind[Orion/1.5.4 (build 10585)]._cp._shb(., Compiled Code) > > > If I turn off ShuJIT, the system will work instantly. > > Throwing the exception in that situation is certainly a shuJIT's > peculiar feature. But it is the correct behavior prescribed by the > Java Language and JVM specification. Orion is violating access > boundary and slack access control of JDK misses the bug. > There are bugs in both Orion 1.5.4 and the JDK. > > I have received a report on this problem three weeks ago. I could > track down the cause of it and sumitted a bug report to Orion's > Bugzilla. see > http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=796 > > > The mechanism of the Orion's bug is as follows: > > The `_shb' method of the `com.evermind._cp' class tries to access the > `lock' field of the `com.evermind.server.http.HttpDateFormat'. The > `lock' field is specifiad as `static final' and without any access > modifier (e.g. public, protected or private). Then, the field cannot > be accessed from other package. According to the Java specifications > the com.evermind._cp#_shb() cannot access the > com.evermind.server.http.HttpDateFormat#lock. But the slack access > control of JDK allows such an illegal access. > ShuJIT catches the access and throw an IllegalAccessError. > > > I have implemented a work-around on shuJIT. > I placed a new archive of shuJIT named shujit-020521.tar.gz > on the shuJIT web page. > In compiler.h in the new archive, you can find a line as follows: > > #undef SLACK_ACCESS_CONTROL > > If this line is changed to `#define', the strict access control of > shuJIT will be loosen and Orion 1.5.4 will run. > > > Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message