IllegalAccessError in ValidatorResources.processForms(), trying to access FastHashMap.KeySet??

2004-02-12 Thread prhodes




Hi guys, I'm having a problem I hope somebody can help me with.  I have
a webapp running under JBoss / Tomcat, using Struts.  Part of my code
depends on the Commons Collections stuff, and I recently upgraded the
jar file for my project to the latest one.

Now, when I deploy my app, I get a ServletException in the action
servlet, with a root cause as follows:

java.lang.IllegalAccessError: tried to access method
org.apache.commons.collections.FastHashMap$KeySet.init
from class org.apache.commons.collections.FastHashMap
   at org.apache.commons.collections.FastHashMap.keySet( Unknown Source)
   at org.apache.commons.validator.ValidatorResources.processForms(
ValidatorResources.java:340)
...

Any thoughts?  Does this seem like a bug in the Commons Collections stuff,
or a bug in the Validator stuff, or just a case of me getting different
library
versions intermingled by accident?

Any and all help is greatly appreciated...

Phillip Rhodes
Application Designer
Voice Data Solutions
919-571-4300 x225
[EMAIL PROTECTED]

Those who are willing to sacrifice essential liberties for a little order,
will
lose both and deserve neither. - Benjamin Franklin

This country, with its institutions, belongs to the people who inhabit it.

Whenever they shall grow weary of the existing government, they can
exercise
their constitutional right of amending it, or exercise their revolutionary
right to overthrow it.  - Abraham Lincoln

No citizen shall be denied the right to bear arms, if as a last resort, to
protect themselves from tyranny in Government. - Thomas Jefferson


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IllegalAccessError

2003-08-14 Thread Robert Leland
Are you using all the jars that came with the Struts 1.1 release/nightly 
and then
compiled all your source code against that ? This includes 3rd part 
tools that
might make use of BeanUtils ?

-Rob

Ray Madigan wrote:

Hello:

I have been using struts in my application on Tomcat 4.2.24.  I have had a
an  Exceptions that is very puzzling to me.  The Exception is:
java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor
From the Java Platform API:
Thrown if an application attempts to access or modify a field, or to call a
method that it does not have access to.
Normally, this error is caught by the compiler; this error can only occur at
run time if the definition of a class has incompatibly changed.
Does anyone know how to go about debuging this kind of Error?  What in
Struts could cause this type of error?  My application doesn't work anymore,
and I have a near deadline.  Any help would be appreciated.
Full Exception Report:

2003-08-08 17:52:31 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor
at
org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMetho
ds(MappedPropertyDescriptor.java:383)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(Map
pedPropertyDescriptor.java:453)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPrope
rtyDescriptor.java:527)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.init(MappedPropertyD
escriptor.java:149)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:907)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
at

IllegalAccessError

2003-08-14 Thread Ray Madigan
Hello:

I have been using struts in my application on Tomcat 4.2.24.  I have had a
an  Exceptions that is very puzzling to me.  The Exception is:

java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor

From the Java Platform API:

Thrown if an application attempts to access or modify a field, or to call a
method that it does not have access to.

Normally, this error is caught by the compiler; this error can only occur at
run time if the definition of a class has incompatibly changed.

Does anyone know how to go about debuging this kind of Error?  What in
Struts could cause this type of error?  My application doesn't work anymore,
and I have a near deadline.  Any help would be appreciated.

Full Exception Report:

2003-08-08 17:52:31 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor
at
org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMetho
ds(MappedPropertyDescriptor.java:383)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(Map
pedPropertyDescriptor.java:453)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPrope
rtyDescriptor.java:527)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.init(MappedPropertyD
escriptor.java:149)
at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:907)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at 

RE: IllegalAccessError

2003-08-11 Thread Ray Madigan
I am using the binary distribution struts 1-1.  I checked anyplace where the
library is copied and all have the same size.  I check inside the jar and
the classes in question are the same size, if that matters or not.  I am
using a third party application that uses BeanUtils but it also has the same
sizes and dates.  So I assume that the library's are the correct ones.

Im unsure where to look next, or what test I should do to figure out what
could be the problem.

Thanks
RayM

-Original Message-
From: Robert Leland [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 10:17 PM
To: Struts Users Mailing List
Subject: Re: IllegalAccessError


Are you using all the jars that came with the Struts 1.1 release/nightly
and then
compiled all your source code against that ? This includes 3rd part
tools that
might make use of BeanUtils ?

-Rob

Ray Madigan wrote:

Hello:

I have been using struts in my application on Tomcat 4.2.24.  I have had a
an  Exceptions that is very puzzling to me.  The Exception is:

java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor

From the Java Platform API:

Thrown if an application attempts to access or modify a field, or to call a
method that it does not have access to.

Normally, this error is caught by the compiler; this error can only occur
at
run time if the definition of a class has incompatibly changed.

Does anyone know how to go about debuging this kind of Error?  What in
Struts could cause this type of error?  My application doesn't work
anymore,
and I have a near deadline.  Any help would be appreciated.

Full Exception Report:

2003-08-08 17:52:31 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
FilterChain.java:269)
   at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilte
r
Chain.java:98)
   at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChai
n
.java:176)
   at java.security.AccessController.doPrivileged(Native Method)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
ain.java:172)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
va:256)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a
va:191)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0
)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.
java:171)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
eNext(StandardPipeline.java:641)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
2
)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
eNext(StandardPipeline.java:641)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a
:174)
   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
k
eNext(StandardPipeline.java:643)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
   at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
   at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor
   at
org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMeth
o
ds(MappedPropertyDescriptor.java:383

IllegalAccessError?

2003-07-24 Thread Ray Madigan
I am in the process of porting my application to Tomcat 4.1.24 and am
getting the strangest Error Message.  Has anyone seen anything like this?  I
haven't changes anything in my app, or the struts config.  Nothing in the
stack trace has any pointer to where in my app it is failing?  Help would be
very much appreciated.

Thanks in Advance.

java.lang.IllegalAccessError: try to access class
org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class
org.apache.commons.beanutils.MappedPropertyDescriptor
at
org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMetho
ds(MappedPropertyDescriptor.java:383)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(Map
pedPropertyDescriptor.java:453)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPrope
rtyDescriptor.java:527)
at
org.apache.commons.beanutils.MappedPropertyDescriptor.init(MappedPropertyD
escriptor.java:149)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]