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 A20CC200B6F for ; Wed, 24 Aug 2016 15:51:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A072D160AB1; Wed, 24 Aug 2016 13:51:31 +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 BED47160AA4 for ; Wed, 24 Aug 2016 15:51:30 +0200 (CEST) Received: (qmail 56643 invoked by uid 500); 24 Aug 2016 13:51:29 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 56633 invoked by uid 99); 24 Aug 2016 13:51:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 13:51:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4D4EFC0C03 for ; Wed, 24 Aug 2016 13:51:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2W1Oz6BZMbIa for ; Wed, 24 Aug 2016 13:51:27 +0000 (UTC) Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 5D2ED5F47A for ; Wed, 24 Aug 2016 13:51:26 +0000 (UTC) Received: by mail-oi0-f54.google.com with SMTP id f189so22899918oig.3 for ; Wed, 24 Aug 2016 06:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PlIaL9TUMQKWlsJ4YN/NE1PeMCE2PY/L6yaouZxDWIs=; b=brdKi+1sI81mja5gAjfgOFtV5qA2Y7pQXqQl83ztsqXaXxmJ6H4vVGkX3rAVh/NjQ5 lNqVeMB+KHkrIeKRaekGIrLzCsvO/JCNQi56o+SfqIOEwfrnU+vnFRq1uyeTenfajGPO inhYTJ/HAW2kh1zjVxm8a+vkkKsnIE1Q1goWpICDDwj3APotdl/XvEEb9EMPGsgx6kNT EdT4KFuOeFHXkEVZU7S4bxWcnQXbIcpLjvsOkRdw+DfnydyXClKWETudQXtKERvPsHms jkpfBXj5Ie3fxSxspkw8iJ6h10vQdmSX3PJCcH0tWur9lr/0PPc+ivcSG8qsK7UOvYOt 5zzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=PlIaL9TUMQKWlsJ4YN/NE1PeMCE2PY/L6yaouZxDWIs=; b=AEjpwjhH9UPYOzyd/yuNAly8bY8WJ84VMLXguSOxYqenRgwJom+r6hOS129AhZfiBE vUtaZ9AqlneCOiDrYXE1O9HEVHZPVwv6w8sf8A1BfZZIY4xBmVhwhdlpJ+t59N9qEOdX k+olbAjY0FzKJTXWyvdTd0PMtO7jwxKLWQIghudf81+1SMcC+Qm+u0XR8cVTe3K+LPYa jvPcfel1oNB20KAmXWTU6y6Iubl3hxF0laNN0LXJMTncTeTFlG7cy64/B5j7z5SWHNiN 0qcSoAqAdx8bvKC8oB81uiL4rqmTW2mYaekRYZOjz2UeQ8rShPv6XYv8Or3dN910G3CI taMg== X-Gm-Message-State: AE9vXwNMXYNtehkr7I+sGJ/dOH+z/qREj9DJmpTvHfWQ2BpODw19b8gEJPmDb1pJHyifKysnPVZUMCTDdEocQWTS X-Received: by 10.157.47.73 with SMTP id h67mr2504485otb.14.1472046685080; Wed, 24 Aug 2016 06:51:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.56.19 with HTTP; Wed, 24 Aug 2016 06:51:24 -0700 (PDT) In-Reply-To: <1472045267019-7272.post@n6.nabble.com> References: <1472045267019-7272.post@n6.nabble.com> From: Andrey Gura Date: Wed, 24 Aug 2016 16:51:24 +0300 Message-ID: Subject: Re: Spring application context resource is not injected exception while starting ignite in jdbc driver mode To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c032026c1ef39053ad19337 archived-at: Wed, 24 Aug 2016 13:51:31 -0000 --94eb2c032026c1ef39053ad19337 Content-Type: text/plain; charset=UTF-8 Hi, could you please provide exception and stack trace? Also please make sure that your Spring configuration file has root element. On Wed, Aug 24, 2016 at 4:27 PM, san wrote: > I am facing an issue while starting ignite in JDBC driver mode. i have my > cache in remote node and i need to access using plain sql queries. Hence i > am using ignite jdbc driver. please find the code snippet. > > Class.forName("org.apache.ignite.IgniteJdbcDriver"); > Connection conn = > DriverManager.getConnection("jdbc:ignite:cfg://ignite-jdbc.xml"); > ResultSet rs = conn.createStatement().executeQuery("select * from users"); > > my xml also simple. since cache is already loaded in remote node. > > class="org.apache.ignite.configuration.IgniteConfiguration"> > > > > > > > > > class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> > > class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm. > TcpDiscoveryVmIpFinder"> > > > 127.0.0.1:47500..47549 > > > > > > > > please do the needful.. > > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Spring-application-context-resource- > is-not-injected-exception-while-starting-ignite-in-jdbc- > driver-me-tp7272.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Andrey Gura GridGain Systems, Inc. www.gridgain.com --94eb2c032026c1ef39053ad19337 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

could you please provide exception a= nd stack trace? Also please make sure that your Spring configuration file h= as <beans> root element.

On Wed, Aug 24, 2016 at 4:27 PM, san <hv.sanjeev= @gmail.com> wrote:
I am fac= ing an issue while starting ignite in JDBC driver mode. i have my
cache in remote node and i need to access using plain sql queries. Hence i<= br> am using ignite jdbc driver. please find the code snippet.

Class.forName("org.apache.ignite.IgniteJdbcDriver");
Connection conn =3D
DriverManager.getConnection("jdbc:ignite:cfg://ignite-jdbc.x= ml");
ResultSet rs =3D conn.createStatement().executeQuery("select * fr= om users");

my xml also simple. since cache is already loaded in remote node.

=C2=A0 <bean id=3D"grid.cfg"
class=3D"org.apache.ignite.configuration.IgniteConfiguration= ">

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"clientMode" valu= e=3D"true"/>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"localHost" value= =3D"127.0.0.1"/>



=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"discoverySpi">= ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean
class=3D"org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"= ;>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name= =3D"ipFinder">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <b= ean
class=3D"org.apache.ignite.spi.discovery.tcp.ipfinder.vm.Tcp= DiscoveryVmIpFinder">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 <property name=3D"addresses">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 <list>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <value>127.0.0.1:47500..47549&= lt;/value>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 </list>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </= bean>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>

please do the needful..




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-<= wbr>application-context-resource-is-not-injected-exception-while-= starting-ignite-in-jdbc-driver-me-tp7272.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Andrey Gura
GridGain Systems, Inc.
=
--94eb2c032026c1ef39053ad19337--