3dcitydb / energy-ade-citydb

Energy ADE extension for the 3DCityDB
Apache License 2.0
7 stars 4 forks source link

Java error when trying to use the 3DCityDB importer and Energy ADE #1

Closed MennoSchepel closed 3 years ago

MennoSchepel commented 3 years ago

When trying to use the 3DcityDB importer with the example gml files provided in the /resources/datasets/ section, I receive an Java error if I try to import them into the DB. I could install the ADE without problems, I can see that all the related tables are generated within the database, the ADE is registered correctly and can be retrieved within the importer. However the following ugly error is shown when trying to import one of the given example datasets:

[13:29:04 ERROR] An error occurred: 'void org.citydb.ade.importer.CityGMLImportHelper.propagateObjectXlink(java.lang.String, long, java.lang.String, java.lang.String)' [13:29:04 ERROR] Aborting due to an unexpected java.lang.NoSuchMethodError error.

This error is happening with both datasets. The error is only shown when marking all feature types, if I only mark the KITEnergyADE Feature type, the import gives no error, but nothing is imported, although the console states that i file is imported:

[13:31:47 INFO] Initializing database import... [13:31:47 INFO] Spatial indexes are enabled. [13:31:47 INFO] Normal indexes are enabled. [13:31:47 INFO] Creating list of CityGML files to be imported... [13:31:47 INFO] List of import files successfully created. [13:31:47 INFO] 1 file(s) will be imported. [13:31:47 INFO] Importing file: C:\DITUR\Data\Bau445-LoD3-ADE.gml [13:31:47 INFO] Resolving XLink references. [13:31:47 INFO] Cleaning temporary cache. [13:31:47 INFO] Total import time: 00 s. [13:31:47 INFO] Database import successfully finished.

If I look into the database nothing is imported into any of the Energy tables!

System characteristics: Windows OS 3D City Database Importer/Exporter Version 4.2.0 (2019-02-13) PostGreSQL 13 (PostGIS) JDK 15

clausnagel commented 3 years ago

I can reproduce your error. There has obviously been a breaking change in the ADE extension API between version 4.2.0 and 4.2.3 of the Importer/Exporter that we were not aware of.

Please use the EnergyADE extension 1.2.0 only with version 4.2.3 of the Importer/Exporter. I have changed the release notes accordingly.

clausnagel commented 3 years ago

Just released the new version 1.2.1 which can now be used with the latest version 4.3.0 of the Importer/Exporter