Posts

Showing posts from March, 2017

Logstash - logstash.runner, An unexpected error occurred! does not exist, and I failed trying to create it

Problem: [FATAL][logstash.runner          ] An unexpected error occurred! {:error=>#<ArgumentError: Path "<path>" does not exist, and I failed trying to create it
Solution: chmod -R 755 <path>
or,
chmod -R 755 <path>/..

spring @async causing BeanCurrentlyInCreationException

Problem: Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name '<bean name>': Bean with name '<bean name>' has been injected into other beans [<some other bean name>] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.

Solution: Autowire the beans by bean id

@Autowired
@Qualifier("<bean name>")
private <bean type> <var name>;

, for example

@Autowired
@Qualifier("publisher")
private Publisher publisher;