gbif / ipt

GBIF Integrated Publishing Toolkit (IPT)
https://www.gbif.org/ipt
Apache License 2.0
128 stars 58 forks source link

ColDP resources do not load after application server restart #2563

Closed mike-podolskiy90 closed 3 weeks ago

mike-podolskiy90 commented 3 weeks ago

Stacktrace from logs:

ERROR 30-Oct-2024 09:03:30 [org.gbif.ipt.service.manage.impl.ResourceManagerImpl] - Cannot read resource configuration for test-coldp-temp
java.lang.NullPointerException: null
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:834) ~[?:?]
    at org.gbif.ipt.model.Resource.getDataPackageMetadataVersion(Resource.java:489) ~[classes/:?]
    at org.gbif.ipt.model.Resource.getMetadataVersion(Resource.java:499) ~[classes/:?]
    at org.gbif.ipt.service.manage.impl.ResourceManagerImpl.convertVersion(ResourceManagerImpl.java:2290) ~[classes/:?]
    at org.gbif.ipt.service.manage.impl.ResourceManagerImpl.loadFromDir(ResourceManagerImpl.java:2248) ~[classes/:?]
    at org.gbif.ipt.service.manage.impl.ResourceManagerImpl.loadFromDir(ResourceManagerImpl.java:2165) ~[classes/:?]
    at org.gbif.ipt.service.manage.impl.ResourceManagerImpl.load(ResourceManagerImpl.java:2036) ~[classes/:?]
    at org.gbif.ipt.service.admin.impl.ConfigManagerImpl.loadDataDirConfig(ConfigManagerImpl.java:243) ~[classes/:?]
    at org.gbif.ipt.service.admin.impl.ConfigManagerImpl.<init>(ConfigManagerImpl.java:94) ~[classes/:?]
    at org.gbif.ipt.service.admin.impl.ConfigManagerImpl$$FastClassByGuice$$39b45602.newInstance(<generated>) ~[classes/:?]
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:52) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:124) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1094) ~[guice-4.2.3.jar:?]
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1131) ~[guice-4.2.3.jar:?]
    at com.google.inject.struts2.Struts2Factory.buildBean(Struts2Factory.java:110) ~[guice-struts2-4.2.3.jar:?]
    at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:191) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:177) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:65) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:212) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.google.inject.struts2.Struts2Factory.superBuildInterceptor(Struts2Factory.java:180) ~[guice-struts2-4.2.3.jar:?]
    at com.google.inject.struts2.Struts2Factory.access$200(Struts2Factory.java:44) ~[guice-struts2-4.2.3.jar:?]
    at com.google.inject.struts2.Struts2Factory$ProvidedInterceptor.inject(Struts2Factory.java:219) ~[guice-struts2-4.2.3.jar:?]
    at com.google.inject.struts2.Struts2Factory.buildInterceptor(Struts2Factory.java:170) ~[guice-struts2-4.2.3.jar:?]
    at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:73) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1173) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:1005) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:1018) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1041) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:551) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildPackageContext(XmlConfigurationProvider.java:685) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:539) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:326) ~[struts2-core-2.5.33.jar:2.5.33]
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:196) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ~[struts2-core-2.5.33.jar:2.5.33]
    at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:970) ~[struts2-core-2.5.33.jar:2.5.33]
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463) ~[struts2-core-2.5.33.jar:2.5.33]
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496) ~[struts2-core-2.5.33.jar:2.5.33]
    at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73) ~[struts2-core-2.5.33.jar:2.5.33]
    at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61) ~[struts2-core-2.5.33.jar:2.5.33]
    at com.google.inject.servlet.FilterDefinition.init(FilterDefinition.java:110) ~[guice-servlet-4.2.3.jar:?]
    at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:98) ~[guice-servlet-4.2.3.jar:?]
    at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:232) ~[guice-servlet-4.2.3.jar:?]
    at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140) ~[?:?]
    at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750) ~[?:?]
    at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) [?:?]
    at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734) [?:?]
    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) [?:?]
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774) [jetty-servlet-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379) [jetty-servlet-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449) [jetty-webapp-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:328) [jetty-maven-plugin-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414) [jetty-webapp-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916) [jetty-server-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288) [jetty-servlet-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) [jetty-webapp-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:397) [jetty-maven-plugin-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) [jetty-server-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) [jetty-server-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.server.Server.start(Server.java:423) [jetty-server-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97) [jetty-server-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.server.Server.doStart(Server.java:387) [jetty-server-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73) [jetty-util-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:449) [jetty-maven-plugin-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:310) [jetty-maven-plugin-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:150) [jetty-maven-plugin-9.4.56.v20240826.jar:9.4.56.v20240826]
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:342) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:330) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:175) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:76) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:163) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:160) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101) [maven-core-3.9.2.jar:3.9.2]
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:910) [maven-embedder-3.9.2.jar:3.9.2]
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:283) [maven-embedder-3.9.2.jar:3.9.2]
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:206) [maven-embedder-3.9.2.jar:3.9.2]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:283) [plexus-classworlds-2.7.0.jar:?]
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:226) [plexus-classworlds-2.7.0.jar:?]
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:407) [plexus-classworlds-2.7.0.jar:?]
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:348) [plexus-classworlds-2.7.0.jar:?]