Hi Dmitri,
the GeoTools developers work mostly on *nix machines (Linux or OSX), some
challenges are to be expected
on a Windows box. That said, we have each PR verified by Appveyor on
Windows, and it normally passes.
What I believe is causing the issue is that you have the source code in one
unit, and the temp directory in another,
which is no something others have experienced before. The test is likely
not accounting for that possibility.
Pull requests to fix that are more than welcomed :-)

Cheers
Andrea


On Thu, Sep 26, 2019 at 11:19 AM Dmitri Sirobokov [IFV] <
dmitri.sirobo...@ifv.nl> wrote:

>
>
> Hi,
>
>
>
> I just forked geotools repository and building it with mvn install
> command, but getting failing test cases which I am trying to resolve
> one-by-one.
>
>
>
> I am stuck with the following test case in gt-imagemosaic module:
> testHarvestHeteroUTM
>
>
>
> If I run this test case from IntelliJ, it is failing with the following
> stack trace:
>
>
>
> sep 26, 2019 9:18:01 AM org.geotools.gce.imagemosaic.Utils
> loadMosaicProperties
>
> INFO: Required key Levels not found.
>
> sep 26, 2019 9:18:02 AM
> org.geotools.gce.imagemosaic.ImageMosaicEventHandlers fireEvent
>
> INFO: Now indexing file indexer.properties
>
> sep 26, 2019 9:18:02 AM
> org.geotools.gce.imagemosaic.ImageMosaicEventHandlers fireEvent
>
> INFO: Now indexing file utm32n.tiff
>
> 2019-09-26T10:32:56.956+0200  WARNING  Failure occurred while collecting
> the granules
>
> org.apache.commons.io.DirectoryWalker$CancelException: Operation Cancelled
>
>             at
> org.apache.commons.io.DirectoryWalker.checkIfCancelled(DirectoryWalker.java:396)
>
>             at
> org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:368)
>
>             at
> org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
>
>             at
> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.<init>(ImageMosaicDirectoryWalker.java:117)
>
>             at
> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:203)
>
>             at
> org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource.harvestCalculation(ImageMosaicReader.java:458)
>
>             at
> org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource.access$100(ImageMosaicReader.java:185)
>
>             at
> org.geotools.gce.imagemosaic.ImageMosaicReader$HarvestedResource$1.harvest(ImageMosaicReader.java:205)
>
>             at
> org.geotools.gce.imagemosaic.ImageMosaicReader.harvest(ImageMosaicReader.java:1342)
>
>             at
> org.geotools.gce.imagemosaic.HeterogenousCRSTest.testHarvestHeteroUTM(HeterogenousCRSTest.java:245)
>
>             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>             at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
>             at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>             at java.lang.reflect.Method.invoke(Method.java:498)
>
>             at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>
>             at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>
>             at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>
>             at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>
>             at
> org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
>
>             at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>
>             at
> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>
>             at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>
>             at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>
>             at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>
>             at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>
>             at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>
>             at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>
>             at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>
>             at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>
>             at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>
>             at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>
>             at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>
>             at
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
>
>             at
> com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
>
>             at
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
>
>             at
> com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
>
>
>
>
>
> While debugging further I figured out that DirectoryWalker is cancelled
> due to internal exception:
>
>
>
> java.lang.RuntimeException: No common path element found for
> 'D:\git\forks\geotools\modules\plugin\imagemosaic\target\test-classes\org\geotools\gce\imagemosaic\test-data\hetero_utm\utm33n.tiff'
> and
> 'C:\Users\dmitri.sirobokov\AppData\Local\Temp\junit1647980960918504241\harvestHeteroUtm'
>
>
>
> Any idea what is going wrong with running tests locally on my machine?
>
>
>
> Thanks,
>
> Dmitri.
>
>
> Op deze e-mail is de disclaimer
> <http://www.ifv.nl/Paginas/Contact.aspx#tab3> van het IFV van toepassing.
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>


-- 

Regards, Andrea Aime == 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/A 55054
Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339
8844549 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.*
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to