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

Issue in lesson 31 (configuring qaurkus demo) #4

Closed
MortenCroese opened this issue Sep 20, 2022 · 1 comment
Closed

Issue in lesson 31 (configuring qaurkus demo) #4

MortenCroese opened this issue Sep 20, 2022 · 1 comment

Comments

@MortenCroese
Copy link

Hi!
I'm in lession 31 and trying to open the config editor (http://localhost:8080/q/dev/) as in the demo.

But ... I get an internal server error.
java.lang.StringIndexOutOfBoundsException: begin 1, end 0, length 1
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4604)
at java.base/java.lang.String.substring(String.java:2707)
at io.quarkus.vertx.http.runtime.devmode.ConfigDescriptionsManager.calculate(ConfigDescriptionsManager.java:100)
at io.quarkus.vertx.http.runtime.devmode.ConfigDescriptionsManager.values(ConfigDescriptionsManager.java:59)

In the console I see:
2022-09-19 20:47:07,086 WARN [io.net.res.dns.DnsServerAddressStreamProviders] (build-35) Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.

Looking on the web, I saw a solution that didn't work for me (konveyor/tackle-pathfinder#190 It looked like the same issue except in the solution the "io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider" was { }).

I'm on an Apple M1. Using Java SE 17.0.4.1, GraalVM EE 22.2.0 and Apache Maven 3.8.6.

Please advice.

@MortenCroese
Copy link
Author

Solved it.

Used the previously mentioned solution but updated the classifier to the M1 chip (duh ;-) )

<dependency>
  <groupId>io.netty</groupId>
  <artifactId>netty-resolver-dns-native-macos</artifactId>
  <version>4.1.82.Final</version>
  <classifier>osx-aarch_64</classifier>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant