rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 145 forks source link

com.github.rnewson.couchdb.lucene.DocumentConverterTest: com.github.rnewson.couchdb.lucene.couchdb.CouchDocument@58c1c010 caused exception during conversion #286

Open dineshr93 opened 4 years ago

dineshr93 commented 4 years ago

I am running this script install-lucene.sh There is an exception threw. check the below log. Even though Build is success is there any problem? Test

[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building CouchDB Lucene 1.0.2 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ couchdb-lucene --- [INFO] Deleting /tmp/couchdb-lucene-1.0.2/target [INFO] [INFO] --- maven-resources-plugin:2.6: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 32 source files to /tmp/couchdb-lucene-1.0.2/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6: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 12 source files to /tmp/couchdb-lucene-1.0.2/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ couchdb-lucene --- [INFO] Surefire report directory: /tmp/couchdb-lucene-1.0.2/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.github.rnewson.couchdb.lucene.DocumentConverterTest
2020-09-08 15:46:32,103 WARN [DocumentConverter] com.github.rnewson.couchdb.lucene.couchdb.CouchDocument@58c1c010 caused exception during conversion.
org.mozilla.javascript.JavaScriptException: [object Object]
        at org.mozilla.javascript.gen.unnamed_script_21._c_anonymous_0(unnamed script:0)
        at org.mozilla.javascript.gen.unnamed_script_21.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_21.call(unnamed script)
        at com.github.rnewson.couchdb.lucene.DocumentConverter.convert(DocumentConverter.java:85)
        at com.github.rnewson.couchdb.lucene.DocumentConverterTest.testRuntimeException(DocumentConverterTest.java:167)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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.JUnit4Provider.execute(JUnit4Provider.java:264)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
2020-09-08 15:46:32,123 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.501 sec - in com.github.rnewson.couchdb.lucene.DocumentConverterTest
Running com.github.rnewson.couchdb.lucene.ConfigTest
2020-09-08 15:46:32,166 INFO [Config] Index output goes to: /tmp/couchdb-lucene-1.0.2/target/indexes
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.167 sec - in com.github.rnewson.couchdb.lucene.ConfigTest
Running com.github.rnewson.couchdb.lucene.util.AnalyzersTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in com.github.rnewson.couchdb.lucene.util.AnalyzersTest
Running com.github.rnewson.couchdb.lucene.util.UtilsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.github.rnewson.couchdb.lucene.util.UtilsTest
Running com.github.rnewson.couchdb.lucene.CustomQueryParserTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec - in com.github.rnewson.couchdb.lucene.CustomQueryParserTest
Running com.github.rnewson.couchdb.lucene.couchdb.DesignDocumentTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.github.rnewson.couchdb.lucene.couchdb.DesignDocumentTest
Running com.github.rnewson.couchdb.lucene.couchdb.CouchDocumentTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.github.rnewson.couchdb.lucene.couchdb.CouchDocumentTest
Running com.github.rnewson.couchdb.lucene.couchdb.ViewTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.github.rnewson.couchdb.lucene.couchdb.ViewTest
Running com.github.rnewson.couchdb.lucene.couchdb.UpdateSequenceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in com.github.rnewson.couchdb.lucene.couchdb.UpdateSequenceTest
Running com.github.rnewson.couchdb.lucene.PathPartsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.github.rnewson.couchdb.lucene.PathPartsTest
Running com.github.rnewson.couchdb.lucene.TikaTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.784 sec - in com.github.rnewson.couchdb.lucene.TikaTest
Running com.github.rnewson.couchdb.lucene.JsonTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in com.github.rnewson.couchdb.lucene.JsonTest

Results :

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

[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ couchdb-lucene ---
[INFO] Building jar: /tmp/couchdb-lucene-1.0.2/target/couchdb-lucene-1.0.2.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ couchdb-lucene ---
[INFO] Installing /tmp/couchdb-lucene-1.0.2/target/couchdb-lucene-1.0.2.jar to /root/.m2/repository/com/github/rnewson/couchdb/lucene/couchdb-lucene/1.0.2/couchdb-lucene-1.0.2.jar
[INFO] Installing /tmp/couchdb-lucene-1.0.2/pom.xml to /root/.m2/repository/com/github/rnewson/couchdb/lucene/couchdb-lucene/1.0.2/couchdb-lucene-1.0.2.pom
[INFO]
[INFO] --- maven-war-plugin:3.3.1:war (default-cli) @ couchdb-lucene ---
[INFO] Packaging webapp
[INFO] Assembling webapp [couchdb-lucene] in [/tmp/couchdb-lucene-1.0.2/target/couchdb-lucene-1.0.2]
[INFO] Processing war project
[INFO] Copying webapp resources [/tmp/couchdb-lucene-1.0.2/src/main/webapp]
[INFO] Building war: /tmp/couchdb-lucene-1.0.2/target/couchdb-lucene-1.0.2.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.721 s
[INFO] Finished at: 2020-09-08T16:46:34+02:00
[INFO] Final Memory: 45M/712M
[INFO] ------------------------------------------------------------------------