Skip to content
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

can't read @ConfigProperty #1

Closed
yurake opened this issue Dec 20, 2019 · 1 comment
Closed

can't read @ConfigProperty #1

yurake opened this issue Dec 20, 2019 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@yurake
Copy link
Owner

yurake commented Dec 20, 2019

git/k8s-3tier-webapp-minikube/application/redis-mysql-quarkus
% ./mvnw compile quarkus:dev


[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< org.acme:redis-mysql-quarkus >--------------------
[INFO] Building redis-mysql-quarkus 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ redis-mysql-quarkus ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ redis-mysql-quarkus ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- quarkus-maven-plugin:1.0.1.Final:dev (default-cli) @ redis-mysql-quarkus ---
Listening for transport dt_socket at address: 5005
The application is starting...
2019-12-20 17:17:49,727 INFO  [io.quarkus] (main) Quarkus 1.0.1.Final started in 0.956s. Listening on: http://0.0.0.0:8080
2019-12-20 17:17:49,785 INFO  [io.quarkus] (main) Profile dev activated. Live Coding activated.
2019-12-20 17:17:49,785 INFO  [io.quarkus] (main) Installed features: [cdi, jdbc-mysql, resteasy]
java.lang.IllegalArgumentException: hostname can't be null
	at java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149)
	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:216)
	at redis.clients.jedis.Connection.connect(Connection.java:181)
	at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:100)
	at redis.clients.jedis.Connection.setTimeoutInfinite(Connection.java:93)
	at redis.clients.jedis.Jedis.subscribe(Jedis.java:2787)
	at org.acme.service.RedisService.subscribeRedis(RedisService.java:39)
	at org.acme.events.TaskExecute.run(TaskExecute.java:13)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
the application is stopping...
@yurake
Copy link
Owner Author

yurake commented Feb 1, 2020

Quarkus provided Programmatically access the configuration.
see: config

@yurake yurake closed this as completed Feb 1, 2020
@yurake yurake added this to To do in Feature request via automation Mar 19, 2020
@yurake yurake moved this from To do to Done in Feature request Mar 19, 2020
@yurake yurake added good first issue Good for newcomers bug Something isn't working labels Mar 19, 2020
@yurake yurake self-assigned this Mar 19, 2020
gitbook-com bot pushed a commit that referenced this issue Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant