Andrea Aime wrote: > Hi, > building trunk I get this error during the cql module build: > > [INFO] Surefire report directory: > C:\progetti\geotools\trunk\modules\library\cql\target\surefire-reports > org.apache.maven.surefire.booter.SurefireExecutionException: Unable to > instantiate POJO 'class > org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest'; nested exception > is java.lang.InstantiationException: > org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest; nested exception > is org.apache.maven.surefire.testset.TestSetFailedException: Unable to > instantiate > POJO 'class org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest'; > nested exception is java.lang.InstantiationException: > org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest > org.apache.maven.surefire.testset.TestSetFailedException: Unable to > instantiate POJO 'class > org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest'; nested exception > is java.lang.InstantiationException: > org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest > java.lang.InstantiationException: > org.geotools.filter.text.cql2.FilterToCQLTest$CQLTest > at java.lang.Class.newInstance0(Class.java:335) > at java.lang.Class.newInstance(Class.java:303) > at > org.apache.maven.surefire.testset.PojoTestSet.<init>(PojoTestSet.java:52) > at > org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:61) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:93) > at > org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:147) > at org.apache.maven.surefire.Surefire.run(Surefire.java:108) > 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:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) > > Anyone knows how to fix it? It's not like I can kick cql > out of the build... > Renamed the inner class to not end in "Test", now called "CQLTest2". This is an actual Test class that is used by the commented out suite() method in order to go through all the FilterExamples and try each one of them in turn.
Silly surefire; should make sure before running an inner class. Jody > Cheers > Andrea > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
