ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kasnacheev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-7197) Premature access to services() causes NullPointerException
Date Wed, 13 Dec 2017 16:20:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-7197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16289460#comment-16289460
] 

Ilya Kasnacheev commented on IGNITE-7197:
-----------------------------------------

It turns out, jobs and tasks are executed after processor.start(), but services() is only
usable after onKernalStart().

> Premature access to services() causes NullPointerException
> ----------------------------------------------------------
>
>                 Key: IGNITE-7197
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7197
>             Project: Ignite
>          Issue Type: Bug
>          Components: managed services
>    Affects Versions: 2.3
>            Reporter: Ilya Kasnacheev
>            Assignee: Ilya Kasnacheev
>
> {code}
> Caused by: java.lang.NullPointerException
>     at org.apache.ignite.internal.processors.service.GridServiceProcessor.serviceEntries(GridServiceProcessor.java:1289)
>     at org.apache.ignite.internal.processors.service.GridServiceProcessor.serviceDescriptors(GridServiceProcessor.java:762)
>     at org.apache.ignite.internal.IgniteServicesImpl.serviceDescriptors(IgniteServicesImpl.java:203)
>     at org.apache.ignite.internal.visor.service.VisorServiceTask$VisorServiceJob.run(VisorServiceTask.java:60)
>     at org.apache.ignite.internal.visor.service.VisorServiceTask$VisorServiceJob.run(VisorServiceTask.java:44)
>     at org.apache.ignite.internal.visor.VisorJob.execute(VisorJob.java:69)
> {code}
> Happens with non-Visor jobs and callables, too!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message