Re: [netcdf-java] securityException while reading Grib files

Hi again.
I have also found this thread:
https://www.unidata.ucar.edu/mailing_lists/archives/thredds/2014/msg00233.html

That's basically the problem I have.
To summarize, I'm trying to read a grib file which uses the jj2000
machinery and I'm having exceptions since I also have jai-imageio on my
classpath (I can't remove jai-imageio from the classpath).

Do you have any suggestions for this?
Cheers,
Daniele







==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.


On Fri, Apr 17, 2015 at 3:36 PM, Daniele Romagnoli <
daniele.romagnoli@xxxxxxxxxxxxxxxx> wrote:

> Hi List,
> I have basically the same issue reported by Akkineni Vijay.
>
> When reading some types of grib files I'm getting the exception reported
> at the end of the email. I have checked a couple of similar emails in the
> mailing list but it's not too clear to me how to resolve that.
> Note that my project also uses jai_imageio.jar which contains Oracle
> classes to do JAI ImageRead operations using ImageIO SPIs.
> That jar also contains a jj2000.j2k.* packages.
>
> Do you have any suggestion?
> Please, let me know.
>
> Best Regards,
> Daniele
>
>
>
> java.lang.SecurityException: sealing violation: package jj2000.j2k.util is
> sealed
>     at java.net.URLClassLoader.getAndVerifyPackage(URLClassLoader.java:388)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:417)
>     at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>     at
> ucar.nc2.grib.grib2.Grib2JpegDecoder.<init>(Grib2JpegDecoder.java:119)
>     at
> ucar.nc2.grib.grib2.Grib2DataReader2.getData40(Grib2DataReader2.java:727)
>     at
> ucar.nc2.grib.grib2.Grib2DataReader2.getData(Grib2DataReader2.java:109)
>     at ucar.nc2.grib.grib2.Grib2Record.readData(Grib2Record.java:321)
>     at ucar.nc2.grib.collection.Grib2Iosp.readData(Grib2Iosp.java:405)
>     at ucar.nc2.grib.collection.GribIosp$DataReader.read(GribIosp.java:940)
>     at
> ucar.nc2.grib.collection.GribIosp.readDataFromCollection(GribIosp.java:860)
>     at ucar.nc2.grib.collection.GribIosp.readData(GribIosp.java:810)
>     at ucar.nc2.NetcdfFile.readData(NetcdfFile.java:1986)
>     at ucar.nc2.Variable.reallyRead(Variable.java:899)
>     at ucar.nc2.Variable._read(Variable.java:884)
>     at ucar.nc2.Variable.read(Variable.java:695)
>     at ucar.nc2.dataset.VariableDS.reallyRead(VariableDS.java:557)
>     at ucar.nc2.dataset.VariableDS._read(VariableDS.java:537)
>     at ucar.nc2.Variable.read(Variable.java:695)
>
>
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:      +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: