[Geoserver-devel] Windows build almost there (and a couple question)

Hi,
the Windows build is almost working. Actually, it just never fails on my win7
box, but on the build server, hosted in a VM, it still does a bit (7 out of last 10
builds working fine):
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Master/

One failure that keeps on happening every now and then is this one:

Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.202 sec <<< FAILURE!
testOutputFormatWrongCase(org.geoserver.wfs.xslt.GetFeatureXSLTTest)  Time elapsed: 15 sec  <<< FAILURE!
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at org.geoserver.wfs.xslt.GetFeatureXSLTTest.setupXSLT(GetFeatureXSLTTest.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)

And the code where it happens leaves me quite baffled:

@Before
public void setupXSLT() throws IOException {
File dd = getTestData().getDataDirectoryRoot();
File wfs = new File(dd, “wfs”);
File transform = new File(wfs, “transform”);
if (transform.exists()) {
FileUtils.deleteDirectory(transform);
}
assertTrue(transform.mkdirs()); << this is line 47
FileUtils.copyDirectory(new File(“src/test/resources/org/geoserver/wfs/xslt”), transform);

// makes sure the output format list is updated
XSLTOutputFormatUpdater updater = applicationContext.getBean(XSLTOutputFormatUpdater.class);
updater.run();
}

So, before each test we clean up a directory in the data dir. The FileUtils.deleteDirectory
supposedly cleans up a directory recursively, and will throw an exception in case it
cannot.
So apparently we are able to delete the directory, but then sometimes the subsequent mkdirs()
fails to create it back? This would fail only if the directory creation is impossible, or if
it was there already, but neither case should really be happening,
when testOutputFormatWrongCase runs it’s the 6th times setupXSLT() is called,
Anybody has a clue?

The other error is also rather maddening:

···

==

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

==

Ing. Andrea Aime

@geowolf
Technical Lead

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

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.


Hi,

Out of curiosity, is there an anti-virus or anti-malware suite installed on the server? I have experienced some file locking behavior until I excluded my development folders from the AV on access scanner process.

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Description: Description: Description: cid:image001.png@...3926...

(attachments)

image001.png

···

Hi,

the Windows build is almost working. Actually, it just never fails on my win7

box, but on the build server, hosted in a VM, it still does a bit (7 out of last 10

builds working fine):

http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Master/

One failure that keeps on happening every now and then is this one:

Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.202 sec <<< FAILURE!
testOutputFormatWrongCase(org.geoserver.wfs.xslt.GetFeatureXSLTTest)  Time elapsed: 15 sec  <<< FAILURE!
java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:86)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertTrue(Assert.java:52)
        at org.geoserver.wfs.xslt.GetFeatureXSLTTest.setupXSLT(GetFeatureXSLTTest.java:47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)

And the code where it happens leaves me quite baffled:

@Before

public void setupXSLT() throws IOException {

File dd = getTestData().getDataDirectoryRoot();

File wfs = new File(dd, “wfs”);

File transform = new File(wfs, “transform”);

if (transform.exists()) {

FileUtils.deleteDirectory(transform);

}

assertTrue(transform.mkdirs()); << this is line 47

FileUtils.copyDirectory(new File(“src/test/resources/org/geoserver/wfs/xslt”), transform);

// makes sure the output format list is updated

XSLTOutputFormatUpdater updater = applicationContext.getBean(XSLTOutputFormatUpdater.class);

updater.run();

}

So, before each test we clean up a directory in the data dir. The FileUtils.deleteDirectory

supposedly cleans up a directory recursively, and will throw an exception in case it

cannot.

So apparently we are able to delete the directory, but then sometimes the subsequent mkdirs()

fails to create it back? This would fail only if the directory creation is impossible, or if

it was there already, but neither case should really be happening,

when testOutputFormatWrongCase runs it’s the 6th times setupXSLT() is called,

Anybody has a clue?

The other error is also rather maddening:

java.io.FileNotFoundException: C:\.jenkins\jobs\GeoServer-Master\workspace\src\main\.\target\default117786853019681370data\global.xml (Access is denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at java.io.FileInputStream.<init>(FileInputStream.java:101)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:613)
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
        at org.geoserver.config.GeoServerPersisterTest.dom(GeoServerPersisterTest.java:1008)
        at org.geoserver.config.GeoServerPersisterTest.testModifyGlobal(GeoServerPersisterTest.java:929)

We just created that file, how can not we have read access privileges to it? (note the end of the exception)

And this happens only some times, making this even more mysterious.

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

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 Tue, Apr 7, 2015 at 4:08 PM, Chris Snider <chris.snider@anonymised.com>
wrote:

Hi,

Out of curiosity, is there an anti-virus or anti-malware suite installed
on the server? I have experienced some file locking behavior until I
excluded my development folders from the AV on access scanner process.

Good suggestion, I have the exclusion on my dev machine indeed, but we did
not have one on
the build server, let's see if this helps

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

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

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.

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