# Getting error while running logstash

**URL:** <https://discuss.elastic.co/t/getting-error-while-running-logstash/196035>\
**Category:** Logstash\
**Created:** [August 21, 2019, 4:04am UTC](https://discuss.elastic.co/t/getting-error-while-running-logstash/196035 "2019-08-21T04:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jainabhishek0406](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jainabhishek0406](https://discuss.elastic.co/u/jainabhishek0406)\
**Post date:** [August 21, 2019, 4:04am UTC](https://discuss.elastic.co/t/getting-error-while-running-logstash/196035/1 "2019-08-21T04:04:45Z")

</div>

facing issue and getting below error  
[2019-08-19T14:27:41,342][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"Java:  
:JavaLang::NoSuchMethodError", :message=\>"org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;", :backtrace=\>["org.logstash.execution.AbstractP  
ipelineExt.initialize(AbstractPipelineExt.java:124)", "org.logstash.execution.AbstractPipelineExt$INVOKER$i$3$0$initialize.call(AbstractPipelineExt$INVOKER$i$3$0$in  
itialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodThree.call(JavaMethod.java:1186)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMetho  
dN.call(JavaMethod.java:743)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:983)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSupe  
rSplatArgs(IRRuntimeHelpers.java:974)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "C\_3a\_.Users.abhishek12\_dot\_jain.Doc  
uments.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$initialize$0(C:/Users/abhishek1  
2.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/pipeline.rb:22)", "org.jruby.internal.runtime.methods.Compiled  
IRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.runtime.IRRuntimeHel  
pers.instanceSuper(IRRuntimeHelpers.java:983)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:974)", "org.jruby.ir.targets.Ins  
tanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "C\_3a\_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_  
6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$initialize$0(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logst  
ash-6.5.4/logstash-core/lib/logstash/pipeline.rb:90)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.run  
time.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:298)", "org.jruby.run  
time.callsite.CachingCallSite.callBlock(CachingCallSite.java:79)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)", "org.jruby.RubyClass.  
newInstance(RubyClass.java:1022)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.ir.targets.InvokeSite.invoke(In  
vokeSite.java:145)", "C\_3a\_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logs  
tash.pipeline\_action.create.RUBY$block$execute$1(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logs  
tash/pipeline\_action/create.rb:42)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", "org.jruby.runtime.IRBlockBody.call(IRBlockBo  
dy.java:71)", "org.jruby.runtime.Block.call(Block.java:124)", "org.jruby.RubyProc.call(RubyProc.java:289)", "org.jruby.RubyProc.call19(RubyProc.java:273)", "org.jru  
by.RubyProc$INVOKER$i$0$0$call19.call(RubyProc$INVOKER$i$0$0$call19.gen)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "C\_3a\_.Users.abhishek12\_do  
t\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$block$exclusive$1(C:/Users/abhi  
shek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb:92)", "org.jruby.runtime.CompiledIRBlockBody.yie  
ldDirect(CompiledIRBlockBody.java:156)", "org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:80)", "org.jruby.runtime.Block.yieldSpecific(Block.java:134)"  
, "org.jruby.ext.thread.Mutex.synchronize(Mutex.java:148)", "org.jruby.ext.thread.Mutex$INVOKER$i$0$0$synchronize.call(Mutex$INVOKER$i$0$0$synchronize.gen)", "org.j  
ruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:498)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "C\_3a\_.Users  
.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$method$exclusive$  
0(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb:92)", "C\_3a\_.Users.abhishek12\_dot  
_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$method$exclusive$0$ **VARARGS** (C  
:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb)", "org.jruby.internal.runtime.metho  
ds.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.targets.I  
nvokeSite.invoke(InvokeSite.java:145)", "C\_3a_ .Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_  
minus\_core.lib.logstash.pipeline\_action.create.RUBY$method$execute$0(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/lo  
gstash-core/lib/logstash/pipeline\_action/create.rb:38)", "C\_3a\_.Users.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_  
5\_dot\_4.logstash\_minus\_core.lib.logstash.pipeline\_action.create.RUBY$method$execute$0$ **VARARGS** (C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Developme  
nt/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/pipeline\_action/create.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:7  
7)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "C\_3a\_.U  
sers.abhishek12\_dot\_jain.Documents.ProjectData\_JCP.Skill\_Development.ELKSetup.logstash\_minus\_6\_dot\_5\_dot\_4.logstash\_minus\_core.lib.logstash.agent.RUBY$block$converg  
e\_state$2(C:/Users/abhishek12.jain/Documents/ProjectData\_JCP/Skill\_Development/ELKSetup/logstash-6.5.4/logstash-core/lib/logstash/agent.rb:317)", "org.jruby.runtime  
.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71)", "org.jruby.runtime.Block.call(Block.java:  
124)", "org.jruby.RubyProc.call(RubyProc.java:289)", "org.jruby.RubyProc.call(RubyProc.java:246)",

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 21, 2019, 12:25pm UTC](https://discuss.elastic.co/t/getting-error-while-running-logstash/196035/2 "2019-08-21T12:25:53Z")

</div>

Please do not post the same question over and over again if nobody responds. It is OK to bump an unanswered question if nobody responds after a day.

The problem appears to be at [this](https://github.com/elastic/logstash/blob/ed91408ffd91ce6c517a687bc0658fcdb91bcc44/logstash-core/src/main/java/org/logstash/execution/AbstractPipelineExt.java#L129) line of code. The digest method of a MethodDigest is [documented](https://docs.oracle.com/javase/7/docs/api/java/security/MessageDigest.html#digest(byte%5B%5D)) as returning a byte array, but it has returned a String. That sounds like a broken Java implementation to me.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 18, 2019, 12:25pm UTC](https://discuss.elastic.co/t/getting-error-while-running-logstash/196035/3 "2019-09-18T12:25:55Z")

</div>

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