[
https://issues.apache.org/jira/browse/IGNITE-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16250735#comment-16250735
]
Arun Kumar Jain commented on IGNITE-1026:
-----------------------------------------
Hey [~vkulichenko], In my case the call
{code:java}
IgniteQueue q = ignite.queue("queue", 0, null);
{code}
does not fail, but the object returned by it is null. In this case 'q' becomes
null. I get NPE in the next statement where I use 'q'.
This has been discussed in ignite forum
[here|http://apache-ignite-users.70518.x6.nabble.com/Use-IgniteQueue-in-client-td18133.html]
and Alexey has opened [this|https://issues.apache.org/jira/browse/IGNITE-6889]
issue to track.
> Existing queue can't be acquired on client
> ------------------------------------------
>
> Key: IGNITE-1026
> URL: https://issues.apache.org/jira/browse/IGNITE-1026
> Project: Ignite
> Issue Type: Bug
> Components: data structures
> Affects Versions: sprint-4
> Reporter: Valentin Kulichenko
> Assignee: Valentin Kulichenko
> Priority: Blocker
> Fix For: sprint-7
>
>
> Server code:
> {code}
> Ignite ignite = Ignition.start();
> ignite.queue("queue", 1000, new CollectionConfiguration());
> {code}
> Client code:
> {code}
> Ignition.setClientMode(true);
> Ignite ignite = Ignition.start();
> IgniteQueue q = ignite.queue("queue", 0, null);
> {code}
> Start server, then client. The second will fail with NPE:
> {code}
> at
> org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.getCollection(DataStructuresProcessor.java:911)
> at
> org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.queue(DataStructuresProcessor.java:777)
> at org.apache.ignite.internal.IgniteKernal.queue(IgniteKernal.java:2768)
> at Client.main(Client.java:30)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)