Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Rasdaman collection crash if some not complaint #83

Open
clausmichele opened this issue Jul 12, 2023 · 0 comments
Open

Loading Rasdaman collection crash if some not complaint #83

clausmichele opened this issue Jul 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@clausmichele
Copy link
Member

With the code on master, when loading the Rasdaman collections it returns an error. This leads to 0 collections available, even if the ODC ones have been properly loaded.

Full stacktrace
WARN 2023-07-12T14:49:44,176 [WCSCoverageLoader-1] 3555 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage ADO_CORINE_100m_3035.
WARN 2023-07-12T14:49:44,274 [WCSCoverageLoader-1] 3653 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage ADO_EU_DEM_25m_3035.
ERROR 2023-07-12T14:49:44,382 [WCSCoverageLoader-1] 3761 org.openeo.spring.api.loaders.WCSCollectionsLoader Spatial axis 'Geodetic longitude' not found in coverage definition.
ERROR 2023-07-12T14:49:44,382 [restartedMain] 3761 org.openeo.spring.api.CollectionsApiController Error while loading catalog.
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 3
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
	at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
	at org.openeo.spring.api.CollectionsApiController.init(CollectionsApiController.java:190) ~[classes/:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:422) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) [spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) [spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) [spring-beans-5.3.8.jar:5.3.8]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) [spring-context-5.3.8.jar:5.3.8]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) [spring-context-5.3.8.jar:5.3.8]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) [spring-boot-2.5.1.jar:2.5.1]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) [spring-boot-2.5.1.jar:2.5.1]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) [spring-boot-2.5.1.jar:2.5.1]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) [spring-boot-2.5.1.jar:2.5.1]
	at org.openeo.spring.OpenAPI2SpringBoot.main(OpenAPI2SpringBoot.java:38) [classes/:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.5.1.jar:2.5.1]
Caused by: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 3
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
	at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.call(WCSCollectionsLoader.java:288) ~[classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.call(WCSCollectionsLoader.java:1) ~[classes/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 3
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.lambda$2(WCSCollectionsLoader.java:833) ~[classes/:?]
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
	at java.util.stream.DoublePipeline.toArray(DoublePipeline.java:546) ~[?:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:835) ~[classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:356) ~[classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:279) ~[classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:1) ~[classes/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
DEBUG 2023-07-12T14:49:44,445 [restartedMain] 3824 org.openeo.spring.components.JobScheduler Job Scheduler has been initialized successfully!
INFO 2023-07-12T14:49:44,450 [ODCCatalogueSerializer] 3829 org.openeo.spring.api.loaders.JSONMarshaller JSON object serialized: collections_odc.json.
ERROR 2023-07-12T14:49:45,167 [WCSCoverageLoader-1] 4546 org.openeo.spring.api.loaders.WCSCollectionsLoader Error invalid licence of ADO_SM_anomalies_ERA5
java.net.URISyntaxException: Illegal character in opaque part at index 9: DOI-ERA5: https://doi.org/10.24381/cds.adbb2d47, DOI-ERA5-Land: https://doi.org/10.24381/cds.e2161bac
	at java.net.URI$Parser.fail(URI.java:2913) ~[?:?]
	at java.net.URI$Parser.checkChars(URI.java:3084) ~[?:?]
	at java.net.URI$Parser.parse(URI.java:3120) ~[?:?]
	at java.net.URI.<init>(URI.java:600) ~[?:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:947) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:356) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:279) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:1) [classes/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
DEBUG 2023-07-12T14:49:45,509 [restartedMain] 4888 org.openeo.spring.api.JobsApiController JobEventListener successfully added to listenerList!
ERROR 2023-07-12T14:49:47,068 [WCSCoverageLoader-1] 6447 org.openeo.spring.api.loaders.WCSCollectionsLoader Error invalid licence of ADO_factor_elevation
java.net.URISyntaxException: Expected scheme name at index 0: ://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32013R1159&amp;amp;from=EN
	at java.net.URI$Parser.fail(URI.java:2913) ~[?:?]
	at java.net.URI$Parser.failExpecting(URI.java:2919) ~[?:?]
	at java.net.URI$Parser.parse(URI.java:3108) ~[?:?]
	at java.net.URI.<init>(URI.java:600) ~[?:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:927) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:356) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:279) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:1) [classes/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
ERROR 2023-07-12T14:49:47,165 [WCSCoverageLoader-1] 6544 org.openeo.spring.api.loaders.WCSCollectionsLoader Invalid provider link. 
java.net.URISyntaxException: Illegal character in scheme name at index 0: 'http://www.eurac.edu''
	at java.net.URI$Parser.fail(URI.java:2913) ~[?:?]
	at java.net.URI$Parser.checkChars(URI.java:3084) ~[?:?]
	at java.net.URI$Parser.checkChar(URI.java:3094) ~[?:?]
	at java.net.URI$Parser.parse(URI.java:3109) ~[?:?]
	at java.net.URI.<init>(URI.java:600) ~[?:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:1067) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader.parseCollection(WCSCollectionsLoader.java:356) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:279) [classes/:?]
	at org.openeo.spring.api.loaders.WCSCollectionsLoader$1.call(WCSCollectionsLoader.java:1) [classes/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
WARN 2023-07-12T14:49:51,132 [WCSCoverageLoader-1] 10511 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage ST_MONTHLY_GRIDDED_CLIMATOLOGIES_PRECIPITATION.
WARN 2023-07-12T14:49:51,224 [WCSCoverageLoader-1] 10603 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage ST_MONTHLY_GRIDDED_CLIMATOLOGIES_TEMPERATURE.
WARN 2023-07-12T14:49:51,337 [WCSCoverageLoader-1] 10716 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage amjjas_pr_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,430 [WCSCoverageLoader-1] 10809 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage amt_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,526 [WCSCoverageLoader-1] 10905 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage apr_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,620 [WCSCoverageLoader-1] 10999 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage cdd_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,714 [WCSCoverageLoader-1] 11093 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage dd_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,808 [WCSCoverageLoader-1] 11187 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage djf_mt_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,901 [WCSCoverageLoader-1] 11280 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage djf_pr_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:51,995 [WCSCoverageLoader-1] 11374 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage fd_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,088 [WCSCoverageLoader-1] 11467 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage gsl_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,184 [WCSCoverageLoader-1] 11563 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage hwd_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,277 [WCSCoverageLoader-1] 11656 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage jja_mt_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,371 [WCSCoverageLoader-1] 11750 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage mam_pr_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,466 [WCSCoverageLoader-1] 11845 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage ondjfm_pr_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,661 [WCSCoverageLoader-1] 12040 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r95pfreq_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,753 [WCSCoverageLoader-1] 12132 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r95pfreq_all_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,846 [WCSCoverageLoader-1] 12225 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r95ptot_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:52,939 [WCSCoverageLoader-1] 12318 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r95ptot_all_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,033 [WCSCoverageLoader-1] 12412 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r99pfreq_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,126 [WCSCoverageLoader-1] 12505 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r99pfreq_all_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,220 [WCSCoverageLoader-1] 12599 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r99ptot_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,314 [WCSCoverageLoader-1] 12693 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage r99ptot_all_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,408 [WCSCoverageLoader-1] 12787 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage rx1day_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,503 [WCSCoverageLoader-1] 12882 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage rx5day_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,598 [WCSCoverageLoader-1] 12977 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage son_pr_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,884 [WCSCoverageLoader-1] 13263 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage su_19712100_tnst_1x1km_year_cordexadj_qdm.
WARN 2023-07-12T14:49:53,978 [WCSCoverageLoader-1] 13357 org.openeo.spring.api.loaders.WCSCollectionsLoader Temporal step provided but time axis not found in coverage tr_19712100_tnst_1x1km_year_cordexadj_qdm.
@pierocampa pierocampa added the bug Something isn't working label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants