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.

jhipster 4.0 microservice : eureka password error

See original GitHub issue

I’m creating a new microservices project.

I’m using JHipster 4.0.5 and, according this issue [https://github.com/jhipster/generator-jhipster/issues/4905] Eureka password is define by jhipster.registry.password

So, in application-dev.yml Eureka configuration is, by default :

eureka: instance: prefer-ip-address: true client: enabled: true healthcheck: enabled: true registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://admin:${jhipster.registry.password}@localhost:8761/eureka/

in the file bootstrap-dev.yml the password definition is look good:

jhipster: registry: password: admin

When I launch my gateway (or microservice) I’ve got this error message

2017-02-17 10:32:12.794 ERROR 2064 — [ restartedMain] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error

java.lang.IllegalArgumentException: Illegal character in authority at index 7: http://admin:${jhipster.registry.password}@localhost:8761/eureka/

at java.net.URI.create(URI.java:852)

at com.sun.jersey.api.client.Client.resource(Client.java:434)

at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:187)

Work fine when I change my Eureka configuration in application-dev.yml to : defaultZone: http://admin:admin@localhost:8761/eureka/

My configuration

  • JHipster version : 4.0.5
  • Project : microservices
  • Registry version : 2.5.8
  • OS : Windows 7 64bits
  • Launch from IDE Intellj

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:24 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
PierreBessoncommented, Feb 22, 2017

I have submitted a PR to the docs: https://github.com/jhipster/jhipster.github.io/pull/398 @JulienVincendeau is it enough to close this issue for you ?

1reaction
pascalgrimaudcommented, Feb 20, 2017

yes you’re correct @PierreBesson !

Read more comments on GitHub >

github_iconTop Results From Across the Web

jhipster 4.0 microservice : eureka password error
I'm creating a new microservices project. I'm using JHipster 4.0.3 and, according this issue ...
Read more >
JHipster Registry
The JHipster Registry is secured by default. You can login using the usual “admin/admin” login and password that are used in normal JHipster...
Read more >
jhipster/generator-jhipster - Gitter
Hey, I try to run the job bootRun of a jhipster project after imorting a jdl file but the app won't run completely...
Read more >
The JHipster Mini-Book
Of course, writing an app with JHipster is the best learning tool! If you're interested in its microservices support, I'd recommend my ...
Read more >
Java Microservices with Spring Cloud Config and JHipster
Configure JHipster Microservices to Use Okta for Identity. Why Okta? ... serverPort 8081, serviceDiscoveryType eureka } entities Blog, Post, ...
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