----- Original Message ----- From: "Howard Lewis Ship" <hls...@gmail.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Tuesday, November 02, 2010 3:34 PM
Subject: Re: [Tapestry Central] Tapestry 5.2.2


I'm not sure how you are getting illegal access errors at this point; I'd
need to see your code.

The code is dead simple. I just registered my custom ComponentRequestFilter in my module class, and this filter calls some package-private method in utility class present is same package (otherwise compiler would not allow package-private method to be called of course).

So, this is extract of code from filter:

   @Override
public void handlePageRender(PageRenderRequestParameters parameters, ComponentRequestHandler handler) throws IOException {
       MyUtilities.doNothing();
....

And utility class is:

public class MyUtilities {
   private MyUtilities() {
   }

   static void doNothing() {
       // this causes illegal access error
   }
}

And it throws.:
java.lang.IllegalAccessError
tried to access method hr.tis.bss.tapestry5.misc.hibernate.MyUtilities.doNothing()V from class hr.tis.bss.tapestry5.misc.hibernate.HibernateSessionFilter
Stack trace

a.. hr.tis.bss.tapestry5.misc.hibernate.HibernateSessionFilter.handlePageRender(HibernateSessionFilter.java:51) b.. org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) c.. org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:321) d.. org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) e.. org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:984) f.. org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:974) g.. org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) h.. org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) i.. org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:80) j.. org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) k.. org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) l.. org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:272) m.. org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) n.. org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44) o.. org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) p.. org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928)
 q.. org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:147)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to