/**
* 把客流信息写入到redis
*/
@Aop("redis")
private void saveKlData2Redis(String sn, String content) {
long a = System.currentTimeMillis();
log.info(jedis().info());
jedis().set("nutzwk:GetKlDataJob:" + sn, content);
long b = System.currentTimeMillis();
log.info("saveKlData2Redis time:" + (b - a) + "ms");
}
[INFO ] 18:58:55.205 cn.wizzer.app.task.commons.ext.quartz.job.GetKlDataJob.execute(GetKlDataJob.java:48) - {"page":"1","total":"1","records":"1","result":"ok","msg":"","rows":[{"num":"1","sn":"EFDD9AF3","dt_data":"2018-05-4","dt_upload":"","in_dat":"49","out_dat":"43","bat_voltage":"0","bat_percent":"0","charge_state":"0","focus_state":"0"}]}
[ERROR] 18:58:55.205 org.quartz.core.JobRunShell.run(JobRunShell.java:211) - Job e3e8b23888ec4846b234a71f0ca95112.e3e8b23888ec4846b234a71f0ca95112 threw an unhandled Exception:
java.lang.NullPointerException
at cn.wizzer.app.task.commons.ext.quartz.job.GetKlDataJob.saveKlData2Redis(GetKlDataJob.java:63)
at cn.wizzer.app.task.commons.ext.quartz.job.GetKlDataJob.execute(GetKlDataJob.java:50)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[ERROR] 18:58:55.205 org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2401) - Job (e3e8b23888ec4846b234a71f0ca95112.e3e8b23888ec4846b234a71f0ca95112 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.NullPointerException
at cn.wizzer.app.task.commons.ext.quartz.job.GetKlDataJob.saveKlData2Redis(GetKlDataJob.java:63)
at cn.wizzer.app.task.commons.ext.quartz.job.GetKlDataJob.execute(GetKlDataJob.java:50)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more