COOL-cohort / COOL

the source code of the COOL system
https://www.comp.nus.edu.sg/~dbsystem/cool/
Apache License 2.0
45 stars 16 forks source link

start server issue #31

Closed qlinsey closed 2 years ago

qlinsey commented 2 years ago

This is the version of JDK:

java -version java version “18.0.1” 2022-04-19 Java(TM) SE Runtime Environment (build 18.0.1+10-24) Java HotSpot(TM) 64-Bit Server VM (build 18.0.1+10-24, mixed mode, sharing)

After pull and mvn clean , build:

l0p018z@m-c02c75femd6r COOL % java -jar cool-queryserver/target/cool-queryserver-0.1-SNAPSHOT.jar datasetSource 8086 [] Dataset source folder datasetSource exists. [] Start the Query Server (port: 8086)... log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread “Thread-0” java.lang.ExceptionInInitializerError at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:83) at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:176) at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:282) at com.sun.xml.bind.v2.runtime.property.ArrayProperty.(ArrayProperty.java:69) at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.(ArrayERProperty.java:88) at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.(ArrayElementProperty.java:100) at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.(ArrayElementNodeProperty.java:62) at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483) at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImpl.java:183) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:532) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:347) at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1170) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:236) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:129) at javax.xml.bind.ContextFinder.find(ContextFinder.java:307) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:478) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:435) at org.glassfish.jersey.server.wadl.internal.WadlApplicationContextImpl.getJAXBContextFromWadlGenerator(WadlApplicationContextImpl.java:120) at org.glassfish.jersey.server.wadl.WadlFeature.isJaxB(WadlFeature.java:74) at org.glassfish.jersey.server.wadl.WadlFeature.configure(WadlFeature.java:56) at org.glassfish.jersey.model.internal.CommonConfig.configureFeatures(CommonConfig.java:728) at org.glassfish.jersey.model.internal.CommonConfig.configureMetaProviders(CommonConfig.java:647) at org.glassfish.jersey.server.ResourceConfig.configureMetaProviders(ResourceConfig.java:823) at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:328) at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:293) at org.glassfish.jersey.internal.Errors.process(Errors.java:292) at org.glassfish.jersey.internal.Errors.process(Errors.java:274) at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232) at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:292) at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:259) at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:246) at org.glassfish.jersey.jetty.JettyHttpContainer.(JettyHttpContainer.java:468) at org.glassfish.jersey.jetty.JettyHttpContainerProvider.createContainer(JettyHttpContainerProvider.java:37) at org.glassfish.jersey.server.ContainerFactory.createContainer(ContainerFactory.java:58) at com.nus.cool.queryserver.QueryServer.createJettyServer(QueryServer.java:94) at com.nus.cool.queryserver.QueryServer.run(QueryServer.java:49) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not “opens java.lang” to unnamed module @15fef0a0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200) at java.base/java.lang.reflect.Method.setAccessible(Method.java:194) at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1.run(Injector.java:177) at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1.run(Injector.java:174) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.(Injector.java:172) ... 44 more

KimballCai commented 2 years ago

please use the jdk8 or jdk11 at first. COOL may not support the jdk18 yet.

qlinsey commented 2 years ago

Hi, jdk11 works. Thanks.