GithubHelp home page GithubHelp logo

wiki's Introduction

TRON Wiki

Getting Started

The documentation is currently hosted on http://wiki.tron.network

How to participate

Guide to Wiki file revision

We encourage TRON community members to participate in the revision of our Wiki files regarding their content and format.

  1. Sign in to Github. Enter Wiki repository on TRON Protocol homepage and create a new fork.
  2. Clone the Wiki repository to your local repository.
  3. Submit your revised file to future branch in Wiki repository.
  4. Revise the existing files or create new files in the docs folder. Save images to the img folder in the docs folder.
  5. Submit your revised file to the future branch in Wiki repository.

Notes

  1. Before getting down to revision, please first make sure you know how to configure Git and create repository. Mac users can download Git here.

  2. Before getting down to revision, please also acquaint yourself with RST grammar and the document generator Sphinx.

  3. Once you’ve completed your revision, please submit it to the future branch in Wiki repository.

  4. Please make sure to revise the existing files or create new files in docs folder.

For user not knowing how to use Sphinx, we welcome you participate in the revision of file contents and be concerned about file layout or format. You needless spare your attention to other files in the Wiki folder besides RST files in the docs folder.

Regarding docs files, please note the following:

  1. Don’t delete or edit any file that’s not in RST format, e.g. conf.py, inde.html, Makefile etc.
  2. Changes in index.rst files will be directly reflected in file directory.
  3. Headings for RST files:
  • ==== symbolizes H1, ---- symbolizes H2 and ~~~~ symbolizes H3.

  • Changes to headings under ==== in the index.rst file will alter the general directory.
  • Changes to headings under ---- and ~~~~ will alter the table of contents in individual RST files.

wiki's People

Contributors

codeninjaevan avatar conglinduye avatar devobs1 avatar haoqizhao avatar justpassingthrough avatar khuezy avatar kondax avatar kookiekrak avatar lucien-tronlab avatar lvs007 avatar parsifal1984 avatar rovak avatar sasaxie avatar sean-liu55 avatar styk-tv avatar tronfoundation avatar ybhgenius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wiki's Issues

Missing the roadmap for translations

I can help translate the documentation into Arabic and Spanish, the Arab world is made up of more than 20 countries, it would be very interesting to do a translation, I will gladly take care of the translation

minor typo in TRX.rst

What is the problem?

It is used to vote for super representatives and to get bandwide.

Also, he will get bandwide paid for transactions which is calculated by amount of frozen balance * days * constant.

Minimal denomination of TRX is sun. 1 TRX equals 1,000,000 sun. 1 sun frozen got 1 bandwide point.

It looks like bandwide is typo error. isn't it? bandwidth would be better choice to make it clear.

How do you reproduce this problem?
https://tron-wiki.readthedocs.io/en/latest/TRX.html

search keyword bandwide

Additional information:

lombok plugin must installed before running 'FullNode.main()' In IntelliJ IDEA

What is the problem?
In IntelliJ IDEA

After the building finishes, locate FullNode in the project structure view panel, which is on the path java-tron/src/main/java/org.tron/program/FullNode.
Select FullNode, right click on it, and select Run 'FullNode.main(), then FullNod starts running.

compile error, field "logger" is not declare

How do you reproduce this problem?
Install lombok plugin。

File -> Plugins, type "lombok" and Click "Browse repositories".

find it and install

prevent direct push to master

no one should be able to push directly to master branch. the workflow should be as follows:

  • create a branch or a forked branch and publish your change
  • create a pr from new branch against master branch
  • this will eventually trigger intermediate verification in travis-ci (currently peer review)
  • only after build confirmed and reviewed we agree to merge into master
  • merge into master will trigger rebuild and republish by RTD engine

task: can we verify no one can push directly to master and only through a PR?

Roadmap for translations

For now, there should be at least two languages of the Wiki. One in English and one in Mandarin.

CNAME

wiki.tron.network (or other agreed domain) add CNAME record pointing to readthedocs.io.

add readme.md from java-tron into wiki

  • create future branch and map rtd so we can do previews
  • java-tron is using images from wiki repo, for now not moving making copy into /docs/img/ so we don't break any outside references
  • use tron-java readme.md to create QuickStart page. redesign for Sphinx, add images
  • add contributions page
  • update images on the introduction page (fix file names from numerical to meaningful)

this is work in progress until its closed. preview of new site can be viewed here http://wiki.tron.network/en/future/quick_start.html

generateAddress

Hello!

  1. In Tronscan API there is Solidity GRPC API. Does it some outdated functional?

  2. What algorithm is used for generate address? And how can i check the address is valid? except for get exception when use api - /api/account/{address}

In tronprotocol/wallet-cli i find next -

The account address is calculated by the public key sha3-256, and taking the last 20 bytes

but when i generate address at website tronscan.org it have 34 bytes length, and in method validateAddress the address length is checked and compared with const equal 21.
int ADDRESS_SIZE = 21;

tronprotocol/wallet-cli use next constants

byte ADD_PRE_FIX_BYTE_MAINNET = (byte) 0x41;   //41 + address
byte ADD_PRE_FIX_BYTE_TESTNET = (byte) 0xa0;   //a0 + address

but address from website is T..... (start from 'T' byte, it's 0x54)

I'm confused

How does the TVM work?

Hi Tron team ( @sasaxie ), thanks for providing some docs on TRON. I've read the introduction and I've got some questions regarding how the TVM works.

"The TVM boots very fast, occupies less resources"

Okay, how does it do that?

"The TRON Network plans to charge for the operation and storage of tokens and smart contracts to achieve economic incentives to book-keeping persons and to prevent the abuse of resources"

Is that how the TVM going to determine smart contract termination (similar to EVM)?

"TRON has a life cycle for smart contracts management, respectively are: the establishment, deployment, development, rollback, termination"

What triggers the rollback stage? can you provide example executions of a sample smart contract running in the TVM?

Finally, how many TPS can TVM do?

Facing issue on build creation

Creating build for the testnet but it shows the error, tried all the possible but not succeed:

org.tron.core.db.api.StoreAPITest > classMethod FAILED
java.lang.ExceptionInInitializerError

    Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blockIndex' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/api/index/BlockIndex.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db2.core.ITronChainBase]: : Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
        at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
        at org.tron.common.application.TronApplicationContext.<init>(TronApplicationContext.java:17)
        at org.tron.core.db.api.StoreAPITest.<clinit>(StoreAPITest.java:111)

        Caused by:
        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
            at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
            at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
            ... 15 more

            Caused by:
            org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:571)
                at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
                ... 27 more

                Caused by:
                org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
                    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:543)
                    ... 29 more

                    Caused by:
                    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.beforeSingletonCreation(DefaultSingletonBeanRegistry.java:347)
                        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
                        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
                        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
                        at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
                        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
                        ... 40 more

org.tron.core.db.api.StoreAPITest > classMethod FAILED
java.lang.NoClassDefFoundError: Could not initialize class org.tron.core.db.api.StoreAPITest

org.tron.core.db.api.IndexHelperTest > classMethod FAILED
java.lang.ExceptionInInitializerError

    Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blockIndex' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/api/index/BlockIndex.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db2.core.ITronChainBase]: : Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
        at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
        at org.tron.common.application.TronApplicationContext.<init>(TronApplicationContext.java:17)
        at org.tron.core.db.api.IndexHelperTest.<clinit>(IndexHelperTest.java:50)

        Caused by:
        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
            at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
            at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
            at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
            ... 15 more

            Caused by:
            org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:571)
                at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
                ... 27 more

                Caused by:
                org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
                    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:543)
                    ... 29 more

                    Caused by:
                    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.beforeSingletonCreation(DefaultSingletonBeanRegistry.java:347)
                        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
                        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
                        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
                        at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
                        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
                        at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
                        ... 40 more

org.tron.core.db.api.IndexHelperTest > classMethod FAILED
java.lang.NoClassDefFoundError: Could not initialize class org.tron.core.db.api.IndexHelperTest

org.tron.core.db.RevokingStoreTest > testPop FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blockIndex' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/api/index/BlockIndex.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db2.core.ITronChainBase]: : Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:84)
at org.tron.common.application.TronApplicationContext.(TronApplicationContext.java:17)
at org.tron.core.db.RevokingStoreTest.init(RevokingStoreTest.java:39)

    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
        ... 15 more

        Caused by:
        org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.tron.core.db.api.IndexHelper org.tron.core.db.TronStoreWithRevoking.indexHelper; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:571)
            at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
            at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
            ... 27 more

            Caused by:
            org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexHelper': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:543)
                ... 29 more

                Caused by:
                org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'blockIndex': Requested bean is currently in creation: Is there an unresolvable circular reference?
                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.beforeSingletonCreation(DefaultSingletonBeanRegistry.java:347)
                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
                    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512)
                    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
                    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
                    at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
                    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
                    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
                    ... 40 more

java.lang.NullPointerException
    at org.tron.core.db.RevokingStoreTest.removeDb(RevokingStoreTest.java:48)

org.tron.core.db.RevokingStoreTest > testUndo FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blockIndex' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/api/index/BlockIndex.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db2.core.ITronChainBase]: : Error creating bean with name 'blockStore' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/BlockStore.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/BlockStore.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:84)
at org.tron.common.application.TronApplicationContext.(TronApplicationContext.java:17)
at org.tron.core.db.RevokingStoreTest.init(RevokingStoreTest.java:39)

    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/BlockStore.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
        ... 15 more

        Caused by:
        org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
            at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
            ... 28 more

            Caused by:
            java.lang.RuntimeException: Can't initialize database
                at org.tron.common.storage.leveldb.LevelDbDataSourceImpl.initDB(LevelDbDataSourceImpl.java:92)
                at org.tron.core.db2.core.RevokingDBWithCachingOldValue.<init>(RevokingDBWithCachingOldValue.java:28)
                at org.tron.core.db2.core.RevokingDBWithCachingOldValue.<init>(RevokingDBWithCachingOldValue.java:22)
                at org.tron.core.db.TronStoreWithRevoking.<init>(TronStoreWithRevoking.java:42)
                at org.tron.core.db.BlockStore.<init>(BlockStore.java:36)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
                ... 30 more

                Caused by:
                org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: lock /home/rahul/Documents/bblab/java-tron/output_revokingStore_test/database/block/LOCK: already held by process
                    at org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200)
                    at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218)
                    at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168)
                    at org.tron.common.storage.leveldb.LevelDbDataSourceImpl.openDatabase(LevelDbDataSourceImpl.java:105)
                    at org.tron.common.storage.leveldb.LevelDbDataSourceImpl.initDB(LevelDbDataSourceImpl.java:89)
                    ... 39 more

java.lang.NullPointerException
    at org.tron.core.db.RevokingStoreTest.removeDb(RevokingStoreTest.java:48)

org.tron.core.db.RevokingStoreTest > shutdown FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'blockIndex' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/api/index/BlockIndex.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.tron.core.db2.core.ITronChainBase]: : Error creating bean with name 'blockStore' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/BlockStore.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/BlockStore.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:84)
at org.tron.common.application.TronApplicationContext.(TronApplicationContext.java:17)
at org.tron.core.db.RevokingStoreTest.init(RevokingStoreTest.java:39)

    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blockStore' defined in file [/home/rahul/Documents/bblab/java-tron/build/classes/java/main/org/tron/core/db/BlockStore.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1145)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1069)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:967)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
        ... 15 more

        Caused by:
        org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.tron.core.db.BlockStore]: Constructor threw exception; nested exception is java.lang.RuntimeException: Can't initialize database
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
            at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
            ... 28 more

            Caused by:
            java.lang.RuntimeException: Can't initialize database
                at org.tron.common.storage.leveldb.LevelDbDataSourceImpl.initDB(LevelDbDataSourceImpl.java:92)
                at org.tron.core.db2.core.RevokingDBWithCachingOldValue.<init>(RevokingDBWithCachingOldValue.java:28)
                at org.tron.core.db2.core.RevokingDBWithCachingOldValue.<init>(RevokingDBWithCachingOldValue.java:22)
                at org.tron.core.db.TronStoreWithRevoking.<init>(TronStoreWithRevoking.java:42)
                at org.tron.core.db.BlockStore.<init>(BlockStore.java:36)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
                ... 30 more

                Caused by:
                org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: lock /home/rahul/Documents/bblab/java-tron/output_revokingStore_test/database/block/LOCK: already held by process
                    at org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200)
                    at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218)
                    at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168)
                    at org.tron.common.storage.leveldb.LevelDbDataSourceImpl.openDatabase(LevelDbDataSourceImpl.java:105)
                    at org.tron.common.storage.leveldb.LevelDbDataSourceImpl.initDB(LevelDbDataSourceImpl.java:89)
                    ... 39 more

java.lang.NullPointerException
    at org.tron.core.db.RevokingStoreTest.removeDb(RevokingStoreTest.java:48)

Adding .NET development project

I have started working a .NET version of the protocol. Adding all the grpc calls and first version of address generation and transaction signing.
The code can be accessed here
https://github.com/griffo-io/tron.net
I would like also this to participate in the Tron's incentive program.
What are the required steps for this?

Glitch? Tron Wallet two addresses

@sasaxie

Hi Tron Team - I've found a glitch perhaps?

When I create a wallet at debug.tronlab.com vs. www.tronlab.com they are giving me two different tron deposit wallet addresses (someone linked me to the debug site first). Tron.network gave me the same deposit address as www.tronlab.com. The only deposit address that is NOT the same is debug.tronlab.com.

So I created account, did a deposit (to debug.tronlab.com) and the deposit is NOT showing in the account. Is the debug website not functioning properly to recognize the deposit? Who can I contact to resolve issue? I couldn't find any Tron team members to email.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.