Getting started tutorial - Exception after Submit

1
0
-1

Hi everyone,

I've just started playing around with Bonitasoft by following the getting started tutorial [1].
Everything worked out well until the section "Run process". After I fill out the request form and click the Submit button nothing happens. I checked the server response and I'm getting the following:

exception: class org.bonitasoft.engine.exception.BonitaRuntimeException
message: USERNAME=walter.bates | org.bonitasoft.engine.persistence.SRetryableException: javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : com.company.model.TravelRequest.status

The Studio log (from before clicking on the "Run" button in the Studio) looks like this:

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:23.730
!MESSAGE Attempt to login as walter.bates

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:23.762
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:23.996
!MESSAGE Building bar for process Travel Request (1.0 )...

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:24.433
!MESSAGE Build complete for process Travel Request (1.0 ).

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:24.450
!MESSAGE Attempt to login as walter.bates

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:24.468
!MESSAGE Login successful.

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:24.664
!MESSAGE Attempt to login as walter.bates

!ENTRY org.bonitasoft.studio.engine 1 0 2017-08-16 12:48:24.671
!MESSAGE Login successful.

Does somebody have any idea what the problem might be?
Thanks in advance.

[1] https://documentation.bonitasoft.com/?page=getting-started-tutorial#

1 answer

1
0
-1
This one is the BEST answer!

Hi,

It's look like that you are trying to instantiate a business variable (travelRequest default value) without settings the value for a mandatory attribute (status).

In the getting started tutorial take a look at "Define business object initial values" section: make sure that your default value script set the status of the travelRequest: travelRequestVar.status = "pending".

If you still facing some issues you can export your process + BDM +... as a single .bos file and share it using Google Drive, Dropbox... so I can give it a try.

Comments

Submitted by vitiellom on Wed, 08/16/2017 - 15:01

Hi,

thanks for the help. Indeed I was missing the set for status and refusalReason (I had some problems with the tutorial the first time and ended up redoing the contracts from scratch as some users suggested in another question. And that is when I forgot the set operation probably).
Now everything works except the Browse of the BDM through the h2 console, which does not show up in the browser. Any thoughts?

Thanks again.
Best

Submitted by antoine.mottier on Wed, 08/16/2017 - 18:22

I suggest you open a different question for the issue with h2 console. We fix some issue related to the h2 console in version 7.5.3 some maybe you can try to upgrade?

Notifications