Hi Brett,

 

Seems like it got cut off I think, here’s the full one:
java.lang.ClassCastException: java.lang.String cannot be cast to 
com.vividsolutions.jts.geom.Geometry

                at 
org.geotools.jdbc.JDBCDataStore.insertSQLPS(JDBCDataStore.java:3688)

                at 
org.geotools.jdbc.JDBCDataStore.insert(JDBCDataStore.java:1438)

                at 
org.geotools.jdbc.JDBCDataStore.insert(JDBCDataStore.java:1401)

                at 
org.geotools.jdbc.JDBCInsertFeatureWriter.write(JDBCInsertFeatureWriter.java:76)

                at 
org.geotools.data.InProcessLockingManager$1.write(InProcessLockingManager.java:337)

                at 
org.geotools.data.store.ContentFeatureStore.addFeature(ContentFeatureStore.java:291)

                at 
org.geotools.data.store.ContentFeatureStore.addFeatures(ContentFeatureStore.java:219)

                at 
org.geotools.data.store.ContentFeatureCollection.addAll(ContentFeatureCollection.java:443)

                at 
org.geotools.data.store.ContentFeatureCollection.add(ContentFeatureCollection.java:429)

                at 
org.geotools.data.store.ContentFeatureCollection.add(ContentFeatureCollection.java:68)

                at 
org.geotools.jdbc.JDBCPrimaryKeyTest.addFeature(JDBCPrimaryKeyTest.java:93)

                at 
org.geotools.jdbc.JDBCPrimaryKeyTest.testSequencedPrimaryKey(JDBCPrimaryKeyTest.java:71)

                at 
org.geotools.data.ingres.IngresPrimaryKeyTest.testSequencedPrimaryKey(IngresPrimaryKeyTest.java:37)

                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 org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)

                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.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

                at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

                at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

                at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

                at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

                at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


since the Ingres plugin is still in unsupported I don’t think there are any 
tests that run automaticall for it yet.

 

Thanks!

Alex

 

From: Brett Walker [mailto:brett.wal...@geometryit.com] 
Sent: December-09-12 6:35 AM
To: Andrea Aime
Cc: Alex Trofast; geotools-devel@lists.sourceforge.net
Subject: Re: [Geotools-devel] ClassCastException on Windows Only

 

To Alex,

 

Are you sure that this is complete stacktrace? I don't see a getAttribute line 
in the stacktrace; the getAttribute line you highlighted.

 

To Andrea,

 

The stacktrace looks a little like unit testing for MySQL. Is testing for MySQL 
enabled on your windows machine?

 

Brett Walker



Sent from my iPad


On 09/12/2012, at 10:24 PM, "Andrea Aime" <andrea.a...@geo-solutions.it> wrote:

        On Sun, Dec 9, 2012 at 12:06 PM, Alex Trofast <alex.trof...@actian.com> 
wrote:

                Hi Andrea,

                 

                Ok good to know it’s on my end, do you have any ideas why this 
particular part might fail, only on Windows and not on Linux with my driver?

         

        Hmm... not really, but I've spent a few weekends making trunk build 
again on Windows lately

        and the typical issues I've found were:

        1) files getting opened, but not being closed, which prevented them 
from being deleted or

            written to afterwards

        2) different test execution order, mostly due to differences in how 
file systems list the files

         

        Number 2 somehow also affects how typical plugins get discovered and 
thus executed.

        Something like Converters for example, one will get a different order 
and thus they

        will be tried in different order. 

         

        Not sure if/how that applies to your case though

         

        Cheers

        Andrea

         

         

        -- 

        ==

        Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

         

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

         

        
------------------------------------------------------------------------------
        LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
        Remotely access PCs and mobile devices and provide instant support
        Improve your efficiency, and focus on delivering more value-add services
        Discover what IT Professionals Know. Rescue delivers
        http://p.sf.net/sfu/logmein_12329d2d

        _______________________________________________
        GeoTools-Devel mailing list
        GeoTools-Devel@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/geotools-devel

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to