Issue in Publisher Facade
Services using Publisher Fascare from this MR. They would fail with below error:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field pubSubAttributesBuilder in org.opengroup.osdu.azure.publisherFacade.EventGridPublisher required a bean of type 'org.opengroup.osdu.azure.publisherFacade.models.PubSubAttributesBuilder' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.opengroup.osdu.azure.publisherFacade.models.PubSubAttributesBuilder' in your configuration.
Root cause:
Autowiring beans which are not declared as Spring bean:
@Autowired private PubSubAttributesBuilder pubSubAttributesBuilder;
@Lazy @Builder public class PubSubAttributesBuilder {
Solution:
Remove unused reference of private PubSubAttributesBuilder pubSubAttributesBuilder
from src/main/java/org/opengroup/osdu/azure/publisherFacade/EventGridPublisher.java
& src/main/java/org/opengroup/osdu/azure/publisherFacade/ServiceBusPublisher.java