Return to Lucene 6.6.6. I get this:

CALL FTL_CREATE_INDEX('PUBLIC', 'TEST', 'FIRST_NAME,LAST_NAME');
Exception calling user-defined function: "createIndex(conn2: 
url=jdbc:default:connection user=SA, PUBLIC, TEST, FIRST_NAME,LAST_NAME): 
org.apache.lucene.index.IndexWriter.commit()V"; SQL statement:
CALL FTL_CREATE_INDEX('PUBLIC', 'TEST', 'FIRST_NAME,LAST_NAME') [90105-200] 
<http://10.0.75.1:8082/query.do?jsessionid=6850df2adf43ff5b30e6b88e90305043#>
 90105/90105 (Help) 
<https://h2database.com/javadoc/org/h2/api/ErrorCode.html#c90105>
org.h2.jdbc.JdbcSQLNonTransientException: Exception calling user-defined 
function: "createIndex(conn2: url=jdbc:default:connection user=SA, PUBLIC, 
TEST, FIRST_NAME,LAST_NAME): 
org.apache.lucene.index.IndexWriter.commit()V"; SQL statement:
CALL FTL_CREATE_INDEX('PUBLIC', 'TEST', 'FIRST_NAME,LAST_NAME') [90105-200]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:505 
<https://h2database.com/html/source.html?file=org/h2/message/DbException.java&line=505&build=200>
)
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:429 
<https://h2database.com/html/source.html?file=org/h2/message/DbException.java&line=429&build=200>
)
    at org.h2.message.DbException.get(DbException.java:194 
<https://h2database.com/html/source.html?file=org/h2/message/DbException.java&line=194&build=200>
)
    at org.h2.message.DbException.convertInvocation(DbException.java:376 
<https://h2database.com/html/source.html?file=org/h2/message/DbException.java&line=376&build=200>
)
    at 
org.h2.engine.FunctionAlias$JavaMethod.getValue(FunctionAlias.java:454 
<https://h2database.com/html/source.html?file=org/h2/engine/FunctionAlias.java&line=454&build=200>
)
    at org.h2.expression.function.JavaFunction.getValue(JavaFunction.java:40 
<https://h2database.com/html/source.html?file=org/h2/expression/function/JavaFunction.java&line=40&build=200>
)
    at org.h2.command.dml.Call.query(Call.java:65 
<https://h2database.com/html/source.html?file=org/h2/command/dml/Call.java&line=65&build=200>
)
    at org.h2.command.CommandContainer.query(CommandContainer.java:285 
<https://h2database.com/html/source.html?file=org/h2/command/CommandContainer.java&line=285&build=200>
)
    at org.h2.command.Command.executeQuery(Command.java:195 
<https://h2database.com/html/source.html?file=org/h2/command/Command.java&line=195&build=200>
)
    at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:222 
<https://h2database.com/html/source.html?file=org/h2/jdbc/JdbcStatement.java&line=222&build=200>
)
    at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:201 
<https://h2database.com/html/source.html?file=org/h2/jdbc/JdbcStatement.java&line=201&build=200>
)
    at org.h2.server.web.WebApp.getResult(WebApp.java:1459 
<https://h2database.com/html/source.html?file=org/h2/server/web/WebApp.java&line=1459&build=200>
)
    at org.h2.server.web.WebApp.query(WebApp.java:1116 
<https://h2database.com/html/source.html?file=org/h2/server/web/WebApp.java&line=1116&build=200>
)
    at org.h2.server.web.WebApp$1.next(WebApp.java:1078 
<https://h2database.com/html/source.html?file=org/h2/server/web/WebApp.java&line=1078&build=200>
)
    at org.h2.server.web.WebApp$1.next(WebApp.java:1065 
<https://h2database.com/html/source.html?file=org/h2/server/web/WebApp.java&line=1065&build=200>
)
    at org.h2.server.web.WebThread.process(WebThread.java:178 
<https://h2database.com/html/source.html?file=org/h2/server/web/WebThread.java&line=178&build=200>
)
    at org.h2.server.web.WebThread.run(WebThread.java:94 
<https://h2database.com/html/source.html?file=org/h2/server/web/WebThread.java&line=94&build=200>
)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: 
org.apache.lucene.index.IndexWriter.commit()V
    at 
org.h2.fulltext.FullTextLucene$IndexAccess.commit(FullTextLucene.java:766 
<https://h2database.com/html/source.html?file=org/h2/fulltext/FullTextLucene.java&line=766&build=200>
)
    at 
org.h2.fulltext.FullTextLucene$FullTextTrigger.commitIndex(FullTextLucene.java:624
 
<https://h2database.com/html/source.html?file=org/h2/fulltext/FullTextLucene.java&line=624&build=200>
)
    at 
org.h2.fulltext.FullTextLucene.indexExistingRows(FullTextLucene.java:388 
<https://h2database.com/html/source.html?file=org/h2/fulltext/FullTextLucene.java&line=388&build=200>
)
    at org.h2.fulltext.FullTextLucene.createIndex(FullTextLucene.java:162 
<https://h2database.com/html/source.html?file=org/h2/fulltext/FullTextLucene.java&line=162&build=200>
)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at 
org.h2.engine.FunctionAlias$JavaMethod.getValue(FunctionAlias.java:441 
<https://h2database.com/html/source.html?file=org/h2/engine/FunctionAlias.java&line=441&build=200>
)
    ... 13 more

On Wednesday, October 16, 2019 at 3:52:29 PM UTC+8, Evgenij Ryazanov wrote:
>
> Oh, I see. We definitely have a problem.
>
> Try some older version of Lucene such as 6.6.*.
>
> 7.0.0 and newer versions are source compatible but binary incompatible, if 
> you need them, you need to recompile H2 with that version.
>
> I'll try to fix the binary compatibility for a next version of H2. I 
> filled a new issue on GitHub:
> https://github.com/h2database/h2database/issues/2179
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/1e989339-aefe-4655-a48e-e190dbcac3b2%40googlegroups.com.

Reply via email to