Hi Alexey, This exception occurs right on start up as we try to add our services to the cron.
We are using the scheduler as an example given your docs ( https://apacheignite.readme.io/docs/cron-based-scheduling). Below is the example, similar to the issue raised by another user, link for the reference ( http://apache-ignite-users.70518.x6.nabble.com/Fwd-NPE-at-ScheduleFutureImpl-line-177-td13435.html private def startScheduler() = { ignite.scheduler.scheduleLocal(new Runnable() { override def run() = try { Logger.info("Tick tock") /** Do Stuff! */ } catch { case e:Exception => Logger.error("I poked, I failed!", e) } }, "* * * * *")} Thanks, R On 7 June 2017 at 16:01, Alexey Goncharuk <[email protected]> wrote: > Hi Raul, > > Do you observe this exception under some specific events, like topology > change? Can you share an example of how you use Ignite scheduler in your > service here? > > Thanks, > AG > > 2017-06-06 17:21 GMT+03:00 Raul <[email protected]>: > >> Hi, >> >> We are trying to deploy a service as cluster singleton in our >> environment. We are using ignite scheduler as a cron for this purpose, >> however we are getting NPE for ignite version 2.0.0, hence unable to >> proceed with our version upgrade. Below is the log information for the >> exception. >> >> Environment details: >> Oracle Hotspot 1.8_121 >> Ignite 2.0.0 >> Springmix 4.3.7 >> >> >> 2017-06-06 13:21:08 ERROR GridServiceProcessor:495 - Failed to initialize >> service (service will not be deployed): AVxezSbWNphcxa1CYjfP >> java.lang.NullPointerException >> at org.apache.ignite.internal.processors.schedule.ScheduleFutur >> eImpl.schedule(ScheduleFutureImpl.java:299) >> at org.apache.ignite.internal.processors.schedule.IgniteSchedul >> eProcessor.schedule(IgniteScheduleProcessor.java:56) >> at org.apache.ignite.internal.IgniteSchedulerImpl.scheduleLocal >> (IgniteSchedulerImpl.java:109) >> at com.mypackage.state.services.MyService.startScheduler(MyServ >> ice.scala:172) >> at com.mypackage.state.services.MyService.init(MyService.scala: >> 149) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.redeploy(GridServiceProcessor.java:1097) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.processAssignment(GridServiceProcessor.java:1698) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.onSystemCacheUpdated(GridServiceProcessor.java:1372) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.access$300(GridServiceProcessor.java:117) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor$ServiceEntriesListener$1.run0(GridServiceProcessor.java:1339) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor$DepRunnable.run(GridServiceProcessor.java:1753) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >> Executor.java:1142) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >> lExecutor.java:617) >> at java.lang.Thread.run(Thread.java:745) >> 2017-06-06 13:21:08:868 ERROR application - Unable to initialise GRID: >> class org.apache.ignite.IgniteException: null >> at org.apache.ignite.internal.util.IgniteUtils.convertException >> (IgniteUtils.java:949) >> at org.apache.ignite.internal.IgniteServicesImpl.deployClusterS >> ingleton(IgniteServicesImpl.java:122) >> at com.mypackage.state.mypackage1.InitialiseGrid$$anonfun$ >> apply$1.apply(InitialiseGrid.scala:22) >> at com.mypackage.state.mypackage1.InitialiseGrid$$anonfun$ >> apply$1.apply(InitialiseGrid.scala:19) >> at scala.collection.mutable.ResizableArray$class.foreach(Resiza >> bleArray.scala:59) >> at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer. >> scala:48) >> at com.mypackage.state.mypackage1.InitialiseGrid$.apply( >> InitialiseGrid.scala:19) >> at com.mypackage.state.Application$.main(Application.scala:54) >> at com.mypackage.state.Application.main(Application.scala) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:62) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:498) >> at sbt.Run.invokeMain(Run.scala:67) >> at sbt.Run.run0(Run.scala:61) >> at sbt.Run.sbt$Run$$execute$1(Run.scala:51) >> at sbt.Run$$anonfun$run$1.apply$mcV$sp(Run.scala:55) >> at sbt.Run$$anonfun$run$1.apply(Run.scala:55) >> at sbt.Run$$anonfun$run$1.apply(Run.scala:55) >> at sbt.Logger$$anon$4.apply(Logger.scala:85) >> at sbt.TrapExit$App.run(TrapExit.scala:248) >> at java.lang.Thread.run(Thread.java:745) >> Caused by: class org.apache.ignite.IgniteCheckedException: null >> at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils >> .java:7242) >> at org.apache.ignite.internal.util.future.GridFutureAdapter.res >> olve(GridFutureAdapter.java:258) >> at org.apache.ignite.internal.util.future.GridFutureAdapter.get >> 0(GridFutureAdapter.java:189) >> at org.apache.ignite.internal.util.future.GridFutureAdapter.get >> (GridFutureAdapter.java:139) >> at org.apache.ignite.internal.AsyncSupportAdapter.saveOrGet(Asy >> ncSupportAdapter.java:112) >> at org.apache.ignite.internal.IgniteServicesImpl.deployClusterS >> ingleton(IgniteServicesImpl.java:119) >> ... 20 more >> Caused by: java.lang.NullPointerException >> at org.apache.ignite.internal.processors.schedule.ScheduleFutur >> eImpl.schedule(ScheduleFutureImpl.java:299) >> at org.apache.ignite.internal.processors.schedule.IgniteSchedul >> eProcessor.schedule(IgniteScheduleProcessor.java:56) >> at org.apache.ignite.internal.IgniteSchedulerImpl.scheduleLocal >> (IgniteSchedulerImpl.java:109) >> at com.mypackage.state.services.MyService.startScheduler(MyServ >> ice.scala:172) >> at com.mypackage.state.services.MyService.init(MyService.scala: >> 149) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.redeploy(GridServiceProcessor.java:1097) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.processAssignment(GridServiceProcessor.java:1698) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.onSystemCacheUpdated(GridServiceProcessor.java:1372) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor.access$300(GridServiceProcessor.java:117) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor$ServiceEntriesListener$1.run0(GridServiceProcessor.java:1339) >> at org.apache.ignite.internal.processors.service.GridServicePro >> cessor$DepRunnable.run(GridServiceProcessor.java:1753) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >> Executor.java:1142) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >> lExecutor.java:617) >> ... 1 more >> >> >> >
