ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shtykh (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (IGNITE-5121) REST API call with empty cache name causes NPE
Date Tue, 09 May 2017 05:41:04 GMT

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

Roman Shtykh reassigned IGNITE-5121:
------------------------------------

    Assignee: Roman Shtykh

> REST API call with empty cache name causes NPE
> ----------------------------------------------
>
>                 Key: IGNITE-5121
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5121
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Sergey Kozlov
>            Assignee: Roman Shtykh
>            Priority: Minor
>             Fix For: 2.1
>
>
> Request cache entry without cacheName causes NPE on the node:
> {noformat}
> [19:58:33,960][SEVERE][qtp153051342-48][GridJettyRestProtocol] Failed to process HTTP
request [action=/ignite, req=(POST /ignite?cmd=get&key=mykey-529&clientId=2128506-ad94-4a21-a711-529&cacheName=)@2130154253
org.eclipse.jetty.server.Request@7ef7930d]
> class org.apache.ignite.IgniteCheckedException: null
> 	at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7242)
> 	at org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:172)
> 	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> 	at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
> 	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.cache(GridCacheProcessor.java:3439)
> 	at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.localCache(GridCacheCommandHandler.java:752)
> 	at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.executeCommand(GridCacheCommandHandler.java:678)
> 	at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.handleAsync(GridCacheCommandHandler.java:427)
> 	at org.apache.ignite.internal.processors.rest.GridRestProcessor.handleRequest(GridRestProcessor.java:266)
> 	at org.apache.ignite.internal.processors.rest.GridRestProcessor.access$100(GridRestProcessor.java:89)
> 	at org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:155)
> 	... 4 more
> {noformat}



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

Mime
View raw message