Comments on: Introduction to Blockchain with Java using Ethereum, web3j and Spring Boot https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/ Java, Spring, Kotlin, microservices, Kubernetes, containers Mon, 12 Jul 2021 10:46:29 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-1185 Mon, 12 Jul 2021 10:46:29 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-1185 In reply to Marcio Barcellos.

Ok, thanks

]]>
By: Marcio Barcellos https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-1170 Mon, 05 Jul 2021 18:01:38 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-1170 Use –allow-insecure-unlock

]]>
By: piotr.minkowski https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-999 Wed, 20 Jan 2021 09:55:40 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-999 In reply to eugen-f.

Hi. Well it has been created a while ago…

]]>
By: eugen-f https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-990 Mon, 18 Jan 2021 22:01:38 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-990 Hi Piotr, thank you!
But now in Geth is personal.unlockAccount is not allowed any more!
GoError: Error: account unlock with HTTP access is forbidden at web3.js:6347:37(47)

Solution: sendTransaction only from eth.coinbase to other accounts.

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-543 Wed, 03 Apr 2019 17:53:39 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-543 In reply to Yuri Mednikov.

Hi Yuri. You’re welcome

]]>
By: Yuri Mednikov https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-542 Tue, 02 Apr 2019 08:30:53 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-542 Hi, Piotr! Thanks for this informative post

]]>
By: Hari https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-541 Thu, 01 Nov 2018 05:20:49 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-541 i tried to get this working with rinkeby -> client-address: https://rinkeby.infura.io/v3/… but the test fails with it. would be great if you can take it more closer to the test net functionality. With geth: is there anyway to unlock the accounts so that transactions don’t fail with error asking to unlock accounts.

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-540 Tue, 30 Oct 2018 22:42:56 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-540 In reply to Hari.

Ok, thanks for this information. I accepted a pull request to this repo with some changes, but maybe I didn’t verify them properly. I’ll take a look on it in the free time

]]>
By: Hari https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-539 Fri, 26 Oct 2018 02:51:50 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-539 the git repo works fine if you checkout commit 77e3a5d8697c22b378c0ca6e1e69a112e9e62323. It seems to be broken after that. i had to use client-address: http://127.0.0.1:8545 to get mvn package to pass test

]]>
By: Hari https://piotrminkowski.com/2018/06/22/introduction-to-blockchain-with-java-using-ethereum-web3j-and-spring-boot/#comment-538 Fri, 26 Oct 2018 01:00:40 +0000 https://piotrminkowski.wordpress.com/?p=6699#comment-538 i cloned the git repo, did mvn compile followed by mvn package. it failed during mvn package with this error “main] o.w.s.a.Web3jAutoConfiguration : Building service for endpoint: http://172.17.0.2:8545 main] o.s.w.c.s.GenericWebApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘blockchainApp’: Invocation of init method failed; nested exception is rx.exceptions.OnErrorNotImplementedException: Error sending request

i think it has something to do with IP address of web3j client. I used IP address of the docker container, obtained with docker inspect 91b61f3b6ce8 | grep ‘”IPAddress”‘ | head -n 1 . (and it is 172.17.0.2 in my case)

]]>