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

[Bug] connect graph error in the hubble #2553

Open
1 task done
hexuxu110 opened this issue Jun 6, 2024 · 1 comment
Open
1 task done

[Bug] connect graph error in the hubble #2553

hexuxu110 opened this issue Jun 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hexuxu110
Copy link

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 1.0.0 (Apache Release Version)
  • Backend: RocksDB x nodes, HDD or SSD
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: xx vertices, xx edges

Expected & Actual behavior (期望与实际表现)

Uploading image.png image …

Vertex/Edge example (问题点 / 边数据举例)

connect graph error in the hubble

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

connect graph error in the hubble
@hexuxu110 hexuxu110 added the bug Something isn't working label Jun 6, 2024
Copy link

dosubot bot commented Jun 6, 2024

To resolve the "Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: jakarta/ws/rs/core/Configuration" error when trying to connect a graph in Hubble, you need to ensure that the required Jakarta EE dependencies are correctly included in your project.

The jakarta.ws.rs.core.Configuration class is missing, which is part of the Jakarta RESTful Web Services (JAX-RS) API. You need to include the appropriate JAX-RS dependency in your project.

If you are using Maven, add the following dependency to your pom.xml:

<dependency>
    <groupId>jakarta.ws.rs</groupId>
    <artifactId>jakarta.ws.rs-api</artifactId>
    <version>2.1.6</version> <!-- or the appropriate version you need -->
</dependency>

Additionally, you might need to include dependencies for Jersey, which is a reference implementation for JAX-RS:

<dependency>
    <groupId>org.glassfish.jersey.core</groupId>
    <artifactId>jersey-server</artifactId>
</dependency>
<dependency>
    <groupId>org.glassfish.jersey.containers</groupId>
    <artifactId>jersey-container-grizzly2-http</artifactId>
</dependency>
<dependency>
    <groupId>org.glassfish.jersey.containers</groupId>
    <artifactId>jersey-container-grizzly2-servlet</artifactId>
</dependency>
<dependency>
    <groupId>org.glassfish.jersey.media</groupId>
    <artifactId>jersey-media-json-jackson</artifactId>
    <exclusions>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </exclusion>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
        </exclusion>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </exclusion>
        <exclusion>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-jaxb-annotations</artifactId>
        </exclusion>
    </exclusions>
</dependency>

If you are using Gradle, add the following to your build.gradle:

implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' // or the appropriate version you need
implementation 'org.glassfish.jersey.core:jersey-server'
implementation 'org.glassfish.jersey.containers:jersey-container-grizzly2-http'
implementation 'org.glassfish.jersey.containers:jersey-container-grizzly2-servlet'
implementation 'org.glassfish.jersey.media:jersey-media-json-jackson'

Ensure that the versions you use are compatible with the rest of your project dependencies. After adding the dependencies, rebuild your project and try connecting to the graph in Hubble again [1][2].

To continue talking to Dosu, mention @dosu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant