You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sid Ferreira <si...@gmail.com> on 2009/01/21 20:23:45 UTC
Weird error
Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
getting this error... Why?
java.lang.RuntimeExceptionException constructing service 'MasterDispatcher':
Error invoking service builder method
org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List) (at
TapestryModule.java:1144) (for service 'MasterDispatcher'): Error invoking
service contribution method
tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
Dispatcher): Error building service proxy for service 'AccessController' (at
tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
ComponentClassResolver, ComponentSource, UserSessionImpl) (at
AccessController.java:26) via
tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
AppModule.java:27)): Error invoking constructor
tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
ComponentClassResolver, ComponentSource, UserSessionImpl) (at
AccessController.java:26) via
tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
AppModule.java:27) (for service 'AccessController'): No service implements
the interface tibox.allert.fastSupport.services.UserSessionImpl.
org.apache.tapestry5.ioc.internal.OperationExceptionNo service implements
the interface tibox.allert.fastSupport.services.UserSessionImpl.
trace
- Realizing service MasterDispatcher
- Invoking
org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List) (at
TapestryModule.java:1144)
- Collecting ordered configuration for service MasterDispatcher
- Invoking method
tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
Dispatcher) (at AppModule.java:39).
- Determining injection value for parameter #2
(org.apache.tapestry5.services.Dispatcher)
- Creating service 'AccessController'.
- Determining injection value for parameter #4
(tibox.allert.fastSupport.services.UserSessionImpl)
java.lang.RuntimeExceptionNo service implements the interface
tibox.allert.fastSupport.services.UserSessionImpl.
--
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations
Re: Weird error
Posted by Carl Crowder <ca...@taptu.com>.
I'm guessing from this:
java.lang.RuntimeException No service implements the interface
tibox.allert.fastSupport.services.UserSessionImpl.
That you're binding the implementing class instead of the interface class.
Carl
Chris Lewis wrote:
> And also how exactly you bind your service implementation in your app
> module.
>
> Stephane Decleire wrote:
>> Hi
>>
>> Could you show us the code of your class
>> tibox.allert.fastSupport.services.UserSessionImpl ?
>>
>> Stephane
>>
>> Sid Ferreira a écrit :
>>
>>> Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
>>> getting this error... Why?
>>>
>>>
>>> java.lang.RuntimeExceptionException constructing service
>>> 'MasterDispatcher':
>>> Error invoking service builder method
>>> org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List)
>>> (at
>>> TapestryModule.java:1144) (for service 'MasterDispatcher'): Error
>>> invoking
>>> service contribution method
>>> tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
>>>
>>> Dispatcher): Error building service proxy for service
>>> 'AccessController' (at
>>> tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
>>>
>>> ComponentClassResolver, ComponentSource, UserSessionImpl) (at
>>> AccessController.java:26) via
>>> tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
>>> AppModule.java:27)): Error invoking constructor
>>> tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
>>>
>>> ComponentClassResolver, ComponentSource, UserSessionImpl) (at
>>> AccessController.java:26) via
>>> tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
>>> AppModule.java:27) (for service 'AccessController'): No service
>>> implements
>>> the interface tibox.allert.fastSupport.services.UserSessionImpl.
>>> org.apache.tapestry5.ioc.internal.OperationExceptionNo service
>>> implements
>>> the interface tibox.allert.fastSupport.services.UserSessionImpl.
>>> trace
>>>
>>> - Realizing service MasterDispatcher
>>> - Invoking
>>>
>>> org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List)
>>> (at
>>> TapestryModule.java:1144)
>>> - Collecting ordered configuration for service MasterDispatcher
>>> - Invoking method
>>>
>>> tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
>>>
>>> Dispatcher) (at AppModule.java:39).
>>> - Determining injection value for parameter #2
>>> (org.apache.tapestry5.services.Dispatcher)
>>> - Creating service 'AccessController'.
>>> - Determining injection value for parameter #4
>>> (tibox.allert.fastSupport.services.UserSessionImpl)
>>>
>>> java.lang.RuntimeExceptionNo service implements the interface
>>> tibox.allert.fastSupport.services.UserSessionImpl.
>>>
>>>
>>>
>>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Weird error
Posted by Chris Lewis <ch...@bellsouth.net>.
And also how exactly you bind your service implementation in your app
module.
Stephane Decleire wrote:
> Hi
>
> Could you show us the code of your class
> tibox.allert.fastSupport.services.UserSessionImpl ?
>
> Stephane
>
> Sid Ferreira a écrit :
>
>> Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
>> getting this error... Why?
>>
>>
>> java.lang.RuntimeExceptionException constructing service 'MasterDispatcher':
>> Error invoking service builder method
>> org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List) (at
>> TapestryModule.java:1144) (for service 'MasterDispatcher'): Error invoking
>> service contribution method
>> tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
>> Dispatcher): Error building service proxy for service 'AccessController' (at
>> tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
>> ComponentClassResolver, ComponentSource, UserSessionImpl) (at
>> AccessController.java:26) via
>> tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
>> AppModule.java:27)): Error invoking constructor
>> tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
>> ComponentClassResolver, ComponentSource, UserSessionImpl) (at
>> AccessController.java:26) via
>> tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
>> AppModule.java:27) (for service 'AccessController'): No service implements
>> the interface tibox.allert.fastSupport.services.UserSessionImpl.
>> org.apache.tapestry5.ioc.internal.OperationExceptionNo service implements
>> the interface tibox.allert.fastSupport.services.UserSessionImpl.
>> trace
>>
>> - Realizing service MasterDispatcher
>> - Invoking
>> org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List) (at
>> TapestryModule.java:1144)
>> - Collecting ordered configuration for service MasterDispatcher
>> - Invoking method
>> tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
>> Dispatcher) (at AppModule.java:39).
>> - Determining injection value for parameter #2
>> (org.apache.tapestry5.services.Dispatcher)
>> - Creating service 'AccessController'.
>> - Determining injection value for parameter #4
>> (tibox.allert.fastSupport.services.UserSessionImpl)
>>
>> java.lang.RuntimeExceptionNo service implements the interface
>> tibox.allert.fastSupport.services.UserSessionImpl.
>>
>>
>>
>>
>>
>
>
--
http://thegodcode.net
Re: Weird error
Posted by Stephane Decleire <sd...@cariboo-networks.com>.
Hi
Could you show us the code of your class
tibox.allert.fastSupport.services.UserSessionImpl ?
Stephane
Sid Ferreira a écrit :
> Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
> getting this error... Why?
>
>
> java.lang.RuntimeExceptionException constructing service 'MasterDispatcher':
> Error invoking service builder method
> org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List) (at
> TapestryModule.java:1144) (for service 'MasterDispatcher'): Error invoking
> service contribution method
> tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
> Dispatcher): Error building service proxy for service 'AccessController' (at
> tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
> ComponentClassResolver, ComponentSource, UserSessionImpl) (at
> AccessController.java:26) via
> tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
> AppModule.java:27)): Error invoking constructor
> tibox.allert.fastSupport.services.AccessController(ApplicationStateManager,
> ComponentClassResolver, ComponentSource, UserSessionImpl) (at
> AccessController.java:26) via
> tibox.allert.fastSupport.services.AppModule.bind(ServiceBinder) (at
> AppModule.java:27) (for service 'AccessController'): No service implements
> the interface tibox.allert.fastSupport.services.UserSessionImpl.
> org.apache.tapestry5.ioc.internal.OperationExceptionNo service implements
> the interface tibox.allert.fastSupport.services.UserSessionImpl.
> trace
>
> - Realizing service MasterDispatcher
> - Invoking
> org.apache.tapestry5.services.TapestryModule.buildMasterDispatcher(List) (at
> TapestryModule.java:1144)
> - Collecting ordered configuration for service MasterDispatcher
> - Invoking method
> tibox.allert.fastSupport.services.AppModule.contributeMasterDispatcher(OrderedConfiguration,
> Dispatcher) (at AppModule.java:39).
> - Determining injection value for parameter #2
> (org.apache.tapestry5.services.Dispatcher)
> - Creating service 'AccessController'.
> - Determining injection value for parameter #4
> (tibox.allert.fastSupport.services.UserSessionImpl)
>
> java.lang.RuntimeExceptionNo service implements the interface
> tibox.allert.fastSupport.services.UserSessionImpl.
>
>
>
>
Re: Weird error
Posted by Sid Ferreira <si...@gmail.com>.
Done :D
On Thu, Jan 22, 2009 at 8:56 AM, Ulrich Stärk <ul...@spielviel.de> wrote:
> It's a wiki - go ahead...
>
> Sid Ferreira schrieb:
>
> Indeed... anyone should fix the docs...
>>
>> On Thu, Jan 22, 2009 at 12:46 AM, Thiago H. de Paula Figueiredo <
>> thiagohp@gmail.com> wrote:
>>
>> Em Wed, 21 Jan 2009 22:36:45 -0300, Sid Ferreira <si...@gmail.com>
>>> escreveu:
>>>
>>> http://pastebin.com/m43c165fd
>>>
>>>> didn't included database, components or pages, just what matters.
>>>>
>>>> If something else is needed, tell me :D
>>>>
>>>> As I said before,
>>>
>>> "By the way, I think there's an error in this constructor:
>>>
>>> public AccessController(ApplicationStateManager asm,
>>> ComponentClassResolver
>>> resolver, ComponentSource componentSource, UserSessionImpl
>>> newUserSession)
>>>
>>> Instead of UserSessionImpl, I think it should be UserSession, the
>>> interface
>>> declared in that wiki page."
>>>
>>> --
>>> Thiago H. de Paula Figueiredo
>>> Independent Java consultant, developer, and instructor
>>> http://www.arsmachina.com.br/thiago
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations
Re: Weird error
Posted by Ulrich Stärk <ul...@spielviel.de>.
It's a wiki - go ahead...
Sid Ferreira schrieb:
> Indeed... anyone should fix the docs...
>
> On Thu, Jan 22, 2009 at 12:46 AM, Thiago H. de Paula Figueiredo <
> thiagohp@gmail.com> wrote:
>
>> Em Wed, 21 Jan 2009 22:36:45 -0300, Sid Ferreira <si...@gmail.com>
>> escreveu:
>>
>> http://pastebin.com/m43c165fd
>>> didn't included database, components or pages, just what matters.
>>>
>>> If something else is needed, tell me :D
>>>
>> As I said before,
>>
>> "By the way, I think there's an error in this constructor:
>>
>> public AccessController(ApplicationStateManager asm, ComponentClassResolver
>> resolver, ComponentSource componentSource, UserSessionImpl newUserSession)
>>
>> Instead of UserSessionImpl, I think it should be UserSession, the interface
>> declared in that wiki page."
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java consultant, developer, and instructor
>> http://www.arsmachina.com.br/thiago
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Weird error
Posted by Sid Ferreira <si...@gmail.com>.
Indeed... anyone should fix the docs...
On Thu, Jan 22, 2009 at 12:46 AM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> Em Wed, 21 Jan 2009 22:36:45 -0300, Sid Ferreira <si...@gmail.com>
> escreveu:
>
> http://pastebin.com/m43c165fd
>> didn't included database, components or pages, just what matters.
>>
>> If something else is needed, tell me :D
>>
>
> As I said before,
>
> "By the way, I think there's an error in this constructor:
>
> public AccessController(ApplicationStateManager asm, ComponentClassResolver
> resolver, ComponentSource componentSource, UserSessionImpl newUserSession)
>
> Instead of UserSessionImpl, I think it should be UserSession, the interface
> declared in that wiki page."
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations
Re: Weird error
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 21 Jan 2009 22:36:45 -0300, Sid Ferreira <si...@gmail.com>
escreveu:
> http://pastebin.com/m43c165fd
> didn't included database, components or pages, just what matters.
>
> If something else is needed, tell me :D
As I said before,
"By the way, I think there's an error in this constructor:
public AccessController(ApplicationStateManager asm,
ComponentClassResolver resolver, ComponentSource componentSource,
UserSessionImpl newUserSession)
Instead of UserSessionImpl, I think it should be UserSession, the
interface declared in that wiki page."
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Weird error
Posted by Sid Ferreira <si...@gmail.com>.
http://pastebin.com/m43c165fd
didn't included database, components or pages, just what matters.
If something else is needed, tell me :D
On Wed, Jan 21, 2009 at 10:01 PM, Sid Ferreira <si...@gmail.com> wrote:
> Ive copy pasted most of code.UserSession (interface) and UserSessionImpl
> (class) are almost empty, just the method in the link returning true always.
>
> The binding I tried with the binder, before the binding of the application.
>
> Thiago: I've readed it and there's no problem, but when a copy-paste fails
> it's confusing.
>
> I'll post the sources in a moment...
>
>
> On Wed, Jan 21, 2009 at 9:45 PM, Thiago H. de Paula Figueiredo <
> thiagohp@gmail.com> wrote:
>
>> Em Wed, 21 Jan 2009 16:23:45 -0300, Sid Ferreira <si...@gmail.com>
>> escreveu:
>>
>> Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
>>> getting this error... Why?
>>>
>>
>> As any error in Java, the first thing to do is to look at the stack trace:
>>
>> No service implements the interface
>>> tibox.allert.fastSupport.services.UserSessionImpl.
>>>
>>
>> Read the Tapestry-IoC documentation because the problem lies in your T-IoC
>> configuration. Don't forget to read this page:
>> http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html.
>>
>> (Sorry, second RTFM today, hehehe) :)
>>
>> By the way, I think there's an error in this constructor:
>>
>> public AccessController(ApplicationStateManager asm,
>> ComponentClassResolver resolver, ComponentSource componentSource,
>> UserSessionImpl newUserSession)
>>
>> Instead of UserSessionImpl, I think it should be UserSession, the
>> interface declared in that wiki page.
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java consultant, developer, and instructor
>> Consultor, desenvolvedor e instrutor em Java
>> http://www.arsmachina.com.br/thiago
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web - Tibox Innovations
>
>
--
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations
Re: Weird error
Posted by Sid Ferreira <si...@gmail.com>.
Ive copy pasted most of code.UserSession (interface) and UserSessionImpl
(class) are almost empty, just the method in the link returning true always.
The binding I tried with the binder, before the binding of the application.
Thiago: I've readed it and there's no problem, but when a copy-paste fails
it's confusing.
I'll post the sources in a moment...
On Wed, Jan 21, 2009 at 9:45 PM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> Em Wed, 21 Jan 2009 16:23:45 -0300, Sid Ferreira <si...@gmail.com>
> escreveu:
>
> Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
>> getting this error... Why?
>>
>
> As any error in Java, the first thing to do is to look at the stack trace:
>
> No service implements the interface
>> tibox.allert.fastSupport.services.UserSessionImpl.
>>
>
> Read the Tapestry-IoC documentation because the problem lies in your T-IoC
> configuration. Don't forget to read this page:
> http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html.
>
> (Sorry, second RTFM today, hehehe) :)
>
> By the way, I think there's an error in this constructor:
>
> public AccessController(ApplicationStateManager asm, ComponentClassResolver
> resolver, ComponentSource componentSource, UserSessionImpl newUserSession)
>
> Instead of UserSessionImpl, I think it should be UserSession, the interface
> declared in that wiki page.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> Consultor, desenvolvedor e instrutor em Java
> http://www.arsmachina.com.br/thiago
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations
Re: Weird error
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 21 Jan 2009 16:23:45 -0300, Sid Ferreira <si...@gmail.com>
escreveu:
> Based on http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess Im
> getting this error... Why?
As any error in Java, the first thing to do is to look at the stack trace:
> No service implements the interface
> tibox.allert.fastSupport.services.UserSessionImpl.
Read the Tapestry-IoC documentation because the problem lies in your T-IoC
configuration. Don't forget to read this page:
http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html.
(Sorry, second RTFM today, hehehe) :)
By the way, I think there's an error in this constructor:
public AccessController(ApplicationStateManager asm,
ComponentClassResolver resolver, ComponentSource componentSource,
UserSessionImpl newUserSession)
Instead of UserSessionImpl, I think it should be UserSession, the
interface declared in that wiki page.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org