You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexey Goncharuk (JIRA)" <ji...@apache.org> on 2015/12/10 10:17:10 UTC

[jira] [Updated] (IGNITE-1996) NPE in case of not valid QueryEntity configuration

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

Alexey Goncharuk updated IGNITE-1996:
-------------------------------------
    Assignee:     (was: Alexey Goncharuk)

> 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
>             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)