Urgent: Build failure for Rexster

126 views
Skip to first unread message

Andrew Ortman

unread,
Mar 25, 2013, 1:50:37 PM3/25/13
to gremli...@googlegroups.com
Hey all,

I seem to be having problems building rexster - specifically with an array out of bounds error on a test. This is with the most recent git pull (2.3.0) using IBM JDK 6.0. The same error occurs when I checkout 2.2.0 and try the build again. Has anyone seen this before, and is there a resolution? If I find a resolution first, I will post here

Thanks,
Andrew Ortman
 

[user@wl-orientdb rexster]$ mvn clean install -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Rexster
[INFO] Rexster: Core Components
[INFO] Rexster: RexPro Binary Protocol
[INFO] Rexster: A Graph Server
[INFO] Rexster Kibbles: General-Purpose Rexster Extensions
[INFO] Rexster Kibbles: Frames
[INFO] Rexster Kibbles: Sample
[INFO] Rexster Kibbles: SPARQL
[INFO] Rexster Kibbles: Batch
[INFO] Rexster Console: A Remote REPL for Rexster
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Rexster 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rexster ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ rexster >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster ---
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ rexster <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ rexster ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.8:jar (attach-javadocs) @ rexster ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ rexster ---
[INFO] Installing /home/user/rexster/pom.xml to /home/user/.m2/repository/com/tinkerpop/rexster/rexster/2.2.0/rexster-2.2.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Rexster: Core Components 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rexster-core ---
[INFO] Deleting /home/user/rexster/rexster-core/
[user@wl-orientdb rexster]$ mvn clean install -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Rexster
[INFO] Rexster: Core Components
[INFO] Rexster: RexPro Binary Protocol
[INFO] Rexster: A Graph Server
[INFO] Rexster Kibbles: General-Purpose Rexster Extensions
[INFO] Rexster Kibbles: Frames
[INFO] Rexster Kibbles: Sample
[INFO] Rexster Kibbles: SPARQL
[INFO] Rexster Kibbles: Batch
[INFO] Rexster Console: A Remote REPL for Rexster
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Rexster 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[user@wl-orientdb rexster]$ mvn clean install -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Rexster
[INFO] Rexster: Core Components
[INFO] Rexster: RexPro Binary Protocol
[INFO] Rexster: A Graph Server
[INFO] Rexster Kibbles: General-Purpose Rexster Extensions
[INFO] Rexster Kibbles: Frames
[INFO] Rexster Kibbles: Sample
[INFO] Rexster Kibbles: SPARQL
[INFO] Rexster Kibbles: Batch
[INFO] Rexster Console: A Remote REPL for Rexster
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Rexster 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rexster ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ rexster >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster ---
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ rexster <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ rexster ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.8:jar (attach-javadocs) @ rexster ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ rexster ---
[INFO] Installing /home/user/rexster/pom.xml to /home/user/.m2/repository/com/tinkerpop/rexster/rexster/2.2.0/rexster-2.2.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Rexster: Core Components 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rexster-core ---
[INFO] Deleting /home/user/rexster/rexster-core/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ rexster-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/rexster/rexster-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ rexster-core ---
[INFO] Compiling 26 source files to /home/user/rexster/rexster-core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ rexster-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/rexster/rexster-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ rexster-core ---
[INFO] Compiling 8 source files to /home/user/rexster/rexster-core/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (default-test) @ rexster-core ---
[INFO] Surefire report directory: /home/user/rexster/rexster-core/target/surefire-reports

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rexster ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ rexster >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster ---
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ rexster <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ rexster ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.8:jar (attach-javadocs) @ rexster ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ rexster ---
[INFO] Installing /home/user/rexster/pom.xml to /home/user/.m2/repository/com/tinkerpop/rexster/rexster/2.2.0/rexster-2.2.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Rexster: Core Components 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rexster-core ---
[INFO] Deleting /home/user/rexster/rexster-core/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ rexster-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/rexster/rexster-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ rexster-core ---
[INFO] Compiling 26 source files to /home/user/rexster/rexster-core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ rexster-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/rexster/rexster-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ rexster-core ---
[INFO] Compiling 8 source files to /home/user/rexster/rexster-core/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (default-test) @ rexster-core ---
[INFO] Surefire report directory: /home/user/rexster/rexster-core/target/surefire-reports
target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rexster-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ rexster-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/rexster/rexster-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ rexster-core ---
[INFO] Compiling 26 source files to /home/user/rexster/rexster-core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ rexster-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/user/rexster/rexster-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ rexster-core ---
[INFO] Compiling 8 source files to /home/user/rexster/rexster-core/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (default-test) @ rexster-core ---
[INFO] Surefire report directory: /home/user/rexster/rexster-core/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.tinkerpop.rexster.util.RequestObjectHelperTest
Tests run: 38, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.272 sec
Running com.tinkerpop.rexster.RexsterApplicationGraphTest
log4j:WARN No appenders could be found for logger (com.tinkerpop.rexster.RexsterApplicationGraph).
log4j:WARN Please initialize the log4j system properly.
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.312 sec
Running com.tinkerpop.rexster.extension.ExtensionResponseTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running com.tinkerpop.rexster.util.ElementHelperTest
Tests run: 36, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
Running com.tinkerpop.rexster.extension.ExtensionConfigurationTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.tinkerpop.rexster.extension.ExtensionAllowedTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running com.tinkerpop.rexster.extension.ExtensionMethodTest
Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.028 sec <<< FAILURE!
Running com.tinkerpop.rexster.extension.ExtensionSegmentSetTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec

Results :

Tests in error:
  getExtensionApiAsJsonParameterOnlyNoApiElements(com.tinkerpop.rexster.extension.ExtensionMethodTest): Array index out of range: 0
  getExtensionApiAsJsonDefaultNoApiElements(com.tinkerpop.rexster.extension.ExtensionMethodTest): Array index out of range: 0

Tests run: 133, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Rexster ........................................... SUCCESS [1.325s]
[INFO] Rexster: Core Components .......................... FAILURE [3.391s]
[INFO] Rexster: RexPro Binary Protocol ................... SKIPPED
[INFO] Rexster: A Graph Server ........................... SKIPPED
[INFO] Rexster Kibbles: General-Purpose Rexster Extensions  SKIPPED
[INFO] Rexster Kibbles: Frames ........................... SKIPPED
[INFO] Rexster Kibbles: Sample ........................... SKIPPED
[INFO] Rexster Kibbles: SPARQL ........................... SKIPPED
[INFO] Rexster Kibbles: Batch ............................ SKIPPED
[INFO] Rexster Console: A Remote REPL for Rexster ........ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.003s
[INFO] Finished at: Mon Mar 25 13:43:31 EDT 2013
[INFO] Final Memory: 17M/32M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on project rexster-core: There are test failures.
[ERROR]
[ERROR] Please refer to /home/user/rexster/rexster-core/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.11:test (default-test) on project rexster-core: There are test failures.

Please refer to /home/user/rexster/rexster-core/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:320)
    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:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    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 /home/user/rexster/rexster-core/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:651)
    at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:625)
    at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:136)
    at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97)
    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 :rexster-core

Stephen Mallette

unread,
Mar 25, 2013, 2:56:01 PM3/25/13
to gremli...@googlegroups.com
I can't say I'm experiencing those problems with the most recent
version in git. That version happens to be the same untouched version
we did the release on last Wednesday...there have been no commits
since then. Travis is usually very quick to complain and very
temperamental, but thus far, even he seems happy:

https://travis-ci.org/tinkerpop/rexster

If you happen to be building on Windows, that could be the problem.
Windows tends to have problems building Rexster (and blueprints) via
Maven. I've found it somewhat hit or miss unfortunately never quite
figuring the reason why. :|

In this case your only option to get a predictable build is to do:

mvn clean install -DskipTests

Stephen
> --
> You received this message because you are subscribed to the Google Groups
> "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gremlin-user...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Stephen Mallette

unread,
Mar 25, 2013, 3:38:10 PM3/25/13
to gremli...@googlegroups.com
Jason, thanks for noting that...i've created an issue in Rexster so
that I don't forget to commit this:

https://github.com/tinkerpop/rexster/issues/292

Please feel free to submit a pull request, if you know of other fixes
like this one.

Thanks,

Stephen

On Mon, Mar 25, 2013 at 3:14 PM, pluradj <plu...@gmail.com> wrote:
> I've run into this before... In addition to the main code change below,
> there are some test cases that fails since the IBM JDK seems to return
> values in a different order than the Sun JDK.
>
> diff --git
> a/rexster-core/src/main/java/com/tinkerpop/rexster/extension/ExtensionMethod.java
> b/rexster-core/src/main/java/com/tinkerpop/rexster/extension/ExtensionMethod.java
> index 502ac28..cfd44e9 100644
> ---
> a/rexster-core/src/main/java/com/tinkerpop/rexster/extension/ExtensionMethod.java
> +++
> b/rexster-core/src/main/java/com/tinkerpop/rexster/extension/ExtensionMethod.java
> @@ -82,7 +82,7 @@ public class ExtensionMethod {
> for (int ix = 0; ix < parametersAnnotations.length; ix++) {
> final Annotation[] annotation =
> parametersAnnotations[ix];
>
> - if (annotation != null && annotation[0] instanceof
> ExtensionRequestParameter) {
> + if (annotation != null && annotation.length > 0 &&
> annotation[0] instanceof ExtensionRequestParameter) {
> final ExtensionRequestParameter
> extensionRequestParameter = (ExtensionRequestParameter) annotation[0];
> innerMap.put(extensionRequestParameter.name(),
> extensionRequestParameter.description());
> }
>
> -- Jason

pluradj

unread,
Mar 25, 2013, 3:42:52 PM3/25/13
to gremli...@googlegroups.com
Thanks Stephen. I was hoping to submit the pull request after I cleanup some of those test cases. Just commented them out for now.

-- Jason

Andrew Ortman

unread,
Mar 25, 2013, 4:40:53 PM3/25/13
to gremli...@googlegroups.com
Thanks to you both for helping solve the issue! Another temporary solution is to just skip the tests by passing -DskipTests:
mvn clean install -DskipTests

Cheers,
Andrew
Reply all
Reply to author
Forward
0 new messages