Error using Elasticsearch Java Client from Websphere -
i have web application uses elasticsearch official java client. when using web application on websphere 8.5.5 using ibm jvm java 7, error below. tried using transport client , node client. tried using oracle javase 7 , 8 jvm elasticsearch. nothing worked out. elasticsearch not run on ibm jvm , websphere runs on ibm jvm.
does know way use elasticsearch official java client application on websphere?
below error stack trace:
caused by: org.elasticsearch.transport.transportserializationexception: failed deserialize exception response stream @ org.elasticsearch.transport.netty.messagechannelhandler.handlerresponseerror(messagechannelhandler.java:178) @ org.elasticsearch.transport.netty.messagechannelhandler.messagereceived(messagechannelhandler.java:130) @ org.elasticsearch.common.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:70) @ org.elasticsearch.common.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564) @ org.elasticsearch.common.netty.channel.defaultchannelpipeline$defaultchannelhandlercontext.sendupstream(defaultchannelpipeline.java:791) @ org.elasticsearch.common.netty.channel.channels.firemessagereceived(channels.java:296) @ org.elasticsearch.common.netty.handler.codec.frame.framedecoder.unfoldandfiremessagereceived(framedecoder.java:462) @ org.elasticsearch.common.netty.handler.codec.frame.framedecoder.calldecode(framedecoder.java:443) @ org.elasticsearch.common.netty.handler.codec.frame.framedecoder.messagereceived(framedecoder.java:303) @ org.elasticsearch.common.netty.channel.simplechannelupstreamhandler.handleupstream(simplechannelupstreamhandler.java:70) @ org.elasticsearch.common.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:564) @ org.elasticsearch.common.netty.channel.defaultchannelpipeline.sendupstream(defaultchannelpipeline.java:559) @ org.elasticsearch.common.netty.channel.channels.firemessagereceived(channels.java:268) @ org.elasticsearch.common.netty.channel.channels.firemessagereceived(channels.java:255) @ org.elasticsearch.common.netty.channel.socket.nio.nioworker.read(nioworker.java:88) @ org.elasticsearch.common.netty.channel.socket.nio.abstractnioworker.process(abstractnioworker.java:108) @ org.elasticsearch.common.netty.channel.socket.nio.abstractnioselector.run(abstractnioselector.java:337) @ org.elasticsearch.common.netty.channel.socket.nio.abstractnioworker.run(abstractnioworker.java:89) @ org.elasticsearch.common.netty.channel.socket.nio.nioworker.run(nioworker.java:178) @ org.elasticsearch.common.netty.util.threadrenamingrunnable.run(threadrenamingrunnable.java:108) @ org.elasticsearch.common.netty.util.internal.deadlockproofworker$1.run(deadlockproofworker.java:42) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1156) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:626) @ java.lang.thread.run(thread.java:780) caused by: java.io.streamcorruptedexception: unexpected end of block data @ java.io.objectinputstream.readobject0(objectinputstream.java:1438) @ java.io.objectinputstream.access$400(objectinputstream.java:217) @ java.io.objectinputstream$getfieldimpl.readfields(objectinputstream.java:2201) @ java.io.objectinputstream.readfields(objectinputstream.java:603) @ java.net.inetsocketaddress.readobject(inetsocketaddress.java:293) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:88) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:55) @ java.lang.reflect.method.invoke(method.java:613) @ java.io.objectstreamclass.invokereadobject(objectstreamclass.java:1076) @ java.io.objectinputstream.readserialdata(objectinputstream.java:1941) @ java.io.objectinputstream.readordinaryobject(objectinputstream.java:1846) @ java.io.objectinputstream.readobject0(objectinputstream.java:1416) @ java.io.objectinputstream.defaultreadfields(objectinputstream.java:2039) @ java.io.objectinputstream.readserialdata(objectinputstream.java:1963) @ java.io.objectinputstream.readordinaryobject(objectinputstream.java:1846) @ java.io.objectinputstream.readobject0(objectinputstream.java:1416) @ java.io.objectinputstream.defaultreadfields(objectinputstream.java:2039) @ java.io.objectinputstream.readserialdata(objectinputstream.java:1963) @ java.io.objectinputstream.readordinaryobject(objectinputstream.java:1846) @ java.io.objectinputstream.readobject0(objectinputstream.java:1416) @ java.io.objectinputstream.readobject(objectinputstream.java:419) @ org.elasticsearch.transport.netty.messagechannelhandler.handlerresponseerror(messagechannelhandler.java:176) ... 23 more
the workaround problem use same jvm both java applications. serialization of java exceptions can inconsistent between same jvm using different update versions, , it's problem between ibm's jvm , 1 running elasticsearch.
specifically, elasticsearch not run on ibm jvm because ibm jvm has bugs in prevent working correctly.
fortunately outlook getting much better here. ibm working elasticsearch working properly and elasticsearch removing serialization in elasticsearch 2.0.
Comments
Post a Comment