Build fails with "View code for View[name=null, digest=...] does not compile #182

Closed
stefankoegl opened this Issue Oct 26, 2013 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

stefankoegl commented Oct 26, 2013

When I check out the current master (b2d7653) and run mvn in the checkout, I get the following exception.

$ mvn
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building CouchDB Lucene 0.10.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-assembly-plugin:2.2-beta-4:assembly (default-cli) @ couchdb-lucene >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ couchdb-lucene ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ couchdb-lucene ---
[INFO] Compiling 1 source file to /home/stefan/src/couchdb-lucene/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ couchdb-lucene ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ couchdb-lucene ---
[INFO] Compiling 1 source file to /home/stefan/src/couchdb-lucene/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ couchdb-lucene ---
[INFO] Surefire report directory: /home/stefan/src/couchdb-lucene/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.github.rnewson.couchdb.lucene.ConfigTest
2013-10-26 10:53:25,668 INFO [Config] Index output goes to: /home/stefan/src/couchdb-lucene/target/indexes
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.439 sec
Running com.github.rnewson.couchdb.lucene.LuceneTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec <<< FAILURE!
Running com.github.rnewson.couchdb.lucene.PathPartsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.github.rnewson.couchdb.lucene.JsonTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.github.rnewson.couchdb.lucene.CustomQueryParserTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running com.github.rnewson.couchdb.lucene.couchdb.UpdateSequenceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running com.github.rnewson.couchdb.lucene.couchdb.CouchDocumentTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.github.rnewson.couchdb.lucene.couchdb.DesignDocumentTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.github.rnewson.couchdb.lucene.couchdb.ViewTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.github.rnewson.couchdb.lucene.util.UtilsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running com.github.rnewson.couchdb.lucene.util.AnalyzersTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Running com.github.rnewson.couchdb.lucene.TikaTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.584 sec
Running com.github.rnewson.couchdb.lucene.DocumentConverterTest
2013-10-26 10:53:27,911 WARN [DocumentConverter] com.github.rnewson.couchdb.lucene.couchdb.CouchDocument@3a763d2f caused exception during conversion.
org.mozilla.javascript.JavaScriptException: [object Object]
    at org.mozilla.javascript.gen.unnamed_script_4._c_anonymous_0(unnamed script:0)
    at org.mozilla.javascript.gen.unnamed_script_4.call(unnamed script)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at org.mozilla.javascript.gen.unnamed_script_4.call(unnamed script)
    at com.github.rnewson.couchdb.lucene.DocumentConverter.convert(DocumentConverter.java:93)
    at com.github.rnewson.couchdb.lucene.DocumentConverterTest.testRuntimeException(DocumentConverterTest.java:166)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
    at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
2013-10-26 10:53:27,927 ERROR [DocumentConverter] View code for View[name=null, digest=dqh3iqddvnip15afxe87i61dl] does not compile.
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.227 sec

Results :

Failed tests:   forceCommit(com.github.rnewson.couchdb.lucene.LuceneTest): 

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.574s
[INFO] Finished at: Sat Oct 26 10:53:28 CEST 2013
[INFO] Final Memory: 23M/223M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project couchdb-lucene: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/stefan/src/couchdb-lucene/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Any thoughts?

Owner

rnewson commented Oct 26, 2013

The first thought is that you misread the output. While it does fail, it fails because of the forceCommit in LuceneTest and not what you say in the title (that is the log output of a test that deliberately passes invalid JS to verify that bad JS is handled correctly).

Owner

rnewson commented Oct 26, 2013

Tests pass for me on OS X 10.9, 1.7.0_25-b15 and 1.6.0_29-b11-402.

can you try "mvn clean test" pls?

Contributor

stefankoegl commented Oct 26, 2013

You're right. I now realized that i misinterpreted the output. Also running mvn clean test fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment