8 Replies Latest reply: Mar 1, 2012 11:29 AM by skethire RSS

    Error building teiid trunk (revision 3894)

    skethire Newbie

      I followed the instructions on setting up the developer environment and checked out the source code.  The build failed with the following error:

       

      - Are the instructions for setting up developer environment still good for the latest sources?

      - If so, what am I missing?

       

      Thanks in advance,

      Srini

       

      Tests in error:  testRelativeSchemas(org.teiid.query.metadata.TestTransformationMetadata): Error trying to read schemas for the document/table : x1.doc

      Tests run: 5060, Failures: 0, Errors: 1, Skipped: 62

      -


      [INFO] Reactor Summary:[INFO][INFO] Teiid ............................................. SUCCESS [INFO] Common Core ....................................... SUCCESS [INFO] Client ............................................ SUCCESS [INFO] admin ............................................. SUCCESS [INFO] Teiid API ......................................... SUCCESS [INFO] Engine ............................................ FAILURE [INFO] Metadata .......................................... SKIPPED[INFO] Connectors ........................................ SKIPPED[INFO] JDBC Translator ................................... SKIPPED[INFO] LDAP Translator ................................... SKIPPED[INFO] Loopback Translator ............................... SKIPPED[INFO] File Translator ................................... SKIPPED[INFO] Salesforce API .................................... SKIPPED[INFO] Salesforce Translator ............................. SKIPPED[INFO] File Connector .................................... SKIPPED[INFO] Salesforce Connector .............................. SKIPPED[INFO] LDAP Connector .................................... SKIPPED[INFO] Web Service Connector ............................. SKIPPED[INFO] Sandbox ........................................... SKIPPED[INFO] Yahoo Translator .................................. SKIPPED[INFO] Web service Translator ............................ SKIPPED[INFO] OLAP Translator ................................... SKIPPED[INFO] Hive Translator ................................... SKIPPED[INFO] Runtime Engine .................................... SKIPPED[INFO] Adminshell ........................................ SKIPPED[INFO] JBoss Cache ....................................... SKIPPED[INFO] Hibernate Dialect ................................. SKIPPED[INFO] teiid-jboss-integration ........................... SKIPPED[INFO] Integration Tests ................................. SKIPPED[INFO] Common Integration Tests .......................... SKIPPED[INFO] DB Dependent Integration Tests .................... SKIPPED[INFO] Client JDK15 ...................................... SKIPPED[INFO] Documents ......................................... SKIPPED[INFO] Admin Guide ....................................... SKIPPED[INFO] Teiid Reference ................................... SKIPPED[INFO] Developer's Guide ................................. SKIPPED[INFO] Quick Start Guide ................................. SKIPPED[INFO] Teiid Client Developers Guide ..................... SKIPPED[INFO] Teiid Caching Guide ............................... SKIPPED[INFO] Build ............................................. SKIPPED[INFO] -


      [INFO] BUILD FAILURE[INFO] -


      [INFO] Total time: 4:56.161s[INFO] Finished at: Fri Feb 24 09:17:20 CST 2012[INFO] Final Memory: 68M/274M[INFO] -


      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project teiid-engine: There are test failures.[ERROR][ERROR] Please refer to C:\dsds\workspace\teiid\engine\target\surefire-reports for the individual test results.[ERROR] -> [ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR][ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException[ERROR][ERROR] After correcting the problems, you can resume the build with the command[ERROR]   mvn  -rf :teiid-engine

       

        • 1. Re: Error building teiid trunk (revision 3894)
          Steven Hawkins Master

          Are you building on windows?  I thought this would have been addressed by the last change on the 7.7 branch that was just carried forward.  Can you verify that you have version 3875 of TransformationMetadata?

           

          Steve

          • 2. Re: Error building teiid trunk (revision 3894)
            skethire Newbie

            Steve,

            Thanks for your reply.

             

            Yes, I am building on windows.

             

            I deleted the source and checked it out again and rebuilt it so:

            svn co http://anonsvn.jboss.org/repos/teiid/trunk .

            mvn clean install -P release

             

            I get the same error. 

             

            I did confirm that TransformationMetadata.java is at version 3875:

            svn status -v C:\dsds\workspace\teiid\engine\src\main\java\org\teiid\query\metadata\TransformationMetadata.java
            3894     3875 shawkins     C:\dsds\workspace\teiid\engine\src\main\java\org\teiid\query\metadata\TransformationMetadata.java

             

            Thanks

            Srini

            • 3. Re: Error building teiid trunk (revision 3894)
              Steven Hawkins Master

              Can you debug the TransformationMetadata.getXMLSchemas method?  That may be faster than having me hunt down a windows box.  As far as I could tell it should work now as it doesn't rely on any platform dependent paths.

               

              Steve

              • 4. Re: Error building teiid trunk (revision 3894)
                skethire Newbie

                Steve:

                 

                Thanks for you pointer.  Although I did not debug, since I am not yet setup with eclipse project for this, I ran the build again with -e option, and this time it went past the Engine (can't explain why it is successful with -e option but not otherwise)

                 

                However, if failed in  file connector module.  See below.  As is evident from the error message, it is platform specific (/ vs \).

                I will adjust the tests and try again.   

                 

                Thanks

                Srini

                Results :

                Failed tests:   testFileMapping(org.teiid.resource.adapter.file.TestFileConnection): expected:<foo[/]y> but was:<foo[\]y>

                Tests run: 3, Failures: 1, Errors: 0, Skipped: 0

                [INFO] ------------------------------------------------------------------------
                [INFO] Reactor Summary:
                [INFO]
                [INFO] Teiid ............................................. SUCCESS [12.482s]
                [INFO] Common Core ....................................... SUCCESS [9.176s]
                [INFO] Client ............................................ SUCCESS [30.731s]
                [INFO] admin ............................................. SUCCESS [2.970s]
                [INFO] Teiid API ......................................... SUCCESS [4.270s]
                [INFO] Engine ............................................ SUCCESS [57.457s]
                [INFO] Metadata .......................................... SUCCESS [3.500s]
                [INFO] Connectors ........................................ SUCCESS [0.530s]
                [INFO] JDBC Translator ................................... SUCCESS [19.180s]
                [INFO] LDAP Translator ................................... SUCCESS [2.560s]
                [INFO] Loopback Translator ............................... SUCCESS [1.930s]
                [INFO] File Translator ................................... SUCCESS [1.370s]
                [INFO] Salesforce API .................................... SUCCESS [1.990s]
                [INFO] Salesforce Translator ............................. SUCCESS [2.660s]
                [INFO] File Connector .................................... FAILURE [0.600s]
                [INFO] Salesforce Connector .............................. SKIPPED
                [INFO] LDAP Connector .................................... SKIPPED
                [INFO] Web Service Connector ............................. SKIPPED
                [INFO] Sandbox ........................................... SKIPPED
                [INFO] Yahoo Translator .................................. SKIPPED
                [INFO] Web service Translator ............................ SKIPPED
                [INFO] OLAP Translator ................................... SKIPPED
                [INFO] Hive Translator ................................... SKIPPED
                [INFO] Runtime Engine .................................... SKIPPED
                [INFO] Adminshell ........................................ SKIPPED
                [INFO] Hibernate Dialect ................................. SKIPPED
                [INFO] teiid-jboss-integration ........................... SKIPPED
                [INFO] Integration Tests ................................. SKIPPED
                [INFO] Common Integration Tests .......................... SKIPPED
                [INFO] DB Dependent Integration Tests .................... SKIPPED
                [INFO] Client JDK15 ...................................... SKIPPED
                [INFO] Build ............................................. SKIPPED
                [INFO] ------------------------------------------------------------------------
                [INFO] BUILD FAILURE
                [INFO] ------------------------------------------------------------------------
                [INFO] Total time: 2:33.357s
                [INFO] Finished at: Fri Feb 24 14:36:04 CST 2012
                [INFO] Final Memory: 33M/243M
                [INFO] ------------------------------------------------------------------------
                [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project connector-file: Th
                ere are test failures.
                [ERROR]
                [ERROR] Please refer to C:\dsds\workspace\teiid\connectors\connector-file\target\surefire-reports for the individual test results.
                [ERROR] -> [Help 1]
                org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:t
                est (default-test) on project connector-file: There are test failures.

                Please refer to C:\dsds\workspace\teiid\connectors\connector-file\target\surefire-reports for the individual test results.
                        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
                        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
                        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
                        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
                        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
                        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
                        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
                        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
                        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
                        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
                        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
                        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
                        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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
                        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
                        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
                        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
                Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

                Please refer to C:\dsds\workspace\teiid\connectors\connector-file\target\surefire-reports for the individual test results.
                        at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:87)
                        at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:641)
                        at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:615)
                        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:137)
                        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98)
                        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
                        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
                        ... 19 more
                [ERROR]
                [ERROR] Re-run Maven using the -X switch to enable full debug logging.
                [ERROR]
                [ERROR] For more information about the errors and possible solutions, please read the following articles:
                [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
                [ERROR]
                [ERROR] After correcting the problems, you can resume the build with the command
                [ERROR]   mvn <goals> -rf :connector-file

                • 5. Re: Error building teiid trunk (revision 3894)
                  Steven Hawkins Master

                  That indicates you are past the issue with TransformationMetadata.  TestFileConnection is definitely expecting a unix path, which can easily be addressed.  Can you disable that test to see if there are any more that need addressed?

                   

                  Steve

                  • 6. Re: Error building teiid trunk (revision 3894)
                    skethire Newbie

                    Steve,

                     

                    Thanks again for your pointers.

                     

                    I successfully built everything after fixing the path issue and another sockets issue.

                     

                    The two tests I changed are attached to this reply.

                     

                    Thanks

                    srini

                    • 7. Re: Error building teiid trunk (revision 3894)
                      Steven Hawkins Master

                      What is the issue with TestCommSockets?

                      • 8. Re: Error building teiid trunk (revision 3894)
                        skethire Newbie

                        I am not sure if there is an issue with TestCommSockets. 

                        There is someting else going on, because the test fails randomly.  

                        When it succeeded, I thought it was because of the change I made.  But it failed again when I ran the tests one more time.

                         

                        Perhaps a timeout issue - I will investigate when I get a chance.

                         

                        Thanks

                        Srini