Ticket #75 (closed enhancement)

Opened 4 years ago

Last modified 4 years ago

assigning events or samplingevents to sampling groeps gives error after #635

Reported by: kees.vanbochove@… Owned by: j.a.m.wesbeek@…
Priority: major Milestone:
Component: Study create wizard Version:
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

It seems that a problem is introduced in #635 because the representation of flow.events is changed from a list to a map (WizardController?.groovy:395).
This was done because it was needed for handling the deletion of events.

Hoewever, now clicking a tick to assign an event to an event group in the event step of the create wizard throws an exception:

2010-07-02 13:50:58,143 [http-8080-5] ERROR builder.ClosureInvokingAction? - Exception occured invoking flow action: No signature of method: dbnp.studycapturing.EventGroup?.addToEvents() is applicable for argument types: (java.util.LinkedHashMap?$Entry) values: [1=]
Possible solutions: addToEvents(java.lang.Object), getEvents()
groovy.lang.MissingMethodException?: No signature of method: dbnp.studycapturing.EventGroup?.addToEvents() is applicable for argument types: (java.util.LinkedHashMap?$Entry) values: [1=]
Possible solutions: addToEvents(java.lang.Object), getEvents()
at dbnp.studycapturing.WizardController?$_handleEventGrouping_closure19_closure129.doCall(WizardController?.groovy:1229)
at dbnp.studycapturing.WizardController?$_handleEventGrouping_closure19.doCall(WizardController?.groovy:1227)
at dbnp.studycapturing.WizardController?.handleEventGrouping(WizardController?.groovy:1220)
at dbnp.studycapturing.WizardController?$handleEventGrouping.callCurrent(Unknown Source)
at dbnp.studycapturing.WizardController?.handleEvents(WizardController?.groovy:1205)
at dbnp.studycapturing.WizardController?$_closure2_closure35_closure79.doCall(WizardController?.groovy:573)
at org.apache.shiro.web.servlet.ShiroFilter?.executeChain(ShiroFilter?.java:687)
at org.apache.shiro.web.servlet.ShiroFilter?.doFilterInternal(ShiroFilter?.java:616)
at org.apache.shiro.web.servlet.OncePerRequestFilter?.doFilter(OncePerRequestFilter?.java:81)
at java.lang.Thread.run(Thread.java:637)
2010-07-02 13:50:58,146 [http-8080-5] ERROR errors.GrailsExceptionResolver? - Exception thrown executing org.codeha​us.groovy.​grails.web​flow.engin​e.builder.​ClosureInv?​okingActio​n@68c001cd in state 'events' of flow 'wizard/pages' -- action execution attributes were 'map[[empty]]'

Also, there seems to be more inconsistency, e.g. an event is added list-wise on line 467 of the WizardController?:
flow.events[ increment ] = newEvent

Change History

Changed 4 years ago by kees.vanbochove@…

where newEvent is actually of type Event

Note: See TracTickets for help on using tickets.