You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by "Niclas Hedhman (JIRA)" <ji...@apache.org> on 2015/07/01 15:21:04 UTC

[jira] [Commented] (ZEST-38) Scheduler throws NPE

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

Niclas Hedhman commented on ZEST-38:
------------------------------------

It is because there is only one Schedule in queue, which hasn't been executed yet, hence the scheduleHandler.future == null.

> Scheduler throws NPE
> --------------------
>
>                 Key: ZEST-38
>                 URL: https://issues.apache.org/jira/browse/ZEST-38
>             Project: Zest
>          Issue Type: Bug
>            Reporter: Niclas Hedhman
>
> Not sure why/how/when, but it happens first access...
> java.lang.NullPointerException
> 	at org.qi4j.library.scheduler.SchedulerMixin.dispatchForExecution(SchedulerMixin.java:183)
> 	at org.qi4j.library.scheduler.SchedulerMixin.scheduleCron(SchedulerMixin.java:120)
> 	at org.qi4j.api.unitofwork.concern.UnitOfWorkConcern.invoke(UnitOfWorkConcern.java:89)
> 	at org.qi4j.api.unitofwork.concern.UnitOfWorkConcern.invoke(UnitOfWorkConcern.java:89)



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