Skip to content

Error creating bean with name 'blockMsgHandler': Injection of autowired dependencies failed #2379

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

Closed
ksemaev opened this issue Jul 23, 2019 · 2 comments
Labels
topic: Deployment configuration, startup command

Comments

@ksemaev
Copy link

ksemaev commented Jul 23, 2019

  1. What did you do?
    Tried to run Odyssey-v3.6.1 or Odyssey-v3.6.0 on ubuntu/alpine with openjdk8/oracle-jdk-8

  2. What did you expect to see?
    Running normally

  3. What did you see instead?

12:19:33.959 WARN [main] o.t.c.a.TronApplicationContext Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockMsgHandler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.net.TronNetDelegate org.tron.core.net.messagehandler.BlockMsgHandler.tronNetDelegate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tronNetDelegate': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.common.overlay.server.SyncPool org.tron.core.net.TronNetDelegate.syncPool; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'syncPool': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.common.overlay.discover.node.NodeManager org.tron.common.overlay.server.SyncPool.nodeManager; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nodeManager' defined in URL [jar:file:/home/tron/FullNode.jar!/org/tron/common/overlay/discover/node/NodeManager.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db.Manager]: : Error creating bean with name 'manager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.TransactionStore org.tron.core.db.Manager.transactionStore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.KhaosDatabase org.tron.core.db.TransactionStore.khaosDatabase; nested exception is java.lang.NoClassDefFoundError: javafx/util/Pair; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.TransactionStore org.tron.core.db.Manager.transactionStore; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.tron.core.db.KhaosDatabase org.tron.core.db.TransactionStore.khaosDatabase; nested exception is java.lang.NoClassDefFoundError: javafx/util/Pair

Trying to replicate the behaviour on plain ubuntu instance with openjdk-8 installed (and with oracle jdk on another ubuntu instance ):

 wget -q https://github.com/tronprotocol/java-tron/releases/download/Odyssey-v3.6.1/FullNode.jar
java -jar FullNode.jar
```. (just a test without configfile) and getting the same


Maybe there're some prerequisities missing?
@ksemaev
Copy link
Author

ksemaev commented Jul 23, 2019

It works on sullof/ubu18jdk8node10redis docker image, what's inside of it? Maybe @sullof can share dockerfile?

@ksemaev
Copy link
Author

ksemaev commented Jul 23, 2019

seems to be openjdk issue, worked with oracle 8.221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: Deployment configuration, startup command
Projects
None yet
Development

No branches or pull requests

2 participants