I get ClassDefNotFoundError.

To better reproduce the problem I created a minimal reproducible example:
https://github.com/geoHeil/vectorizePolygons but this no longer shows the
original problem. Here I get a couple of steps further, but lack the proper
JAI registration. Do you have an Idea to get the sample to work?

Full stacktrace is:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class
javax.imageio.ImageIO

                at
org.geotools.gce.arcgrid.ArcGridReader.checkSource(ArcGridReader.java:282)

                at
org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:136)

                at
org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:114)

Best,
Georg

Andrea Aime <[email protected]> schrieb am Di., 31. Juli 2018 um
08:26 Uhr:

> On Mon, Jul 30, 2018 at 8:35 PM Georg Heiler <[email protected]>
> wrote:
>
>> Hi,
>>
>> I want to read a GridCoverage2D from an ESRi ArcGrid File using geo tools
>> on centos using openjdk 8.
>>
>> But I get the error of
>> NoClassDefFoundError Could not initialize class java.imageio.ImageIO
>>
>
> "Could not initialize" normally means the class is there but its static
> initialization failed (would be a "class not found" error otherwise, no?).
> Please share the full stack trace
>
> Cheers
> Andrea
>
> ==
>
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
> Technical Lead GeoSolutions S.A.S. Via di Montramito 3
> <https://maps.google.com/?q=Via+di+Montramito+3&entry=gmail&source=g>/A
> 55054 Massarosa (LU) phone: +39 0584 962313 <+39%200584%20962313> fax: +39
> 0584 1660272 <+39%200584%20166%200272> mob: +39 339 8844549
> <+39%20339%20884%204549> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> ------------------------------------------------------- *Con riferimento
> alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
> Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
> circostanza inerente alla presente email (il suo contenuto, gli eventuali
> allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
> destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
> errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
> sarei comunque grato se potesse darmene notizia. This email is intended
> only for the person or entity to which it is addressed and may contain
> information that is privileged, confidential or otherwise protected from
> disclosure. We remind that - as provided by European Regulation 2016/679
> “GDPR” - copying, dissemination or use of this e-mail or the information
> herein by anyone other than the intended recipient is prohibited. If you
> have received this email by mistake, please notify us immediately by
> telephone or e-mail.*
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to