mammoth-fall-12031
05/09/2022, 4:59 PM./gradlew :metadata-service:war:build
But when I try to run it using
./gradlew :metadata-service:war:run
The build is getting stuck at 99%. Below is the last few lines of logs
2022-05-09 21:30:59.653:INFO:oejs.AbstractConnector:main: Started ServerConnector@77afea7d{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2022-05-09 21:30:59.666:INFO:oejs.Server:main: Started @12086ms
2022-05-09 21:34:00.979:WARN:oejs.HttpChannel:qtp580024961-11: /auth/generateSessionTokenForUser
java.lang.NullPointerException
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:505)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
at java.lang.Thread.run(Thread.java:748)
Can anyone help me resolve this?helpful-optician-78938
05/09/2022, 5:21 PMmammoth-fall-12031
05/10/2022, 5:13 PM2022-05-10 20:06:53.181:INFO:oejshC.ROOT:main: 1 Spring WebApplicationInitializers detected on classpath
2022-05-10 20:06:53.505:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2022-05-10 20:06:53.506:INFO:oejs.session:main: No SessionScavenger set, using defaults
2022-05-10 20:06:53.507:INFO:oejs.session:main: node0 Scavenging every 660000ms
2022-05-10 20:06:53.511:INFO:oejshC.ROOT:main: Initializing Spring root WebApplicationContext
20:06:53.539 [main] INFO o.s.web.context.ContextLoader:271 - Root WebApplicationContext: initialization started
20:06:57.638 [main] INFO io.ebean.EbeanVersion:31 - ebean version: 11.33.3
20:06:57.655 [main] INFO i.e.config.properties.LoadContext:83 - loaded properties from [application.yml]
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
20:06:57.737 [main] INFO i.e.datasource.pool.ConnectionPool:294 - DataSourcePool [gmsEbeanServiceConfig] autoCommit[false] transIsolation[READ_COMMITTED] min[2] max[50]
20:06:58.246 [main] INFO i.e.d.pool.PooledConnectionQueue:405 - Reseting DataSourcePool [gmsEbeanServiceConfig] min[2] max[50] free[0] busy[0] waiting[0] highWaterMark[0] waitCount[0] hitCount[0]
20:06:58.247 [main] INFO i.e.d.pool.PooledConnectionQueue:411 - Busy Connections:
20:06:58.251 [main] WARN o.s.w.c.s.XmlWebApplicationContext:591 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'recentlyViewedCandidateSourceFactory': Unsatisfied dependency expressed through field 'entityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanAspectDao' defined in com.linkedin.gms.factory.entity.EbeanAspectDaoFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.linkedin.metadata.entity.ebean.EbeanAspectDao]: Factory method 'createInstance' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in com.linkedin.gms.factory.entity.EbeanServerFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException
20:06:58.265 [main] ERROR o.s.web.context.ContextLoader:313 - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'recentlyViewedCandidateSourceFactory': Unsatisfied dependency expressed through field 'entityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanAspectDao' defined in com.linkedin.gms.factory.entity.EbeanAspectDaoFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.linkedin.metadata.entity.ebean.EbeanAspectDao]: Factory method 'createInstance' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in com.linkedin.gms.factory.entity.EbeanServerFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 85 common frames omitted
2022-05-10 20:06:58.268:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@4f4a7090{Open source GMS,/,[file:///private/var/folders/q7/flf7xggs40g73y__wbxbhyf80000gn/T/jetty-0.0.0.0-8080-war.war-_-any-5435011984537639710.dir/webapp/, jar:file:///private/var/folders/q7/flf7xggs40g73y__wbxbhyf80000gn/T/jetty-0.0.0.0-8080-war.war-_-any-5435011984537639710.dir/webapp/WEB-INF/lib/swagger-ui-4.10.3.jar!/META-INF/resources],UNAVAILABLE}{file:///Users/amal/linux/parsons/datahub/metadata-service/war/build/libs/war.war}
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'recentlyViewedCandidateSourceFactory': Unsatisfied dependency expressed through field 'entityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanAspectDao' defined in com.linkedin.gms.factory.entity.EbeanAspectDaoFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.linkedin.metadata.entity.ebean.EbeanAspectDao]: Factory method 'createInstance' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ebeanServer' defined in com.linkedin.gms.factory.entity.EbeanServerFactory: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.ebean.EbeanServer]: Factory method 'createServer' threw exception; nested exception is java.lang.NullPointerException
@helpful-optician-78938 @big-carpet-38439 Does this help?helpful-optician-78938
05/10/2022, 6:42 PMorange-night-91387
05/10/2022, 6:53 PMmammoth-fall-12031
05/11/2022, 5:56 AM./gradlew build
./gradlew run
Build is successful but run is again stuck at the same issue above
Tried running the GMS with below commands and got the above error
./gradlew :metadata-service:war:build
./gradlew :metadata-service:war:runorange-night-91387
05/11/2022, 3:20 PMmammoth-fall-12031
05/12/2022, 2:00 PM