Brett, is this gt-jdbc-h2? This module is a bit naughty because it places test database files in its module root, not in target like a well-behaved maven module. This prevents their removal by "mvn clean".
The build is currently passing on my local machine and my group buildbot; both build in a path with spaces. If your gt-jdbc-h2 test databases have become corrupted, you can try removing them manually: modules/plugin/jdbc/jdbc-h2/null.*.db (I also have a .gitignore entry for these.) Kind regards, Ben. On 15/05/12 15:20, Brett Walker wrote: > Hi Andrea, > > The blind fix did not help. Same error, same stacktrace. > > Additional information. > > I am building on a windows machine with spaces in the path name below the > build tree. This has been a problem for me previously; see GEOT-4111. Could > this be a possible cause of the problem? > > I've had a look at the JDBC Unit Test framework. It looks daunting. Any > pointers on how to fix this issue? Which classes, config files might be > useful to examine in order to resolve this issue? > > How is the 'empty' H2 database established? > > Thanks, > Brett > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > Andrea Aime > Sent: Tuesday, 15 May 2012 4:26 PM > To: Brett Walker > Cc: [email protected] > Subject: Re: [Geotools-devel] Build broken in H2 DataStore > > On Tue, May 15, 2012 at 3:26 AM, Brett Walker<[email protected]> > wrote: >> Hi Everyone, >> >> >> >> I am trying to perform a build on trunk using mvn -Dall clean install. >> It is failing on the H2 DataStore. > > Hum... the official build server seems unfortunately stuck. > I've just rebuilt on my machine the very same branch though, no build error. > The build server also suceeded in building that branch after the commit in > question was made (which happened Sunday, I did it): > http://hudson.opengeo.org/hudson/job/geotools-2.7.x-nightly/443/console > >> >> >> There are two tests: >> testFeatureSource(org.geotools.data.h2.H2EmptyTest) and >> testFeatureCollection(org.geotools.data.h2.H2EmptyTest) that are failing. >> >> >> >> The stack trace (see below) for the : >> testFeatureSource(org.geotools.data.h2.H2EmptyTest) test indicates >> that it is an Online Test Case. A similar stacktrace exists for >> testFeatureCollection(org.geotools.data.h2.H2EmptyTest). >> > > Ah, looking at the stack trace I probably see where it's coming from. > Just committed a blind fix (since I cannot reproduce the issue, I cannot say > if it's solved), want to give it a kick? > >> >> Reading the developers guidelines online it indicates that online test >> are disabled by default and should not run. Have I read the online >> document wrong? The stacktrace seems to indicate otherwise. > > The H2 tests use an embedded database, so unlike the other database tests > they should not be online ones, as they are not depending on an external > resource that one has to manually setup for the test purposes. > > Cheers > Andrea > > > -- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > GeoTools-Devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
