question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error creating bean with name 'proxyStarter'

See original GitHub issue

I’m running this on Ubuntu 18.04

sudo docker run -p 2449:2449 -p 8545:8545 -v /etc/dshackle:/etc/dshackle -e "INFURA_USER=$INFURA_USER" emeraldpay/dshackle

Emerald Dshackle - Smart Load Balancer for Blockchain API
   https://github.com/emeraldpay/dshackle
   v0.6.0 built from e3b512ca80 on 2020-04-10T01:30:41 UTC
...
16:14:22.107 [main                ] WARN                  TlsSetup | Using insecure transport for proxy
16:14:22.150 [main                ] WARN  ConfigApplicationContext | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proxyStarter': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: io.netty.channel.SingleThreadEventLoop.<init>(Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;ZLjava/util/Queue;Ljava/util/Queue;Lio/netty/util/concurrent/RejectedExecutionHandler;)V
16:14:22.150 [main                ] INFO                GrpcServer | Shutting down GRPC Server...
16:14:22.155 [main                ] INFO                GrpcServer | GRPC Server shot down
16:14:22.165 [main                ] ERROR gFailureAnalysisReporter |

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

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    io.netty.channel.epoll.EpollEventLoop.<init>(EpollEventLoop.java:90)

The following method did not exist:

    io.netty.channel.SingleThreadEventLoop.<init>(Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;ZLjava/util/Queue;Ljava/util/Queue;Lio/netty/util/concurrent/RejectedExecutionHandler;)V

The method's class, io.netty.channel.SingleThreadEventLoop, is available from the following locations:

    jar:file:/app/libs/netty-transport-4.1.34.Final.jar!/io/netty/channel/SingleThreadEventLoop.class
    jar:file:/app/libs/netty-all-4.1.48.Final.jar!/io/netty/channel/SingleThreadEventLoop.class

It was loaded from the following location:

    file:/app/libs/netty-transport-4.1.34.Final.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of io.netty.channel.SingleThreadEventLoop

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
splixcommented, Jun 29, 2020

@bessalahAmar if you’re asking how I fixed it in the code, it was because of duplicate libs for Netty. I had netty-all, and individual modules as transients. They were conflicting because of different versions. See the fix 25a872fc9c99

1reaction
MysticRyuujincommented, Jun 29, 2020

When they updated the docker the issue was fixed for me…

I don’t have this issue with the latest docker image. I have other issues, but not this one 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnsatisfiedDependencyException: Error creating bean with ...
I can't solve this errors. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientController': ...
Read more >
Secondary machine in the cluster is not starting (Error creating ...
org.springframework.beans.factory.BeanCreationException : Error creating bean with name 'jmxExporter' defined in ServletContext resource ...
Read more >
Error creating bean with name 'linkDiscoverers ... - YouTube
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'linkDiscoverers' defined in ...
Read more >
Error creating bean with name 'entityManagerFactory' defined ...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class ...
Read more >
BeanCreationException Error creating bean with name ...
spring #springerror #beancreationexception # bean # error #noidentifierexpected #hibernate #jpa #mysql #jdbc #connectmysqlwithspringboot ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found