java.lang.NullPointerException when there is a FILE in the Instantiation Form

1
0
-1

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.
1) Create a new diagram.
2) Create a contract in the Execution tab of the Pool, with only a FILE input in it.
3) Create an auto-generated form to the Instantiation Form.
4) Edit the form and put an error text message in it for the submit button.
5) Create a Document on the Pool Data tab and set its initial content to "From Contract", linking it to the contract FILE input.
6) 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.

Comments

Submitted by Sean McP on Mon, 09/21/2015 - 14:36

I would add it to the Bug Tracker...I've not tested it yet but it's a problem for me.

thanks

2 answers

1
+1
-1
This one is the BEST answer!

Hi,

This is a known issue that affects documents initialized from instantiation contracts in Bonita BPM 7.0.3 and 7.1. The fix should be part of Bonita BPM 7.1.1 which will be out in approximately two weeks.

Cheers,

1
0
-1

Thanks,

Will anxiously wait.
Regards.

Notifications