[geotk] geotk-referencing and metadata Citations

Martin Desruisseaux martin.desruisseaux at geomatys.fr
Sun Dec 28 04:21:01 PST 2014


Hello Emmanuel

I wonder if the problem is a dependency, because of the error message
with rather suggest that the class has been found but its initialization
failed. Is there a "caused by" exception after the reported one?

Alternatively I noticed that when a class initialization fails, the
first usage attempt is a ClassInitializationError (as we would expect)
while all subsequent usage attempts result in ClassNotFoundException. So
if there is other exceptions in addition to this one, the very first
exception may be the most informative one.

However the error is surprising since it occurs in a widely-used method.
I think we should have got many JUnit test failures if they were a
problem there. Maybe they were a problem with downloaded Geotk
artefacts, maybe related to the build issues we had. I would suggest to
try again to build your application with:

mvn clean install --update-snapshots

    Martin


Le 27/12/14 03:22, Emmanuel Blondel a écrit :
> Hi, recently i've switched from Geotk 4.0-M2 to 4.x-SNAPSHOT.
> I've got a problem in retrieving data:
> - it seems the dependency geotk-metadata is missing in
> geotk-referencing dependencies - see http://pastebin.com/jBHRJPJP
> - i've then try to add geotk-metadata module in my pom.xml, but i got
> the same error, and indeed if i look to the maven deps, the Citations
> class is (still) under org.geotoolkit.metadata.iso.citation namespace,
> while the code indicates "org.geotoolkit.metadata" namespace.
>
> Is there anything useful here for fixes?
>
> Thanks in advance
> Emmanuel



More information about the Geotoolkit mailing list