You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Kozlov (JIRA)" <ji...@apache.org> on 2016/03/24 12:04:25 UTC

[jira] [Updated] (IGNITE-2884) Any exampe fails if one runs after CacheHibernateStoreExample

     [ https://issues.apache.org/jira/browse/IGNITE-2884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Kozlov updated IGNITE-2884:
----------------------------------
    Summary: Any exampe fails if one runs after CacheHibernateStoreExample  (was: Any exampe fails if one run after CacheHibernateStoreExample)

> Any exampe fails if one runs after CacheHibernateStoreExample
> -------------------------------------------------------------
>
>                 Key: IGNITE-2884
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2884
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 1.5.0.final
>            Reporter: Sergey Kozlov
>            Priority: Minor
>
> 1. Start {{ExampleNodeStartup}}
> 2. Start {{DbH2ServerStartup}}
> 3. Start {{CacheHibernateStoreExample}}. It works fine
> 4. Stop {{DbH2ServerStartup}} (press q)
> 5. Start any example, e.g. {{ComputeAsyncExample}}. It fails:
> {noformat}
> [13:59:48,850][ERROR][main][IgniteKernal] Got exception while starting (will rollback startup routine).
> org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
> 	at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:98)
> 	at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:68)
> 	at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170)
> 	at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:160)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:132)
> 	at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1818)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1776)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1861)
> 	at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.start(CacheHibernateStoreSessionListener.java:161)
> 	at org.apache.ignite.internal.processors.cache.GridCacheUtils.startStoreSessionListeners(GridCacheUtils.java:1716)
> 	at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.start0(GridCacheStoreManagerAdapter.java:213)
> 	at org.apache.ignite.internal.processors.cache.store.CacheOsStoreManager.start0(CacheOsStoreManager.java:64)
> 	at org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter.start(GridCacheManagerAdapter.java:50)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1042)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:778)
> 	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:909)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
> 	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
> 	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:929)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
> 	at org.apache.ignite.Ignition.start(Ignition.java:347)
> 	at org.apache.ignite.examples.computegrid.ComputeAsyncExample.main(ComputeAsyncExample.java:47)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> [13:59:48] Ignite node stopped OK [uptime=00:00:08:396]
> Exception in thread "main" class org.apache.ignite.IgniteException: Connection cannot be null when 'hibernate.dialect' not set
> 	at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:900)
> 	at org.apache.ignite.Ignition.start(Ignition.java:350)
> 	at org.apache.ignite.examples.computegrid.ComputeAsyncExample.main(ComputeAsyncExample.java:47)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: class org.apache.ignite.IgniteCheckedException: Connection cannot be null when 'hibernate.dialect' not set
> 	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:939)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
> 	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003)
> 	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:929)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:815)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:714)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:584)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:554)
> 	at org.apache.ignite.Ignition.start(Ignition.java:347)
> 	... 6 more
> Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
> 	at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:98)
> 	at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:68)
> 	at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170)
> 	at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:160)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:132)
> 	at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1818)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1776)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1861)
> 	at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.start(CacheHibernateStoreSessionListener.java:161)
> 	at org.apache.ignite.internal.processors.cache.GridCacheUtils.startStoreSessionListeners(GridCacheUtils.java:1716)
> 	at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.start0(GridCacheStoreManagerAdapter.java:213)
> 	at org.apache.ignite.internal.processors.cache.store.CacheOsStoreManager.start0(CacheOsStoreManager.java:64)
> 	at org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter.start(GridCacheManagerAdapter.java:50)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1042)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:778)
> 	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:909)
> 	... 15 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)