关于定时器Exception in thread "Timer-1"

做了个timer定时器,在执行修改方法时报错,关于定时器Exception in thread "Timer-1" java.lang.NullPointerException,不知为何,新手捉急图片说明调用的方法:图片说明部分代码图片说明图片说明,在出错后,会进入Timer.class中图片说明诸位大神救我。。

今项目中要自动更新会员级别,用到定时器,顺便整理了下

感谢下边俩位兄弟的分享

http://www.blogjava.net/fastunit/archive/2008/02/15/180116.html

http://www.iteye.com/topic/1125517

刚开始一直报错

Exception in thread "Timer-......
答案就在这里:java spring 定时器 Exception in thread "Timer-1"
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

在 productService.updateProduct(p) 处加断点,调试运行,看下变量 p