Hi Iain,
Thanks for the feedback.
You were correct the problem was in the gt-netcdf module.
I create a pull request (with backports) that solve this issue:
https://github.com/geotools/geotools/pull/1194
Regards,
Nuno Oliveira
Le lundi 16 mai 2016 à 23:49 +1200, Iain Matcham a écrit :
> Hi Nuno,
> Thank you for this. I can confirm that in the environment that you have
> provided the file is successfully deleted (and thus the problem
> does not exist). I have analysed the difference between the two
> environments, and conclude that the problem only exhibits when gt-netcdf
> is also on the classpath.
> Please find attached updated pom.xml demonstrating this
> My environment is windows10/java1.8
> Thanks
> Iain
> On 16/05/2016 10:46 p.m., Nuno Oliveira wrote:
> > Hi,
> >
> > I have tried the given example and is working on my machine (Linux and
> > Windows and GeoTools 14.1).
> >
> > Please find attached a version of the given example integrated with Maven.
> >
> > The example will run as an unit test:
> >
> > -------------------------------------------------------
> > T E S T S
> > -------------------------------------------------------
> > Running org.test.MainTest
> > mai 16, 2016 11:36:44 AM org.geotools.gce.image.WorldImageReader readCRS
> > INFOS: Unable to find crs, continuing with default CRS
> > Reader successfully instantiated
> > Reader successfully disposed
> > Can delete pgw: true
> > Can delete png: true
> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.514
> > sec
> >
> > The build will also produce an ubber jar that can be used like this:
> >
> > java -cp target/test-locks-1.0-SNAPSHOT-jar-with-dependencies.jar
> > org.test.Main
> > mai 16, 2016 11:29:52 AM org.geotools.gce.image.WorldImageReader readCRS
> > INFOS: Unable to find crs, continuing with default CRS
> > Reader successfully instantiated
> > Reader successfully disposed
> > Can delete pgw: true
> > Can delete png: true
> >
> > Can you give a try to this with Maven (this will give us a similar
> > classpath) ? Can you describe the environment you are you using (OS,
> > JDK, etc ...) ?
> >
> > Regards,
> >
> > Nuno Oliveira
> >
> > Le lundi 16 mai 2016 à 10:23 +0200, Simone Giannecchini a écrit :
> > > Ciao Iain,
> > > I have forwarded this task to one of our guys.
> > >
> > >
> > >
> > > Regards,
> > > Simone Giannecchini
> > > ==
> > > GeoServer Professional Services from the experts!
> > > Visit http://goo.gl/it488V for more information.
> > > ==
> > > Ing. Simone Giannecchini
> > > @simogeo
> > > Founder/Director
> > >
> > > GeoSolutions S.A.S.
> > > Via di Montramito 3/A
> > > 55054 Massarosa (LU)
> > > Italy
> > > phone: +39 0584 962313
> > > fax: +39 0584 1660272
> > > mob: +39 333 8128928
> > >
> > > 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 Thu, May 12, 2016 at 1:00 PM, Iain Matcham <[email protected]> wrote:
> > > > Ciao Simone,
> > > > Please find attached an isolated test case as requested. The build
> > > > path will need to include geotools and dependencies (obviously)
> > > > but should need nothing else.
> > > > When run on my system, against geotools 14.1 stdout is:
> > > >
> > > > Reader successfully instantiated
> > > > Reader successfully disposed
> > > > Can delete pgw: true
> > > > Can delete png: false
> > > >
> > > > The last line indicates the png file cannot be deleted because of a
> > > > lock remaining on the png file.
> > > >
> > > > Cheers
> > > > Iain
> > > >
> > > >
> > > >
> > > > On 12/05/2016 9:46 a.m., Simone Giannecchini wrote:
> > > > > Ciao Gabriella,
> > > > > is it too much to ask for an isolated test case that shows the
> > > > > problem?
> > > > >
> > > > >
> > > > > Regards,
> > > > > Simone Giannecchini
> > > > > ==
> > > > > GeoServer Professional Services from the experts!
> > > > > Visit http://goo.gl/it488V for more information.
> > > > > ==
> > > > > Ing. Simone Giannecchini
> > > > > @simogeo
> > > > > Founder/Director
> > > > >
> > > > > GeoSolutions S.A.S.
> > > > > Via di Montramito 3/A
> > > > > 55054 Massarosa (LU)
> > > > > Italy
> > > > > phone: +39 0584 962313
> > > > > fax: +39 0584 1660272
> > > > > mob: +39 333 8128928
> > > > >
> > > > > 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, May 6, 2016 at 4:22 AM, Gabriella Turek
> > > > > <[email protected]> wrote:
> > > > > > A coworker has found a potential bug. Is this known?
> > > > > > Gaby
> > > > > > From: Iain Matcham <[email protected]>
> > > > > > Date: Friday, 6 May 2016 14:17
> > > > > > To: Gabriella Turek <[email protected]>
> > > > > > Subject: Re: Styling work almost there
> > > > > > BTW found a bug in geotools (or possible JAI used by geotools):
> > > > > > new WorldFileReader(file) creates a lock on the file and far
> > > > > > as I can tell it is impossible to get rid of it. dispose() doesn't
> > > > > > work because it's not the read operation that's causing the
> > > > > > lock. Hopefully they'll have fixed in 15 :) Don't suppose you've
> > > > > > come across a solution somewhere along the line?
> > > > > >
> > > > > >
> > > > > > ------------------------------------------------------------------------------
> > > > > > Find and fix application performance issues faster with
> > > > > > Applications Manager
> > > > > > Applications Manager provides deep performance insights into
> > > > > > multiple tiers of
> > > > > > your business applications. It resolves application problems
> > > > > > quickly and
> > > > > > reduces your MTTR. Get your free trial!
> > > > > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > > > > > _______________________________________________
> > > > > > GeoTools-GT2-Users mailing list
> > > > > > [email protected]
> > > > > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> > > > > >
> > > > > >
> > > > --
> > > > Sent from my ZX80
> > > >
> > > > > > > > Virus-free. www.avast.com
> > > >
> > > ------------------------------------------------------------------------------
> > > Mobile security can be enabling, not merely restricting. Employees who
> > > bring their own devices (BYOD) to work are irked by the imposition of MDM
> > > restrictions. Mobile Device Manager Plus allows you to control only the
> > > apps on BYO-devices by containerizing them, leaving personal data
> > > untouched!
> > > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> > > _______________________________________________
> > > GeoTools-GT2-Users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> > --
> > ==
> > GeoServer Professional Services from the experts!
> > Visit http://goo.gl/it488V for more information.
> > ==
> > Nuno Miguel Carvalho Oliveira
> > @nmcoliveira
> > Software Engineer
> >
> > GeoSolutions S.A.S.
> > Via di Montramito 3/A
> > 55054 Massarosa (LU)
> > Italy
> >
> > phone: +39 0584 962313
> > fax: +39 0584 1660272
> > mob: +39 333 8128928
> >
> > 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.
> --
> Sent from my ZX80
>
> > Virus-free. www.avast.com
--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
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.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users