Starting up the grid (newbie question)

classic Classic list List threaded Threaded
5 messages Options
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Starting up the grid (newbie question)

asked by zare agazaryan

When attempting to start the Ignite Grid within a method annotated as @PostConstruct, I get "class org.apache.ignite.IgniteCheckedException: Failed to create new instance for class: class org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing."

What could be the problem?

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Starting up the grid (newbie question)

commented by dmitriy setrakyan

Are you importing ignite-indexing pom artifact? If yes, please post the full stack trace here or use github gists.

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Starting up the grid (newbie question)

commented by zare agazaryan

<dependencies>
    <dependency>
        <groupId>org.apache.ignite</groupId>
        <artifactId>ignite-core</artifactId>
        <version>${ignite.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.ignite</groupId>
        <artifactId>ignite-spring</artifactId>
        <version>${ignite.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.ignite</groupId>
        <artifactId>ignite-indexing</artifactId>
        <version>${ignite.version}</version>
    </dependency>
    <dependency>
        <groupId>org.apache.ignite</groupId>
        <artifactId>ignite-log4j</artifactId>
        <version>${ignite.version}</version>
    </dependency>
</dependencies>

Full stack trace:

13:46:38,565 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from URL [file:/home/zagazaryan/nbcu/ignite/panda-services/src/test/resources/example-compute.xml] 13:46:38,583 INFO [GenericApplicationContext] Refreshing org.springframework.context.support.GenericApplicationContext@43e5b521: startup date [Thu Apr 09 13:46:38 PDT 2015]; root of context hierarchy 13:46:38,586 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1276acfe: defining beans [ignite.cfg]; root of factory hierarchy 13:46:38,756 INFO [IgniteKernal]

/ / __/ |/ / / / /
/ // (7 7 // / / / / /
//\//|// // /_/

ver. 1.0.0-RC3#20150324-sha1:d167db5a 2015 Copyright(C) Apache Software Foundation
13:46:38,756 INFO [IgniteKernal] Config URL: file:/home/zagazaryan/nbcu/ignite/panda-services/src/test/resources/example-compute.xml 13:46:38,756 INFO [IgniteKernal] Daemon mode: off 13:46:38,756 INFO [IgniteKernal] OS: Linux 3.16.0-34-generic amd64 13:46:38,757 INFO [IgniteKernal] OS user: zagazaryan 13:46:38,757 INFO [IgniteKernal] Language runtime: Java Platform API Specification ver. 1.8 13:46:38,757 INFO [IgniteKernal] VM information: Java(TM) SE Runtime Environment 1.8.0_25-b17 Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.25-b02 13:46:38,757 INFO [IgniteKernal] VM total memory: 3.5GB 13:46:38,757 INFO [IgniteKernal] Remote Management [restart: off, REST: on, JMX (remote: on, port: 1099, auth: off, ssl: off)] 13:46:38,757 INFO [IgniteKernal] IGNITE_HOME=null 13:46:38,758 INFO [IgniteKernal] VM arguments: [-Djava.util.logging.config.file=/home/zagazaryan/.IntelliJIdea12/system/tomcat/Unnamed_ignite/conf/logging.properties, -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager, -Dcom.sun.management.jmxremote=, -Dcom.sun.management.jmxremote.port=1099, -Dcom.sun.management.jmxremote.ssl=false, -Dcom.sun.management.jmxremote.authenticate=false, -Djava.rmi.server.hostname=127.0.0.1, -Djava.endorsed.dirs=/home/zagazaryan/nbcu/apache-tomcat-7.0.56/endorsed, -Dcatalina.base=/home/zagazaryan/.IntelliJIdea12/system/tomcat/Unnamed_ignite, -Dcatalina.home=/home/zagazaryan/nbcu/apache-tomcat-7.0.56, -Djava.io.tmpdir=/home/zagazaryan/nbcu/apache-tomcat-7.0.56/temp] 13:46:38,758 INFO [IgniteKernal] Configured caches ['ignite-marshaller-sys-cache', 'ignite-sys-cache', 'ignite-atomics-sys-cache'] 13:46:38,758 WARN [IgniteKernal] Peer class loading is enabled (disable it in production for performance and deployment consistency reasons) 13:46:38,763 WARN [GridWorker] Initial heap size is 250MB (should be no less than 512MB, use -Xms512m -Xmx512m). 13:46:38,814 INFO [IgniteKernal] Non-loopback local IPs: 3.156.106.178, fe80:0:0:0:b6b5:2fff:fec3:89ad%eth0 13:46:38,815 INFO [IgniteKernal] Enabled local MACs: B4B52FC389AD 13:46:38,822 INFO [IgnitePluginProcessor] Configured plugins: 13:46:38,822 INFO [IgnitePluginProcessor] ^-- None 13:46:38,822 INFO [IgnitePluginProcessor] 13:46:38,853 INFO [TcpCommunicationSpi] Successfully bound to TCP port [port=47100, locHost=0.0.0.0/0.0.0.0] 13:46:38,866 WARN [NoopCheckpointSpi] Checkpoints are disabled (to enable configure any GridCheckpointSpi implementation) 13:46:38,889 WARN [GridCollisionManager] Collision resolution is disabled (all jobs will be activated upon arrival). 13:46:38,892 WARN [NoopSwapSpaceSpi] Swap space is disabled. To enable use FileSwapSpaceSpi. 13:46:38,892 WARN [GridIndexingManager] Indexing is disabled (to enable please configure GridIndexingSpi). 13:46:38,893 INFO [IgniteKernal] Security status [authentication=off] 13:46:38,915 ERROR [IgniteKernal] Got exception while starting (will rollback startup routine). class org.apache.ignite.IgniteCheckedException: Failed to create new instance for class: class org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing at org.apache.ignite.internal.util.IgniteUtils.newInstance(IgniteUtils.java:1120) at org.apache.ignite.internal.util.IgniteUtils.newInstance(IgniteUtils.java:1087) at org.apache.ignite.internal.processors.query.GridQueryProcessor.<init>(GridQueryProcessor.java:98) at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:751) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1409) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1277) at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:856) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:756) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:644) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:505) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:475) at org.apache.ignite.Ignition.start(Ignition.java:313) at com.nbcuni.panda.services.PandaIgniteGrid.start(PandaIgniteGrid.java:29) 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:483) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:344) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:295) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1505) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1762) 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:483) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565) 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:483) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:828) 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:483) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) at sun.rmi.transport.Transport$1.run(Transport.java:178) at sun.rmi.transport.Transport$1.run(Transport.java:175) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:174) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at org.apache.ignite.internal.util.IgniteUtils.newInstance(IgniteUtils.java:1114) ... 77 more Caused by: java.lang.NoSuchMethodError: org.h2.mvstore.cache.CacheLongKeyLIRS.<init>(JIII)V at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.<init>(IgniteH2Indexing.java:131) ... 82 more 13:46:38,918 WARN [IgniteKernal] Attempt to stop starting grid. This operation cannot be guaranteed to be successful. 13:46:38,929 INFO [IgniteKernal]

+-------------------------------------------------------------------------------------+ Ignite ver. 1.0.0-RC3#20150324-sha1:d167db5a9d81b82395d2adc56183722ea4211d69 stopped OK +-------------------------------------------------------------------------------------+ Grid name: null Grid uptime: 00:00:00:405

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Starting up the grid (newbie question)

commented by alexey goncharuk

It looks like that somehow you have a different version of H2 library in your application classpath which supersedes the one used by Ignite (it may be some transitive dependency from other library you depend on). The H2 version used by Ignite is 1.3.175, make sure that you only have this version in the classpath.

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Starting up the grid (newbie question)

commented by zare agazaryan

Thank you, Alexey. That solved the issue. I had newer versions of H2 dependencies in my pom files. I have replaced all of them with 1.3.175 and now Ignite grid is able to start normally.

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
Loading...