ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1996) NPE in case of not valid QueryEntity configuration
Date Wed, 25 Nov 2015 03:15:11 GMT
Alexey Kuznetsov created IGNITE-1996:
----------------------------------------

             Summary: NPE in case of not valid QueryEntity configuration
                 Key: IGNITE-1996
                 URL: https://issues.apache.org/jira/browse/IGNITE-1996
             Project: Ignite
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.5
            Reporter: Alexey Kuznetsov
            Assignee: Sergi Vladykin
             Fix For: 1.5


In case if user specified in xml configuration not existing value for QueryEntity.valueType
that GridQueryProcessor failed with NPE, but should throw appropriate exception with name
of invalid class name.

{code}
Caused by: java.lang.NullPointerException
	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$DBTypeEnum.fromClass(IgniteH2Indexing.java:1704)
	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.dbTypeFromClass(IgniteH2Indexing.java:1175)
	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.createTable(IgniteH2Indexing.java:1146)
	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.registerType(IgniteH2Indexing.java:1050)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.initializeCache(GridQueryProcessor.java:253)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:374)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1015)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:786)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:944)
{code}



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

Mime
View raw message