If ManagerStates is an enum, it does not belong in the components
package. It should be moved out to a more general package, such as
com.mycompany.data.  Anything under the components package is handled
specially by Tapestry.

On Tue, Apr 8, 2008 at 6:12 AM, Stephane Decleire
<[EMAIL PROTECTED]> wrote:
> Sorry Ted but i don't see any non component in my component package ...
>
>  Ted Steen a écrit :
>
>
>
> > You shouldn't put non components under the components package.
> > If you do that Tapestry will do runtime class instrumentation on the
> > class and you will end up with exceptions like that.
> > Atleast this is what I think.
> >
> > Maybe we could check this and show a more human readable error message?
> >
> > Hope it helps!
> > /Ted
> >
> > 2008/4/8, Stephane Decleire <[EMAIL PROTECTED]>:
> >
> >
> > > Has anybody already get such a strange exception ?
> > >
> > > org.apache.tapestry.ioc.internal.util.TapestryException
> > > :
> > >  com.mycompany.components.accounts.ManagerStates cannot be
> > > cast to com.mycompany.components.accounts.ManagerStates
> > >
> > >  ???
> > >
> > >  My ManagerStates class is an enum and here is the stack trace :
> > >
> > >       *
> > >
> com.mycompany.components.accounts.Manager.containingPageDidAttach(Manager.java)
> > >       *
> > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$2.run(ComponentPageElementImpl.java:71)
> > >       *
> > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:874)
> > >       *
> > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidAttach(ComponentPageElementImpl.java:706)
> > >       *
> > >
> org.apache.tapestry.internal.structure.PageImpl.attached(PageImpl.java:146)
> > >       *
> > >
> org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:45)
> > >       *
> > >
> org.apache.tapestry.internal.services.ComponentSourceImpl.getPage(ComponentSourceImpl.java:51)
> > >       *
> > >
> com.mycompany.accounts.services.impl.AccessController.checkAccess(AccessController.java:88)
> > >       *
> > >
> com.mycompany.accounts.services.impl.AccessController.dispatch(AccessController.java:77)
> > >       *
> > >
> org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java:955)
> > >       *
> > > com.mycompany.services.AppModule$1.service(AppModule.java:96)
> > >       *
> > >
> org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:42)
> > >       *
> > >
> org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:564)
> > >       *
> > >
> org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:515)
> > >       *
> > >
> org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
> > >       *
> > >
> org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
> > >       *
> > >
> org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
> > >       *
> > >
> org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
> > >       *
> > >
> org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
> > >       *
> > >
> org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:935)
> > >       *
> > >
> org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
> > >       *
> > > org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:168)
> > >       *
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > >       *
> > >
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
> > >       *
> > >
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
> > >       *
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> > >       *
> > >
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> > >       *
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> > >       *
> > > org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> > >       *
> > >
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
> > >       *
> > > org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> > >       *
> > > org.mortbay.http.HttpServer.service(HttpServer.java:909)
> > >       *
> > > org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
> > >       *
> > > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
> > >       *
> > > org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
> > >       *
> > >
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
> > >       *
> > > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> > >       *
> > > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> > >
> > >  Thanks in advance
> > >
> > >  Stephane
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to