Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-1918

[ENG](6.1.z) NullPointerException during fresh Business Central startup

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 6.1.0
    • 6.1.0
    • Business Central
    • None

      +++ This bug was initially created as a clone of Bug #1199215 +++

      Description of problem:
      Sometimes, NullPointerException at RepositoryServiceImpl.getRepositoryHistory() [1] is logged on error level during startup of freshly installed BPMS Business Central.

      [1] org.guvnor.structure.backend.repositories.RepositoryServiceImpl.getRepositoryHistory(RepositoryServiceImpl.java:374) [guvnor-structure-backend-6.2.0.Final-redhat-2.jar:6.2.0.Final-redhat-2]

      Version-Release number of selected component (if applicable):
      BPMS 6.1.0.ER6

      How reproducible:
      Sometimes/rarely.

      Steps to Reproduce:
      1. Unzip jboss-bpmsuite-6.1.0.ER6-deployable-eap6.x.zip into EAP 6.4.
      2. Start the server, watch console log.

      Actual results:
      Sometimes NPE is logged on error.

      Expected results:
      Null reference check should be added to avoid the NPE.

      Additional info:

      — Additional comment from on 2015-03-06 06:09:24 EST —

      Can you please advise the link to download BPMS Business Central?

      The installation doesn't look to be completely empty as the log shows "Starting indexing of default://master@repository1/ .." and I'd like to understand where that comes from. Looking at the code there is potential for the NPE to occur if an Organizational Unit references a non-existent Repository... but I'd like to replicate here, locally, before fixing.

      — Additional comment from Kris Verlaenen on 2015-03-06 08:46:17 EST —

      http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpmsuite-6.1.0.ER6/

      Since the product doesn't include the playground repos (-Dorg.kie.demo=false), it uses -Dorg.kie.example=true to create a demo OU, repository and project.

      — Additional comment from Jiri Locker on 2015-03-06 09:22:06 EST —

      Yep. This is the code responsible for creating repository1 with example project https://github.com/droolsjbpm/kie-wb-distributions/blob/8b96b972c4d037b74f6f13e5fc78da89885cbe48/kie-drools-wb/kie-drools-wb-webapp/src/main/java/org/kie/workbench/drools/backend/server/AppSetup.java#L129-L143.

      — Additional comment from on 2015-03-16 11:00:42 EDT —

      guvnor
      ------
      (master) http://github.com/droolsjbpm/guvnor/commit/d2fc412ab

      This is a work-around; for what appears to be a race condition (that not matter how many times I tried to replicate, was unable). OUs have Repositories associated with them by alias and org.kie.workbench.common.screens.contributors.backend.dataset.ContributorsManager is trying to load the Repository history before the Repository is available.

      — Additional comment from on 2015-03-16 11:02:08 EDT —

      — Additional comment from on 2015-03-16 11:02:16 EDT —

              manstis@redhat.com Michael Anstis
              manstis@redhat.com Michael Anstis
              Archiver:
              rhn-support-ceverson Clark Everson
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              Alessandro Lazarotti, Cheng Zhang (Inactive), Jiří Locker (Inactive), Kris Verlaenen, Lukáš Petrovický (Inactive), Petr Široký (Inactive), Tomáš Livora (Inactive), Zuzka Krejčová (Inactive)

                Created:
                Updated:
                Resolved:
                Archived: