Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1787

NullPointerException when adding resource and setting the X-KOGITO-StartFromNode header with persistence enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 0.11.0
    • 0.9.0
    • Core Engine
    • None
    • Hide

      1.- Checkout process-quarkus-example or process-springboot-example
      2.- Run the tests with persistence:

      mvn clean package -Ppersistence
      

      There will be an failing test called: PersonsRestTest.testPersonsRestStartFromUserTask which basically tries to add a persons starting from a concrete component using:

      POST: /persons
      Header: X-KOGITO-StartFromNode=UserTask_1
      Body: 
      {"person" : {"name" : "Jane Doe", "age" : 30}}
      

      The above call will fail when persistence is enabled with a null pointer exception at this line which was introduced in KOGITO-16.

      Show
      1.- Checkout process-quarkus-example or process-springboot-example 2.- Run the tests with persistence: mvn clean package -Ppersistence There will be an failing test called: PersonsRestTest.testPersonsRestStartFromUserTask which basically tries to add a persons starting from a concrete component using: POST: /persons Header: X-KOGITO-StartFromNode=UserTask_1 Body: { "person" : { "name" : "Jane Doe" , "age" : 30}} The above call will fail when persistence is enabled with a null pointer exception at this line which was introduced in KOGITO-16 .
    • 2020 Week 16-18 (from Apr 13), 2020 Week 19-21 (from May 4), 2020 Week 22-24 (from May 25)

    Description

      See steps to reproduce.

      Attachments

        Issue Links

          Activity

            People

              ftirados Francisco Javier Tirado Sarti
              jcarvaja@redhat.com Jose Carvajal Hilario
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: