HI All,

I have run into a problem with building geotools from trunk. I don't believe 
that I would be the only one encountering this problem.

At home mnv -version reports:

Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100)

Maven home: %APACHE_HOME%\Maven\3.0

Java version: 1.6.0_22, vendor: Sun Microsystems Inc.

Java home: %JAVA_HOME%\jdk1.6\je

Default locale: en_AU, platform encoding: Cp1252

OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

The entire maven build (mnv -Dall clean install) passes with no errors.

At work mnv -version reports:

Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100)

Maven home: %APACHE_HOME%\Maven\3.0

Java version: 1.6.0_24, vendor: Sun Microsystems Inc.

Java home: %JAVA_HOME%\jdk1.6\je

Default locale: en_AU, platform encoding: Cp1252

OS name: "windows 7", version: "6.1", arch: "amd", family: "windows"



The maven build (mnv -Dall clean install) consistently fails in the XSD-GML3 
module while running the GML3EncodingTest.



During the build a stack trace is printed:



WARNING: Error occured getting schema

java.net.MalformedURLException: unknown protocol: c

        at java.net.URL.<init>(URL.java:574)

        at java.net.URL.<init>(URL.java:464)

        at java.net.URL.<init>(URL.java:413)

        at 
org.eclipse.emf.ecore.resource.impl.URIHandlerImpl.createInputStream(URIHandlerImpl.java:176)

        at 
org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:301)

        at 
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1254)

        at org.geotools.xml.Schemas.parse(Schemas.java:313)

        at org.geotools.xml.Schemas.parse(Schemas.java:285)

        at org.geotools.xml.Schemas.parse(Schemas.java:247)

        at org.geotools.xml.XSD.buildSchema(XSD.java:281)

        at org.geotools.xml.XSD.getSchema(XSD.java:232)

        at org.geotools.xml.SchemaLocator.locateSchema(SchemaLocator.java:96)

        at 
org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:352)

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)

        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)

        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)

        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

        at org.geotools.xml.Parser.parse(Parser.java:239)

        at org.geotools.xml.Parser.parse(Parser.java:167)

        at 
org.geotools.gml3.GML3EncodingTest.testWithApplicationSchemaConfiguration(GML3EncodingTest.java:132)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at junit.framework.TestCase.runTest(TestCase.java:168)

        at junit.framework.TestCase.runBare(TestCase.java:134)

        at junit.framework.TestResult$1.protect(TestResult.java:110)

        at junit.framework.TestResult.runProtected(TestResult.java:128)

        at junit.framework.TestResult.run(TestResult.java:113)

        at junit.framework.TestCase.run(TestCase.java:124)

        at junit.framework.TestSuite.runTest(TestSuite.java:232)

        at junit.framework.TestSuite.run(TestSuite.java:227)

        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)

        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)

        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)

        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)

        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)

        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)

        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)

        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

In the surefire report says:
-------------------------------------------------------------------------------
Test set: org.geotools.gml3.GML3EncodingTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 17.424 sec <<< 
FAILURE!
testWithApplicationSchemaConfiguration(org.geotools.gml3.GML3EncodingTest)  
Time elapsed: 0.312 sec  <<< ERROR!
org.xml.sax.SAXException
                at 
org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:438)
                at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
                at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
                at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)
                at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
                at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
                at org.geotools.xml.Parser.parse(Parser.java:239)
                at org.geotools.xml.Parser.parse(Parser.java:167)
                at 
org.geotools.gml3.GML3EncodingTest.testWithApplicationSchemaConfiguration(GML3EncodingTest.java:132)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at junit.framework.TestCase.runTest(TestCase.java:168)
                at junit.framework.TestCase.runBare(TestCase.java:134)
                at junit.framework.TestResult$1.protect(TestResult.java:110)
                at junit.framework.TestResult.runProtected(TestResult.java:128)
                at junit.framework.TestResult.run(TestResult.java:113)
                at junit.framework.TestCase.run(TestCase.java:124)
                at junit.framework.TestSuite.runTest(TestSuite.java:232)
                at junit.framework.TestSuite.run(TestSuite.java:227)
                at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
                at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
                at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
                at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
                at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
                at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
                at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
                at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

Any thoughts or ideas why this might be so? One is fine the other is not.

Given that the codebase on the two machines might not be quite the same the 
only difference is the Java version and  the OS platform.

SNV check outs were done yesterday.

Brett


Brett Walker <[email protected]<mailto:[email protected]>>
Software Developer / Analyst
Geometry Pty Ltd

Telephone               03 6223 1999
Mobile                     0458 498 386
Fax                          03 6223 1988
Web                        www.geometryit.com<http://www.geometryit.com/>
Address                   31 Salamanca Square, Battery Point, TAS 7004, 
Australia

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to