You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "hutlearner (via GitHub)" <gi...@apache.org> on 2023/07/19 01:55:27 UTC

[GitHub] [incubator-hugegraph] hutlearner opened a new issue, #2249: [Bug] springboot3初始化hugeclient失败

hutlearner opened a new issue, #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249

   ### Bug Type (问题类型)
   
   server status (启动/运行异常)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (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: Postgresql
   - Jdk:17
   - Springboot:  3.1.1
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   我定位到了问题,在下面这个方法里面检测版本的时候没有获取到信息
   private void initManagers(RestClient client, String graph) {
           assert client != null;
           // Check hugegraph-server api version
           this.version = new VersionManager(client);
   
           this.checkServerApiVersion();    }
   
   具体错误内容如下
   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: Failed to do request
   	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: Failed to do request
   	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: org.apache.hugegraph.rest.ClientException: Failed to do request
   	at org.apache.hugegraph.rest.AbstractRestClient.request(AbstractRestClient.java:200) ~[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
   Caused by: org.glassfish.hk2.api.MultiException: A MultiException has 1 exceptions.  They are:
   1. java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext
   
   	at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:65) ~[hk2-locator-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:977) ~[hk2-locator-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:1014) ~[hk2-locator-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.ServiceLocatorImpl.createAndInitialize(ServiceLocatorImpl.java:1089) ~[hk2-locator-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.ServiceLocatorImpl.createAndInitialize(ServiceLocatorImpl.java:1080) ~[hk2-locator-3.0.4.jar:na]
   	at org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.createAndInitialize(AbstractHk2InjectionManager.java:199) ~[jersey-hk2-3.1.2.jar:na]
   	at org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager.createAndInitialize(ImmediateHk2InjectionManager.java:30) ~[jersey-hk2-3.1.2.jar:na]
   	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[na:na]
   	at java.base/java.util.stream.ReferencePipeline$15$1.accept(ReferencePipeline.java:541) ~[na:na]
   	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[na:na]
   	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[na:na]
   	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[na:na]
   	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[na:na]
   	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:na]
   	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[na:na]
   	at org.glassfish.jersey.internal.AutoDiscoverableConfigurator.init(AutoDiscoverableConfigurator.java:52) ~[jersey-common-3.1.2.jar:na]
   	at org.glassfish.jersey.client.ClientConfig$State.lambda$initRuntime$1(ClientConfig.java:440) ~[jersey-client-3.1.2.jar:na]
   	at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4204) ~[na:na]
   	at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:440) ~[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]
   	... 35 common frames omitted
   Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache.compute(LRUHybridCache.java:292) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl.getAllMethods(ClassReflectionHelperImpl.java:85) ~[hk2-utils-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.Utilities.findInitializerMethods(Utilities.java:1401) ~[hk2-locator-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.DefaultClassAnalyzer.getInitializerMethods(DefaultClassAnalyzer.java:83) ~[hk2-locator-3.0.4.jar:na]
   	at org.glassfish.jersey.inject.hk2.JerseyClassAnalyzer.getInitializerMethods(JerseyClassAnalyzer.java:218) ~[jersey-hk2-3.1.2.jar:na]
   	at org.jvnet.hk2.internal.Utilities.getInitMethods(Utilities.java:197) ~[hk2-locator-3.0.4.jar:na]
   	at org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:975) ~[hk2-locator-3.0.4.jar:na]
   	... 60 common frames omitted
   Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext
   	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na]
   	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture.get(LRUHybridCache.java:141) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache.compute(LRUHybridCache.java:280) ~[hk2-utils-3.0.4.jar:na]
   	... 66 common frames omitted
   Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext
   	at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[na:na]
   	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[na:na]
   	at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504) ~[na:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities$3.run(ClassReflectionHelperUtilities.java:85) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities$3.run(ClassReflectionHelperUtilities.java:81) ~[hk2-utils-3.0.4.jar:na]
   	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) ~[na:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.secureGetDeclaredMethods(ClassReflectionHelperUtilities.java:81) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.getDeclaredMethodWrappers(ClassReflectionHelperUtilities.java:110) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperUtilities.getAllMethodWrappers(ClassReflectionHelperUtilities.java:174) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl$3.compute(ClassReflectionHelperImpl.java:61) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.reflection.internal.ClassReflectionHelperImpl$3.compute(ClassReflectionHelperImpl.java:57) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture$1.call(LRUHybridCache.java:92) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture$1.call(LRUHybridCache.java:88) ~[hk2-utils-3.0.4.jar:na]
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture.run(LRUHybridCache.java:150) ~[hk2-utils-3.0.4.jar:na]
   	at org.glassfish.hk2.utilities.cache.LRUHybridCache.compute(LRUHybridCache.java:269) ~[hk2-utils-3.0.4.jar:na]
   	... 66 common frames omitted
   Caused by: java.lang.ClassNotFoundException: javax.ws.rs.core.FeatureContext
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]
   	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[na:na]
   	... 82 common frames omitted
   
   我看到有人提交了类似的问题,但是没有得到解决
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
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: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] hutlearner commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "hutlearner (via GitHub)" <gi...@apache.org>.
hutlearner commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641516778

   找到了,是
   <dependency>
               <groupId>com.alibaba</groupId>
               <artifactId>fastjson</artifactId>
               <version>1.2.83</version>
           </dependency>
   的原因,去掉这个包就可以初始化成功,但是不知道原因,这个包没有依赖冲突


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] z7658329 commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "z7658329 (via GitHub)" <gi...@apache.org>.
z7658329 commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641272435

   @hutlearner 
   if your java application use springboot3 (jdk17) or jdk8/jdk11 springboot2.X , you can refer to the following steps:
   
   1.check your springboot version, and override jersey version & jakarta version in your pom.xml :
   < properties>
      <jersey.version>3.0.3</jersey.version>
      <jakarta-ws-rs.version>3.0.0</jakarta-ws-rs.version>
      <jakarta-annotation.version>2.0.0</jakarta-annotation.version>
   </ properties>
   
   ![image](https://github.com/apache/incubator-hugegraph/assets/5474723/307c8cb5-82da-42b1-9a65-0e2a8aef025d)
   


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] z7658329 commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "z7658329 (via GitHub)" <gi...@apache.org>.
z7658329 commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641422593

   > <dependency>
   >         <groupId>com.aircas</groupId>
   >         <artifactId>talent-common</artifactId>
   >         <version>0.0.1-SNAPSHOT</version>
   >     </dependency>
   >     <!-- 数据库依赖 -->
   >     <!-- 数据源 -->
   >     <dependency>
   >         <groupId>com.zaxxer</groupId>
   >         <artifactId>HikariCP</artifactId>
   >         <version>5.0.1</version>
   >     </dependency>
   >     <dependency>
   >         <groupId>org.springframework</groupId>
   >         <artifactId>spring-jdbc</artifactId>
   >         <version>6.0.10</version>
   >     </dependency>
   >     <dependency>
   >         <groupId>org.anyline</groupId>
   >         <artifactId>anyline-mvc</artifactId>
   >         <exclusions>
   >             <exclusion>
   >                 <artifactId>javassist</artifactId>
   >                 <groupId>org.javassist</groupId>
   >             </exclusion>
   >         </exclusions>
   >     </dependency>
   >     <!-- MongoDB -->
   >     <dependency>
   >         <groupId>org.springframework.boot</groupId>
   >         <artifactId>spring-boot-starter-data-mongodb</artifactId>
   >     </dependency>
   >     <!-- MySQL -->
   >     <dependency>
   >         <groupId>org.anyline</groupId>
   >         <artifactId>anyline-data-jdbc-mysql</artifactId>
   >     </dependency>
   >     <dependency>
   >         <groupId>mysql</groupId>
   >         <artifactId>mysql-connector-java</artifactId>
   >         <version>8.0.31</version>
   >     </dependency>
   >     <!-- PostgreSQL -->
   >     <dependency>
   >         <groupId>org.anyline</groupId>
   >         <artifactId>anyline-data-jdbc-postgresql</artifactId>
   >     </dependency>
   >     <dependency>
   >         <groupId>org.postgresql</groupId>
   >         <artifactId>postgresql</artifactId>
   >         <scope>runtime</scope>
   >         <exclusions>
   >             <exclusion>
   >                 <artifactId>checker-qual</artifactId>
   >                 <groupId>org.checkerframework</groupId>
   >             </exclusion>
   >         </exclusions>
   >     </dependency>
   >     <!-- ElasticSearch -->
   >     <dependency>
   >         <groupId>org.elasticsearch.client</groupId>
   >         <artifactId>elasticsearch-rest-high-level-client</artifactId>
   >         <version>7.4.2</version>
   >         <exclusions>
   >             <exclusion>
   >                 <groupId>org.elasticsearch</groupId>
   >                 <artifactId>elasticsearch</artifactId>
   >             </exclusion>
   >         </exclusions>
   >     </dependency>
   >     <dependency>
   >         <groupId>org.elasticsearch</groupId>
   >         <artifactId>elasticsearch</artifactId>
   >         <version>7.4.2</version>
   >     </dependency>
   >     <!-- Neo4j -->
   >     <dependency>
   >         <groupId>org.anyline</groupId>
   >         <artifactId>anyline-data-jdbc-neo4j</artifactId>
   >     </dependency>
   >     <dependency>
   >         <groupId>org.neo4j</groupId>
   >         <artifactId>neo4j-jdbc-driver</artifactId>
   >         <version>4.0.9</version>
   >     </dependency>
   >     <!-- Redis -->
   >     <dependency>
   >         <groupId>org.springframework.boot</groupId>
   >         <artifactId>spring-boot-starter-data-redis</artifactId>
   >     </dependency>
   >     <!-- hugeGraph -->
   >     <dependency>
   >         <groupId>org.apache.hugegraph</groupId>
   >         <artifactId>hugegraph-client</artifactId>
   >         <version>1.0.0</version>
   >     </dependency>
   >     <!--jdk17缺少包-->
   >     <dependency>
   >         <groupId>javax.xml.bind</groupId>
   >         <artifactId>jaxb-api</artifactId>
   >         <version>2.3.1</version>
   >     </dependency>
   
   这个确实很奇怪,我这本地springboot3 jdk17 或 springboot2.X jdk8/11都是ok,目前确实存在jar的冲突导致版本没升上来,你可以把依赖树发一下吗?看看为何你这里缺失javax.ws.rs.core.FeatureContex类 @hutlearner 


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] hutlearner commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "hutlearner (via GitHub)" <gi...@apache.org>.
hutlearner commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641292115

   这个没有用,我也可以启动一个干净的项目,但是现在应该是jar包冲突之类的问题,所以我想知道是那个jar包在请求版本号,为什么请求不到
   
   ![image](https://github.com/apache/incubator-hugegraph/assets/54737262/9f3cf721-d18a-4429-9143-d30fbdc1a3ff)
   
   
   


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] z7658329 commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "z7658329 (via GitHub)" <gi...@apache.org>.
z7658329 commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641542520

   > 
   
   确实fastjson是存在冲突的,可以参考历史issue:[#5](https://github.com/apache/incubator-hugegraph/issues/5)


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] hutlearner commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "hutlearner (via GitHub)" <gi...@apache.org>.
hutlearner commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641311491

   ![image](https://github.com/apache/incubator-hugegraph/assets/54737262/de6d60a6-df53-46ef-a359-1cfc44ab10f6)
   


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] hutlearner commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "hutlearner (via GitHub)" <gi...@apache.org>.
hutlearner commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641346909

   java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/ws/rs/core/FeatureContext
   
   这个错误


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] hutlearner commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "hutlearner (via GitHub)" <gi...@apache.org>.
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] z7658329 closed issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "z7658329 (via GitHub)" <gi...@apache.org>.
z7658329 closed issue #2249: [Bug] springboot3初始化hugeclient失败
URL: https://github.com/apache/incubator-hugegraph/issues/2249


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] hutlearner commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "hutlearner (via GitHub)" <gi...@apache.org>.
hutlearner commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641270555

   pom文件如下
   
   <?xml version="1.0" encoding="UTF-8"?>
   <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
       <modelVersion>4.0.0</modelVersion>
       <parent>
           <groupId>com.aircas</groupId>
           <artifactId>talent</artifactId>
           <version>0.0.1-SNAPSHOT</version>
       </parent>
   
       <artifactId>talent-search</artifactId>
       <version>0.0.1-SNAPSHOT</version>
       <name>talent-search</name>
       <description>Demo project for Spring Boot</description>
       <properties>
           <java.version>17</java.version>
       </properties>
   
       <dependencyManagement>
           <dependencies>
               <dependency>
                   <groupId>org.anyline</groupId>
                   <artifactId>anyline-dependency</artifactId>
                   <version>8.6.5-jdk17-SNAPSHOT</version>
                   <type>pom</type>
                   <scope>import</scope>
               </dependency>
           </dependencies>
       </dependencyManagement>
   
       <dependencies>
           <dependency>
               <groupId>com.aircas</groupId>
               <artifactId>talent-common</artifactId>
               <version>0.0.1-SNAPSHOT</version>
           </dependency>
           <!-- 数据库依赖 -->
           <!-- 数据源 -->
           <dependency>
               <groupId>com.zaxxer</groupId>
               <artifactId>HikariCP</artifactId>
               <version>5.0.1</version>
           </dependency>
           <dependency>
               <groupId>org.springframework</groupId>
               <artifactId>spring-jdbc</artifactId>
               <version>6.0.10</version>
           </dependency>
           <dependency>
               <groupId>org.anyline</groupId>
               <artifactId>anyline-mvc</artifactId>
               <exclusions>
                   <exclusion>
                       <artifactId>javassist</artifactId>
                       <groupId>org.javassist</groupId>
                   </exclusion>
               </exclusions>
           </dependency>
           <!-- MongoDB -->
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter-data-mongodb</artifactId>
           </dependency>
           <!-- MySQL -->
           <dependency>
               <groupId>org.anyline</groupId>
               <artifactId>anyline-data-jdbc-mysql</artifactId>
           </dependency>
           <dependency>
               <groupId>mysql</groupId>
               <artifactId>mysql-connector-java</artifactId>
               <version>8.0.31</version>
           </dependency>
           <!-- PostgreSQL -->
           <dependency>
               <groupId>org.anyline</groupId>
               <artifactId>anyline-data-jdbc-postgresql</artifactId>
           </dependency>
           <dependency>
               <groupId>org.postgresql</groupId>
               <artifactId>postgresql</artifactId>
               <scope>runtime</scope>
               <exclusions>
                   <exclusion>
                       <artifactId>checker-qual</artifactId>
                       <groupId>org.checkerframework</groupId>
                   </exclusion>
               </exclusions>
           </dependency>
           <!-- ElasticSearch -->
           <dependency>
               <groupId>org.elasticsearch.client</groupId>
               <artifactId>elasticsearch-rest-high-level-client</artifactId>
               <version>7.4.2</version>
               <exclusions>
                   <exclusion>
                       <groupId>org.elasticsearch</groupId>
                       <artifactId>elasticsearch</artifactId>
                   </exclusion>
               </exclusions>
           </dependency>
           <dependency>
               <groupId>org.elasticsearch</groupId>
               <artifactId>elasticsearch</artifactId>
               <version>7.4.2</version>
           </dependency>
           <!-- Neo4j -->
           <dependency>
               <groupId>org.anyline</groupId>
               <artifactId>anyline-data-jdbc-neo4j</artifactId>
           </dependency>
           <dependency>
               <groupId>org.neo4j</groupId>
               <artifactId>neo4j-jdbc-driver</artifactId>
               <version>4.0.9</version>
           </dependency>
           <!-- Redis -->
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter-data-redis</artifactId>
           </dependency>
           <!-- hugeGraph -->
           <dependency>
               <groupId>org.apache.hugegraph</groupId>
               <artifactId>hugegraph-client</artifactId>
               <version>1.0.0</version>
           </dependency>
           <!--jdk17缺少包-->
           <dependency>
               <groupId>javax.xml.bind</groupId>
               <artifactId>jaxb-api</artifactId>
               <version>2.3.1</version>
           </dependency>
   <!--        <dependency>-->
   <!--            <groupId>javax.ws.rs</groupId>-->
   <!--            <artifactId>javax.ws.rs-api</artifactId>-->
   <!--            <version>2.1.6</version>-->
   <!--        </dependency>-->
       </dependencies>
   
       <repositories>
           <repository>
               <id>ossrh</id>
               <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
               <snapshots>
                   <enabled>true</enabled>
               </snapshots>
           </repository>
       </repositories>
   </project>
   


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] z7658329 commented on issue #2249: [Bug] springboot3初始化hugeclient失败

Posted by "z7658329 (via GitHub)" <gi...@apache.org>.
z7658329 commented on issue #2249:
URL: https://github.com/apache/incubator-hugegraph/issues/2249#issuecomment-1641424528

   另外方便的话,按照上面的步骤执行后,先执行一下clean,清除一下缓存,然后重新发布试试,把异常信息重新发一下 @hutlearner 


-- 
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org