Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4B31E200CE0 for ; Thu, 27 Jul 2017 06:09:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 463CE16A1AE; Thu, 27 Jul 2017 04:09:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 655B116A1AD for ; Thu, 27 Jul 2017 06:09:23 +0200 (CEST) Received: (qmail 64745 invoked by uid 500); 27 Jul 2017 04:09:22 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 64732 invoked by uid 99); 27 Jul 2017 04:09:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2017 04:09:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1DD2A1A1DE4 for ; Thu, 27 Jul 2017 04:09:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.791 X-Spam-Level: *** X-Spam-Status: No, score=3.791 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, JMQ_TRACKER=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Rb6kP9EnthUj for ; Thu, 27 Jul 2017 04:09:19 +0000 (UTC) Received: from mail-ua0-f179.google.com (mail-ua0-f179.google.com [209.85.217.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 86AF25FD48 for ; Thu, 27 Jul 2017 04:09:19 +0000 (UTC) Received: by mail-ua0-f179.google.com with SMTP id k43so94995637uaf.3 for ; Wed, 26 Jul 2017 21:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=dCCpv0p+UCA2vti6F5nRX0Tgp0FcK6Hhy1PJgnvlM7E=; b=kywddEcIz6CVZQS0iZLnaOrGO7DWag+1SugyA0fiobUtXxefYAX7BFcIUBujZsu/wA 0IEO2VXws8aQBfuatyhxko605t9LbQCTNhftTz9WxCatWbcFWe6PW4rQENTC8lUqdZzI WqSIam35tyQFQRBWUiT9PkmsEc4K/7Uj7CnOHd3bpirm18PCUUxZZJ/i3WQ9LAX30KZw iC6Nn1n19Tz2X7SLKiP9dy/1l437aHfKYK0M57zvxhnM29wKIQVC/I1ErN2F26oZhjbu 3CbQItds81ze+8PqLoQ0J0JQ0dnMMmJJSLaIbUkfBScjDAJd6Dms4OlaNgax3b1O3x1h UYXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dCCpv0p+UCA2vti6F5nRX0Tgp0FcK6Hhy1PJgnvlM7E=; b=ZiiC1PU44hjAq9uD75T5DK6SoKcPjCCrBz5vcTFUyn1gf8LCVGJWK9TGBg6yuh0oRE UNCUcM8t6gQ5KrnDqFUxqe794hruB0Y7g/nNX+x1t+jm0c0H2PLUmy8LwEhsNj2suqzz BohzvdyzwZL5QLeIxNHSYL18OZTBFzGucRhfFBvylLEAR2VeixgGKya0muptOj7Z5zXG EBhhpj+okE3AA64mbdEk4xcFZN2DN1gSSen4Mc1CfNdHictmP/bDxwzL4mImMv+qw9ez SgfXGPe3p0L903iIBiFYe67vzTF+2VFbon9yJ+FOu8t4fhwsPf21KS3bi/lUyyaOcK3U IdLQ== X-Gm-Message-State: AIVw110wNwJfp6bNaSzb7YTjXlPd9c/MiJ8fF7r9lqFNZcimPELpb15I gRPZAtc5wn+Haa7J7SiSEv3UCDXsbdPS X-Received: by 10.31.223.68 with SMTP id w65mr1871573vkg.27.1501128558968; Wed, 26 Jul 2017 21:09:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.60.17 with HTTP; Wed, 26 Jul 2017 21:09:18 -0700 (PDT) In-Reply-To: References: <02B858D2-036C-448E-AA80-AA11AFAE1DD9@gmail.com> From: Vaghawan Ojha Date: Thu, 27 Jul 2017 09:54:18 +0545 Message-ID: Subject: Re: Error while doing client.create in Prediction IO Java Client To: user@predictionio.incubator.apache.org Content-Type: multipart/alternative; boundary="94eb2c07cc8e8504ba055544ba03" archived-at: Thu, 27 Jul 2017 04:09:24 -0000 --94eb2c07cc8e8504ba055544ba03 Content-Type: text/plain; charset="UTF-8" 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 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" 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 >> 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 >> >> >> --94eb2c07cc8e8504ba055544ba03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Sorry, but I'm not comfortable = with Java, I've only worked with python=C2=A0SDK, and I can only guess = from your error message, so I suppose it must lie here "NoSuchMethodError" but only guessing.=C2=A0<= /div>

So you would have to wait for someone who have worke= d through it.=C2=A0

<= /span>
Thanks

On Thu, Jul 27, 2017 at 9:47 AM, Anshu Rajendra <a= nshurajendra@gmail.com> wrote:
Hi,

I am= able to create events using curl. It seems like a dependency issue to me b= etween io.netty and com.ning.httpckirnt but I don't know how to find th= e compatible versions for them to avoid this error. Any pointers?

Thanks,
An= shu

On 26-Jul-2017 8:50 PM, "Vaghawa= n Ojha" <vaghawan781@gmail.com> wrote:
Hi,=C2=A0

Are you abl= e to import the events using curl?=C2=A0

I think y= ou could probably see this line "lang= .NoSuchMethodError: org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Ljava/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.= =C2=A0

<= div>Thanks

On Thu, Jul 27, 2017 at 3:18 AM, Anshu Rajendra <anshurajendra@gm= ail.com> wrote:
Hi,

When I try to create a event in my java app using io.prediction client, I g= et this error :

```org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Ljava= /lang/String;Ljava/lang/Object;)V"java.lang.NoSuchMethodErro= r: org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Ljava= /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.NettyAsyncHttpProvid= er.buildRequest(NettyAsyncHttpProvider.java:655) at com.ning.http= .client.providers.netty.NettyConnectListener$Builder.build(NettyC= onnectListener.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.Async= HttpClient.executeRequest(AsyncHttpClient.java:499) at io.predict= ion.EventClient.createEventAsFuture(EventClient.java:116) at io.p= rediction.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


--94eb2c07cc8e8504ba055544ba03--