|
From: Trevor F. S. <tr...@tr...> - 2008-02-28 15:14:28
|
Hey, Sandeep. It looks like the test suite can't communicate with the database. Double check that you have the database running and the settings correct as specified in the developer tutorial: http://ogoglio.wiki.sourceforge.net/Ogoglio+Development+Tutorial If there's still a problem, please send more information about your setup. - Trevor On Mon, Feb 18, 2008 at 11:28 PM, Sandeep Kumar Singh <sks...@ii...> wrote: > > hi all, > i am getting the following unit test failure while building the ogoglio > project using > mvn clean install > > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Unnamed - com.ogoglio:ogoglio:pom:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-common:jar:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-appdev:jar:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-body-editor-applet:jar:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-test-applet:jar:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-viewer-applet:jar:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:og-plugin:maven-plugin:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-server:war:0.0.1-SNAPSHOT > [INFO] Unnamed - com.ogoglio:ogoglio-integration-test:jar:0.0.1-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - com.ogoglio:ogoglio:pom:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] [site:attach-descriptor] > [INFO] [install:install] > [INFO] Installing C:\og\pom.xml to C:\Documents and > Settings\3DInternet\.m2\repo > sitory\com\ogoglio\ogoglio\0.0.1-SNAPSHOT\ogoglio-0.0.1-SNAPSHOT.pom > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - com.ogoglio:ogoglio-common:jar:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\ogoglio-common\target > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 146 source files to C:\og\ogoglio-common\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Compiling 2 source files to C:\og\ogoglio-common\target\test-classes > [INFO] [surefire:test] > [INFO] Surefire report directory: > C:\og\ogoglio-common\target\surefire-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.ogoglio.viewer.j3d.body.test.MorphTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec > Running com.ogoglio.xml.test.XMLTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec > > Results : > > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] [jar:jar] > [INFO] Building jar: > C:\og\ogoglio-common\target\ogoglio-common-0.0.1-SNAPSHOT.j > ar > [INFO] [install:install] > [INFO] Installing > C:\og\ogoglio-common\target\ogoglio-common-0.0.1-SNAPSHOT.jar > to C:\Documents and > Settings\3DInternet\.m2\repository\com\ogoglio\ogoglio-commo > n\0.0.1-SNAPSHOT\ogoglio-common-0.0.1-SNAPSHOT.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - com.ogoglio:ogoglio-appdev:jar:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\ogoglio-appdev\target > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 17 source files to C:\og\ogoglio-appdev\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Nothing to compile - all classes are up to date > [INFO] [surefire:test] > [INFO] No tests to run. > [INFO] [jar:jar] > [INFO] Building jar: > C:\og\ogoglio-appdev\target\ogoglio-appdev-0.0.1-SNAPSHOT.j > ar > [INFO] [install:install] > [INFO] Installing > C:\og\ogoglio-appdev\target\ogoglio-appdev-0.0.1-SNAPSHOT.jar > to C:\Documents and > Settings\3DInternet\.m2\repository\com\ogoglio\ogoglio-appde > v\0.0.1-SNAPSHOT\ogoglio-appdev-0.0.1-SNAPSHOT.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - > com.ogoglio:ogoglio-body-editor-applet:jar:0.0.1-SNAPS > HOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\ogoglio-body-editor-applet\target > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 1 source file to > C:\og\ogoglio-body-editor-applet\target\classe > s > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Nothing to compile - all classes are up to date > [INFO] [surefire:test] > [INFO] Surefire report directory: > C:\og\ogoglio-body-editor-applet\target\surefi > re-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > There are no tests to run. > > Results : > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] [jar:jar] > [INFO] Building jar: > C:\og\ogoglio-body-editor-applet\target\ogoglio-body-editor > -applet-0.0.1-SNAPSHOT.jar > [INFO] [install:install] > [INFO] Installing > C:\og\ogoglio-body-editor-applet\target\ogoglio-body-editor-ap > plet-0.0.1-SNAPSHOT.jar to C:\Documents and > Settings\3DInternet\.m2\repository\c > om\ogoglio\ogoglio-body-editor-applet\0.0.1-SNAPSHOT\ogoglio-body-editor-applet- > 0.0.1-SNAPSHOT.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - com.ogoglio:ogoglio-test-applet:jar:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\ogoglio-test-applet\target > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 4 source files to C:\og\ogoglio-test-applet\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Nothing to compile - all classes are up to date > [INFO] [surefire:test] > [INFO] Tests are skipped. > [INFO] [jar:jar] > [INFO] Building jar: > C:\og\ogoglio-test-applet\target\ogoglio-test-applet-0.0.1- > SNAPSHOT.jar > [INFO] [install:install] > [INFO] Installing > C:\og\ogoglio-test-applet\target\ogoglio-test-applet-0.0.1-SNA > PSHOT.jar to C:\Documents and > Settings\3DInternet\.m2\repository\com\ogoglio\ogo > glio-test-applet\0.0.1-SNAPSHOT\ogoglio-test-applet-0.0.1-SNAPSHOT.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - > com.ogoglio:ogoglio-viewer-applet:jar:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\ogoglio-viewer-applet\target > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: > http://repo1.maven.org/maven2/netscape/liveConnect/1.0/liveConnect- > 1.0.pom > [INFO] [compiler:compile] > [INFO] Compiling 2 source files to C:\og\ogoglio-viewer-applet\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Compiling 4 source files to > C:\og\ogoglio-viewer-applet\target\test-class > es > [INFO] [surefire:test] > [INFO] Surefire report directory: > C:\og\ogoglio-viewer-applet\target\surefire-re > ports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.ogoglio.viewer.j3d.bvh.test.BvhTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec > Running com.ogoglio.viewer.j3d.body.test.BodyTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec > Running com.ogoglio.viewer.j3d.obj.test.ObjTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec > > Results : > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] [jar:jar] > [INFO] Building jar: > C:\og\ogoglio-viewer-applet\target\ogoglio-viewer-applet-0. > 0.1-SNAPSHOT.jar > [INFO] [install:install] > [INFO] Installing > C:\og\ogoglio-viewer-applet\target\ogoglio-viewer-applet-0.0.1 > -SNAPSHOT.jar to C:\Documents and > Settings\3DInternet\.m2\repository\com\ogoglio > \ogoglio-viewer-applet\0.0.1-SNAPSHOT\ogoglio-viewer-applet-0.0.1-SNAPSHOT.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - com.ogoglio:og-plugin:maven-plugin:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\dev-plugins\target > [INFO] [plugin:descriptor] > [INFO] Using 2 extractors. > [INFO] Applying extractor for language: java > [INFO] Extractor for language: java found 4 mojo descriptors. > [INFO] Applying extractor for language: bsh > [INFO] Extractor for language: bsh found 0 mojo descriptors. > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 5 source files to C:\og\dev-plugins\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Nothing to compile - all classes are up to date > [INFO] [surefire:test] > [INFO] Tests are skipped. > [INFO] [jar:jar] > [INFO] Building jar: C:\og\dev-plugins\target\og-plugin-0.0.1-SNAPSHOT.jar > [INFO] [plugin:addPluginArtifactMetadata] > [INFO] [install:install] > [INFO] Installing C:\og\dev-plugins\target\og-plugin-0.0.1-SNAPSHOT.jar to > C:\Do > cuments and > Settings\3DInternet\.m2\repository\com\ogoglio\og-plugin\0.0.1-SNAPS > HOT\og-plugin-0.0.1-SNAPSHOT.jar > [INFO] [plugin:updateRegistry] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Unnamed - com.ogoglio:ogoglio-server:war:0.0.1-SNAPSHOT > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory C:\og\ogoglio-server\target > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [og:verifyEnvironment {execution: verifyXMLProperties}] > [INFO] Verifying project context variables against server.xml config in > tomcat. > [INFO] [compiler:compile] > [INFO] Compiling 70 source files to C:\og\ogoglio-server\target\classes > [WARNING] > C:\og\ogoglio-server\src\main\java\com\ogoglio\persist\AccountRecord.j > ava:[20,15] sun.misc.BASE64Encoder is Sun proprietary API and may be > removed in > a future release > > [WARNING] > C:\og\ogoglio-server\src\main\java\com\ogoglio\persist\AccountRecord.j > ava:[278,24] sun.misc.BASE64Encoder is Sun proprietary API and may be > removed in > a future release > > [INFO] [og:buildHtml {execution: default}] > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Compiling 3 source files to C:\og\ogoglio-server\target\test-classes > [INFO] [surefire:test] > [INFO] Surefire report directory: > C:\og\ogoglio-server\target\surefire-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.ogoglio.mail.test.MailTest > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec > Running com.ogoglio.sim.script.test.ScriptTest > 2008-03-20 12:34:20,484 [INFO] com.ogoglio - Stopping space 1: Space > @SLTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.438 sec > Running com.ogoglio.persist.test.PersistTest > 2008-03-20 12:34:20,515 [INFO] com.ogoglio - Destroying all data in the > database > and media serve... hope this is a dev machine. > 2008-03-20 12:34:21,312 [ERROR] com.ogoglio - Error trying initialized > DB:javax > /transaction/Synchronization > 2008-03-20 12:34:21,312 [ERROR] com.ogoglio - destroyAllData: unable to > init th > e version number! > 2008-03-20 12:34:21,312 [INFO] com.ogoglio - Destroying all data in the > databas > e and media serve... hope this is a dev machine. > 2008-03-20 12:34:21,359 [ERROR] com.ogoglio - Error trying initialized > DB:javax > /transaction/Synchronization > 2008-03-20 12:34:21,359 [ERROR] com.ogoglio - destroyAllData: unable to > init th > e version number! > @SLTests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.875 > sec << > < FAILURE! > > Results : > > Failed tests: > testRecords(com.ogoglio.persist.test.PersistTest) > testMediaDirectoryEmptiedByParentClass(com.ogoglio.persist.test.PersistTest) > > Tests run: 5, Failures: 2, Errors: 0, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > Please refer to C:\og\ogoglio-server\target\surefire-reports for the > individual > test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 26 seconds > [INFO] Finished at: Thu Mar 20 12:34:21 IST 2008 > [INFO] Final Memory: 47M/63M > [INFO] > ------------------------------------------------------------------------ > > > i checked the surefire reports and it shows these errors > ------------------------------------------------------------------------------- > Test set: com.ogoglio.persist.test.PersistTest > ------------------------------------------------------------------------------- > Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.875 sec > <<< FAILURE! > testRecords(com.ogoglio.persist.test.PersistTest) Time elapsed: 0.797 sec > <<< FAILURE! > junit.framework.AssertionFailedError: can't get DB set up: trying to > initialize it in the test code > at junit.framework.Assert.fail(Assert.java:47) > at com.ogoglio.appdev.migrate.test.DBZapTest.setUp(DBZapTest.java:28) > at com.ogoglio.persist.test.PersistTest.setUp(PersistTest.java:78) > at junit.framework.TestCase.runBare(TestCase.java:125) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > > testMediaDirectoryEmptiedByParentClass(com.ogoglio.persist.test.PersistTest) > Time elapsed: 0.047 sec <<< FAILURE! > junit.framework.AssertionFailedError: can't get DB set up: trying to > initialize it in the test code > at junit.framework.Assert.fail(Assert.java:47) > at com.ogoglio.appdev.migrate.test.DBZapTest.setUp(DBZapTest.java:28) > at com.ogoglio.persist.test.PersistTest.setUp(PersistTest.java:78) > at junit.framework.TestCase.runBare(TestCase.java:125) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ogoglio-developers mailing list > Ogo...@li... > https://lists.sourceforge.net/lists/listinfo/ogoglio-developers > |