Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- 기록으로 실력을 쌓자
- Kubernetes
- Spring
- kotlin querydsl
- CKA 기출문제
- PETERICA
- MySQL
- IntelliJ
- kotlin spring
- 정보처리기사 실기 기출문제
- minikube
- CKA
- AWS EKS
- 오블완
- Java
- CloudWatch
- APM
- kotlin
- mysql 튜닝
- aws
- 공부
- Pinpoint
- kotlin coroutine
- 티스토리챌린지
- AI
- 정보처리기사 실기
- Elasticsearch
- Linux
- 정보처리기사실기 기출문제
- 코틀린 코루틴의 정석
Archives
- Today
- Total
피터의 개발이야기
[MacOS M1] DNS resolutions Error에 대한 Jar 설정 본문
반응형
ㅁ 들어가며
Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
- 에러에 대한 조치 과정을 정리하였다.
ㅁ 에러 내용
[admin] [restartedMain] [2023-04-21 11:46:32:7022] ERROR i.n.r.d.DnsServerAddressStreamProviders - Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at io.netty.resolver.dns.DnsServerAddressStreamProviders.<clinit>(DnsServerAddressStreamProviders.java:64)
at io.netty.resolver.dns.DnsNameResolverBuilder.<init>(DnsNameResolverBuilder.java:60)
at reactor.netty.transport.NameResolverProvider.newNameResolverGroup(NameResolverProvider.java:479)
at reactor.netty.tcp.TcpResources.getOrCreateDefaultResolver(TcpResources.java:315)
at reactor.netty.http.HttpResources.getOrCreateDefaultResolver(HttpResources.java:162)
at reactor.netty.http.client.HttpClientConfig.defaultAddressResolverGroup(HttpClientConfig.java:381)
at reactor.netty.transport.ClientTransportConfig.resolverInternal(ClientTransportConfig.java:224)
at reactor.netty.http.client.HttpClientConfig.resolverInternal(HttpClientConfig.java:435)
at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.lambda$subscribe$0(HttpClientConnect.java:266)
at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:58)
at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
at reactor.core.publisher.FluxRetryWhen.subscribe(FluxRetryWhen.java:77)
at reactor.core.publisher.MonoRetryWhen.subscribeOrReturn(MonoRetryWhen.java:46)
at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:273)
at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
at reactor.core.publisher.Mono.subscribe(Mono.java:4397)
at reactor.core.publisher.Mono.block(Mono.java:1706)
ㅇ M1인 경우 Netty DNS Jar를수정해 줘야한다.
ㅁ Maven 리포지토리
<!-- https://mvnrepository.com/artifact/io.netty/netty-resolver-dns-native-macos -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns-native-macos</artifactId>
<version>4.1.91.Final</version>
</dependency>
// https://mvnrepository.com/artifact/io.netty/netty-resolver-dns-native-macos
runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.1.91.Final")
ㅇ maven과 gradle에 의존성을 추가하면 된다.
ㅁ 함께 보면 좋은 사이트
https://mvnrepository.com/artifact/io.netty/netty-resolver-dns-native-macos/4.1.91.Final
반응형
'Programming > Spring' 카테고리의 다른 글
[Spring Gateway] 308 영구 리다이렉션 병목현상 해결 (0) | 2023.08.01 |
---|---|
@NotNull @NotEmpty @NotBlank (0) | 2023.06.22 |
[Spring log4j] EFS에 error 로그 기록 시 AppenderLoggingException 처리 (0) | 2022.12.14 |
[Spring] 파일업로드 시 Invalid boundary error 처리 (0) | 2022.08.25 |
[Spring] REST API - URI 디자인 가이드 (0) | 2022.08.23 |
Comments