I have commented out the following code in testCreateDynamicMark() and I am able to do a full "mvn install" without any failures.
/*
while(!piExpected.isDone()) {
assertFalse(pi.isDone());
piExpected.currentSegment(coordsExpected);
pi.currentSegment(coords);
assertEquals(coordsExpected[0], coords[0], 0.00001);
assertEquals(coordsExpected[1], coords[1], 0.00001);
piExpected.next();
pi.next();
}
assertTrue(pi.isDone());
*/
Any thoughts about what could be wrong with my system to cause this
failure? Attached is the original error.
Thanks,
Edward Judge
Software Engineer
IBM Software Group, Information Management
INZA SW Development
Phone:
508-382-4166
IBM Marlborough
E-Mail:
[email protected]
Marlborough, MA 01752
USA
From: Edward Judge/Marlborough/IBM@IBMUS
To: Ben Caradoc-Davies <[email protected]>,
Cc: [email protected]
Date: 06/11/2013 09:11 AM
Subject: Re: [Geotools-devel] SLDStyleFactoryTest failure
Thanks Ben.
ejudge@ejudgerhl:~$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
ejudge@ejudgerhl:~$
Edward Judge
Software Engineer
IBM Software Group, Information Management
INZA SW Development
Phone:
508-382-4166
IBM Marlborough
E-Mail:
[email protected]
Marlborough, MA 01752
USA
From: Ben Caradoc-Davies <[email protected]>
To: Edward Judge/Marlborough/IBM@IBMUS,
Cc: <[email protected]>
Date: 06/10/2013 11:25 PM
Subject: Re: [Geotools-devel] SLDStyleFactoryTest failure
Edward,
I recall from an earlier email that you have a non UTF-8 locale:
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: /home/ejudge/Downloads/jdk1.6.0_45/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
I think this is a synonym for ASCII.
The problematic test contains:
Shape expected = new TTFMarkFactory().getShape(null,
ff.literal("ttf://Serif#0xF054"), feature);
0xF054 is a Unicode code; I wonder if your locale could affect this?
What is the output of running "locale" of your system?
Kind regards,
Ben.
On 10/06/13 22:36, Edward Judge wrote:
> Tests in error:
> testCreateDynamicMark(org.geotools.renderer.style.SLDStyleFactoryTest)
--
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
<<image/gif>>
<<image/gif>>
-------------------------------------------------------------------------------
Test set: org.geotools.renderer.style.SLDStyleFactoryTest
-------------------------------------------------------------------------------
Tests run: 18, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.211 sec <<<
FAILURE!
testCreateDynamicMark(org.geotools.renderer.style.SLDStyleFactoryTest) Time
elapsed: 0.106 sec <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException
at java.awt.geom.AffineTransform.transform(AffineTransform.java:3202)
at
java.awt.geom.Path2D$Double$TxIterator.currentSegment(Path2D.java:1677)
at
org.geotools.renderer.style.SLDStyleFactoryTest.testCreateDynamicMark(SLDStyleFactoryTest.java:173)
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)
------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
_______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
