You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hugo Palma (JIRA)" <ta...@jakarta.apache.org> on 2005/07/01 19:31:58 UTC
[jira] Commented: (TAPESTRY-363) InjectState problem
[ http://issues.apache.org/jira/browse/TAPESTRY-363?page=comments#action_12314902 ]
Hugo Palma commented on TAPESTRY-363:
-------------------------------------
>From what i saw in bug TAPESTRY-362 i tried renaming the getVisit() method to getVisitObject() and now it works. So i guess that's a workaround but i'd still like for it work with getVisit() and getGlobal().
> InjectState problem
> -------------------
>
> Key: TAPESTRY-363
> URL: http://issues.apache.org/jira/browse/TAPESTRY-363
> Project: Tapestry
> Type: Bug
> Components: Annotations
> Versions: 4.0
> Environment: Windows, Tomcat 5.5.9, Tapestry 4.0-beta-1, Hivemind 1.1-beta-1
> Reporter: Hugo Palma
>
> I'm getting a very strange behaviour.
> I have two very simple pages, with no code in both their classes, the Home and Second pages. They both extend a common class:
> public abstract class Page extends BasePage
> {
> @Override
> @InjectState("visit")
> public abstract Visit getVisit();
> }
> The error i get is:
> Error: Method 'public abstract org.preschool.backoffice.extensions.Visit org.preschool.backoffice.view.Page.getVisit()' (declared in class org.preschool.backoffice.view.Page) has no implementation in class org.preschool.backoffice.view.pages.Login (or enhanced subclass $Login_2).
> Stack Trace:
> * org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39)
> * org.apache.hivemind.impl.ErrorLogImpl.error(ErrorLogImpl.java:40)
> * org.apache.tapestry.enhance.EnhancedClassValidatorImpl.validate(EnhancedClassValidatorImpl.java:60)
> * $EnhancedClassValidator_104ce44da4c.validate($EnhancedClassValidator_104ce44da4c.java)
> * org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:85)
> * $ComponentConstructorFactory_104ce44da37.getComponentConstructor($ComponentConstructorFactory_104ce44da37.java)
> * org.apache.tapestry.pageload.PageLoader.instantiatePage(PageLoader.java:611)
> * org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:639)
> * $IPageLoader_104ce44da33.loadPage($IPageLoader_104ce44da33.java)
> * $IPageLoader_104ce44da34.loadPage($IPageLoader_104ce44da34.java)
> * org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:118)
> * $IPageSource_104ce44d9a3.getPage($IPageSource_104ce44d9a3.java)
> * org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:252)
> * org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:235)
> * org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:596)
> * org.apache.tapestry.engine.PageService.service(PageService.java:67)
> * $IEngineService_104ce44da25.service($IEngineService_104ce44da25.java)
> * org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:65)
> The strangest thing about this is when this error happens. The behaviour i get the most times is:
> - Start tomcat.
> - Access Home page -> ok.
> - Access Second page -> error.
> or
> - Start tomcat.
> - Access Second page -> ok.
> - Access Home - error.
> so basically the second page getting accessed fails. But like i said, this is the most common behaviour, but sometimes the error doesn't show at all or it show in some other conditions.
> I hope this helps to identify the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org