Yes, I see the problem described here, but was not sure if declaring a sofa mapping for a CM is allowed.
We made the CM view aware instead of using the mapping, and that of course works well. Should we open a jira? I am not sure I can follow your proposed fix, why is the CM expected to create a new CAS with view v? I am getting the exception when the system is initialized (would take me a few minutes to reproduce this) and not when the CM gets its first CAS to process it. Jörn On 07/06/2012 09:38 PM, Eddie Epstein wrote:
Looks like a problem here. Mapping a named view to the CM input works correctly; that view is delivered to the CM's process method. But there is an exception when the CM calls getEmptyCAS() because the named view does not yet exist. One solution would be for getEmptyCAS() to create the specified view and then return it. Interestingly, just a few days ago I argued that the framework should not create views. see http://markmail.org/message/bwzamfci2uo7wx4i But this seems like a special case: a view-unaware CM has received a CAS with view V, and is expected to create new CASes with view V. Are you seeing the problem described here or another? Any comments on proposed fix? Eddie On Wed, Jul 4, 2012 at 6:53 AM, Jörn Kottmann <[email protected]> wrote:Hi all, are sofa mappings for CMs are supposed to work? Jörn
