You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by rick_tem <rv...@temenos.com> on 2017/05/08 10:13:56 UTC

Ignite Version 2.0 startup H2 error

Hi,

I am trying to move from 1.9 to 2.0 version of Ignite and running into the
following error.  My maven dependency for H2 is as follows.  According to
the doc here https://apacheignite.readme.io/v2.0/docs/maven-setup H2 isn't
part of the dependencies, but if it is removed an error on RowSet is seen. 
Has the maven dependency for H2 moved for 2.0?  Any idea what could cause
this?  Finally, correct me if I'm wrong, but isn't Ignite reliant on a
particular H2 version?

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>1.4.191</version>
			<scope>provided</scope>
		</dependency>

Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 21.891 sec
<<< FAILURE! - in 
java.lang.AssertionError: Failure in testIgniteCache: Failed to initialize
DB connection: jdbc:h2:mem:3b272f8f-cc82-4cfa-83bd-5131ad613f1e;LOCK_MODE=3
;MULTI_THREADED=1;DB_CLOSE_ON_EXIT=FALSE;DEFAULT_LOCK_TIMEOUT=10000;FUNCTIONS_IN_SCHEMA=true;OPTIMIZE_REUSE_RESULTS=0;QUERY_CACHE_SIZE=0;RECOMPILE_ALW
AYS=1;MAX_OPERATION_MEMORY=0;NESTED_JOINS=0;BATCH_JOINS=1;ROW_FACTORY="org.apache.ignite.internal.processors.query.h2.opt.GridH2RowFactory";DEFAULT_TA
BLE_ENGINE=org.apache.ignite.internal.processors.query.h2.opt.GridH2DefaultTableEngine
        at org.junit.Assert.fail(Assert.java:88)

Thanks,
Rick



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Version-2-0-startup-H2-error-tp12532.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite Version 2.0 startup H2 error

Posted by rick_tem <rv...@temenos.com>.
Hi Denis,

It's probably because when I remove my H2 dependency from my maven pom it
gives me H2 version 173 (probably from the parent maven pom) so I have to
explicitly tell which version to use where I'm building caching.

Thanks,
Rick




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Version-2-0-startup-H2-error-tp12532p12542.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite Version 2.0 startup H2 error

Posted by Denis Magda <dm...@gridgain.com>.
H2 lib is grabbed from Maven on the fly once you set ignite-indexing module
in the pom file. I will double check that the indexing module is mentioned
in the docs.

Denis

On Monday, May 8, 2017, rick_tem <rv...@temenos.com> wrote:

> Hi Andrey,
>
> Great.  Thanks.  Updating to H2 1.4.195 did the trick.  I searched through
> the docs and could not find where H2 version is mentioned, but thanks!
>
> Best,
> Rick
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Ignite-Version-2-0-startup-H2-error-tp12532p12539.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Ignite Version 2.0 startup H2 error

Posted by rick_tem <rv...@temenos.com>.
Hi Andrey,

Great.  Thanks.  Updating to H2 1.4.195 did the trick.  I searched through
the docs and could not find where H2 version is mentioned, but thanks!

Best,
Rick




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Version-2-0-startup-H2-error-tp12532p12539.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite Version 2.0 startup H2 error

Posted by Andrey Mashenkov <an...@gmail.com>.
Hi Rick,

Looks weird. Ignite-indexing module should has H2 as dependency.
Ignite-2.0 should work fine with H2 1.4.195.

On Mon, May 8, 2017 at 1:13 PM, rick_tem <rv...@temenos.com> wrote:

> Hi,
>
> I am trying to move from 1.9 to 2.0 version of Ignite and running into the
> following error.  My maven dependency for H2 is as follows.  According to
> the doc here https://apacheignite.readme.io/v2.0/docs/maven-setup H2 isn't
> part of the dependencies, but if it is removed an error on RowSet is seen.
> Has the maven dependency for H2 moved for 2.0?  Any idea what could cause
> this?  Finally, correct me if I'm wrong, but isn't Ignite reliant on a
> particular H2 version?
>
>                 <dependency>
>                         <groupId>com.h2database</groupId>
>                         <artifactId>h2</artifactId>
>                         <version>1.4.191</version>
>                         <scope>provided</scope>
>                 </dependency>
>
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 21.891 sec
> <<< FAILURE! - in
> java.lang.AssertionError: Failure in testIgniteCache: Failed to initialize
> DB connection: jdbc:h2:mem:3b272f8f-cc82-4cfa-83bd-5131ad613f1e;LOCK_
> MODE=3
> ;MULTI_THREADED=1;DB_CLOSE_ON_EXIT=FALSE;DEFAULT_LOCK_
> TIMEOUT=10000;FUNCTIONS_IN_SCHEMA=true;OPTIMIZE_REUSE_
> RESULTS=0;QUERY_CACHE_SIZE=0;RECOMPILE_ALW
> AYS=1;MAX_OPERATION_MEMORY=0;NESTED_JOINS=0;BATCH_JOINS=1;
> ROW_FACTORY="org.apache.ignite.internal.processors.
> query.h2.opt.GridH2RowFactory";DEFAULT_TA
> BLE_ENGINE=org.apache.ignite.internal.processors.query.h2.
> opt.GridH2DefaultTableEngine
>         at org.junit.Assert.fail(Assert.java:88)
>
> Thanks,
> Rick
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Ignite-Version-2-0-startup-H2-error-tp12532.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Best regards,
Andrey V. Mashenkov