holodeck-b2b / Holodeck-B2B

Holodeck B2B is an AS4 system-to-system messaging solution that implements the OASIS specifications for ebMS3 and it's AS4 profile. For more information visit the project website
http://holodeck-b2b.org
GNU General Public License v3.0
71 stars 36 forks source link

NPE on first initialization of pull workers #92

Closed sfieten closed 5 years ago

sfieten commented 5 years ago

A NPE can occur on the initialization of the pull workers when HB2B is started as the "pull worker pool" is not yet initialized by the Core (org.holodeckb2b.module.HolodeckB2BCoreImpl) when [indirectly] called by the worker watching its configuration (org.holodeckb2b.ebms3.pulling.PullConfigurationWatcher).

As a work around for this issue the start of the PullConfigurationWatcher can be delayed for a few seconds by adding a delay attribute to its declaration in workers.xml.