[Geoserver-devel] app-schema-test keeps on failing locally

Hi,
I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52 sec <<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureChainingWfsTest) Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatureTypeNoTypes(FeatureChainingWfsTest.java:325)
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:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
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.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
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:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

At first I thought “hey, my geotools checkout is not up to date”, and indeed I was missing some commits,
then I’ve tried getting jars from the boundless repo instead, but the outcome does not change.
I’ve run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the same way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Master/lastCompletedBuild/testReport/

http://build.geo-solutions.it/jenkins/job/GeoServer-Master-OpenJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

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/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

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.


Andrea,

this tests passes for me in Maven and Eclipse on OpenJDK 8.

A comment in the test warns:
// targetNamespace depends on load order which is platform dependent

What do you see at the console if you run this test in Eclipse? The failure you see indicates that you are getting the example (ex) targetNamespace. I would like to see your response document so I can determine if it is valid.

I get the GeoSciML targetNamespace which passes the test (second branch):

Dec 12, 2016 4:33:36 PM org.geoserver.test.FeatureChainingWfsTest testDescribeFeatureTypeNoTypes
INFO: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; elementFormDefault="qualified" targetNamespace="urn:cgi:xmlns:CGI:GeoSciML:2.0">
   <xsd:import namespace="http://example.com" schemaLocation="file:/home/ben/geoserver/src%20with%20spaces/geoserver/src/extension/app-schema/app-schema-test/target/app-schema-mock578553865686759165data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd"/>
   <xsd:include schemaLocation="http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd&quot;/&gt;
   <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Kind regards,
Ben.

On 12/12/16 08:24, Andrea Aime wrote:

Hi,
I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52 sec
<<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureChainingWfsTest)
Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at
org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatureTypeNoTypes(FeatureChainingWfsTest.java:325)
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:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
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.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
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:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

At first I thought "hey, my geotools checkout is not up to date", and
indeed I was missing some commits,
then I've tried getting jars from the boundless repo instead, but the
outcome does not change.
I've run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the same
way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Master/lastCompletedBuild/testReport/
http://build.geo-solutions.it/jenkins/job/GeoServer-Master-OpenJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

Cheers
Andrea

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

Hi Ben,
I get the following:

Error while parsing JAI registry file “file:/home/aaime/.m2/repository/org/geotools/gt-coverage/16-SNAPSHOT/gt-coverage-16-SNAPSHOT.jar!/META-INF/registryFile.jai” :
Error in registry file at line number #31
A descriptor is already registered against the name “org.geotools.ColorReduction” under registry mode “rendered”
Error in registry file at line number #32
A descriptor is already registered against the name “org.geotools.ColorInversion” under registry mode “rendered”
Error while parsing JAI registry file “file:/home/aaime/.m2/repository/org/geotools/gt-process-raster/16-SNAPSHOT/gt-process-raster-16-SNAPSHOT.jar!/META-INF/registryFile.jai” :
Error in registry file at line number #4
A descriptor is already registered against the name “ClassBreaks” under registry mode “rendered”
dic 12, 2016 8:42:07 AM org.geoserver.test.FeatureChainingWfsTest testDescribeFeatureTypeNoTypes
INFORMAZIONI: WFS DescribeFeatureType response:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd=“http://www.w3.org/2001/XMLSchema” elementFormDefault=“qualified” targetNamespace=“http://example.com”>
<xsd:include schemaLocation=“file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_SecondParentFeature/simpleContent.xsd”/>
<xsd:include schemaLocation=“file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd”/>
<xsd:include schemaLocation=“file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_FirstParentFeature/simpleContent.xsd”/>
<xsd:import namespace=“urn:cgi:xmlns:CGI:GeoSciML:2.0” schemaLocation=“http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd”/>
<xsd:import namespace=“http://www.opengis.net/om/1.0” schemaLocation=“http://schemas.opengis.net/om/1.0.0/observation.xsd”/>
</xsd:schema>

Cheers
Andrea

···

On Mon, Dec 12, 2016 at 4:50 AM, Ben Caradoc-Davies <ben@anonymised.com> wrote:

Andrea,

this tests passes for me in Maven and Eclipse on OpenJDK 8.

A comment in the test warns:
// targetNamespace depends on load order which is platform dependent

What do you see at the console if you run this test in Eclipse? The failure you see indicates that you are getting the example (ex) targetNamespace. I would like to see your response document so I can determine if it is valid.

I get the GeoSciML targetNamespace which passes the test (second branch):

Dec 12, 2016 4:33:36 PM org.geoserver.test.FeatureChainingWfsTest testDescribeFeatureTypeNoTypes
INFO: WFS DescribeFeatureType response:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd=“http://www.w3.org/2001/XMLSchema” elementFormDefault=“qualified” targetNamespace=“urn:cgi:xmlns:CGI:GeoSciML:2.0”>
<xsd:import namespace=“http://example.com” schemaLocation=“file:/home/ben/geoserver/src%20with%20spaces/geoserver/src/extension/app-schema/app-schema-test/target/app-schema-mock578553865686759165data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd”/>
<xsd:include schemaLocation=“http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd”/>
<xsd:import namespace=“http://www.opengis.net/om/1.0” schemaLocation=“http://schemas.opengis.net/om/1.0.0/observation.xsd”/>
</xsd:schema>

Kind regards,
Ben.

On 12/12/16 08:24, Andrea Aime wrote:

Hi,
I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52 sec
<<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureChainingWfsTest)
Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at
org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatureTypeNoTypes(FeatureChainingWfsTest.java:325)
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:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
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.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
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:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

At first I thought “hey, my geotools checkout is not up to date”, and
indeed I was missing some commits,
then I’ve tried getting jars from the boundless repo instead, but the
outcome does not change.
I’ve run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the same
way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Master/lastCompletedBuild/testReport/
http://build.geo-solutions.it/jenkins/job/GeoServer-Master-OpenJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

Cheers
Andrea


Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi


Geoserver-devel mailing list
Geoserver-devel@anonymised.comrge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

==
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

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.


Thanks, Andrea. This is a genuine failure. The ex targetNamespace code branch of this test was not updated for GEOS-7860, which adds an additional schema. Please try this fix locally (as I do not see this failure) and then merge if it works:
https://github.com/geoserver/geoserver/pull/2014

See also:
https://osgeo-org.atlassian.net/browse/GEOS-7860

Kind regards,
Ben.

On 12/12/16 20:42, Andrea Aime wrote:

Hi Ben,
I get the following:

Error while parsing JAI registry file
"file:/home/aaime/.m2/repository/org/geotools/gt-coverage/16-SNAPSHOT/gt-coverage-16-SNAPSHOT.jar!/META-INF/registryFile.jai"
:
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
Error while parsing JAI registry file
"file:/home/aaime/.m2/repository/org/geotools/gt-process-raster/16-SNAPSHOT/gt-process-raster-16-SNAPSHOT.jar!/META-INF/registryFile.jai"
:
Error in registry file at line number #4
A descriptor is already registered against the name "ClassBreaks" under
registry mode "rendered"
dic 12, 2016 8:42:07 AM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFORMAZIONI: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
elementFormDefault="qualified" targetNamespace="http://example.com">
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_SecondParentFeature/simpleContent.xsd"/>
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd"/>
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_FirstParentFeature/simpleContent.xsd"/>
  <xsd:import namespace="urn:cgi:xmlns:CGI:GeoSciML:2.0" schemaLocation="
http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd&quot;/&gt;
  <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Cheers
Andrea

On Mon, Dec 12, 2016 at 4:50 AM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Andrea,

this tests passes for me in Maven and Eclipse on OpenJDK 8.

A comment in the test warns:
// targetNamespace depends on load order which is platform dependent

What do you see at the console if you run this test in Eclipse? The
failure you see indicates that you are getting the example (ex)
targetNamespace. I would like to see your response document so I can
determine if it is valid.

I get the GeoSciML targetNamespace which passes the test (second branch):

Dec 12, 2016 4:33:36 PM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFO: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
elementFormDefault="qualified" targetNamespace="urn:cgi:xmlns
:CGI:GeoSciML:2.0">
  <xsd:import namespace="http://example.com"
schemaLocation="file:/home/ben/geoserver/src%20with%20spaces
/geoserver/src/extension/app-schema/app-schema-test/target/
app-schema-mock578553865686759165data/featureTypes/ex_
ParentFeature/NonValidNestedGML.xsd"/>
  <xsd:include schemaLocation="http://www.geo
sciml.org/geosciml/2.0/xsd/geosciml.xsd"/>
  <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Kind regards,
Ben.

On 12/12/16 08:24, Andrea Aime wrote:

Hi,
I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52 sec
<<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureChainingWfsTest)
Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at
org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatureTypeNoTypes(
FeatureChainingWfsTest.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(Refl
ectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
ameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(
InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUni
t4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestS
et(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit
4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodW
ithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderPro
xy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvi
der(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
cess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
ter.java:75)

At first I thought "hey, my geotools checkout is not up to date", and
indeed I was missing some commits,
then I've tried getting jars from the boundless repo instead, but the
outcome does not change.
I've run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the same
way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Maste
r/lastCompletedBuild/testReport/
http://build.geo-solutions.it/jenkins/job/GeoServer-Master-O
penJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

Cheers
Andrea

------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

Hi Nuno,
any chance you can have a look at it?

Cheers
Andrea

···

On Mon, Dec 12, 2016 at 7:22 PM, Ben Caradoc-Davies <ben@anonymised.com> wrote:

Thanks, Andrea. This is a genuine failure. The ex targetNamespace code branch of this test was not updated for GEOS-7860, which adds an additional schema. Please try this fix locally (as I do not see this failure) and then merge if it works:
https://github.com/geoserver/geoserver/pull/2014

See also:
https://osgeo-org.atlassian.net/browse/GEOS-7860

Kind regards,
Ben.

On 12/12/16 20:42, Andrea Aime wrote:

Hi Ben,
I get the following:

Error while parsing JAI registry file
“file:/home/aaime/.m2/repository/org/geotools/gt-coverage/16-SNAPSHOT/gt-coverage-16-SNAPSHOT.jar!/META-INF/registryFile.jai”
:
Error in registry file at line number #31
A descriptor is already registered against the name
“org.geotools.ColorReduction” under registry mode “rendered”
Error in registry file at line number #32
A descriptor is already registered against the name
“org.geotools.ColorInversion” under registry mode “rendered”
Error while parsing JAI registry file
“file:/home/aaime/.m2/repository/org/geotools/gt-process-raster/16-SNAPSHOT/gt-process-raster-16-SNAPSHOT.jar!/META-INF/registryFile.jai”
:
Error in registry file at line number #4
A descriptor is already registered against the name “ClassBreaks” under
registry mode “rendered”
dic 12, 2016 8:42:07 AM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFORMAZIONI: WFS DescribeFeatureType response:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd=“http://www.w3.org/2001/XMLSchema
elementFormDefault=“qualified” targetNamespace=“http://example.com”>
<xsd:include
schemaLocation=“file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_SecondParentFeature/simpleContent.xsd”/>
<xsd:include
schemaLocation=“file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd”/>
<xsd:include
schemaLocation=“file:/home/aaime/devel/git-gs/src/extension/app-schema/app-schema-test/target/app-schema-mock819895118180371408data/featureTypes/ex_FirstParentFeature/simpleContent.xsd”/>
<xsd:import namespace=“urn:cgi:xmlns:CGI:GeoSciML:2.0” schemaLocation="
http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd"/>
<xsd:import namespace=“http://www.opengis.net/om/1.0” schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd"/>
</xsd:schema>

Cheers
Andrea

On Mon, Dec 12, 2016 at 4:50 AM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Andrea,

this tests passes for me in Maven and Eclipse on OpenJDK 8.

A comment in the test warns:
// targetNamespace depends on load order which is platform dependent

What do you see at the console if you run this test in Eclipse? The
failure you see indicates that you are getting the example (ex)
targetNamespace. I would like to see your response document so I can
determine if it is valid.

I get the GeoSciML targetNamespace which passes the test (second branch):

Dec 12, 2016 4:33:36 PM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFO: WFS DescribeFeatureType response:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd=“http://www.w3.org/2001/XMLSchema
elementFormDefault=“qualified” targetNamespace=“urn:cgi:xmlns
:CGI:GeoSciML:2.0”>
<xsd:import namespace=“http://example.com
schemaLocation=“file:/home/ben/geoserver/src%20with%20spaces
/geoserver/src/extension/app-schema/app-schema-test/target/
app-schema-mock578553865686759165data/featureTypes/ex_
ParentFeature/NonValidNestedGML.xsd”/>
<xsd:include schemaLocation=“http://www.geo
sciml.org/geosciml/2.0/xsd/geosciml.xsd”/>
<xsd:import namespace=“http://www.opengis.net/om/1.0” schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd"/>
</xsd:schema>

Kind regards,
Ben.

On 12/12/16 08:24, Andrea Aime wrote:

Hi,
I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52 sec
<<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureChainingWfsTest)
Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at
org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatureTypeNoTypes(
FeatureChainingWfsTest.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(Refl
ectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
ameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(
InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUni
t4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestS
et(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit
4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at

org.apache.maven.surefire.util.ReflectionUtils.invokeMethodW
ithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderPro
xy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvi
der(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
cess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo

ter.java:75)

At first I thought “hey, my geotools checkout is not up to date”, and
indeed I was missing some commits,
then I’ve tried getting jars from the boundless repo instead, but the
outcome does not change.
I’ve run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the same
way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Maste
r/lastCompletedBuild/testReport/
http://build.geo-solutions.it/jenkins/job/GeoServer-Master-O
penJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

Cheers
Andrea



Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi


Geoserver-devel mailing list
Geoserver-devel@anonymised.comrge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand


Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

==
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

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.


Andrea,

I think this test was passing locally for Nuno, so he is not hitting this code branch on his local platform. Andrea, because you see the failure and thus are hitting this code branch on your local platform, you are able to test the fix:
https://github.com/geoserver/geoserver/pull/2014

We could just merge it and see but it would be nice to test it first.

Kind regards,
Ben.

On 13/12/16 07:58, Andrea Aime wrote:

Hi Nuno,
any chance you can have a look at it?

Cheers
Andrea

On Mon, Dec 12, 2016 at 7:22 PM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Thanks, Andrea. This is a genuine failure. The ex targetNamespace code
branch of this test was not updated for GEOS-7860, which adds an additional
schema. Please try this fix locally (as I do not see this failure) and then
merge if it works:
https://github.com/geoserver/geoserver/pull/2014

See also:
https://osgeo-org.atlassian.net/browse/GEOS-7860

Kind regards,
Ben.

On 12/12/16 20:42, Andrea Aime wrote:

Hi Ben,
I get the following:

Error while parsing JAI registry file
"file:/home/aaime/.m2/repository/org/geotools/gt-coverage/
16-SNAPSHOT/gt-coverage-16-SNAPSHOT.jar!/META-INF/registryFile.jai"
:
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
Error while parsing JAI registry file
"file:/home/aaime/.m2/repository/org/geotools/gt-process-
raster/16-SNAPSHOT/gt-process-raster-16-SNAPSHOT.jar!/META-
INF/registryFile.jai"
:
Error in registry file at line number #4
A descriptor is already registered against the name "ClassBreaks" under
registry mode "rendered"
dic 12, 2016 8:42:07 AM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFORMAZIONI: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
elementFormDefault="qualified" targetNamespace="http://example.com">
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/
app-schema/app-schema-test/target/app-schema-mock81989511
8180371408data/featureTypes/ex_SecondParentFeature/simpleContent.xsd"/>
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/
app-schema/app-schema-test/target/app-schema-mock81989511
8180371408data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd"/>
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/
app-schema/app-schema-test/target/app-schema-mock81989511
8180371408data/featureTypes/ex_FirstParentFeature/simpleContent.xsd"/>
  <xsd:import namespace="urn:cgi:xmlns:CGI:GeoSciML:2.0" schemaLocation="
http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd&quot;/&gt;
  <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Cheers
Andrea

On Mon, Dec 12, 2016 at 4:50 AM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Andrea,

this tests passes for me in Maven and Eclipse on OpenJDK 8.

A comment in the test warns:
// targetNamespace depends on load order which is platform dependent

What do you see at the console if you run this test in Eclipse? The
failure you see indicates that you are getting the example (ex)
targetNamespace. I would like to see your response document so I can
determine if it is valid.

I get the GeoSciML targetNamespace which passes the test (second branch):

Dec 12, 2016 4:33:36 PM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFO: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
elementFormDefault="qualified" targetNamespace="urn:cgi:xmlns
:CGI:GeoSciML:2.0">
  <xsd:import namespace="http://example.com"
schemaLocation="file:/home/ben/geoserver/src%20with%20spaces
/geoserver/src/extension/app-schema/app-schema-test/target/
app-schema-mock578553865686759165data/featureTypes/ex_
ParentFeature/NonValidNestedGML.xsd"/>
  <xsd:include schemaLocation="http://www.geo
sciml.org/geosciml/2.0/xsd/geosciml.xsd"/>
  <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Kind regards,
Ben.

On 12/12/16 08:24, Andrea Aime wrote:

Hi,

I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52
sec
<<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureCha
iningWfsTest)
Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at
org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatur
eTypeNoTypes(
FeatureChainingWfsTest.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(Refl
ectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
ameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(
InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUni
t4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestS
et(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit
4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodW
ithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderPro
xy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvi
der(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
cess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo

ter.java:75)

At first I thought "hey, my geotools checkout is not up to date", and
indeed I was missing some commits,
then I've tried getting jars from the boundless repo instead, but the
outcome does not change.
I've run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the
same
way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Maste
r/lastCompletedBuild/testReport/
http://build.geo-solutions.it/jenkins/job/GeoServer-Master-O
penJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

Cheers
Andrea

------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--

Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

Hello,

I'm not able to reproduce this locally too, locally the build passes with JDK8 and OpenJDK8.

Regards,

Nuno Oliveira

On 12/13/2016 04:13 AM, Ben Caradoc-Davies wrote:

Andrea,

I think this test was passing locally for Nuno, so he is not hitting this code branch on his local platform. Andrea, because you see the failure and thus are hitting this code branch on your local platform, you are able to test the fix:
https://github.com/geoserver/geoserver/pull/2014

We could just merge it and see but it would be nice to test it first.

Kind regards,
Ben.

On 13/12/16 07:58, Andrea Aime wrote:

Hi Nuno,
any chance you can have a look at it?

Cheers
Andrea

On Mon, Dec 12, 2016 at 7:22 PM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Thanks, Andrea. This is a genuine failure. The ex targetNamespace code
branch of this test was not updated for GEOS-7860, which adds an additional
schema. Please try this fix locally (as I do not see this failure) and then
merge if it works:
https://github.com/geoserver/geoserver/pull/2014

See also:
https://osgeo-org.atlassian.net/browse/GEOS-7860

Kind regards,
Ben.

On 12/12/16 20:42, Andrea Aime wrote:

Hi Ben,
I get the following:

Error while parsing JAI registry file
"file:/home/aaime/.m2/repository/org/geotools/gt-coverage/
16-SNAPSHOT/gt-coverage-16-SNAPSHOT.jar!/META-INF/registryFile.jai"
:
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.ColorReduction" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.ColorInversion" under registry mode "rendered"
Error while parsing JAI registry file
"file:/home/aaime/.m2/repository/org/geotools/gt-process-
raster/16-SNAPSHOT/gt-process-raster-16-SNAPSHOT.jar!/META-
INF/registryFile.jai"
:
Error in registry file at line number #4
A descriptor is already registered against the name "ClassBreaks" under
registry mode "rendered"
dic 12, 2016 8:42:07 AM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFORMAZIONI: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
elementFormDefault="qualified" targetNamespace="http://example.com">
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/
app-schema/app-schema-test/target/app-schema-mock81989511
8180371408data/featureTypes/ex_SecondParentFeature/simpleContent.xsd"/>

  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/
app-schema/app-schema-test/target/app-schema-mock81989511
8180371408data/featureTypes/ex_ParentFeature/NonValidNestedGML.xsd"/>
  <xsd:include
schemaLocation="file:/home/aaime/devel/git-gs/src/extension/
app-schema/app-schema-test/target/app-schema-mock81989511
8180371408data/featureTypes/ex_FirstParentFeature/simpleContent.xsd"/>
  <xsd:import namespace="urn:cgi:xmlns:CGI:GeoSciML:2.0" schemaLocation="
http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd&quot;/&gt;
  <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Cheers
Andrea

On Mon, Dec 12, 2016 at 4:50 AM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Andrea,

this tests passes for me in Maven and Eclipse on OpenJDK 8.

A comment in the test warns:
// targetNamespace depends on load order which is platform dependent

What do you see at the console if you run this test in Eclipse? The
failure you see indicates that you are getting the example (ex)
targetNamespace. I would like to see your response document so I can
determine if it is valid.

I get the GeoSciML targetNamespace which passes the test (second branch):

Dec 12, 2016 4:33:36 PM org.geoserver.test.FeatureChainingWfsTest
testDescribeFeatureTypeNoTypes
INFO: WFS DescribeFeatureType response:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
elementFormDefault="qualified" targetNamespace="urn:cgi:xmlns
:CGI:GeoSciML:2.0">
  <xsd:import namespace="http://example.com"
schemaLocation="file:/home/ben/geoserver/src%20with%20spaces
/geoserver/src/extension/app-schema/app-schema-test/target/
app-schema-mock578553865686759165data/featureTypes/ex_
ParentFeature/NonValidNestedGML.xsd"/>
  <xsd:include schemaLocation="http://www.geo
sciml.org/geosciml/2.0/xsd/geosciml.xsd"/>
  <xsd:import namespace="http://www.opengis.net/om/1.0&quot; schemaLocation="
http://schemas.opengis.net/om/1.0.0/observation.xsd&quot;/&gt;
</xsd:schema>

Kind regards,
Ben.

On 12/12/16 08:24, Andrea Aime wrote:

Hi,

I do have a test that keeps on failing locally on my machine:

Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 12.52
sec
<<< FAILURE!
testDescribeFeatureTypeNoTypes(org.geoserver.test.FeatureCha
iningWfsTest)
Time elapsed: 15 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at
org.geoserver.test.FeatureChainingWfsTest.testDescribeFeatur
eTypeNoTypes(
FeatureChainingWfsTest.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(Refl
ectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(Fr
ameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(
InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit
4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at
org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(Run
Afters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUni
t4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestS
et(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit
4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodW
ithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderPro
xy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvi
der(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
cess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo

ter.java:75)

At first I thought "hey, my geotools checkout is not up to date", and
indeed I was missing some commits,
then I've tried getting jars from the boundless repo instead, but the
outcome does not change.
I've run the test in Eclipse, and fails the same way.

Checking the windows and openjdk build servers, they also failing the
same
way:
http://winbuild.geo-solutions.it/jenkins/job/GeoServer-Maste
r/lastCompletedBuild/testReport/
http://build.geo-solutions.it/jenkins/job/GeoServer-Master-O
penJDK8/1185/consoleFull

Anyone has a clue as to what might be causing this?

Cheers
Andrea

------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--

Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--

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.

On Tue, Dec 13, 2016 at 5:13 AM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Andrea,

I think this test was passing locally for Nuno, so he is not hitting this
code branch on his local platform. Andrea, because you see the failure and
thus are hitting this code branch on your local platform, you are able to
test the fix:
https://github.com/geoserver/geoserver/pull/2014

We could just merge it and see but it would be nice to test it first.

Sure, I can do that... so the test has been modified so that it also works
on your setup?
I assume so, since it's passing on Travis.

Will let you know as soon as I have a minute to check out the pull request.

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/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

*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 13/12/16 20:27, Andrea Aime wrote:

On Tue, Dec 13, 2016 at 5:13 AM, Ben Caradoc-Davies <ben@anonymised.com>
wrote:

Andrea,
I think this test was passing locally for Nuno, so he is not hitting this
code branch on his local platform. Andrea, because you see the failure and
thus are hitting this code branch on your local platform, you are able to
test the fix:
https://github.com/geoserver/geoserver/pull/2014
We could just merge it and see but it would be nice to test it first.

Sure, I can do that... so the test has been modified so that it also works
on your setup?
I assume so, since it's passing on Travis.

It was passing before these changes on Travis and ares and locally for both me and and Nuno. These changes only affect the ex targetNamespace code branch, which appears to hit by be GeoSolutions winbuild and OpenJDK and your local platform.

This indeterminacy is likely brought to us by the GeoServer Catalog HashMap randomiser (patent pending). I found the link to the email thread from 2010. :slight_smile:
https://sourceforge.net/p/geotools/mailman/geotools-devel/thread/4C17372F.8060109%40opengeo.org/

Will let you know as soon as I have a minute to check out the pull request.

Thanks!

Kind regards,

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

On 14/12/16 07:00, Ben Caradoc-Davies wrote:

On 13/12/16 20:27, Andrea Aime wrote:

On Tue, Dec 13, 2016 at 5:13 AM, Ben Caradoc-Davies <ben@anonymised.com>

https://github.com/geoserver/geoserver/pull/2014

Will let you know as soon as I have a minute to check out the pull request.

Thanks!

Nuno, the fix has been confirmed and merged by Andrea.

Kind regards,

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand