Bug 1292384

Summary: 'WARN Error getting form null' after adding subform
Product: [Retired] JBoss BPMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Form ModelerAssignee: Pere Fernàndez <pere.fernandez>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: lpetrovi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:48:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zuzana Krejčová 2015-12-17 09:39:55 UTC
Description of problem:
After user adds a subform in the Form Modeler, the server log gets the following message for each action done in the FM, until the default forms are set for the subform:

WARN  [org.jbpm.formModeler.panels.modeler.backend.EditionFormFinder] (...) Error getting form null from context formRenderCtx_1904520124_1450343389094: java.lang.IllegalArgumentException: Parameter named 'other' should be not null!

Simply adding the default form to the subform element stops these WARN logs.

The issue is two-fold. First, the log message doesn't really say much - anyone going through the logs won't have much of a clue what's wrong. Second, it really isn't a problem as long as the user just works on the form, all is good until the form is saved and used in such an invalid state. So the WARN msg is a bit unwarranted at this point.


Version-Release number of selected component (if applicable):
BPMS 6.2 CR2


Steps to Reproduce:
1. Create 2 forms with the Form Modeler, 'form' and 'subform'. Watch the server log.
2. Switch to 'Add fields by type' tab in the 'form'.
3. Add a 'Short text' element - nothing interesting in the server log.
4. Add 'Simple subform' element - server log shows the WARN msg.
5. Add a 'Short text' element - server log shows another WARN msg.
6. Edit the subform element - server log shows another WARN msg. But also the subform is automatically selected as the default (sub)form.
7. Add a 'Short text' element - no more WARNs in the server log.