Open GoogleCodeExporter opened 8 years ago
Did you provide S and D arguments when you're subclassing ConverterBase ?
Original comment by elaat...@gmail.com
on 31 Jan 2013 at 3:06
I assume so since the converter class seems to work fine when I do unit testing
with it. i.e. out of container testing.
It fails with the above error when I inject the class using CDI / Weld ONLY.
Original comment by shriram....@gmail.com
on 31 Jan 2013 at 5:39
Can you please try to use a factory method, to instantiate your converter.
Original comment by elaat...@gmail.com
on 31 Jan 2013 at 5:49
After some investigation, I have stumbled across something interesting. I have
this issue when I define the scope of the converter bean to be
@ApplicationScoped
If it is dependent scope, which is the default, it works fine.
I think this has something to do with Proxying & Passivation. I do not know the
CDI spec well enough but from what I understand, a proxy is used for long-life
beans (like ones which are application scoped). These are then passivated when
not used and brought back to life when necessary.
I was trying to use ApplicationScoped since there is no need to have multiple
copies of the bean hanging about.
This can be worked around. It may be enough to document this limitation since
it impacts a very specific case.
Original comment by shriram....@gmail.com
on 4 Feb 2013 at 12:36
Many thanks for the explanation as you suggest may be a wiki page with known
issues / limitations should be helpful for people considering using Orika.
Original comment by elaat...@gmail.com
on 4 Feb 2013 at 12:47
Original comment by elaat...@gmail.com
on 4 Feb 2013 at 12:47
Original issue reported on code.google.com by
shriram....@gmail.com
on 31 Jan 2013 at 2:53