You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jai PP <jp...@yahoo.com> on 2003/04/02 05:17:46 UTC
Digester - JVM pre-1.4 warning
I am using the Digester inside oracle database JVM (
oracle provides a way where you can load your java
classes . When you run these classes they use oracle
JVM)
I get the following Warning in log4j. Do you what this
message means ? Is this error is ignorable or it is a
nasty one
2003-04-01 19:10:18,704 WARN [Root Thread]
<apache.commons.beanutils.MethodUtils>
(MethodUtils.java:583) - Cannot use JVM pre-1.4 access
bug workaround die to restrictive security manager.
thanks!
- Jai
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
Re: Digester - JVM pre-1.4 warning
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 2 Apr 2003, Jai PP wrote:
> Date: Wed, 2 Apr 2003 13:50:34 -0800 (PST)
> From: Jai PP <jp...@yahoo.com>
> Reply-To: Jakarta Commons Users List <co...@jakarta.apache.org>
> To: Jakarta Commons Users List <co...@jakarta.apache.org>
> Subject: Re: Digester - JVM pre-1.4 warning
>
> Craig,
> Thanks a lot. Is this error is ignorable ? I am able
> to get the values of the xml in the bean through bean
> getters
As long as the method actually works for you, the warning can be ignored.
> thanks!
> - Jaiteerth
Craig
Re: Digester - JVM pre-1.4 warning
Posted by Jai PP <jp...@yahoo.com>.
Craig,
Thanks a lot. Is this error is ignorable ? I am able
to get the values of the xml in the bean through bean
getters
thanks!
- Jaiteerth
--- "Craig R. McClanahan" <cr...@apache.org> wrote:
>
>
> On Tue, 1 Apr 2003, Jai PP wrote:
>
> > Date: Tue, 1 Apr 2003 19:17:46 -0800 (PST)
> > From: Jai PP <jp...@yahoo.com>
> > Reply-To: Jakarta Commons Users List
> <co...@jakarta.apache.org>
> > To: commons-user@jakarta.apache.org
> > Subject: Digester - JVM pre-1.4 warning
> >
> > I am using the Digester inside oracle database JVM
> (
> > oracle provides a way where you can load your java
> > classes . When you run these classes they use
> oracle
> > JVM)
> >
> > I get the following Warning in log4j. Do you what
> this
> > message means ? Is this error is ignorable or it
> is a
> > nasty one
> >
> > 2003-04-01 19:10:18,704 WARN [Root Thread]
> > <apache.commons.beanutils.MethodUtils>
> > (MethodUtils.java:583) - Cannot use JVM pre-1.4
> access
> > bug workaround die to restrictive security
> manager.
> >
>
> MethodUtils contains a workaround to a problem on
> pre-1.4 JVMs where
> accessibility of public methods differs between
> directly compiled code and
> reflection-based dynamic access. We try to call the
> Method.setAccessible() method to tell the JVM that
> this method is really
> accessible.
>
> If you are running under a SecurityManager (and it
> sounds like you are,
> since you got a SecurityException), the code that
> you are running must be
> granted sufficient privileges in order to execute
> this call --
> specifically, you must have a ReflectPermission
> named
> "suppressAccessChecks" at runtime.
>
> For a Sun JDK/JRE, you would set this sort of stuff
> up in a
> $JAVA_HOME/jre/lib/security/java.policy file.
> You'll have to consult the
> Oracle documentation on how to do that in their JVM.
>
> > thanks!
> > - Jai
>
> Craig
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
Re: Digester - JVM pre-1.4 warning
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Tue, 1 Apr 2003, Jai PP wrote:
> Date: Tue, 1 Apr 2003 19:17:46 -0800 (PST)
> From: Jai PP <jp...@yahoo.com>
> Reply-To: Jakarta Commons Users List <co...@jakarta.apache.org>
> To: commons-user@jakarta.apache.org
> Subject: Digester - JVM pre-1.4 warning
>
> I am using the Digester inside oracle database JVM (
> oracle provides a way where you can load your java
> classes . When you run these classes they use oracle
> JVM)
>
> I get the following Warning in log4j. Do you what this
> message means ? Is this error is ignorable or it is a
> nasty one
>
> 2003-04-01 19:10:18,704 WARN [Root Thread]
> <apache.commons.beanutils.MethodUtils>
> (MethodUtils.java:583) - Cannot use JVM pre-1.4 access
> bug workaround die to restrictive security manager.
>
MethodUtils contains a workaround to a problem on pre-1.4 JVMs where
accessibility of public methods differs between directly compiled code and
reflection-based dynamic access. We try to call the
Method.setAccessible() method to tell the JVM that this method is really
accessible.
If you are running under a SecurityManager (and it sounds like you are,
since you got a SecurityException), the code that you are running must be
granted sufficient privileges in order to execute this call --
specifically, you must have a ReflectPermission named
"suppressAccessChecks" at runtime.
For a Sun JDK/JRE, you would set this sort of stuff up in a
$JAVA_HOME/jre/lib/security/java.policy file. You'll have to consult the
Oracle documentation on how to do that in their JVM.
> thanks!
> - Jai
Craig
>