Re: javax.cache.CacheException: Failed to find mapping description

2016-09-05 Thread Alexey Kuznetsov
Hello @vikramT. I prepared example that worked for me with H2 database, but it should work with your DB also. Take a look and try to run (I also put h2 database in zip). demo-with-h2.zip -- View this message in cont

Re: javax.cache.CacheException: Failed to find mapping description

2016-09-02 Thread Alexey Kuznetsov
Hi, vikram. I will send you a full project that works for me on Monday (05/09/2016). On Thu, Sep 1, 2016 at 2:10 PM, vikramT wrote: > hi Alexey, > > Thanks for logging the issue. > > But still I am facing the same issue: > > public class CacheConfig { > /** > * Create JDBC type for inv

Re: javax.cache.CacheException: Failed to find mapping description

2016-09-02 Thread vikramT
Hello, Any workaround for this -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping-description-tp7350p7480.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: javax.cache.CacheException: Failed to find mapping description

2016-09-01 Thread vikramT
hi Alexey, Thanks for logging the issue. But still I am facing the same issue: public class CacheConfig { /** * Create JDBC type for inventory_orders. * * @param cacheName Cache name. * @return Configured JDBC type. */ private static JdbcType jdbcTypeInventoryOrd

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-31 Thread Alexey Kuznetsov
@vikramT, I found the problem and created issue: https://issues.apache.org/jira/browse/IGNITE-3816 You may workaround by specifying all DB related names in uppercase. See your CacheConfig.java and change // Key fields for inventory_orders. Collection keys = new ArrayList<>();

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-31 Thread Alexey Kuznetsov
@Val, @vikramT, @Vasiliy, FYI: I created issue: CacheJdbcPojoStore.loadCache() should check arguments and fail with appropriate exception message [ https://issues.apache.org/jira/browse/IGNITE-3815]. That was exactly what could help @vikramT to resolve initial bug. On Wed, Aug 31, 2016 at 6:04 PM

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-31 Thread Alexey Kuznetsov
@vikramT, thanks for logs we will take a look. I see NPE in log, so we will try to reproduce. On Wed, Aug 31, 2016 at 1:31 PM, vikramT wrote: > hi Vasiliy, Alexey, > > I tried this code "cache.loadCache(null,InventoryOrdersKey.class. > getName(), > "select * from inventory_orders");" and gettin

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread vikramT
hi Vasiliy, Alexey, I tried this code "cache.loadCache(null,InventoryOrdersKey.class.getName(), "select * from inventory_orders");" and getting different error log ignite-19d380e7.log Also I have added constructo

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread Alexey Kuznetsov
I think - YES. I will create issue in JIRA. On Wed, Aug 31, 2016 at 12:55 PM, vkulichenko wrote: > Vasiliy, Alexey, > > Does it make sense to validate the arguments on the early stage and give a > meaningful exception? > > -Val > > > > -- > View this message in context: http://apache-ignite-user

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread vkulichenko
Vasiliy, Alexey, Does it make sense to validate the arguments on the early stage and give a meaningful exception? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping-description-tp7350p7427.html Sent from the A

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread Vasiliy Sisko
Hello @vikramT. I reproduce your problem. You incorrectly pass arguments for loadCache method. For loadCache class name string is required: “org.infocepts.ignite.hiveCache.InventoryOrdersKey”. You send class Class.forName(InventoryOrdersKey.class.getName()) that transforms to “class org.infocep

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread vikramT
Please find screen for my table definition Capture.JPG Also I have attached the files generated by Schema Import utility, in the post. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/java

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread Alexey Kuznetsov
That's interesting... Could you provide DDL for InventoryOrders table. In that case we will easily reproduce and debug. P.S. Could you properly subscribe for user list? In this case all will receive e-mail about new messages in this thread? Messages that posted via forum not propagated to e-mail

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-30 Thread vikramT
We are NOT using any script to create data, its sample data which is present in our cluster. I am getting same error when using Sql Server instead of Hive. Thanks -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-29 Thread Alexey Kuznetsov
We are installing Hive right now. It is possible for you to give us some scripts that will create tables in Hive and populate it with some test data? This will help us with reproducing. Thanks. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheE

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-29 Thread vikramT
Thanks Alexey. Please try to provide the solution as early as possible. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping-description-tp7350p7397.html Sent from the Apache Ignite Users mailing list archive at Nabble

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-29 Thread Alexey Kuznetsov
Hi, @vikramT. Actually we did not tested automatic persistence with Hive. We will try to reproduce and I will let you know in this thread. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping-description-tp7350p7396.

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-28 Thread vikramT
Error is: class org.apache.ignite.IgniteException: javax.cache.CacheException: Failed to find mapping description [cache=InventoryOrdersCache, typeId=581285757]. Please configure JdbcType to associate cache 'InventoryOrdersCache' with JdbcPojoStore. at org.apache.ignite.internal.processors