Hi,
I am getting java.lang.NullPointerException in my Instantiation Form in Bonita Studio.
I discovered that it is because I have a file in it and have configured its Initial Content to “From Contract”.
The problem started with Bonita Studion 7.0.3 and remains on version 7.1.0.
It does not matter if the FILE field of the form has a value or not.
Here is how to reproduce the problem.
- Create a new diagram.
- Create a contract in the Execution tab of the Pool, with only a FILE input in it.
- Create an auto-generated form to the Instantiation Form.
- Edit the form and put an error text message in it for the submit button.
- Create a Document on the Pool Data tab and set its initial content to “From Contract”, linking it to the contract FILE input.
- Fulfill any needs so the process may run with no errors.
That’s it. No matter if you set formInput in the form, to { } or null, or if you try to send a file from your computer, the result will always be a “java.lang.NullPointerException” in the form and in the Engine Log.
Any suggestions aside not using Instantiation Forms to attach files?
Regards.