[ 
https://issues.apache.org/jira/browse/SIS-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775251#comment-17775251
 ] 

Martin Desruisseaux commented on SIS-588:
-----------------------------------------

It is strange. Above output said that the Derby version is 10.14, as shown in 
the following fragment:

{noformat}
+- org.apache.sis.non-free:sis-embedded-data:jar:1.4:runtime
 +- org.apache.derby:derby:jar:10.14.2.0:runtime
 - org.apache.derby:derbytools:jar:10.14.2.0:runtime
{noformat}

But {{sis-embedded-data}} should use 10.15, as we can see in the [POM file on 
Maven 
Central|https://repo1.maven.org/maven2/org/apache/sis/non-free/sis-embedded-data/1.4/sis-embedded-data-1.4.pom].
 I just did a test with a small Maven project and I get version 10.15 with 
{{mvn dependency:tree}} on my side.

The SIS emdedded database has been created with Derby 10.15, so it will surely 
not work as long as {{mvn dependency:tree}} reports a lower version. Can you 
try the following?

* Cleanup the local repository with {{rm -r ~/.m2/repository/org/apache/sis}} 
and try again.
* Check if the project declares explicitly a Derby version overriding the one 
inherited from {{sis-embedded-data}}.


> Problem integrating sis-embedded-data in conversion tool
> --------------------------------------------------------
>
>                 Key: SIS-588
>                 URL: https://issues.apache.org/jira/browse/SIS-588
>             Project: Spatial Information Systems
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Johannes Weberhofer
>            Assignee: Martin Desruisseaux
>            Priority: Major
>
> Thank you for this great library. I'm currently trying to upgrade an old 
> application of mine to Java 17 and therefor try to switch to Apache sis 1.4.
> Unfortunately, it seems thatincluding the sis-embedded-data library does not 
> work for me. Accessing any data results in the following message:
> {{ }}
> {{WARNUNG: Cannot instantiate geodetic object for “EPSG:4326”.}}
> {{Caused by UnavailableFactoryException: Cannot use the EPSG geodetic 
> parameters. Caused by: Failed to start database 
> 'classpath:SIS_DATA/Databases/spatial-metadata' with class loader 
> jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7, see the next 
> exception for details.}}
> {{Caused by SQLException: Catalogs at version level 'null' cannot be upgraded 
> to version level '10.14'.}}
> I don't think, it's a issue with the derby version but a packaging problem. 
> Maven is not copying over the database and all it's segments to the target.
> Shouldn't that simply work? Or did I forget something?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to