Hi,
I tried to use Search Guard with Elasticsearch 1.7.
I tested both plugin version 0.5 (installed via ES plugin repository) and 0.6 (build from master).
[2015-07-29 15:47:58,610][ERROR][com.floragunn.searchguard.SearchGuardPlugin] Class enhancements for DLS/FLS not successful due to javassist.CannotCompileException: [source error] no such field: context
javassist.CannotCompileException: [source error] no such field: context
at javassist.CtBehavior.insertAt(CtBehavior.java:1207)
at javassist.CtBehavior.insertAt(CtBehavior.java:1134)
at com.floragunn.searchguard.SearchGuardPlugin.<clinit>(SearchGuardPlugin.java:101)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:518)
at org.elasticsearch.plugins.PluginsService.loadPluginsFromClasspath(PluginsService.java:411)
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:116)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java:157)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:77)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:245)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: compile error: no such field: context
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:845)
at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:803)
at javassist.compiler.TypeChecker.atMember(TypeChecker.java:988)
at javassist.compiler.JvstTypeChecker.atMember(JvstTypeChecker.java:66)
at javassist.compiler.ast.Member.accept(Member.java:39)
at javassist.compiler.JvstTypeChecker.atMethodArgs(JvstTypeChecker.java:221)
at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:735)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:695)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:330)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:398)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:355)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.Javac.compileStmnt(Javac.java:569)
at javassist.CtBehavior.insertAt(CtBehavior.java:1186)
... 14 more
[2015-07-29 15:47:58,620][INFO ][plugins ] [Anvil] loaded [searchguard], sites
{1.7.0}: Initialization Failed …
-
ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder]
NoClassDefFoundError[org/elasticsearch/common/ContextHolder]
ClassNotFoundException[org.elasticsearch.common.ContextHolder]
``
Any idea how to fix this?
Thanks in advance,
Görge
There’s already an issue for that: https://github.com/floragunncom/search-guard/issues/41
Sorry for the noise.
Görge
I’m looking forward to it
在 2015年7月29日星期三 UTC+8下午9:59:43,Görge Albrecht写道:
···
Hi,
I tried to use Search Guard with Elasticsearch 1.7.
I tested both plugin version 0.5 (installed via ES plugin repository) and 0.6 (build from master).
[2015-07-29 15:47:58,610][ERROR][com.floragunn.searchguard.SearchGuardPlugin] Class enhancements for DLS/FLS not successful due to javassist.CannotCompileException: [source error] no such field: context
javassist.CannotCompileException: [source error] no such field: context
at javassist.CtBehavior.insertAt(CtBehavior.java:1207)
at javassist.CtBehavior.insertAt(CtBehavior.java:1134)
at com.floragunn.searchguard.SearchGuardPlugin.(SearchGuardPlugin.java:101)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:518)
at org.elasticsearch.plugins.PluginsService.loadPluginsFromClasspath(PluginsService.java:411)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:116)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:157)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:77)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:245)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: compile error: no such field: context
at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:845)
at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:803)
at javassist.compiler.TypeChecker.atMember(TypeChecker.java:988)
at javassist.compiler.JvstTypeChecker.atMember(JvstTypeChecker.java:66)
at javassist.compiler.ast.Member.accept(Member.java:39)
at javassist.compiler.JvstTypeChecker.atMethodArgs(JvstTypeChecker.java:221)
at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:735)
at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:695)
at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:157)
at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)
at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:242)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:330)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:398)
at javassist.compiler.CodeGen.atStmnt(CodeGen.java:355)
at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)
at javassist.compiler.Javac.compileStmnt(Javac.java:569)
at javassist.CtBehavior.insertAt(CtBehavior.java:1186)
… 14 more
[2015-07-29 15:47:58,620][INFO ][plugins ] [Anvil] loaded [searchguard], sites
{1.7.0}: Initialization Failed …
- ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder]
NoClassDefFoundError[org/elasticsearch/common/ContextHolder]
ClassNotFoundException[org.elasticsearch.common.ContextHolder]
``
Any idea how to fix this?
Thanks in advance,
Görge