tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Stärk <...@spielviel.de>
Subject Re: ClassCast Exception while loading Service using its interface
Date Thu, 30 May 2013 06:48:13 GMT
On 29.05.2013 16:02, Alessio Gambi wrote:
> TraceGenerator generator = (SineTraceGenerator) registry
> 				.getService("SineTraceGenerator", TraceGenerator.class);


> DEBUG org.apache.tapestry5.ioc.Registry: [  1] <-- Creating proxy for service SineTraceGenerator
[6.48 ms]
> Exception in thread "main" java.lang.ClassCastException: $TraceGenerator_28566c0cafeac
cannot be cast to org.gambi.experiments.services.impl.SineTraceGenerator
>    at org.gambi.experiments.ExperimentAutomation.main(ExperimentAutomation.java:50) 

Omit the cast to (SineTraceGenerator).

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message