Hi Anshu, Can you find out what version of io.netty and com.ning.httpclient you're using?
I'm no expert on this but this is how I try to resolve it: on sites like maven central you can search for these packages like http://search.maven.org/#search%7Cga%7C1%7Ccom.ning%20http-client Clicking on the latest version 1.9.40 and you'll find "io.netty" with ${netty.version} being 3.10.6.Final http://search.maven.org/#artifactdetails%7Cio.netty%7Cnetty%7C3.10.6.Final%7Cbundle So these two version should be compatible with each other. By the way in searching for "com.ning http-client" I find on the GitHub page ( https://github.com/ning/async-http-client) that it's moved and with a new groupId org.asynchttpclient ( http://search.maven.org/#search%7Cga%7C1%7Corg.asynchttpclient) which you can consider upgrading to. Hope this helps. You can also search for blog posts that sums it up better than I do. Tom On Wed, Jul 26, 2017 at 9:09 PM, Vaghawan Ojha <[email protected]> wrote: > Hi, > > Sorry, but I'm not comfortable with Java, I've only worked with > python SDK, and I can only guess from your error message, so I suppose it > must lie here "NoSuchMethodError" but only guessing. > > So you would have to wait for someone who have worked through it. > > Thanks > > On Thu, Jul 27, 2017 at 9:47 AM, Anshu Rajendra <[email protected]> > wrote: > >> Hi, >> >> I am able to create events using curl. It seems like a dependency issue >> to me between io.netty and com.ning.httpckirnt but I don't know how to find >> the compatible versions for them to avoid this error. Any pointers? >> >> Thanks, >> Anshu >> >> On 26-Jul-2017 8:50 PM, "Vaghawan Ojha" <[email protected]> wrote: >> >>> Hi, >>> >>> Are you able to import the events using curl? >>> >>> I think you could probably see this line "lang.NoSuchMethodError: >>> org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Lja >>> va/lang/String;Ljava/lang/Object;)V " >>> >>> I've not worked with java app, but have worked with python sdk. Probably >>> something wrong with your request if you're able to import the events using >>> curl. >>> >>> Thanks >>> >>> On Thu, Jul 27, 2017 at 3:18 AM, Anshu Rajendra <[email protected] >>> > wrote: >>> >>>> Hi, >>>> >>>> When I try to create a event in my java app using io.prediction client, >>>> I get this error : >>>> >>>> ```org.jboss.netty.handler.codec.http.HttpRequest.setHeader( >>>> Ljava/lang/String;Ljava/lang/Object;)V"java.lang.NoSuchMethodError: >>>> org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Lja >>>> va/lang/String;Ljava/lang/Object;)V at com.ning.http.client.providers >>>> .netty.NettyAsyncHttpProvider.construct(NettyAsyncHttpProvider.java:704) >>>> at com.ning.http.client.providers.netty.NettyAsyncHttpProvider. >>>> buildRequest(NettyAsyncHttpProvider.java:655) at >>>> com.ning.http.client.providers.netty.NettyConnectListener$Bu >>>> ilder.build(NettyConnectListener.java:145) at >>>> com.ning.http.client.providers.netty.NettyAsyncHttpProvider. >>>> doConnect(NettyAsyncHttpProvider.java:1069) at >>>> com.ning.http.client.providers.netty.NettyAsyncHttpProvider. >>>> execute(NettyAsyncHttpProvider.java:938) at >>>> com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:499) >>>> at io.prediction.EventClient.createEventAsFuture(EventClient.java:116) >>>> at io.prediction.EventClient.createEvent(EventClient.java:131) ``` >>>> >>>> It seems to be a library issue but I cannot figure out. Can someone >>>> help me debug this error? >>>> >>>> Thanks, >>>> Anshu >>> >>> >>> >
