Error while creating search index, full-text search disabled

When I use stardog 5.3.1 on my macbook the search feature works as expected, but when I run it on a UMBC Unix server, I get the message

There was an error while creating the search index, full-text search will be disabled.

and search is indeed not working. If I don't use "-o search.enabled=true" then stardog seems to work fine.

The unix system is

Linux eb4 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

and I tried it on that with both java 8 (Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) and java 9 (Java(TM) SE Runtime Environment (build 9.0.4+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)).

On both versions of java and with or without the search option flag, I also get "illegal reflective access operation" warnings, but these seen not to be a problem if I don't enable search.

here's output showing what happens if I try to enable the search option...

./test.sh
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/home/finin/stardog-5.3.1/client/api/guice-4.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARN 2018-08-05 20:49:05,933 [main] com.complexible.common.memory.PlatformDependent:(144): sun.misc.VM is not available


This copy of Stardog is licensed to Tim Finin (tfinin@gmail.com), Univ Maryland Baltimore County
...
Stardog server 5.3.1 started on Sun Aug 05 20:49:08 EDT 2018.
Stardog server is listening on all network interfaces.
HTTP server available at http://localhost:9091.
WARNING: All security for the Stardog Server has been disabled.
STARDOG_HOME=/home/finin/stardog2

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/home/finin/stardog-5.3.1/client/api/guice-4.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
There was an error while creating the search index, full-text search will be disabled.

Hi Tim,

Stardog only supports Java 8, we are working on supporting newer versions of Java in a near future.
Those illegal reflective access operation warnings seem to indicate that you are running Java 9. Can you make sure that the right version of java is being used, e.g., by calling java -version before starting the server?

-pedro

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.