tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/5002-error-injector-mapping-override-for-typeRobotlegs: Discussion 2013-09-23T14:36:14Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/285125562013-08-30T07:42:11Z2013-08-30T07:42:11ZError: Injector mapping override for type<div><p>Hello,</p>
<p>It looks like you have more than one mapping for your
ReportView.<br>
I suppose that you are mapping the view to a mediator as well.
Maybe you have 2 mappings for your ReportView, like these:</p>
<p>injector.map(ReportView).asSingleton();</p>
<p>and</p>
<p>mediatorMap.map(ReportView).toMediator(ReportMediator);</p>
<p>So, one mapping overrides the other, and that's why you're
getting the error.<br>
To avoid this, you could use the ViewProcessorMapExtension instead
of the mediatorMap:</p>
<p>viewProcessorMap.map(ReportView).toProcess( new
MediatorCreator(ReportMediator));</p>
<p>Let me know if that solves your problem.</p>
<p>If that's not your use case, then you should provide more info.
Show us your code where you perform the mappings. Or, you can
attach your project or a simple example reproducing the issue as a
zip file, and I'll take a look at it.</p>
<p>Ondina</p></div>Ondina D.F.