hutlearner commented on issue #2249:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641490346

   我在依赖里面加上了
   <dependency>
               <groupId>javax.ws.rs</groupId>
               <artifactId>javax.ws.rs-api</artifactId>
               <version>2.1.1</version>
           </dependency>
   
   现在他报另一个错误
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'hugeClient' defined in class path resource 
[com/aircas/search/datasource/hugegraph/HugeGraphSourceConfig.class]: Failed to 
instantiate [org.apache.hugegraph.driver.HugeClient]: Factory method 
'hugeClient' threw exception with message: Receiver class 
com.alibaba.fastjson.support.jaxrs.FastJsonAutoDiscoverable does not define or 
inherit an implementation of the resolved method 'abstract void 
configure(jakarta.ws.rs.core.FeatureContext)' of interface 
org.glassfish.jersey.internal.spi.AutoDiscoverable.
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:659)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:493)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1332)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1162)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:941)
 ~[spring-context-6.0.10.jar:6.0.10]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:608)
 ~[spring-context-6.0.10.jar:6.0.10]
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
 ~[spring-boot-3.1.1.jar:3.1.1]
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) 
~[spring-boot-3.1.1.jar:3.1.1]
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:436)
 ~[spring-boot-3.1.1.jar:3.1.1]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:312) 
~[spring-boot-3.1.1.jar:3.1.1]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) 
~[spring-boot-3.1.1.jar:3.1.1]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) 
~[spring-boot-3.1.1.jar:3.1.1]
        at com.aircas.main.MainApplication.main(MainApplication.java:15) 
~[classes/:na]
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.hugegraph.driver.HugeClient]: Factory method 
'hugeClient' threw exception with message: Receiver class 
com.alibaba.fastjson.support.jaxrs.FastJsonAutoDiscoverable does not define or 
inherit an implementation of the resolved method 'abstract void 
configure(jakarta.ws.rs.core.FeatureContext)' of interface 
org.glassfish.jersey.internal.spi.AutoDiscoverable.
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171)
 ~[spring-beans-6.0.10.jar:6.0.10]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655)
 ~[spring-beans-6.0.10.jar:6.0.10]
        ... 19 common frames omitted
   Caused by: java.lang.AbstractMethodError: Receiver class 
com.alibaba.fastjson.support.jaxrs.FastJsonAutoDiscoverable does not define or 
inherit an implementation of the resolved method 'abstract void 
configure(jakarta.ws.rs.core.FeatureContext)' of interface 
org.glassfish.jersey.internal.spi.AutoDiscoverable.
        at 
org.glassfish.jersey.model.internal.CommonConfig.configureAutoDiscoverableProviders(CommonConfig.java:621)
 ~[jersey-common-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.ClientConfig$State.configureAutoDiscoverableProviders(ClientConfig.java:390)
 ~[jersey-client-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:445)
 ~[jersey-client-3.1.2.jar:na]
        at 
org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:317)
 ~[jersey-common-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:834) 
~[jersey-client-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.ClientRequest.getClientRuntime(ClientRequest.java:181)
 ~[jersey-client-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.JerseyWebTarget.onBuilder(JerseyWebTarget.java:371) 
~[jersey-client-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:199) 
~[jersey-client-3.1.2.jar:na]
        at 
org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:38) 
~[jersey-client-3.1.2.jar:na]
        at 
org.apache.hugegraph.rest.AbstractRestClient.lambda$get$3(AbstractRestClient.java:299)
 ~[hugegraph-common-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.rest.AbstractRestClient.request(AbstractRestClient.java:198)
 ~[hugegraph-common-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.rest.AbstractRestClient.get(AbstractRestClient.java:297) 
~[hugegraph-common-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.rest.AbstractRestClient.get(AbstractRestClient.java:271) 
~[hugegraph-common-1.0.0.jar:1.0.0]
        at org.apache.hugegraph.api.version.VersionAPI.get(VersionAPI.java:39) 
~[hugegraph-client-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.driver.VersionManager.getApiVersion(VersionManager.java:43)
 ~[hugegraph-client-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.driver.HugeClient.checkServerApiVersion(HugeClient.java:111)
 ~[hugegraph-client-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.driver.HugeClient.initManagers(HugeClient.java:95) 
~[hugegraph-client-1.0.0.jar:1.0.0]
        at org.apache.hugegraph.driver.HugeClient.<init>(HugeClient.java:67) 
~[hugegraph-client-1.0.0.jar:1.0.0]
        at 
org.apache.hugegraph.driver.HugeClientBuilder.build(HugeClientBuilder.java:62) 
~[hugegraph-client-1.0.0.jar:1.0.0]
        at 
com.aircas.search.datasource.hugegraph.HugeGraphSourceConfig.createHugeClient(HugeGraphSourceConfig.java:22)
 ~[classes/:na]
        at 
com.aircas.search.datasource.hugegraph.HugeGraphSourceConfig.hugeClient(HugeGraphSourceConfig.java:17)
 ~[classes/:na]
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:na]
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 ~[na:na]
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:na]
        at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139)
 ~[spring-beans-6.0.10.jar:6.0.10]
        ... 20 common frames omitted


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to