apache / apache/servicecomb-java-chassis

Service registration is failing with : Could not initialize class io.vertx.core.http.HttpHeaders

Open
#3,292 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

Hello,

MY gateway service registration if failing with

```
java.lang.NoClassDefFoundError: Could not initialize class io.vertx.core.http.HttpHeaders
java.lang.NoSuchFieldError: ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK

```
Below are the error logs in startup. This error starts to occur recently. Not sure if it is related to any library conflicts.

`2022-08-22 10:17:43.104 ERROR 18821 --- [ntloop-thread-1] o.a.s.s.client.http.RestClientUtil : GET /v4/default/registry/existence?appId=talech-services&type=microservice&serviceName=gateway&env&version=1.0.1 fail, endpoint is 127.0.0.1:30100, message: Could not initialize class io.vertx.core.http.HttpHeaders
2022-08-22 10:17:43.105 WARN 18821 --- [ntloop-thread-1] o.a.s.s.c.h.ServiceRegistryClientImpl : invoke service [127.0.0.1:30100] failed, retry address [127.0.0.1:30100].
2022-08-22 10:17:43.106 ERROR 18821 --- [ntloop-thread-1] o.a.s.s.client.http.RestClientUtil : GET /v4/default/registry/existence?appId=talech-services&type=microservice&serviceName=gateway&env&version=1.0.1 fail, endpoint is 127.0.0.1:30100, message: Could not initialize class io.vertx.core.http.HttpHeaders
2022-08-22 10:17:43.106 WARN 18821 --- [ntloop-thread-1] o.a.s.s.c.h.ServiceRegistryClientImpl : invoke service [127.0.0.1:30100] failed, retry address [127.0.0.1:30100].
2022-08-22 10:17:43.106 ERROR 18821 --- [ntloop-thread-1] o.a.s.s.client.http.RestClientUtil : GET /v4/default/registry/existence?appId=talech-services&type=microservice&serviceName=gateway&env&version=1.0.1 fail, endpoint is 127.0.0.1:30100, message: Could not initialize class io.vertx.core.http.HttpHeaders
2022-08-22 10:17:43.107 INFO 18821 --- [Center Task [0]] o.a.s.s.adapter.EnvAdapterManager : Start process microservice with adapter default-env-adapter
`

Appreciate help from any one.

Thanks
Meenakshi

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named. Start by reproducing gateway service registration and tracing the reported HttpHeaders initialization failure and dependency-conflict suspicion; done means registration succeeds without the NoClassDefFoundError or NoSuchFieldError.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.