ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Magda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5295) NPE when Persistent Store is used and Memory Configuration is missing
Date Fri, 26 May 2017 01:00:31 GMT
Denis Magda created IGNITE-5295:
-----------------------------------

             Summary: NPE when Persistent Store is used and Memory Configuration is missing
                 Key: IGNITE-5295
                 URL: https://issues.apache.org/jira/browse/IGNITE-5295
             Project: Ignite
          Issue Type: Bug
            Reporter: Denis Magda
            Assignee: Alexey Goncharuk
            Priority: Blocker
             Fix For: 2.1


Just added the first Persistent Store example to the branch that fosters the donation:
https://github.com/apache/ignite/tree/ignite-5267/examples/src/main/java/org/apache/ignite/examples/persistentstore

However, the example fails with an NPE if a MemoryConfiguration is not defined explicitly.

{code}
[17:55:39,334][ERROR][main][IgniteKernal] Exception during start processors, node will be
stopped and close connections
class org.apache.ignite.IgniteCheckedException: Failed to start processor: GridProcessorAdapter
[]
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1766)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:925)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:993)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:879)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:778)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:648)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:617)
	at org.apache.ignite.Ignition.start(Ignition.java:347)
	at org.apache.ignite.examples.persistentstore.PersistentStoreExample.main(PersistentStoreExample.java:56)
	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:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create Ignite component
(consider adding ignite-pds module to classpath) [component=DATABASE_MANAGER, cls=org.apache.ignite.internal.processors.cache.database.GridCacheDatabaseSharedManager]
	at org.apache.ignite.internal.IgniteComponentType.componentException(IgniteComponentType.java:335)
	at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:311)
	at org.apache.ignite.internal.IgniteComponentType.create(IgniteComponentType.java:186)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createSharedContext(GridCacheProcessor.java:2078)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:632)
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1763)
	... 16 more
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:423)
	at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:307)
	... 20 more
Caused by: java.lang.NullPointerException
	at org.apache.ignite.internal.processors.cache.database.GridCacheDatabaseSharedManager.<init>(GridCacheDatabaseSharedManager.java:284)
	... 25 more
[17:55:39,338][ERROR][main][IgniteKernal] Got exception while starting (will rollback startup
routine).
class org.apache.ignite.IgniteCheckedException: Failed to start processor: GridProcessorAdapter
[]
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1766)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:925)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:993)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:879)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:778)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:648)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:617)
	at org.apache.ignite.Ignition.start(Ignition.java:347)
	at org.apache.ignite.examples.persistentstore.PersistentStoreExample.main(PersistentStoreExample.java:56)
	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:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create Ignite component
(consider adding ignite-pds module to classpath) [component=DATABASE_MANAGER, cls=org.apache.ignite.internal.processors.cache.database.GridCacheDatabaseSharedManager]
	at org.apache.ignite.internal.IgniteComponentType.componentException(IgniteComponentType.java:335)
	at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:311)
	at org.apache.ignite.internal.IgniteComponentType.create(IgniteComponentType.java:186)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createSharedContext(GridCacheProcessor.java:2078)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:632)
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1763)
	... 16 more
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:423)
	at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:307)
	... 20 more
Caused by: java.lang.NullPointerException
	at org.apache.ignite.internal.processors.cache.database.GridCacheDatabaseSharedManager.<init>(GridCacheDatabaseSharedManager.java:284)
	... 25 more
[17:55:39,346][ERROR][main][IgniteKernal] Failed to pre-stop processor: GridProcessorAdapter
[]
java.lang.NullPointerException
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStop(GridCacheProcessor.java:974)
	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2099)
	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2047)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1052)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:993)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:879)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:778)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:648)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:617)
	at org.apache.ignite.Ignition.start(Ignition.java:347)
	at org.apache.ignite.examples.persistentstore.PersistentStoreExample.main(PersistentStoreExample.java:56)
	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:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
[17:55:39,351][ERROR][main][IgniteKernal] Failed to stop component (ignoring): GridProcessorAdapter
[]
java.lang.NullPointerException
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stop(GridCacheProcessor.java:926)
	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2180)
	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2047)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1052)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:993)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:879)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:778)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:648)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:617)
	at org.apache.ignite.Ignition.start(Ignition.java:347)
	at org.apache.ignite.examples.persistentstore.PersistentStoreExample.main(PersistentStoreExample.java:56)
	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:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
[17:55:39] Ignite node stopped wih ERRORS [uptime=00:00:08:000]
Exception in thread "main" class org.apache.ignite.IgniteException: Failed to start processor:
GridProcessorAdapter []
	at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:959)
	at org.apache.ignite.Ignition.start(Ignition.java:350)
	at org.apache.ignite.examples.persistentstore.PersistentStoreExample.main(PersistentStoreExample.java:56)
	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:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start processor: GridProcessorAdapter
[]
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1766)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:925)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1895)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075)
	at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:993)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:879)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:778)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:648)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:617)
	at org.apache.ignite.Ignition.start(Ignition.java:347)
	... 6 more
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create Ignite component
(consider adding ignite-pds module to classpath) [component=DATABASE_MANAGER, cls=org.apache.ignite.internal.processors.cache.database.GridCacheDatabaseSharedManager]
	at org.apache.ignite.internal.IgniteComponentType.componentException(IgniteComponentType.java:335)
	at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:311)
	at org.apache.ignite.internal.IgniteComponentType.create(IgniteComponentType.java:186)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createSharedContext(GridCacheProcessor.java:2078)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:632)
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1763)
	... 16 more
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:423)
	at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:307)
	... 20 more
Caused by: java.lang.NullPointerException
	at org.apache.ignite.internal.processors.cache.database.GridCacheDatabaseSharedManager.<init>(GridCacheDatabaseSharedManager.java:284)
	... 25 more
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message