New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.3.0.M1 Field springTaskExecutor in org.grails.events.bus.spring.EventBusFactoryBean required a single bean, but 4 were found #4

Closed
erichelgeson opened this Issue May 18, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@erichelgeson
Copy link

erichelgeson commented May 18, 2017

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

Create a fresh 3.3.0.M1 app
Add compile "org.grails.plugins:grails-spring-websocket:2.3.0"

Expected Behaviour

App starts without exception

Actual Behaviour

***************************
APPLICATION FAILED TO START
***************************

Description:

Field springTaskExecutor in org.grails.events.bus.spring.EventBusFactoryBean required a single bean, but 4 were found:
        - clientInboundChannelExecutor: defined by method 'clientInboundChannelExecutor' in org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration
        - clientOutboundChannelExecutor: defined by method 'clientOutboundChannelExecutor' in org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration
        - brokerChannelExecutor: defined by method 'brokerChannelExecutor' in org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration
        - messageBrokerTaskScheduler: defined by method 'messageBrokerTaskScheduler' in org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration

Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed


FAILURE: Build failed with an exception.

Environment Information

  • Operating System: Mac latest
  • Grails Version: 3.3.0.M1
  • JDK Version: 1.8u121

Example Application

n/a

@erichelgeson

This comment has been minimized.

Copy link

erichelgeson commented May 30, 2017

Verified working in M2, ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment